Int16.ToString Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the numeric value of this instance to its equivalent string representation.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.StringThe string representation of the value of this instance, consisting of a minus sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.
The return value is formatted with the general numeric format specifier ("G") and the NumberFormatInfo for the current culture. To define the formatting of the Int16 value's string representation, call the Int16.ToString(String) method. To define both the formatting and culture used to create the string representation of an Int16 value, call the Int16.ToString(String, IFormatProvider) method.
The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:
For more information about numeric format specifiers, see Standard Numeric Format Strings and Custom Numeric Format Strings.
For more information about formatting, see Formatting Types.
The following example uses the ToString method to display an array of Int16 values to the console.