enums

  • Thread starter Thread starter Andy B
  • Start date Start date
Andy said:
Can enums be made up of strings?

No. The possible types are Byte, Integer, Long, SByte, Short, UInteger,
ULong, and UShort.

However, the identifiers are strings, and you can use the ToString
method to get the identifier of one enum value, or the Enum.GetNames
method to get an array with all the identifiers of an enum type.
 

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

Back
Top