Connecting Tech Pros Worldwide Help | Site Map

Retrieve the schema of a class

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 02:03 AM
HJ Rodirguez
Guest
 
Posts: n/a
Default Retrieve the schema of a class

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.