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:
Rich
2009-10-08 14:27:03 +00:00
parent 533baae01c
commit 6396b53eeb
2 changed files with 27 additions and 27 deletions

View File

@@ -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(