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
If I understood the original question correctly, the answer may be this:
You can get numbers listed in an enum in the inspector by simply using an underscore prefix, e.g:
public enum MyNumbers{ _1, _2, _3, _4 }; public MyNumbers myNumbers;
Hope this is helps!