Is it possible to create a dictionary of enum values? Example below what I need.
Example
key = 0, value = "Unknown"
key = 1, value = "Another"
etc..
Code snippet of enum
public enum MyEnum
{
Unknown = 0,
Another = 1,
...
}
My attempt
var values = Enum.GetValues(typeof(MyeNum));
var namesames = Enum.GetNames(typeof(MyeNum));
// Save values
foreach (var i in values )
{
dictionaryList.Add(i, "");
}