USHORT

用于存储 16 位正整数的数字类型。ushort 是 System.UInt16 的别名,占用 2 个字节的内存。

有效范围是 0 到 65535。

ushort a = 50; // 50
ushort b = 65536; // Error, cannot be converted
ushort c = unchecked((ushort)65536); // Overflows (wraps around to 0)