/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/qa29.cs
15 строк
351 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
using System; public class Example10 { public static void Main() { // <Snippet29> int value = 1326; string result = String.Format("{0,10:D6} {0,10:X8}", value); Console.WriteLine(result); // The example displays the following output: // 001326 0000052E // </Snippet29> } }