Is it possible to make an enum using just numbers in C#? In my program I have a variable, Gain, that can only be set to 1, 2, 4, and 8. I am using a propertygrid control to
Unfortunately, symbols in C# can contain numbers, but cannot start with numbers. So you're gonna have to use words.
Alternatively, you could do Gain1, Gain2, etc.
Or you could forgo an enum altogether and use constants and internal processing.