There may be a time when you want to have mixed scope for your "Getters" and "Setters" in a property. For those of you who are not familiar with the syntax here it is
VB:
Public Property MyProperty as String Get Return _myField End Get Private Set _myField = Value End Set End Property
This example allows a public "Getter" and a private "Setter".
The same can be done in C#:
public string MyProperty { get { return _myField; } private set { _myField = value; } }
Hope you find that useful.
Regards,
Dib.
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.