public virtual string Name { get; protected set; }
VB:
Option Compare Text
Option Explicit On
Option Infer Off
Option Strict On
Private _name As String
Public Overridable Property Name As String
Private Get
Return _name
End Get
Protected Set(Value As String)
Name = _name
End Set
End Property
Why adding Private to the set?.. It causes errors.
C#:
VB:
Why adding Private to the set?.. It causes errors.
also 'Name = _name
Must be:
_name = Value`