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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

WMI 4
Enum TypeConverter 3
about enum 3
Whats this 4
Enum Extentions 7
Enumeration string representations 1
Backup Security Event Log via script Problem 1
I have small probalem 4

Back
Top