コード例 #1
0
 /// <summary>
 /// Return the friendly description of an enum value, if it has been decorated with the DescriptionAttribute,
 /// otherwise, return the internal string representation of the enum value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static String ToDescription(this Enum value, Boolean expandFlags = true)
 {
     return(DDRIT.ToDescription(value, expandFlags));
 }