According to msdn, ConsoleColor has 16 colours available.
Does this mean that each colour is represented using 4 bits?
Why have they limited it to only 16 colours?
Simple colours like orange aren't even available.
According to msdn, ConsoleColor has 16 colours available.
Does this mean that each colour is represented using 4 bits?
Why have they limited it to only 16 colours?
Simple colours like orange aren't even available.
To answer your question:
Does this mean that each colour is represented using 4 bits?
which at least two people seem to have just ignored that you asked, that type is an enumeration and enumerations default to using Int32
as their underlying type so each value is represented using 32 bits.