So, I'm familiar with GCC 0b00010010
for example to write a binary constant. How do I do that in .NET? I'm mainly concerned with VB C# and C++ as I'm debugging/modifying code in those languages.
If there isn't a direct way to do this, is there a short route that won't be impossible to read and modify later?
Code added to illustrate reason for question:
<FlagsAttribute( )> _
Enum ControlTypeEnum as Short
‘ 5 4 S 3 2 1 M L
None = 0 ‘0x 0 0 0 0 0 0 0 0
Lathe = 1
Mill = 2
P100 = 4 '*
P200 = 8 '*
P300 = 16
P300L = 17 '*
P300SLP = 49 '*
P300M = 18 '*
P300SMP = 50 '*
P400L = 65 '*
P400SLP = 97 '*
P400M = 66 '*
P400SMP = 98 '*
End Enum
'Values with asterisk are valid return values from function