I have the following enum:
public enum ReferenceKey {
MenuType = 1,
ReferenceStatus = 2,
ContentType = 3
}
Is there a way that I can list this data as an IEnumerable with
two fields. The first field for the number and the second for the
string with a space between the first and second word as in:
1 "Menu Type"
2 "Reference Status"
3 "Content Type"
Why Not
Solution 2: An Array as you wanted
See it working
Solution 2: A
Dictionary<int, string>See it working
Solution 3: Another way of creating an
Dictionary<int, string>Include
System.Linqnamespace for thisSee it working