700 instantiations of NotNull
Aspire.Confluent.Kafka (4)
Aspire.Dashboard (1)
Aspire.Hosting (1)
Aspire.Hosting.Azure.CognitiveServices (2)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.ServiceBus (4)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.SqlServer (1)
Aspire.Microsoft.Data.SqlClient (4)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (4)
Aspire.OpenAI (1)
Aspire.StackExchange.Redis (4)
BuildActionTelemetryTable (4)
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
CodeStyleConfigFileGenerator (4)
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
GenerateDocumentationAndConfigFiles (16)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (6)
16private static T GetOrStore<T>([NotNull] ref T? target, T value) where T : class
33public static T Initialize<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class
46public static T Initialize<T, TArg>([NotNull] ref T? target, Func<TArg, T> valueFactory, TArg arg)
85public static T? Initialize<T>([NotNull] ref StrongBox<T?>? target, Func<T?> valueFactory)
103public static T? Initialize<T, TArg>([NotNull] ref StrongBox<T?>? target, Func<TArg, T?> valueFactory, TArg arg)
119public static T Initialize<T>([NotNull] ref T? target, T value) where T : class
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
Microsoft.Analyzers.Local.Tests (13)
Microsoft.AspNetCore.AsyncState (13)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.DataProtection.Extensions (4)
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (2)
Microsoft.AspNetCore.HeaderParsing (13)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Shared.Tests (5)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.Testing (13)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.Bcl.Numerics (1)
Microsoft.Build.Tasks.CodeAnalysis (7)
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
Microsoft.CodeAnalysis (24)
InternalUtilities\InterlockedOperations.cs (6)
16private static T GetOrStore<T>([NotNull] ref T? target, T value) where T : class
33public static T Initialize<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class
46public static T Initialize<T, TArg>([NotNull] ref T? target, Func<TArg, T> valueFactory, TArg arg)
85public static T? Initialize<T>([NotNull] ref StrongBox<T?>? target, Func<T?> valueFactory)
103public static T? Initialize<T, TArg>([NotNull] ref StrongBox<T?>? target, Func<TArg, T?> valueFactory, TArg arg)
119public static T Initialize<T>([NotNull] ref T? target, T value) where T : class
Microsoft.CodeAnalysis.CSharp (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (17)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (6)
16private static T GetOrStore<T>([NotNull] ref T? target, T value) where T : class
33public static T Initialize<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class
46public static T Initialize<T, TArg>([NotNull] ref T? target, Func<TArg, T> valueFactory, TArg arg)
85public static T? Initialize<T>([NotNull] ref StrongBox<T?>? target, Func<T?> valueFactory)
103public static T? Initialize<T, TArg>([NotNull] ref StrongBox<T?>? target, Func<TArg, T?> valueFactory, TArg arg)
119public static T Initialize<T>([NotNull] ref T? target, T value) where T : class
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CommonLanguageServerProtocol.Framework.Example (4)
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
Microsoft.DotNet.XUnitAssert.Tests (2)
Microsoft.Extensions.AI.Abstractions (14)
Microsoft.Extensions.AI.Evaluation.Console (13)
Microsoft.Extensions.AI.Evaluation.NLP (13)
Microsoft.Extensions.AI.Evaluation.Quality (13)
Microsoft.Extensions.AI.Evaluation.Reporting (13)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (13)
Microsoft.Extensions.AI.Evaluation.Safety (13)
Microsoft.Extensions.AI.Integration.Tests (13)
Microsoft.Extensions.AI.Ollama (13)
Microsoft.Extensions.AsyncState (13)
Microsoft.Extensions.Caching.SqlServer (4)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Compliance.Abstractions (13)
Microsoft.Extensions.Compliance.Redaction (13)
Microsoft.Extensions.Compliance.Testing (13)
Microsoft.Extensions.DependencyInjection.AutoActivation (13)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (13)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (13)
Microsoft.Extensions.Diagnostics.Probes (13)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (13)
Microsoft.Extensions.Diagnostics.Testing (13)
Microsoft.Extensions.Features (2)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.Localization (4)
Microsoft.Extensions.Localization.Abstractions (2)
Microsoft.Extensions.Logging.AzureAppServices (4)
Microsoft.Extensions.ObjectPool (2)
Microsoft.Extensions.ObjectPool.DependencyInjection (13)
Microsoft.Extensions.Options.Contextual (13)
Microsoft.Extensions.Resilience (13)
Microsoft.Extensions.Telemetry (13)
Microsoft.Extensions.Telemetry.Abstractions (13)
Microsoft.Extensions.TimeProvider.Testing (13)
Microsoft.Extensions.WebEncoders (2)
Replay (5)
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
SemanticSearch.BuildTask (4)
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
Shared (14)
Shared.Tests (3)
System.Collections.Immutable (3)
System.Data.Common (8)
System.Data.Odbc (1)
System.Net.Http (4)
System.Net.Primitives (1)
System.Net.ServerSentEvents (1)
System.Net.Sockets (1)
System.Private.CoreLib (27)
src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (10)
50public static T EnsureInitialized<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>([NotNull] ref T? target) where T : class =>
59private static T EnsureInitializedCore<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>([NotNull] ref T? target) where T : class
102public static T EnsureInitialized<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class =>
112private static T EnsureInitializedCore<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class
155private static T EnsureInitializedCore<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>([AllowNull] ref T target, ref bool initialized, [NotNull] ref object? syncLock)
217private static T EnsureInitializedCore<T>([AllowNull] ref T target, ref bool initialized, [NotNull] ref object? syncLock, Func<T> valueFactory)
242public static T EnsureInitialized<T>([NotNull] ref T? target, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory) where T : class =>
257private static T EnsureInitializedCore<T>([NotNull] ref T? target, [NotNull] ref object? syncLock, Func<T> valueFactory) where T : class
282private static object EnsureLockInitialized([NotNull] ref object? syncLock) =>
System.Private.Windows.Core (5)
System.Private.Xml (2)
System.Security.Cryptography (2)
System.Text.Encodings.Web (2)
System.Text.RegularExpressions (1)
System.Threading.Tasks.Dataflow (3)
System.Windows.Forms (2)
Test.Utilities (15)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (6)
16private static T GetOrStore<T>([NotNull] ref T? target, T value) where T : class
33public static T Initialize<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class
46public static T Initialize<T, TArg>([NotNull] ref T? target, Func<TArg, T> valueFactory, TArg arg)
85public static T? Initialize<T>([NotNull] ref StrongBox<T?>? target, Func<T?> valueFactory)
103public static T? Initialize<T, TArg>([NotNull] ref StrongBox<T?>? target, Func<TArg, T?> valueFactory, TArg arg)
119public static T Initialize<T>([NotNull] ref T? target, T value) where T : class
src\Dependencies\Contracts\Contract.cs (4)
30public static void ThrowIfNull<T>([NotNull] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43public static void ThrowIfNull<T>([NotNull] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56public static void ThrowIfNull<T>([NotNull] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69public static void ThrowIfNull<T>([NotNull] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
xunit.assert (9)
7 references to NotNull
GenerateDocumentationAndConfigFiles (1)
mscorlib (1)
netstandard (1)
System.Runtime (1)
System.Text.Json (2)
Test.Utilities (1)