>Hi Rob,
>
>Sorry, I posted the problem a lit bit too quickly. I called my colleague and together we figured this out. It was actually my mistake and the function worked just fine. The problem lied in this function
>
>string enumName = GetFormattedEnumName<T>(enumNames[i]);
>
>This function, it turn, did the following
>
>
> private static string GetFormattedEnumName<T>(string enumName)
> {
> // If the enum value has a Description attribute then use
> // the Description property of that attribute for the
> // enum name. Otherwise, split the enum name on its
> // camel casing and use that for the name.
>
> string formattedEnumName = GetEnumDescription<T>(enumName);
>
> if (formattedEnumName == null)
> {
> formattedEnumName = SplitCamelCase(enumName);
> }
>
> return formattedEnumName;
> }
>
>BTW, do you see a reason of having this function static?
>
>GetEnumDescription was another very complex function that grabbed the description of the enum if there was one. Now, as you see in the Enum definition (which I copied from another enum when I created it), it had a description for the first element Typing. For some reason I didn't realize it was description of that particular value and not the whole enum. So, the behavior I found was not a bug but rather a feature. To correct it all I needed to do was to remove this description.
>
>Thanks again.
Its probably static because it has no dependencies on an instance of the class it is contained in.