What exactly does this mean in C#? -


i'm browsing open source .net twain wrapper , saw this:

[flags] internal enum twdg : short {                                   // dg_.....     control = 0x0001,     image = 0x0002,     audio = 0x0004 } 

what 'flag' decorator mean? (is called 'decorator'?)

also, short mean @ end of enum declaration?

thanks!

short keyword system.int16, two-byte integer ranging -32,768 32,767. default, enum's base type int; in case, they're attempting use smaller data type store enumerator values.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -