c# - Which data type the enumerations are stored by the compiler? -
in data type enumerations stored compiler?
enum
default uses int
datatype storing value
you can set type enum
, override default datatype, datatype must of integral numeric type
example :
enum months : byte { jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec };
Comments
Post a Comment