15 instantiations of NotNull
Microsoft.CodeAnalysis.CodeStyle (14)
Contract.cs (4)
25
public static void ThrowIfNull<T>([
NotNull
] T value, [CallerLineNumber] int lineNumber = 0) where T : class?
38
public static void ThrowIfNull<T>([
NotNull
] T? value, [CallerLineNumber] int lineNumber = 0) where T : struct
51
public static void ThrowIfNull<T>([
NotNull
] T value, string message, [CallerLineNumber] int lineNumber = 0)
64
public static void ThrowIfNull<T>([
NotNull
] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0)
Debug.cs (1)
23
public static void AssertNotNull<T>([
NotNull
] T value)
LazyInitialization.cs (5)
14
internal static T InterlockedStore<T>([
NotNull
] ref T? target, T value) where T : class
31
public static T EnsureInitialized<T>([
NotNull
] ref T? target, Func<T> valueFactory) where T : class
44
public static T EnsureInitialized<T, U>([
NotNull
] ref T? target, Func<U, T> valueFactory, U state)
83
public static T? EnsureInitialized<T>([
NotNull
] ref StrongBox<T?>? target, Func<T?> valueFactory)
101
public static T? EnsureInitialized<T, U>([
NotNull
] ref StrongBox<T?>? target, Func<U, T?> valueFactory, U state)
PublicContract.cs (2)
27
internal static IEnumerable<T> RequireNonNullItems<T>([
NotNull
] IEnumerable<T>? sequence, string argumentName) where T : class
43
internal static void RequireUniqueNonNullItems<T>([
NotNull
] IEnumerable<T>? sequence, string argumentName) where T : class
ReflectionUtilities.cs (2)
31
public static Type? TryGetType([
NotNull
] ref Type? lazyType, string assemblyQualifiedName)
57
public static Type? GetTypeFromEither([
NotNull
] ref Type? lazyType, string contractName, string desktopName)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractCodeGenerationService.cs (1)
482
protected static void CheckLocation(SyntaxNode destinationMember, [
NotNull
] Location? location)
1 reference to NotNull
Microsoft.CodeAnalysis.CodeStyle (1)
ICompilationExtensions.cs (1)
211
=> compilation.GetTypeByMetadataName(typeof(
NotNullAttribute
).FullName!);