/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/csharp/language-reference/operators/snippets/patterns/Program.cs
37 строк
1 KB
Bill Wagner
Cover list patterns (#29154)
26 апр 2022, 18:47
Не верифицирован
26 апр 2022, 18:47
b181812
Код
Авторство
О чём код?
using Patterns; Console.WriteLine("--- Declaration and type patterns -----------"); DeclarationAndTypePatterns.Examples(); Console.WriteLine(); Console.WriteLine("--- Constant pattern ------------------------"); ConstantPattern.Examples(); Console.WriteLine(); Console.WriteLine("--- Relational patterns ---------------------"); RelationalPatterns.Examples(); Console.WriteLine(); Console.WriteLine("--- Logical patterns ------------------------"); LogicalPatterns.Examples(); Console.WriteLine(); Console.WriteLine("--- Property pattern ------------------------"); PropertyPattern.Examples(); Console.WriteLine(); Console.WriteLine("--- Positional pattern ----------------------"); PositionalPattern.Examples(); Console.WriteLine(); Console.WriteLine("--- var pattern -----------------------------"); VarPattern.Examples(); Console.WriteLine(); Console.WriteLine("--- Discard pattern -------------------------"); DiscardPattern.Examples(); Console.WriteLine(); Console.WriteLine("--- List pattern -------------------------"); ListPattern.Examples(); Console.WriteLine();