标签: c#
如果short只是使用Int16结构的C#语法, 你可以像这样互换:
short
Int16
Int16 x = 10; //or short x = 10;
public enum DaysOfWeek : short { }
但不是这样:
public enum DaysOfWeek : Int16 { }
错误为Type byte, sbyte, short, ushort, int, uint, long or ulong expected.
Type byte, sbyte, short, ushort, int, uint, long or ulong expected.