Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Int16 Structure

Represents a 16-bit signed integer.

For a list of all members of this type, see Int16 Members.

System.Object
   System.ValueType
      System.Int16

[Visual Basic]
<Serializable>
Public Structure Int16
   Implements IComparable, IFormattable, IConvertible
[C#]
[Serializable]
public struct Int16 : IComparable, IFormattable, IConvertible
[C++]
[Serializable]
public __value struct Int16 : public IComparable, IFormattable,
   IConvertible

[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Thread Safety

This type is safe for multithreaded operations.

Remarks

The Int16 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, convert the string representation of a number to an instance of this type, and compare instances of this type.

For information about how format specification codes control the string representation of value types, see Formatting Overview.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.

Requirements

Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

Int16 Members | System Namespace | UInt16

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.