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.
 
Back
Top