/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Transports/MassTransit.Azure.ServiceBus.Core/NullableAttributes.cs
24 строки
730 B
Chris Patterson
Fixed #3344 - added internal code analysis types for NETSTANDARD2.0 and NET462 builds to allow proper nullable output types for analyzer
06 мар 2023, 21:47
06 мар 2023, 21:47
715a0a2
Код
Авторство
О чём код?
#if !NET6_0_OR_GREATER && !NETSTANDARD2_1 namespace System.Diagnostics.CodeAnalysis { using System; [AttributeUsage(AttributeTargets.Parameter)] sealed class NotNullWhenAttribute : Attribute { /// <summary>Initializes the attribute with the specified return value condition.</summary> /// <param name="returnValue"> /// The return value condition. If the method returns this value, the associated parameter will not be null. /// </param> public NotNullWhenAttribute(bool returnValue) { ReturnValue = returnValue; } /// <summary>Gets the return value condition.</summary> public bool ReturnValue { get; } } } #endif