You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal sealed class AllowNullAttribute : Attribute { }
207
-
208
-
/// <summary>Specifies that when a method returns <see cref="ReturnValue"/>, the parameter will not be null even if the corresponding type allows it.</summary>
209
-
[AttributeUsage(AttributeTargets.Parameter)]
210
-
internal sealed class NotNullWhenAttribute : Attribute
211
-
{
212
-
/// <summary>Initializes the attribute with the specified return value condition.</summary>
213
-
/// <param name="returnValue">
214
-
/// The return value condition. If the method returns this value, the associated parameter will not be null.
215
-
/// </param>
216
-
public NotNullWhenAttribute(bool returnValue) => ReturnValue = returnValue;
217
-
218
-
/// <summary>Gets the return value condition.</summary>
/// <summary>Specifies that when a method returns <see cref="ReturnValue"/>, the parameter will not be null even if the corresponding type allows it.</summary>
1293
-
[AttributeUsage(AttributeTargets.Parameter)]
1294
-
internalsealedclassNotNullWhenAttribute:Attribute
1295
-
{
1296
-
/// <summary>Initializes the attribute with the specified return value condition.</summary>
1297
-
/// <param name="returnValue">
1298
-
/// The return value condition. If the method returns this value, the associated parameter will not be null.
0 commit comments