System.Int16 Structure

Represents a 16-bit signed integer.

See Also: Int16 Members


public struct Int16 : IComparable, IComparable<short>, IConvertible, IEquatable<short>, IFormattable


The short value type represents signed integers with values ranging from negative 32768 through positive 32767.

This type provides methods to convert the value of an instance of this type to its string representation, to convert the string representation of a number to an instance of this type, and to compare instances of this type.

You can also call the members of the Math class to perform a wide range of numeric operations, including getting the absolute value of a number, calculating the quotient and remainder from integral division, determining the maximum or minimum value of two integers, getting the sign of a number, and rounding a number.

For information about how format specification codes control the string representation of value types, see Formatting Types.

Thread Safety

This type is safe for multithreaded operations.


Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,