Click or drag to resize
Int16 Structure
Represents a 16-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Int16 : IComparable, IFormattable, 
	IConvertible, IComparable<short>, IEquatable<short>

The Int16 type exposes the following members.

Methods
  NameDescription
Public methodEquals(Int16)
Returns a value indicating whether this instance is equal to a specified Int16 value.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse(String)
Converts the string representation of a number to its 16-bit signed integer equivalent.
Public methodStatic memberParse(String, NumberStyles)
Converts the string representation of a number in a specified style to its 16-bit signed integer equivalent.
Public methodStatic memberParse(String, IFormatProvider)
Converts the string representation of a number in a specified culture-specific format to its 16-bit signed integer equivalent.
Public methodStatic memberParse(String, NumberStyles, IFormatProvider)
Converts the string representation of a number in a specified style and culture-specific format to its 16-bit signed integer equivalent.
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific formatting information.
Top
Fields
  NameDescription
Public fieldStatic memberMaxValue
Represents the largest possible value of an Int16. This field is constant.
Public fieldStatic memberMinValue
Represents the smallest possible value of Int16. This field is constant.
Top
See Also