Int16.ToString Method (String)
Assembly: mscorlib (in mscorlib.dll)
Return ValueThe string representation of the value of this instance as specified by format.
The format parameter can be either a standard or a custom numeric format string. All standard numeric format strings other than "R" (or "r") are supported, as are all custom numeric format characters. If format is a null reference (Nothing in Visual Basic) or an empty string, the return value of this instance is formatted with the general numeric format specifier ("G").
The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:
The return value of this instance is formatted with the NumberFormatInfo for the current culture.
The following example initializes two Int16 values and displays them to the console using each of the supported standard format strings and several custom format strings. The example is run with en-US as the current culture.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.