Read-only property in VB.NET:
Public ReadOnly Property PropertyName As ReturnType
Get ‘Your Property Implementation goes in here
End Get
End Property
Read-only property in C#:
public returntype PropertyName
{
get{
//property implementation goes here
}
// Do not write the set implementation
}
0 comments:
Post a Comment