Name
Int16
Synopsis
This is the value type for 16-bit
integers (which can range from -32768
to 32767). This is also available in C# through the
short
alias.
public struct Int16 : IComparable, IFormattable, IConvertible { // Public Static Fields public const short MaxValue; // =32767 public const short MinValue; // =-32768 // Public Static Methods public static short Parse(strings
); public static short Parse(strings
, IFormatProviderprovider
); public static short Parse(strings
, System.Globalization.NumberStylesstyle
); public static short Parse(strings
, System.Globalization.NumberStylesstyle
, IFormatProviderprovider
); // Public Instance Methods public int CompareTo(objectvalue
); // implements IComparable public override bool Equals(objectobj
); // overrides ValueType public override int GetHashCode( ); // overrides ValueType public TypeCode GetTypeCode( ); // implements IConvertible public override string ToString( ); // overrides ValueType public string ToString(IFormatProviderprovider
); // implements IConvertible public string ToString(stringformat
); public string ToString(stringformat
, IFormatProviderprovider
) // implements IFormattable }
Hierarchy
Object
→
ValueType
→
Int16(IComparable, IFormattable
, IConvertible)
Returned By
Multiple types
Passed To
Multiple types
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.