Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

Simple Enum question

I have an enum like below. Want to get the 'string' value. I do
(string)OrderFlag.Catalog

but get an error: cannot convert type Fulfillment.OrderFlag to string.

I have to use int values of enum??

public enum OrderFlag
    {
           Reserved = 'R',
           Catalog = 'C'

    }
Avatar of burakiewicz
burakiewicz
Flag of United States of America image

OrderFlag.Catalog.ToString()
ASKER CERTIFIED SOLUTION
Avatar of burakiewicz
burakiewicz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Camillia

ASKER

let me see.