C# language feature:
applies to
benefit
how to use
set or get with a modifier keyword such as protectedexample:
public class Getter_and_Setter_Accessibility_Example
{
public int ExampleProperty
{
// Ability to restrict further the accessor accessibility level.
protected set { }
// No access modifier.
get { return 0; }
}
}