Example #1
0
 /// <summary>
 /// Apply concern setter to a <see cref="PropertyConcern"/>
 /// </summary>
 /// <param name="concern">The property concern.</param>
 /// <returns>The new value with concern setter method value applied.</returns>
 public static PropertyConcern ConcernSetter(this PropertyConcern concern)
 {
     return(concern | PropertyConcern.Setter);
 }
Example #2
0
 /// <summary>
 /// Gets a value indicating whether the concern value concerns at least one method in the property.
 /// </summary>
 /// <param name="concern">The concern value.</param>
 /// <returns>True if the concern value concerns at least one of the methods in the property, false elsewise.</returns>
 public static bool IsConcerned(this PropertyConcern concern)
 {
     return(concern != PropertyConcern.None);
 }
Example #3
0
 /// <summary>
 /// Gets a value indicating whether the property conern concerns setter method.
 /// </summary>
 /// <param name="concern">The property concern.</param>
 /// <returns>True if the property concern concerns setter, false elsewise.</returns>
 public static bool IsSetterConcerned(this PropertyConcern concern)
 {
     return((concern & PropertyConcern.Setter) == PropertyConcern.Setter);
 }