/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Core/Portable/MethodImplExtensions.cs
43 строки
1 KB
Fred Silberberg
Use real MethodImplAttributes/Options when available (#84218)
23 июн 2026, 19:04
Не верифицирован
23 июн 2026, 19:04
9db5777
Код
Авторство
О чём код?
// 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. using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; namespace Microsoft.CodeAnalysis; internal static class MethodImplAttributeExtensions { extension(MethodImplAttributes) { public static MethodImplAttributes Async { get { #if NET10_0_OR_GREATER Debug.Assert(MethodImplAttributes.Async == (MethodImplAttributes)0x2000); #endif return (MethodImplAttributes)0x2000; } } } } internal static class MethodImplOptionsExtensions { extension(MethodImplOptions) { public static MethodImplOptions Async { get { #if NET10_0_OR_GREATER Debug.Assert(MethodImplOptions.Async == (MethodImplOptions)0x2000); #endif return (MethodImplOptions)0x2000; } } } }