System Namespace
Represents a 16-bit unsigned integer.
The UInt16 value type represents unsigned integers with values ranging from 0 to 65535.
UInt16 provides methods to compare instances of this type, convert the value of an instance to its String representation, and convert the String representation of a number to an instance of this type.
NOTE: The UInt16 type is not CLS-compliant. The CLS-compliant alternative type is Int32. Int16 can be used when the original value is less than half of UInt16.MaxValue.
For information about how format specification codes control the String representation of value types, see Formatting Base Types.
This type implements interfaces IComparable, IFormattable, and IConvertible. Use the Convert class for conversions instead of this type's explicit interface member implementation of IConvertible.
Int16