Using VB.Net.
I have declared properties like these:
Private _name as String
Private _address as String
Public Property Name as String
Get
Return _name
End Get
Set(value as String)
_name = value
End Set
End Property
Public Property Address as String
Get
Return _address
End Get
Set(value as String)
_address= value
End Set
End Property
I want to minimize declaring another variable that will handle the get and set. This variable or function will be used by all property and will handle all the get and set value of all properties.
For example:
Public Property Address as String
Get
Return address /*Insert function here that can be use by all property*/
End Get
Set(value as String)
address = value /*Insert function here that can be use by all property*/
End Set
End Property
Thanks in advance.