8 instantiations of NotNull
Microsoft.Build.Framework (8)
Contract.cs (4)
30
public static void ThrowIfNull<T>([
NotNull
] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43
public static void ThrowIfNull<T>([
NotNull
] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56
public static void ThrowIfNull<T>([
NotNull
] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69
public static void ThrowIfNull<T>([
NotNull
] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
ErrorUtilities.cs (1)
40
internal static void VerifyThrowInternalNull([
NotNull
] object? parameter, [CallerArgumentExpression(nameof(parameter))] string? parameterName = null)
Polyfills\ArgumentExceptionExtensions.cs (3)
35
public static void ThrowIfNull([
NotNull
] object? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
87
public static void ThrowIfNullOrEmpty([
NotNull
] string? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
113
public static void ThrowIfNullOrWhiteSpace([
NotNull
] string? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)