Removed AncestorLookup property
Changed logic to use Info version of parent Changed Ancestor Lookup to use Info objects Removed ActiveFormat from editable object Changed DefaultFormatSelection to use info objects Removed debug print
This commit is contained in:
@@ -35,7 +35,7 @@ namespace DescriptiveEnum
|
||||
/// <returns>The description, if any, else it's .ToString()</returns>
|
||||
public static string GetEnumDescription(Enum value)
|
||||
{
|
||||
Console.WriteLine("{0}", value);
|
||||
//Console.WriteLine("{0}", value);
|
||||
FieldInfo fi = value.GetType().GetField(value.ToString());
|
||||
DescriptionAttribute[] attributes =
|
||||
(DescriptionAttribute[])fi.GetCustomAttributes(
|
||||
|
Reference in New Issue
Block a user