/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Shared/Diagnostics/AnalyzerDebug.cs
20 строк
725 B
Safia Abdalla
Add support for IResults with explicit interface implementations (#48250)
16 май 2023, 03:41
Не верифицирован
16 май 2023, 03:41
4793dfe
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace Microsoft.AspNetCore.Analyzers.Infrastructure; // Debug.Assert is missing nullable annotation in netstandard2.0 internal static class AnalyzerDebug { /// <inheritdoc cref="Debug.Assert(bool)"/> [Conditional("DEBUG")] public static void Assert([DoesNotReturnIf(false)] bool b) => Debug.Assert(b); /// <inheritdoc cref="Debug.Assert(bool, string)"/> [Conditional("DEBUG")] public static void Assert([DoesNotReturnIf(false)] bool b, string message) => Debug.Assert(b, message); }