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

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -