im trying to make a generic function which converts an enum into a dictionary.
The dictionary however I want to return would be:
Dictionary<TValue, string>
where TValue could be an int, byte, long etc...
How can I do this?
this is my current method signature:
Code:public static IDictionary<int, string> ToDictionary<TEnum>() where TEnum : struct





any chance of a regain? 
Reply With Quote