In C #, I can do this:
public string myProperty { get; private set; }
This is called an βauto receiver / setterβ (from what I heard). Does VB.NET support these? So far, with my properties, all I can do is:
Public Property myProperty As String Get Return String.Empty End Get Private Set(ByVal value As String) somethingElse = value End Set End Property
which is extremely awkward.
So ... is there a better way?
source share