VB.NET v2.0: Property Gets and Sets with Different Accessibility

Once again there is mention of a new cool feature in C#:

Properties can now have different accessibility for get {...} and set {...}.

Well, once again this is also available in VB.NET v2.0:

Private _myProperty As String

Public Property MyProperty() As String
    Get
        Return _myProperty
    End Get
    Protected Set(ByVal value As String)
        _myProperty = value
    End Set
End Property

As much as I prefer C# myself, I'm starting to wonder what's not in VB?

3 Comments

Comments have been disabled for this content.