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