C# Is there a way to use Enum in string?

  • Thread starter Thread starter iHandler
  • Start date Start date
I

iHandler

Guest
// this is not allowed
public enum Status
{
ExtraLarge = XL,
Large = L,
Medium = M,
ExtraSmall = XS}

Is there a way to use Enum in string? or I have to go with some other ways (e.g. Const)? Please help

Continue reading...
 
Back
Top