Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Why can't I base an enum off UInt16?
- static void Main()
- {
- Console.WriteLine(typeof(MyEnum).BaseType.FullName);
- }
- enum MyEnum : ushort
- {
- One = 1,
- Two = 2
- }
- enum MyEnum : UInt16
- {
- One = 1,
- Two = 2
- }
Add Comment
Please, Sign In to add comment