I know that in C # you can do this:
public string propriedade { get; set; }
Is there any short way of declaring properties with the Get
and Set
procedures in Visual Basic? The only way I know it is this:
Private _propriedade As String
Public Property propriedade() As String
Get
Return _propriedade
End Get
Set(ByVal value As String)
_propriedade = value
End Set
End Property
I also know that by typing Property
and pressing Tab , Visual Studio makes it easier to autocomplete with the chosen name for the property.