If i create a small class:
How should i go about writing a disposal method for it?
Also, my idea of disposing a class is releasing all th eobject that class uses...Is that correct?
Please help
Code:
Public Class XMLNode1
Private xmlHeader As String
Private xmlValue As String
Public Sub New()
xmlHeader = Nothing
xmlValue = Nothing
End Sub
Public Sub New(ByVal head As String, ByVal val As String)
Me.propHead = head
Me.propVal = val
End Sub
Public Property propHead()
Get
Return xmlHeader
End Get
Set(ByVal value)
xmlHeader = value.ToString
End Set
End Property
Public Property propVal()
Get
Return xmlValue
End Get
Set(ByVal value)
xmlValue = value.ToString
End Set
End Property
End Class
How should i go about writing a disposal method for it?
Also, my idea of disposing a class is releasing all th eobject that class uses...Is that correct?
Please help