Exemplo n.º 1
0
 /// <summary>
 /// Sets the property to be both readable and writable
 /// </summary>
 public void SpecifyReadWrite()
 {
     GetterAccess = AccessModifier.Convert();
     SetterAccess = AccessModifier.Convert();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the property to be writeonly
 /// </summary>
 public void SpecifyWriteOnly()
 {
     GetterAccess = null;
     SetterAccess = AccessModifier.Convert();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the property's setter to the property's access modifier
 /// </summary>
 public void SpecifyPublicSetter() => SetterAccess = AccessModifier.Convert();
Exemplo n.º 4
0
 /// <summary>
 /// Sets the property to be readonly
 /// </summary>
 public void SpecifyReadOnly()
 {
     GetterAccess = AccessModifier.Convert();
     SetterAccess = null;
 }