/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/csharp/array1.cs
20 строк
490 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
using System; using System.Collections.Generic; public class Example { public static void Main() { // <Snippet6> int[] values = { 1, 2, 4, 8, 16, 32, 64, 128 }; Console.WriteLine(values.ToString()); List<int> list = new List<int>(values); Console.WriteLine(list.ToString()); // The example displays the following output: // System.Int32[] // System.Collections.Generic.List`1[System.Int32] // </Snippet6> } }