Class enum with String values...

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello all,

I’ve this class:
    public enum ModeState
    {
        Edit = 1,
        View = 2,
        Crea = 3,
    }
How i can use it with string value in place of numbers (Edit = “Edit”). I now that is not possible in version1.X, but somme one tell me that is possible in v2.0.
Sammeone can help me please?
Thanks a lot.

JiPe



View the full article
 
Back
Top