/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/csharp/language-reference/keywords/snippets/Program.cs
32 строки
964 B
Bill Wagner
Add coverage of the `ref readonly` modifier to the C# language reference. (#37207)
25 окт 2023, 15:51
Не верифицирован
25 окт 2023, 15:51
ad579a3
Код
Авторство
О чём код?
using System; using System.Threading.Tasks; namespace Keywords { class Program { static async Task Main(string[] args) { Console.WriteLine("================= Generic Where Constraints Examples ======================"); GenericWhereConstraints.Examples(); Console.WriteLine("================= readonly Keyword Examples ======================"); ReadonlyKeywordExamples.Examples(); Console.WriteLine("================= pass by value / reference Keyword Examples ======================"); TestClassAndStruct.Main(); ParameterModifiers.ParamPassingExamples(); } } // <ShadowsFileScopedType> // In File2.cs: // Doesn't conflict with HiddenWidget // declared in File1.cs public class HiddenWidget { public void RunTask() { // omitted } } // </ShadowsFileScopedType> }