/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System.Globalization/NumberFormatInfo/csharp/instantiate4.cs
25 строк
562 B
Genevieve Warren
Extract remarks for System.Globalization* (#38912)
29 дек 2023, 20:03
Не верифицирован
29 дек 2023, 20:03
7f945f9
Код
Авторство
О чём код?
// <Snippet4> using System; using System.Globalization; public class InstantiateEx4 { public static void Main() { NumberFormatInfo nfi; nfi = System.Globalization.NumberFormatInfo.InvariantInfo; Console.WriteLine(nfi.IsReadOnly); nfi = CultureInfo.InvariantCulture.NumberFormat; Console.WriteLine(nfi.IsReadOnly); nfi = new NumberFormatInfo(); Console.WriteLine(nfi.IsReadOnly); } } // The example displays the following output: // True // True // False // </Snippet4>