enum LogType :string{...};

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

enum LogType :string{};

I underestand that I can't have enumeration of strings. Is there any turn
around for this problem?


Thanks,
Ali
 
A.M said:
Hi,

enum LogType :string{};

I underestand that I can't have enumeration of strings. Is there any turn
around for this problem?


Thanks,
Ali

I'm not sure I understand your question. How could you enumerate through
something that is non-numeric? Unless you are asking how to get a string
representation of an enum, which is quite doable:

enum Days {Sat, Sun, Mon, Tue, Wed, Thu, Fri};

Days day = Days.Fri;
MessageBox.Show(day.ToString());

Erik
 
Hi Ali,

Does Erik's reply make sense to you?

If you still have anything unclear, please feel free to feedback.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top