M
Matthew
I found an excellent tutorial on XML Serialization:
http://addressof.com/blog/articles/ExploringXMLSerialization.aspx
When he creates a class property, it looks like this:
Public Class Drivers
Private _wave As String
Public Property Wave() As String
Get
Return _wave
End Get
Set(ByVal Value As String)
_wave = Value
End Set
End Property
End Class
My question is, it seems to work equally well when done this way:
Public Class Drivers
Public Wave As String
End Class
Is there a reason to use the Property method?
Matthew
http://addressof.com/blog/articles/ExploringXMLSerialization.aspx
When he creates a class property, it looks like this:
Public Class Drivers
Private _wave As String
Public Property Wave() As String
Get
Return _wave
End Get
Set(ByVal Value As String)
_wave = Value
End Set
End Property
End Class
My question is, it seems to work equally well when done this way:
Public Class Drivers
Public Wave As String
End Class
Is there a reason to use the Property method?
Matthew
