As Paul pointed out, you have a syntax error that should resolve (which seems to be fixed) . As another Test pointed out, this is an enumeration that contains integer values. For example, an enumeration can be used to process values โโsuch as x0001 or 0xA0BC (41148).
In the example, you used Int32 IntTest , which is a 32-bit integer; I can add that you should use int instead of Int32 , and if your enum does not hold something else, then the integer will not even indicate : int since the default hold type is really integer.
Regarding the reason the compiler forces you to use a value; Its just how it works, the enumeration is NOT an integer, only the values โโof its possible sub-properties (TestValue1, TestValue2, TestValue3) are integers. *
As someone pointed out, what will be printed in Console.WriteLine is not an integer. *
Security hound
source share