/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/CSharp/Portable/Lowering/ClosureConversion/ClosureKind.cs
33 строки
1 KB
Sam Harwell
Fix all IDE0241 (Nullable directive is unnecessary)
05 окт 2023, 18:54
05 окт 2023, 18:54
aa745a8
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.CodeAnalysis.CSharp { internal enum ClosureKind { /// <summary> /// The closure doesn't declare any variables, and is never converted to a delegate. /// Lambdas are emitted directly to the containing class as a static method. /// </summary> Static, /// <summary> /// The closure doesn't declare any variables, and is converted to a delegate at least once. /// Display class is a singleton and may be shared with other top-level methods. /// </summary> Singleton, /// <summary> /// The closure only contains a reference to the containing class instance ("this"). /// We don't emit a display class, lambdas are emitted directly to the containing class as its instance methods. /// </summary> ThisOnly, /// <summary> /// General closure. /// Display class may only contain lambdas defined in the same top-level method. /// </summary> General, } }