|
Tento článek byl přeložen strojově počítačem. Původní text zobrazíte přesunutím ukazatele myši nad jednotlivé věty článku. Další informace
|
Překlad
Originál
|
Convert.ToString – metoda (Int16)
.NET Framework 4.5
Obor názvů: System
Sestavení: mscorlib (v mscorlib.dll)
Parametry
- value
- Typ: System.Int16
Celé 16bitové podepsané převést.
short[] numbers = { Int16.MinValue, -138, 0, 19, Int16.MaxValue }; string result; foreach (short number in numbers) { result = Convert.ToString(number); Console.WriteLine("Converted the {0} value {1} to the {2} value {3}.", number.GetType().Name, number, result.GetType().Name, result); } // The example displays the following output: // Converted the Int16 value -32768 to the String value -32768. // Converted the Int16 value -138 to the String value -138. // Converted the Int16 value 0 to the String value 0. // Converted the Int16 value 19 to the String value 19. // Converted the Int16 value 32767 to the String value 32767.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (role Server Core není podporována), Windows Server 2008 R2 (role Server Core je podporována s aktualizací SP1 nebo novější, architektura Itanium není podporována)
.NET Framework nepodporuje některé verze platforem. Seznam podporovaných verzí naleznete v tématu Požadavky na systém rozhraní .NET framework.