I need to use this enumeration in my C # application, but this will not allow me to use these values. When I specify the type as uint, I can use the value -1, and when I specify int, I cannot use the last 2 values. Is there a way to use the unchecked keyword so that I can define all of these values? These values ββcome from an external source, so I cannot change them.
internal enum MyValues : int { value1 = -1, value2 = 0, value3 = 0x80000000, value4 = 0xFFFFFFFF }
enums c # interop unsafe
Jon tackabury
source share