When did this get added to .NET?
A property that's writeable from inside but readonly from outside! How did this manage to get past me before now?
Code:
Class Contact
Private _Name As String
Private _Address As String
'Public Get/Private Set
Public Property Name() As String
Get
Return _Name
End Get
Private Set(ByVal value As String)
_Name = value
End Set
End Property
'Public Get/Private Set
Public Property Address() As String
Get
Return _Address
End Get
Private Set(ByVal value As String)
_Address = value
End Set
End Property
End Class
Comment