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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -