Reputation: 1018
Kinda new to Visual Basic.
You know that in C# we would write for example:
public class MyClass
{
public int Age {get; set;}
}
I need to do something like that in order to use a class for capture some data and then create a list of this object type. But, how I write a simple Get, Set class in Visual Basic?? Any way to achieve this as simple as we do in C#????? Thank you!!
Upvotes: 0
Views: 180
Reputation: 7689
Private _Age as Integer
Public Property Age() As Integer
Get
Return _Age
End Get
Set(ByVal value As Integer)
_Age = value
End Set
End Property
Upvotes: 0