Connecting Tech Pros Worldwide Forums | Help | Site Map

Retrieve the schema of a class

HJ Rodriguez
Guest
 
Posts: n/a
#1: Nov 12 '05
Hello all,

I was wondering is their a method in dotnet whereby I can automatically
retrive the schema of a class which I am serializing (with XmlSerializer).

Assume I have the following class

Public Class Test

Public Sub New()
MyBase.New()
End Sub

_testID as int32
_testName as String

<XmlAttributeAttribute()> Public Property TestID() As int32
Get
Return _testID
End Get
Set(ByVal Value As int32)
_testID= value
End Set
End Property

<XmlAttributeAttribute()> Public Property TestName() As String
Get
Return _testName
End Get
Set(ByVal Value As String)
_testName= value
End Set
End Property

End Class

I can serialize this class into XML using the XmlSerializer class. My
question is how can get the schema which of the class?


Thanks
HJ Rodriguez



Closed Thread