/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/csharp/tutorials/snippets/RangesIndexes/Program.cs
22 строки
1 KB
Bill Wagner
Retire the "What's new in C# 8" article (#32101)
02 ноя 2022, 17:06
Не верифицирован
02 ноя 2022, 17:06
2b52afd
Код
Авторство
О чём код?
using RangesIndexes; Console.WriteLine("========== Starting Index and Range Samples. =========="); var indexSamples = new IndicesAndRanges(); Console.WriteLine(" ========== Last Index. =========="); indexSamples.Syntax_LastIndex(); Console.WriteLine(" ========== Range. =========="); indexSamples.Syntax_Range(); Console.WriteLine(" ========== Last Range. =========="); indexSamples.Syntax_LastRange(); Console.WriteLine(" ========== Partial Range. =========="); indexSamples.Syntax_PartialRange(); Console.WriteLine(" ========== Index and Range types. =========="); indexSamples.Syntax_IndexRangeType(); Console.WriteLine(" ========== Why this syntax. =========="); indexSamples.Syntax_WhyChosenSemantics(); Console.WriteLine(" ========== Scenario. =========="); indexSamples.ComputeMovingAverages(); Console.WriteLine(" ========== Jageged arrays. =========="); indexSamples.JaggedArrays(); Console.WriteLine(" ========== Implicit range operator expression conversions. =========="); indexSamples.ImplicitRangeOperatorConversion();