If I have an enumeration:
public enum MyEnum { Element1 = 1, Element2, Element3, Element4 }
How could I do MyEnum before String() in code
I know that I can overlay any Enum value on sting as on MyEnum.Element1.ToString() , but how can I specify the definition / name of Enum in a string?
I want to do something like this:
MyEnum.ToString()
source share