Exemple #1
0
 set => SetValue(OptionProperty, value);
Exemple #2
0
 set => SetValue(OptionProperty, EnumUtil.GetBoxed(value));
 /// <summary>
 /// Gets all option properties of the current type.
 /// </summary>
 /// <param name="type">The type itself.</param>
 /// <returns>An enumerable of option properties.</returns>
 public static IEnumerable <OptionProperty> GetOptionProperties(this Type type)
 {
     return
         (from property in type.GetProperties()
          select OptionProperty.FromProperty(property));
 }