5765 instantiations of ArgumentNullException
Analyzer.Utilities.UnitTests (4)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (4)
39TypesToTrack = new string[] { typeToTrack }.ToImmutableHashSet() ?? throw new ArgumentNullException(nameof(typeToTrack)); 40ConstructorMapper = constructorMapper ?? throw new ArgumentNullException(nameof(constructorMapper)); 41PropertyMapperCollection = propertyMapperCollection ?? throw new ArgumentNullException(nameof(propertyMapperCollection)); 42HazardousUsageEvaluatorCollection = hazardousUsageEvaluatorCollection ?? throw new ArgumentNullException(nameof(hazardousUsageEvaluatorCollection));
Aspire.Azure.AI.Inference (1)
AspireChatCompletionsClientBuilder.cs (1)
32public IHostApplicationBuilder HostBuilder { get; } = hostBuilder ?? throw new ArgumentNullException(nameof(hostBuilder));
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
66throw new ArgumentNullException(paramName, "Must not be null");
Aspire.Dashboard (3)
Authentication\Connection\ConnectionTypeMiddleware.cs (1)
21_next = next ?? throw new ArgumentNullException(nameof(next));
Components\Resize\DimensionManager.cs (2)
14public ViewportInformation ViewportInformation => _viewportInformation ?? throw new ArgumentNullException(nameof(_viewportInformation)); 15public ViewportSize ViewportSize=> _viewportSize ?? throw new ArgumentNullException(nameof(_viewportSize));
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
24TemplatePackageIds = templatePackageIds ?? throw new ArgumentNullException(nameof(templatePackageIds));
Aspire.Hosting (25)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
56public IList<object> Args { get; } = args ?? throw new ArgumentNullException(nameof(args));
ApplicationModel\ConnectionStringRedirectAnnotation.cs (1)
15public IResourceWithConnectionString Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\ConnectionStringReference.cs (1)
13public IResourceWithConnectionString Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\ContainerMountAnnotation.cs (1)
28throw new ArgumentNullException(nameof(source), Resources.ContainerMountBindMountsRequireSourceExceptionMessage);
ApplicationModel\ContainerRuntimeArgsCallbackAnnotation.cs (1)
56public IList<object> Args { get; } = args ?? throw new ArgumentNullException(nameof(args));
ApplicationModel\DeployingCallbackAnnotation.cs (1)
21public Func<DeployingContext, Task> Callback { get; } = callback ?? throw new ArgumentNullException(nameof(callback));
ApplicationModel\DistributedApplicationModel.cs (1)
26public IResourceCollection Resources { get; } = resources ?? throw new ArgumentNullException(nameof(resources));
ApplicationModel\DockerBuildArg.cs (1)
18public string Name { get; init; } = name ?? throw new ArgumentNullException(nameof(name));
ApplicationModel\EndpointReference.cs (1)
154public EndpointReference Endpoint { get; } = endpointReference ?? throw new ArgumentNullException(nameof(endpointReference));
ApplicationModel\EndpointReferenceAnnotation.cs (1)
11public IResourceWithEndpoints Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\EnvironmentCallbackContext.cs (2)
29_resource = resource ?? throw new ArgumentNullException(nameof(resource)); 59public DistributedApplicationExecutionContext ExecutionContext { get; } = executionContext ?? throw new ArgumentNullException(nameof(executionContext));
ApplicationModel\ExecutableResource.cs (1)
35public string WorkingDirectory { get; } = workingDirectory ?? throw new ArgumentNullException(nameof(workingDirectory));
ApplicationModel\ModelName.cs (2)
19throw new ArgumentNullException(nameof(target)); 23throw new ArgumentNullException(nameof(name));
ApplicationModel\PublishingCallbackAnnotation.cs (1)
21public Func<PublishingContext, Task> Callback { get; } = callback ?? throw new ArgumentNullException(nameof(callback));
ApplicationModel\ResourceNotificationService.cs (3)
51_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 70_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 72_resourceLoggerService = resourceLoggerService ?? throw new ArgumentNullException(nameof(resourceLoggerService));
ApplicationModel\ResourceSnapshotAnnotation.cs (1)
14public CustomResourceSnapshot InitialSnapshot { get; } = initialSnapshot ?? throw new ArgumentNullException(nameof(initialSnapshot));
ApplicationModel\ResourceUrlsCallbackContext.cs (1)
54public DistributedApplicationExecutionContext ExecutionContext { get; } = executionContext ?? throw new ArgumentNullException(nameof(executionContext));
DefaultLaunchProfileAnnotation.cs (1)
14private readonly string _launchProfileName = launchProfileName ?? throw new ArgumentNullException(nameof(launchProfileName));
ExternalServiceResource.cs (2)
27_uri = uri ?? throw new ArgumentNullException(nameof(uri), "The URI for the external service cannot be null."); 42_urlParameter = urlParameter ?? throw new ArgumentNullException(nameof(urlParameter), "The URL parameter for the external service cannot be null.");
LaunchProfileAnnotation.cs (1)
14private readonly string _launchProfileName = launchProfileName ?? throw new ArgumentNullException(nameof(launchProfileName));
Aspire.Hosting.Analyzers (2)
src\Aspire.Hosting\ApplicationModel\ModelName.cs (2)
19throw new ArgumentNullException(nameof(target)); 23throw new ArgumentNullException(nameof(name));
Aspire.Hosting.Azure (1)
AzureProvisioningResource.cs (1)
24public Action<AzureResourceInfrastructure> ConfigureInfrastructure { get; internal set; } = configureInfrastructure ?? throw new ArgumentNullException(nameof(configureInfrastructure));
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppCustomizationAnnotation.cs (1)
18public Action<AzureResourceInfrastructure, ContainerApp> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteCustomizationAnnotation.cs (1)
18public Action<AzureResourceInfrastructure, WebSite> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
Aspire.Hosting.Azure.CosmosDB (4)
AzureCosmosDBContainerResource.cs (2)
41Parent = parent ?? throw new ArgumentNullException(nameof(parent)); 56Parent = parent ?? throw new ArgumentNullException(nameof(parent));
AzureCosmosDBDatabaseResource.cs (1)
32public AzureCosmosDBResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
AzureCosmosDBEmulatorResource.cs (1)
15internal AzureCosmosDBResource InnerResource { get; } = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
Aspire.Hosting.Azure.EventHubs (4)
AzureEventHubConsumerGroupResource.cs (1)
30public AzureEventHubResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
AzureEventHubResource.cs (1)
36public AzureEventHubsResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
AzureEventHubsEmulatorResource.cs (1)
21private readonly AzureEventHubsResource _innerResource = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
ConfigFileAnnotation.cs (1)
15SourcePath = sourcePath ?? throw new ArgumentNullException(nameof(sourcePath));
Aspire.Hosting.Azure.KeyVault (2)
AzureKeyVaultSecretResource.cs (2)
28public AzureKeyVaultResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent)); 33public object Value { get; } = value ?? throw new ArgumentNullException(nameof(value));
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresFlexibleServerDatabaseResource.cs (1)
22public AzurePostgresFlexibleServerResource Parent { get; } = postgresParentResource ?? throw new ArgumentNullException(nameof(postgresParentResource));
AzurePostgresResource.cs (1)
17private readonly PostgresServerResource _innerResource = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
Aspire.Hosting.Azure.Redis (1)
AzureRedisResource.cs (1)
17private readonly RedisResource _innerResource = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
Aspire.Hosting.Azure.ServiceBus (5)
AzureServiceBusEmulatorResource.cs (1)
19private readonly AzureServiceBusResource _innerResource = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
AzureServiceBusQueueResource.cs (1)
37public AzureServiceBusResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
AzureServiceBusSubscriptionResource.cs (1)
37public AzureServiceBusTopicResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
AzureServiceBusTopicResource.cs (1)
37public AzureServiceBusResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
ConfigFileAnnotation.cs (1)
15SourcePath = sourcePath ?? throw new ArgumentNullException(nameof(sourcePath));
Aspire.Hosting.Azure.SignalR (1)
AzureSignalREmulatorResource.cs (1)
14private readonly AzureSignalRResource _innerResource = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
Aspire.Hosting.Azure.Sql (1)
AzureSqlDatabaseResource.cs (1)
27public AzureSqlServerResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
Aspire.Hosting.Azure.Storage (5)
AzureBlobStorageContainerResource.cs (1)
34public AzureBlobStorageResource Parent => parent ?? throw new ArgumentNullException(nameof(parent));
AzureBlobStorageResource.cs (1)
22public AzureStorageResource Parent => storage ?? throw new ArgumentNullException(nameof(storage));
AzureQueueStorageResource.cs (1)
21public AzureStorageResource Parent => storage ?? throw new ArgumentNullException(nameof(storage));
AzureStorageEmulatorResource.cs (1)
14private readonly AzureStorageResource _innerResource = innerResource ?? throw new ArgumentNullException(nameof(innerResource));
AzureTableStorageResource.cs (1)
19public AzureStorageResource Parent => storage ?? throw new ArgumentNullException(nameof(storage));
Aspire.Hosting.Azure.WebPubSub (2)
AzureWebPubSubHubResource.cs (2)
24HubName = hubName ?? throw new ArgumentNullException(nameof(hubName)); 27private readonly AzureWebPubSubResource _webpubsub = webpubsub ?? throw new ArgumentNullException(nameof(webpubsub));
Aspire.Hosting.Docker (1)
DockerComposeServiceCustomizationAnnotation.cs (1)
22public Action<DockerComposeServiceResource, Service> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
Aspire.Hosting.Keycloak (1)
KeycloakResource.cs (1)
31public ParameterResource AdminPasswordParameter { get; } = adminPassword ?? throw new ArgumentNullException(nameof(adminPassword));
Aspire.Hosting.Kubernetes (1)
KubernetesServiceCustomizationAnnotation.cs (1)
20public Action<KubernetesResource> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
Aspire.Hosting.Milvus (1)
MilvusDatabaseResource.cs (1)
21public MilvusServerResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
Aspire.Hosting.MongoDB (1)
MongoDBDatabaseResource.cs (1)
26public MongoDBServerResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
Aspire.Hosting.MySql (1)
MySqlDatabaseResource.cs (1)
22public MySqlServerResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
Aspire.Hosting.Oracle (1)
OracleDatabaseResource.cs (1)
21public OracleDatabaseServerResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
Aspire.Hosting.PostgreSQL (1)
PostgresDatabaseResource.cs (1)
22public PostgresServerResource Parent { get; } = postgresParentResource ?? throw new ArgumentNullException(nameof(postgresParentResource));
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (1)
187throw new ArgumentNullException(nameof(scriptArgs), $"Array params contains null item: [{values}]");
PythonProjectResourceBuilderExtensions.cs (1)
190throw new ArgumentNullException(nameof(scriptArgs), $"Array params contains null item: [{values}]");
Aspire.Hosting.SqlServer (1)
SqlServerDatabaseResource.cs (1)
22public SqlServerServerResource Parent { get; } = parent ?? throw new ArgumentNullException(nameof(parent));
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (2)
23private readonly Type _entryPoint = entryPoint ?? throw new ArgumentNullException(nameof(entryPoint)); 162throw new ArgumentNullException(nameof(args), $"Array params contains null item: [{values}]");
DistributedApplicationTestingBuilder.cs (1)
148throw new ArgumentNullException(nameof(args), $"Array params contains null item: [{values}]");
Aspire.Hosting.Yarp (4)
ConfigurationBuilder\Transforms\PathTransformExtensions.cs (4)
23throw new ArgumentNullException(nameof(path)); 38throw new ArgumentNullException(nameof(prefix)); 53throw new ArgumentNullException(nameof(prefix)); 68throw new ArgumentNullException(nameof(pattern));
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
64throw new ArgumentNullException(paramName, "Must not be null");
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
64throw new ArgumentNullException(paramName, "Must not be null");
Aspire.OpenAI (1)
AspireOpenAIClientBuilder.cs (1)
29public IHostApplicationBuilder HostBuilder { get; } = hostBuilder ?? throw new ArgumentNullException(nameof(hostBuilder));
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
72throw new ArgumentNullException(paramName, "Must not be null");
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
24TemplatePackageIds = templatePackageIds ?? throw new ArgumentNullException(nameof(templatePackageIds));
Binding.UDS.IntegrationTests (1)
.packages\corewcf.primitives\1.7.0\contentFiles\CoreWCFWebApplicationExtensions.cs (1)
18throw new ArgumentNullException(nameof(app));
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\RuntimeGraphCache.cs (1)
28throw new ArgumentNullException(nameof(runtimeJsonPath));
DemoConsole (1)
TypeDiscoveryService.cs (1)
19? throw new ArgumentNullException(nameof(baseType))
dotnet-dev-certs (2)
ReporterEventListener.cs (1)
18_reporter = reporter ?? throw new ArgumentNullException(nameof(reporter));
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
dotnet-getdocument (3)
src\Tools\GetDocumentInsider\src\Commands\CommandBase.cs (1)
22_console = console ?? throw new ArgumentNullException(nameof(console));
src\Tools\GetDocumentInsider\src\ProgramBase.cs (1)
19_console = console ?? throw new ArgumentNullException(nameof(console));
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
dotnet-openapi (1)
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
dotnet-sql-cache (1)
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
dotnet-svcutil-lib (745)
Bootstrapper\SvcutilBootstrapper.cs (1)
27this.Options = options ?? throw new ArgumentNullException(nameof(options));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeCompiler.cs (15)
34throw new ArgumentNullException("options"); 54throw new ArgumentNullException("options"); 72throw new ArgumentNullException("options"); 90throw new ArgumentNullException("options"); 110throw new ArgumentNullException("options"); 113throw new ArgumentNullException("fileNames"); 137throw new ArgumentNullException("options"); 188throw new ArgumentNullException("options"); 208throw new ArgumentNullException("options"); 211throw new ArgumentNullException("fileName"); 232throw new ArgumentNullException("options"); 253throw new ArgumentNullException("options"); 256throw new ArgumentNullException("ea"); 370throw new ArgumentNullException("options"); 373throw new ArgumentNullException("sources");
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (2)
66throw new ArgumentNullException("language"); 76throw new ArgumentNullException("extension");
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (1)
820throw new ArgumentNullException("e");
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (1)
829throw new ArgumentNullException("e");
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerErrorCollection.cs (2)
81throw new ArgumentNullException("value"); 98throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (1)
92throw new ArgumentNullException("providerOptions");
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (20)
40throw new ArgumentNullException("providerOptions"); 1965throw new ArgumentNullException("e"); 3867throw new ArgumentNullException("options"); 3870throw new ArgumentNullException("fileNames"); 3972throw new ArgumentNullException("options"); 3990throw new ArgumentNullException("options"); 4008throw new ArgumentNullException("options"); 4026throw new ArgumentNullException("options"); 4044throw new ArgumentNullException("options"); 4047throw new ArgumentNullException("fileNames"); 4071throw new ArgumentNullException("options"); 4100throw new ArgumentNullException("options"); 4118throw new ArgumentNullException("options"); 4121throw new ArgumentNullException("fileName"); 4142throw new ArgumentNullException("options"); 4161throw new ArgumentNullException("options"); 4164throw new ArgumentNullException("ea"); 4227throw new ArgumentNullException("options"); 4230throw new ArgumentNullException("sources"); 4655throw new ArgumentNullException("destinationType");
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgumentCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClauseCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeCommentStatementCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeDirectiveCollection.cs (2)
54throw new ArgumentNullException("value"); 66throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeExpressionCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeGotoStatement.cs (1)
46throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpressionCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeStatementCollection.cs (2)
93throw new ArgumentNullException("value"); 110throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclarationCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeMemberCollection.cs (2)
84throw new ArgumentNullException("value"); 101throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeParameterCollection.cs (2)
58throw new ArgumentNullException("value"); 70throw new ArgumentNullException("value");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (1)
60throw new ArgumentNullException("type");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (2)
100throw new ArgumentNullException("value"); 117throw new ArgumentNullException("value");
FrameworkFork\Microsoft.Xml\Xml\Base64Decoder.cs (2)
54throw new ArgumentNullException("chars"); 89throw new ArgumentNullException("str");
FrameworkFork\Microsoft.Xml\Xml\Base64Encoder.cs (1)
34throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
681throw new ArgumentNullException("name"); 729throw new ArgumentNullException("name");
FrameworkFork\Microsoft.Xml\Xml\BinHexDecoder.cs (3)
47throw new ArgumentNullException("chars"); 83throw new ArgumentNullException("str"); 142throw new ArgumentNullException("chars");
FrameworkFork\Microsoft.Xml\Xml\BinHexEncoder.cs (2)
19throw new ArgumentNullException("buffer"); 50throw new ArgumentNullException("inArray");
FrameworkFork\Microsoft.Xml\Xml\BufferBuilder.cs (2)
181throw new ArgumentNullException("value"); 236throw new ArgumentNullException("value");
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentIterator.cs (2)
67if (namespaceURI == null) throw new ArgumentNullException("namespaceURI"); 179if (namespaceURI == null) throw new ArgumentNullException("namespaceURI");
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelper.cs (4)
72throw new ArgumentNullException("buffer"); 128throw new ArgumentNullException("buffer"); 184throw new ArgumentNullException("buffer"); 240throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
22throw new ArgumentNullException("buffer"); 78throw new ArgumentNullException("buffer"); 134throw new ArgumentNullException("buffer"); 190throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (2)
496throw new ArgumentNullException("buffer"); 557throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
312throw new ArgumentNullException("buffer"); 373throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (1)
289throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlRawWriter.cs (1)
194throw new ArgumentNullException("value");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (5)
1034throw new ArgumentNullException("namespaceURI"); 1103throw new ArgumentNullException("namespaceURI"); 1178throw new ArgumentNullException("namespaceURI"); 1554throw new ArgumentNullException("namespaceURI"); 1873throw new ArgumentNullException("input");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (4)
426throw new ArgumentNullException("inputUri"); 461throw new ArgumentNullException("input"); 497throw new ArgumentNullException("input"); 526throw new ArgumentNullException("reader");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (1)
1565throw new ArgumentNullException("buffer");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextEncoder.cs (2)
123throw new ArgumentNullException("array"); 486throw new ArgumentNullException("array");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (7)
581throw new ArgumentNullException("url"); 1604throw new ArgumentNullException("buffer"); 1664throw new ArgumentNullException("buffer"); 1723throw new ArgumentNullException("buffer"); 1783throw new ArgumentNullException("buffer"); 1856throw new ArgumentNullException("buffer"); 8283throw new ArgumentNullException((_incReadDecoder is IncrementalReadCharsDecoder) ? "buffer" : "array");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReader.cs (2)
38throw new ArgumentNullException("xmlFragment"); 48throw new ArgumentNullException("xmlFragment");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (4)
1110throw new ArgumentNullException("buffer"); 1148throw new ArgumentNullException("buffer"); 1212throw new ArgumentNullException("buffer"); 1314throw new ArgumentNullException("ns");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (5)
276throw new ArgumentNullException("value"); 356throw new ArgumentNullException("reader"); 404throw new ArgumentNullException("reader"); 475throw new ArgumentNullException("navigator"); 730throw new ArgumentNullException("output");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (6)
153throw new ArgumentNullException("value"); 186throw new ArgumentNullException("value"); 461throw new ArgumentNullException("outputFileName"); 495throw new ArgumentNullException("output"); 597throw new ArgumentNullException("output"); 656throw new ArgumentNullException("output");
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (3)
47throw new ArgumentNullException("value"); 1617throw new ArgumentNullException("lastSiblingToReplace"); 1675throw new ArgumentNullException("lastSiblingToDelete");
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (1)
1155throw new ArgumentNullException("node");
FrameworkFork\Microsoft.Xml\Xml\NameTable.cs (2)
71throw new ArgumentNullException("key"); 141throw new ArgumentNullException("value");
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (9)
228throw new ArgumentNullException("absoluteUri"); 270throw new ArgumentNullException("absoluteUri"); 290throw new ArgumentNullException("uri"); 294throw new ArgumentNullException("value"); 303throw new ArgumentNullException("uri"); 307throw new ArgumentNullException("value"); 329throw new ArgumentNullException("uri"); 333throw new ArgumentNullException("value"); 351throw new ArgumentNullException("uri");
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
25throw new ArgumentNullException("absoluteUri");
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (1)
25throw new ArgumentNullException("uri");
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (4)
587return new ArgumentNullException("value"); 1052throw new ArgumentNullException("value"); 1308throw new ArgumentNullException("value"); 3819throw new ArgumentNullException("nsmgr");
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (1)
200throw new ArgumentNullException("instanceDocument");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (13)
82if (xmlType == null) throw new ArgumentNullException("xmlType"); 90if (xmlType == null) throw new ArgumentNullException("xmlType"); 98if (xmlType == null) throw new ArgumentNullException("xmlType"); 106if (xmlType == null) throw new ArgumentNullException("xmlType"); 114if (xmlType == null) throw new ArgumentNullException("xmlType"); 122if (value == null) throw new ArgumentNullException("value"); 123if (xmlType == null) throw new ArgumentNullException("xmlType"); 130if (value == null) throw new ArgumentNullException("value"); 131if (xmlType == null) throw new ArgumentNullException("xmlType"); 143if (value == null) throw new ArgumentNullException("value"); 144if (xmlType == null) throw new ArgumentNullException("xmlType"); 151if (value == null) throw new ArgumentNullException("value"); 152if (xmlType == null) throw new ArgumentNullException("xmlType");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (8)
54throw new ArgumentNullException("nametable"); 112throw new ArgumentNullException("uri"); 144throw new ArgumentNullException("reader"); 186throw new ArgumentNullException("schema"); 201throw new ArgumentNullException("schema"); 234throw new ArgumentNullException("schema"); 266throw new ArgumentNullException("array"); 282throw new ArgumentNullException("array");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaDatatype.cs (5)
58throw new ArgumentNullException("value"); 62throw new ArgumentNullException("targetType"); 75throw new ArgumentNullException("value"); 79throw new ArgumentNullException("targetType"); 83throw new ArgumentNullException("namespaceResolver");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
218throw new ArgumentNullException("array"); 273throw new ArgumentNullException("array");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (11)
96throw new ArgumentNullException("nameTable"); 316throw new ArgumentNullException("schemaUri"); 365throw new ArgumentNullException("schemaDocument"); 400throw new ArgumentNullException("schemas"); 487throw new ArgumentNullException("schema"); 510throw new ArgumentNullException("schemaToRemove"); 594throw new ArgumentNullException("schema"); 713throw new ArgumentNullException("schema"); 802throw new ArgumentNullException("schemas"); 943throw new ArgumentNullException("reader"); 1180throw new ArgumentNullException("schema");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaType.cs (2)
43throw new ArgumentNullException("qualifiedName"); 78throw new ArgumentNullException("qualifiedName");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (17)
177throw new ArgumentNullException("nameTable"); 181throw new ArgumentNullException("schemas"); 185throw new ArgumentNullException("namespaceResolver"); 328throw new ArgumentNullException("schema"); 397throw new ArgumentNullException("partialValidationType"); 423throw new ArgumentNullException("localName"); 427throw new ArgumentNullException("namespaceUri"); 512throw new ArgumentNullException("attributeValue"); 521throw new ArgumentNullException("attributeValue"); 530throw new ArgumentNullException("localName"); 534throw new ArgumentNullException("namespaceUri"); 745throw new ArgumentNullException("defaultAttributes"); 771throw new ArgumentNullException("elementValue"); 780throw new ArgumentNullException("elementValue"); 854throw new ArgumentNullException("elementValue"); 863throw new ArgumentNullException("elementValue"); 927throw new ArgumentNullException("typedValue");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (118)
1013if (value == null) throw new ArgumentNullException("value"); 1020if (value == null) throw new ArgumentNullException("value"); 1059if (value == null) throw new ArgumentNullException("value"); 1066if (value == null) throw new ArgumentNullException("value"); 1098if (value == null) throw new ArgumentNullException("value"); 1105if (value == null) throw new ArgumentNullException("value"); 1145if (value == null) throw new ArgumentNullException("value"); 1151if (value == null) throw new ArgumentNullException("value"); 1171if (destinationType == null) throw new ArgumentNullException("destinationType"); 1186if (destinationType == null) throw new ArgumentNullException("destinationType"); 1201if (destinationType == null) throw new ArgumentNullException("destinationType"); 1216if (value == null) throw new ArgumentNullException("value"); 1217if (destinationType == null) throw new ArgumentNullException("destinationType"); 1232if (value == null) throw new ArgumentNullException("value"); 1233if (destinationType == null) throw new ArgumentNullException("destinationType"); 1354if (value == null) throw new ArgumentNullException("value"); 1361if (value == null) throw new ArgumentNullException("value"); 1402if (value == null) throw new ArgumentNullException("value"); 1409if (value == null) throw new ArgumentNullException("value"); 1438if (value == null) throw new ArgumentNullException("value"); 1444if (value == null) throw new ArgumentNullException("value"); 1463if (destinationType == null) throw new ArgumentNullException("destinationType"); 1477if (destinationType == null) throw new ArgumentNullException("destinationType"); 1491if (value == null) throw new ArgumentNullException("value"); 1492if (destinationType == null) throw new ArgumentNullException("destinationType"); 1506if (value == null) throw new ArgumentNullException("value"); 1507if (destinationType == null) throw new ArgumentNullException("destinationType"); 1571if (value == null) throw new ArgumentNullException("value"); 1587if (value == null) throw new ArgumentNullException("value"); 1615if (value == null) throw new ArgumentNullException("value"); 1632if (value == null) throw new ArgumentNullException("value"); 1715if (value == null) throw new ArgumentNullException("value"); 1721if (value == null) throw new ArgumentNullException("value"); 1740if (destinationType == null) throw new ArgumentNullException("destinationType"); 1754if (destinationType == null) throw new ArgumentNullException("destinationType"); 1768if (value == null) throw new ArgumentNullException("value"); 1769if (destinationType == null) throw new ArgumentNullException("destinationType"); 1783if (value == null) throw new ArgumentNullException("value"); 1784if (destinationType == null) throw new ArgumentNullException("destinationType"); 1835if (value == null) throw new ArgumentNullException("value"); 1841if (value == null) throw new ArgumentNullException("value"); 1905if (value == null) throw new ArgumentNullException("value"); 1911if (value == null) throw new ArgumentNullException("value"); 1929if (destinationType == null) throw new ArgumentNullException("destinationType"); 1942if (value == null) throw new ArgumentNullException("value"); 1943if (destinationType == null) throw new ArgumentNullException("destinationType"); 1956if (value == null) throw new ArgumentNullException("value"); 1957if (destinationType == null) throw new ArgumentNullException("destinationType"); 2050if (value == null) throw new ArgumentNullException("value"); 2056if (value == null) throw new ArgumentNullException("value"); 2098if (value == null) throw new ArgumentNullException("value"); 2099if (destinationType == null) throw new ArgumentNullException("destinationType"); 2136if (value == null) throw new ArgumentNullException("value"); 2137if (destinationType == null) throw new ArgumentNullException("destinationType"); 2338if (value == null) throw new ArgumentNullException("value"); 2344if (value == null) throw new ArgumentNullException("value"); 2361if (value == null) throw new ArgumentNullException("value"); 2362if (destinationType == null) throw new ArgumentNullException("destinationType"); 2374if (value == null) throw new ArgumentNullException("value"); 2375if (destinationType == null) throw new ArgumentNullException("destinationType"); 2422if (value == null) throw new ArgumentNullException("value"); 2428if (value == null) throw new ArgumentNullException("value"); 2444if (value == null) throw new ArgumentNullException("value"); 2450if (value == null) throw new ArgumentNullException("value"); 2465if (value == null) throw new ArgumentNullException("value"); 2472if (value == null) throw new ArgumentNullException("value"); 2487if (value == null) throw new ArgumentNullException("value"); 2493if (value == null) throw new ArgumentNullException("value"); 2509if (value == null) throw new ArgumentNullException("value"); 2515if (value == null) throw new ArgumentNullException("value"); 2531if (value == null) throw new ArgumentNullException("value"); 2537if (value == null) throw new ArgumentNullException("value"); 2553if (value == null) throw new ArgumentNullException("value"); 2559if (value == null) throw new ArgumentNullException("value"); 2575if (value == null) throw new ArgumentNullException("value"); 2581if (value == null) throw new ArgumentNullException("value"); 2629if (value == null) throw new ArgumentNullException("value"); 2635if (value == null) throw new ArgumentNullException("value"); 2670if (destinationType == null) throw new ArgumentNullException("destinationType"); 2680if (destinationType == null) throw new ArgumentNullException("destinationType"); 2690if (destinationType == null) throw new ArgumentNullException("destinationType"); 2700if (destinationType == null) throw new ArgumentNullException("destinationType"); 2710if (destinationType == null) throw new ArgumentNullException("destinationType"); 2720if (destinationType == null) throw new ArgumentNullException("destinationType"); 2730if (destinationType == null) throw new ArgumentNullException("destinationType"); 2740if (destinationType == null) throw new ArgumentNullException("destinationType"); 2750if (value == null) throw new ArgumentNullException("value"); 2751if (destinationType == null) throw new ArgumentNullException("destinationType"); 2781if (value == null) throw new ArgumentNullException("value"); 2782if (destinationType == null) throw new ArgumentNullException("destinationType"); 3021if (value == null) throw new ArgumentNullException("value"); 3022if (destinationType == null) throw new ArgumentNullException("destinationType"); 3058if (value == null) throw new ArgumentNullException("value"); 3074if (value == null) throw new ArgumentNullException("value"); 3089if (value == null) throw new ArgumentNullException("value"); 3105if (value == null) throw new ArgumentNullException("value"); 3121if (value == null) throw new ArgumentNullException("value"); 3137if (value == null) throw new ArgumentNullException("value"); 3153if (value == null) throw new ArgumentNullException("value"); 3169if (value == null) throw new ArgumentNullException("value"); 3192if (destinationType == null) throw new ArgumentNullException("destinationType"); 3202if (destinationType == null) throw new ArgumentNullException("destinationType"); 3212if (destinationType == null) throw new ArgumentNullException("destinationType"); 3222if (destinationType == null) throw new ArgumentNullException("destinationType"); 3232if (destinationType == null) throw new ArgumentNullException("destinationType"); 3242if (destinationType == null) throw new ArgumentNullException("destinationType"); 3252if (destinationType == null) throw new ArgumentNullException("destinationType"); 3262if (destinationType == null) throw new ArgumentNullException("destinationType"); 3272if (value == null) throw new ArgumentNullException("value"); 3273if (destinationType == null) throw new ArgumentNullException("destinationType"); 3283if (value == null) throw new ArgumentNullException("value"); 3284if (destinationType == null) throw new ArgumentNullException("destinationType"); 3408if (value == null) throw new ArgumentNullException("value"); 3409if (destinationType == null) throw new ArgumentNullException("destinationType"); 3464if (value == null) throw new ArgumentNullException("value"); 3465if (destinationType == null) throw new ArgumentNullException("destinationType"); 3706if (value == null) throw new ArgumentNullException("value"); 3707if (destinationType == null) throw new ArgumentNullException("destinationType");
FrameworkFork\Microsoft.Xml\Xml\Serialization\TypeExtensions.cs (1)
19throw new ArgumentNullException("targetType");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCountingReader.cs (1)
21throw new ArgumentNullException("xmlReader");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
171throw new ArgumentNullException("type"); 486throw new ArgumentNullException("MethodName");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
1010throw new ArgumentNullException(string.Format(ResXml.XmlMissingArrayType, CurrentTag()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (4)
210throw new ArgumentNullException("type"); 258throw new ArgumentNullException("type"); 287throw new ArgumentNullException("xmlMapping"); 675throw new ArgumentNullException("type");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializerFactory.cs (1)
92throw new ArgumentNullException("type");
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (16)
332throw new ArgumentNullException("s"); 341throw new ArgumentNullException("inArray"); 358throw new ArgumentNullException("name"); 362throw new ArgumentNullException("name", ResXml.Xml_EmptyName); 401throw new ArgumentNullException("name"); 428throw new ArgumentNullException("name"); 432throw new ArgumentNullException("name", ResXml.Xml_EmptyLocalName); 502throw new ArgumentNullException("name"); 557throw new ArgumentNullException("content"); 569throw new ArgumentNullException("publicId"); 588throw new ArgumentNullException("content"); 930throw new ArgumentNullException("s"); 1430throw new ArgumentNullException("s"); 1441throw new ArgumentNullException("s"); 1450throw new ArgumentNullException("s"); 1880return (name == null) ? new ArgumentNullException(argumentName) : new ArgumentException(ResXml.Xml_EmptyName, argumentName);
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (4)
134throw new ArgumentNullException("uri"); 137throw new ArgumentNullException("prefix"); 201throw new ArgumentNullException("uri"); 205throw new ArgumentNullException("prefix");
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (1)
82throw new ArgumentNullException("absoluteUri");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathAxisIterator.cs (2)
36if (name == null) throw new ArgumentNullException("name"); 37if (namespaceURI == null) throw new ArgumentNullException("namespaceURI");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (3)
64throw new ArgumentNullException("nameTable"); 82throw new ArgumentNullException("reader"); 171throw new ArgumentNullException("reader");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (14)
125throw new ArgumentNullException("typedValue"); 622throw new ArgumentNullException("writer"); 1369throw new ArgumentNullException("newNode"); 1387throw new ArgumentNullException("newNode"); 1493throw new ArgumentNullException("value"); 1529throw new ArgumentNullException("newChild"); 1540throw new ArgumentNullException("newChild"); 1560throw new ArgumentNullException("newChild"); 1571throw new ArgumentNullException("newChild"); 1591throw new ArgumentNullException("newSibling"); 1602throw new ArgumentNullException("newSibling"); 1622throw new ArgumentNullException("newSibling"); 1633throw new ArgumentNullException("newSibling"); 2094throw new ArgumentNullException("xml");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorKeyComparer.cs (1)
38throw new ArgumentNullException("obj");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (2)
467throw new ArgumentNullException("localName"); 566throw new ArgumentNullException("localName");
FrameworkFork\Microsoft.Xml\Xml\Xslt\XsltArgumentList.cs (1)
97throw new ArgumentNullException(paramName);
FrameworkFork\Microsoft.Xml\Xml\Xslt\XsltCommand.cs (6)
156throw new ArgumentNullException("inputUri"); 159throw new ArgumentNullException("resultsFile"); 184throw new ArgumentNullException("input"); 187throw new ArgumentNullException("results"); 193throw new ArgumentNullException("inputUri"); 196throw new ArgumentNullException("results");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
37throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("dataContractSet"));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (2)
631throw new ArgumentNullException("dictMap"); 636throw new ArgumentNullException("exceptionNamespace");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (1)
356throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(name));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XsdDataContractImporter.cs (18)
75throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 83throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 86throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeNames")); 94throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 97throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeName")); 106throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 109throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("element")); 120throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 128throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 131throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeNames")); 139throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 142throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeName")); 150throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("schemas")); 153throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("element")); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("element")); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeName")); 182throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeName")); 197throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typeName"));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (9)
66throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 125throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 138throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("bytes")); 209throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 221throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("bytes")); 302throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("bytes")); 314throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 396throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("bytes")); 408throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars"));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (4)
53throw new ArgumentNullException("chars"); 63throw new ArgumentNullException("bytes"); 124throw new ArgumentNullException("bytes"); 135throw new ArgumentNullException("chars");
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (4)
87throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("guid")); 127throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 270throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 357throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (8)
535throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 583throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 610throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 982throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 989throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 1146throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 1176throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer")); 1336throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (11)
189throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 476throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 521throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 759throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ns")); 792throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 811throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 1000throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 1057throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 1132throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 1154throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 1427throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (1)
1208throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("array"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (1)
113throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (2)
1130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("stream")); 1270throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("array"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
91throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (1)
894throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("array"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReaderQuotas.cs (1)
71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("quotas"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryString.cs (3)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("dictionary")); 30throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 133throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (3)
158throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName")); 353throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 406throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("array"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (1)
565throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextWriter.cs (2)
26throw new ArgumentNullException("stream"); 28throw new ArgumentNullException("encoding");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
158throw new ArgumentNullException("source");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (2)
178return TraceException<ArgumentNullException>(new ArgumentNullException(paramName)); 183return TraceException<ArgumentNullException>(new ArgumentNullException(paramName, message));
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (2)
51return (ArgumentNullException)this.ThrowHelperError(new ArgumentNullException(paramName)); 56return (ArgumentNullException)this.ThrowHelperError(new ArgumentNullException(paramName, message));
FrameworkFork\System.ServiceModel\System\IdentityModel\IdentityModelDictionary.cs (2)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key")); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key"));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("identificationData"));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SamlAssertion.cs (1)
36throw new ArgumentNullException("value"); // TODO: DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.SAMLAssertionIdRequired);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("clause"));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (1)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("symmetricKey"));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
95throw new ArgumentNullException("valueTypeUris"); // TODO: DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("valueTypeUris"); 616throw new ArgumentNullException("reader"); 631throw new ArgumentNullException("writer");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (8)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageVersion")); 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (4)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ns")); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ns"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Addressing.cs (14)
69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action")); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action")); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("from")); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("faultTo")); 408throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("to")); 579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("replyTo")); 581throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("addressingVersion")); 679throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageId")); 681throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("addressingVersion")); 777throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageId")); 779throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("addressingVersion")); 786throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageId")); 788throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("addressingVersion")); 790throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("relationshipType"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (2)
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parts1")); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parts2"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
729throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 733throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("stream"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BodyWriter.cs (1)
105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsTransportBindingElement.cs (1)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (24)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("body")); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 156throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("body")); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("envelopeReader")); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("faultCode")); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reason")); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("faultCode")); 208throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reason")); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("fault")); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 246throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 422throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this); 514throw TraceUtility.ThrowHelperError(new ArgumentNullException("localName"), this); 516throw TraceUtility.ThrowHelperError(new ArgumentNullException("ns"), this); 613throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this); 659throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (2)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("stream")); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("stream"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contentType"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncodingBindingElement.cs (2)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context")); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (7)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("code")); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reason")); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("actor")); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("node")); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (9)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageVersion")); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageVersion")); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageVersion")); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 351throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 571throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageVersion"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (20)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("version")); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("headerInfo")); 481throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 527throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 534throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("collection")); 593throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ns")); 661throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 663throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ns")); 665throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("actors")); 850throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 873throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serializer")); 990throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("relationshipType")); 1112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("actors")); 1209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("header")); 1280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("headerInfo")); 1379throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("headerInfo")); 1398throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 1400throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ns"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (11)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("array")); 287throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("property")); 438throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 547throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 609throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 726throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("array")); 767throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Value")); 777throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Value")); 779throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Key")); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Value")); 841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Key"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ProducerConsumerStream.cs (2)
55throw new ArgumentNullException("buffer"); 112throw new ArgumentNullException("buffer");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (6)
404throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("bufferManager")); 440throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("stream")); 474throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 476throw TraceUtility.ThrowHelperError(new ArgumentNullException("bufferManager"), message); 525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 527throw TraceUtility.ThrowHelperError(new ArgumentNullException("stream"), message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UriGenerator.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("scheme"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerMessageContractImporter.cs (4)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("endpointContext")); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contractContext")); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("endpointContext")); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contractContext"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\FaultDescription.cs (1)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1683throw new ArgumentNullException("ex");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationContractGenerationContext.cs (13)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serviceContractGenerator")); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contract")); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("declaringType")); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncMethod")); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("beginMethod")); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("endMethod")); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("taskMethod")); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncMethod")); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("beginMethod")); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("endMethod")); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncMethod")); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("taskMethod")); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("method"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerationContext.cs (3)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serviceContractGenerator")); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contract")); 38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contractType"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
256return (ArgumentNullException)TraceUtility.ThrowHelperError(new ArgumentNullException(paramName), message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (4)
190if (writer == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 191if (parameters == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parameters")); 339if (reader == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 340if (parameters == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parameters"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
235throw TraceUtility.ThrowHelperError(new ArgumentNullException("IOperationInvoker.BeginDispatch"),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
55throw new ArgumentNullException("rpc.InstanceContext");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageOperationFormatter.cs (4)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 39throw TraceUtility.ThrowHelperError(new ArgumentNullException("parameters"), message); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parameters"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
113throw TraceUtility.ThrowHelperError(new ArgumentNullException("parameters"), message); 177throw TraceUtility.ThrowHelperError(new ArgumentNullException("parameters"), message); 574throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("description")); 579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(string.Format(SRServiceModel.SFxTypedMessageCannotBeNull, description.Action)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 374throw TraceUtility.ThrowHelperError(new ArgumentNullException("parameters"), message); 412throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("message")); 414throw TraceUtility.ThrowHelperError(new ArgumentNullException("parameters"), message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (3)
243throw TraceUtility.ThrowHelperError(new ArgumentNullException("buffer"), _message); 372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 408throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("method"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("taskMethod"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
263if (writer == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 264if (parameters == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parameters")); 361if (reader == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 362if (parameters == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parameters"));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultCode.cs (2)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("name")); 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("subCode"));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultContractAttribute.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("detailType"));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReason.cs (2)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("translations")); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("cultureInfo"));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReasonText.cs (6)
17throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("text")); 25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("text")); 27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("xmlLang")); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("text")); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("cultureInfo")); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("cultureInfo"));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpBinding.cs (1)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (2)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("channel")); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("outgoingMessageVersion"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ChannelProtectionRequirements.cs (6)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("other")); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("other")); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("protectionRequirements")); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contract")); 344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("faults")); 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("requirements"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (3)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id")); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id")); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (4)
104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("standardsManager")); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("standardsManager")); 259throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "value[{0}]", index))); 340throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (2)
111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("standardsManager")); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("standardsManager"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponseCollection.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("standardsManager"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (5)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("other")); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parts")); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action")); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("parts")); 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityChannel.cs (1)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 449throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 560throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityStandardsManager.cs (1)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageSecurityVersion"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
763throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("securityVersion"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\GenericXmlSecurityToken.cs (1)
43throw new ArgumentNullException("tokenXml"); // TODO: DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenXml");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("securityVersion")); 536throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("dictionaryStrings")); 544throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 575throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (1)
303throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("idPrefix"));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (1)
439throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot"));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceModelDictionary.cs (2)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key")); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key"));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (5)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("list")); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("list"));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (5)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("comparer")); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("comparer")); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key")); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key")); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key"));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (7)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("list")); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("list")); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot")); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("list"));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpBinding.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpBindingBase.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpSecurity.cs (2)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
Metadata\HttpAuthenticationHelper.cs (2)
73throw new ArgumentNullException(nameof(httpResponse)); 94throw new ArgumentNullException(nameof(challenge));
Metadata\MetadaExchangeResolver.cs (1)
69throw new ArgumentNullException(nameof(endpointAddress));
Metadata\MetadataDocumentLoader.cs (2)
92throw new ArgumentNullException(nameof(uri)); 132throw new ArgumentNullException(nameof(metadataFiles));
Metadata\MetadataDocumentSaver.cs (2)
40this.DirectoryPath = directoryPath ?? throw new ArgumentNullException(nameof(directoryPath)); 97throw new ArgumentNullException(nameof(documents));
Metadata\MetadataFileNameManager.cs (2)
28throw new ArgumentNullException(nameof(fileName)); 69throw new ArgumentNullException(nameof(fileName));
Metadata\ServiceDescriptor.cs (1)
58this.metadataDocumentLoader = metadataDocumentLoader ?? throw new ArgumentNullException(nameof(metadataDocumentLoader));
Shared\FrameworkInfo.cs (1)
36throw new ArgumentNullException(nameof(fullFrameworkName));
Shared\MSBuildProj.cs (2)
383throw new ArgumentNullException(nameof(fullPath)); 957throw new ArgumentNullException(nameof(propertyNames));
Shared\Options\OptionBase.cs (1)
31throw new ArgumentNullException(nameof(name));
Shared\Options\OptionValueParser.cs (2)
91throw new ArgumentNullException(nameof(value)); 267throw new ArgumentNullException(nameof(option));
Shared\ProjectPropertyResolver.cs (2)
229throw new ArgumentNullException(nameof(propertyTable)); 239throw new ArgumentNullException(nameof(propertyNames));
dotnet-user-jwts (1)
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
dotnet-user-secrets (1)
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
Extensibility.MessageEncoder.IntegrationTests (8)
CustomTextMessageBindingElement.cs (8)
29throw new ArgumentNullException(nameof(encoding)); 32throw new ArgumentNullException(nameof(mediaType)); 35throw new ArgumentNullException(nameof(msgVersion)); 63throw new ArgumentNullException(nameof(value)); 78throw new ArgumentNullException(nameof(value)); 93throw new ArgumentNullException(nameof(value)); 123throw new ArgumentNullException(nameof(context)); 132throw new ArgumentNullException(nameof(context));
GenerateDocumentationAndConfigFiles (112)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
GetDocument.Insider (4)
Commands\CommandBase.cs (1)
22_console = console ?? throw new ArgumentNullException(nameof(console));
Commands\GetDocumentCommandWorker.cs (1)
51_context = context ?? throw new ArgumentNullException(nameof(context));
ProgramBase.cs (1)
19_console = console ?? throw new ArgumentNullException(nameof(console));
src\Tools\Shared\CommandLine\Ensure.cs (1)
15throw new ArgumentNullException(paramName);
HealthChecksSample (1)
DbConnectionHealthCheck.cs (1)
18ConnectionString = connectionString ?? throw new ArgumentNullException(nameof(connectionString));
Metrics (116)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Metrics.Legacy (116)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Microsoft.Analyzers.Local (4)
ApiLifecycle\Json\JsonArray.cs (1)
30throw new ArgumentNullException(nameof(values));
ApiLifecycle\Json\JsonReader.cs (2)
34throw new ArgumentNullException(nameof(reader)); 49throw new ArgumentNullException(nameof(source));
InternalReferencedInPublicDocAnalyzer.cs (1)
106_ = context ?? throw new ArgumentNullException(nameof(context));
Microsoft.Analyzers.Local.Tests (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Arcade.Common (2)
NupkgInfo.cs (1)
29throw new ArgumentNullException(nameof(id));
NupkgInfoFactory.cs (1)
26throw new ArgumentNullException(nameof(path));
Microsoft.AspNetCore (3)
BootstrapHostBuilder.cs (3)
45_configureHostActions.Add(configureDelegate ?? throw new ArgumentNullException(nameof(configureDelegate))); 51_configureAppActions.Add(configureDelegate ?? throw new ArgumentNullException(nameof(configureDelegate))); 57_configureServicesActions.Add(configureDelegate ?? throw new ArgumentNullException(nameof(configureDelegate)));
Microsoft.AspNetCore.Analyzers (6)
StartupAnalyzer.cs (1)
21throw new ArgumentNullException(nameof(context));
StartupFacts.cs (5)
15throw new ArgumentNullException(nameof(symbols)); 20throw new ArgumentNullException(nameof(type)); 57throw new ArgumentNullException(nameof(symbol)); 95throw new ArgumentNullException(nameof(symbol)); 133throw new ArgumentNullException(nameof(symbol));
Microsoft.AspNetCore.Antiforgery (4)
AntiforgeryOptions.cs (2)
59set => _cookieBuilder = value ?? throw new ArgumentNullException(nameof(value)); 68set => _formFieldName = value ?? throw new ArgumentNullException(nameof(value));
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
112throw new ArgumentNullException( 119throw new ArgumentNullException(
Microsoft.AspNetCore.App.Analyzers (12)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (7)
35attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 56typeSymbol = typeSymbol ?? throw new ArgumentNullException(nameof(typeSymbol)); 57attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 75propertySymbol = propertySymbol ?? throw new ArgumentNullException(nameof(propertySymbol)); 76attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 99source = source ?? throw new ArgumentNullException(nameof(source)); 100target = target ?? throw new ArgumentNullException(nameof(target));
src\Shared\Roslyn\MvcFacts.cs (5)
13type = type ?? throw new ArgumentNullException(nameof(type)); 14controllerAttribute = controllerAttribute ?? throw new ArgumentNullException(nameof(controllerAttribute)); 15nonControllerAttribute = nonControllerAttribute ?? throw new ArgumentNullException(nameof(nonControllerAttribute)); 59method = method ?? throw new ArgumentNullException(nameof(method)); 60nonActionAttribute = nonActionAttribute ?? throw new ArgumentNullException(nameof(nonActionAttribute));
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\FormattedClassification.cs (2)
21Text = text ?? throw new ArgumentNullException(nameof(text)); 22ClassificationName = classificationName ?? throw new ArgumentNullException(nameof(classificationName));
Microsoft.AspNetCore.AsyncState (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
155set => _correlationCookieBuilder = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationOptions.cs (1)
55set => _cookieBuilder = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
35_schemes = schemes ?? throw new ArgumentNullException(nameof(schemes));
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
330set => _nonceCookieBuilder = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
98set => _stateCookieBuilder = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Authentication.WsFederation (2)
WsFederationOptions.cs (2)
117_securityTokenHandlers = value ?? throw new ArgumentNullException(nameof(SecurityTokenHandlers)); 146_tokenValidationParameters = value ?? throw new ArgumentNullException(nameof(TokenValidationParameters));
Microsoft.AspNetCore.Authorization.Policy (7)
AuthorizationEndpointConventionBuilderExtensions.cs (5)
25throw new ArgumentNullException(nameof(builder)); 41throw new ArgumentNullException(nameof(builder)); 62throw new ArgumentNullException(nameof(builder)); 87throw new ArgumentNullException(nameof(builder)); 108throw new ArgumentNullException(nameof(builder));
AuthorizationMiddleware.cs (2)
50_next = next ?? throw new ArgumentNullException(nameof(next)); 51_policyProvider = policyProvider ?? throw new ArgumentNullException(nameof(policyProvider));
Microsoft.AspNetCore.Components (11)
ComponentFactory.cs (2)
26_componentActivator = componentActivator ?? throw new ArgumentNullException(nameof(componentActivator)); 27_renderer = renderer ?? throw new ArgumentNullException(nameof(renderer));
LayoutAttribute.cs (1)
21LayoutType = layoutType ?? throw new ArgumentNullException(nameof(layoutType));
PersistentComponentState.cs (1)
36_existingState = existingState ?? throw new ArgumentNullException(nameof(existingState));
RenderHandle.cs (1)
20_renderer = renderer ?? throw new ArgumentNullException(nameof(renderer));
Rendering\ComponentState.cs (2)
39Component = component ?? throw new ArgumentNullException(nameof(component)); 43_renderer = renderer ?? throw new ArgumentNullException(nameof(renderer));
Rendering\RenderQueueEntry.cs (1)
17RenderFragment = renderFragment ?? throw new ArgumentNullException(nameof(renderFragment));
RenderTree\StackObjectPool.cs (1)
21_instanceFactory = instanceFactory ?? throw new ArgumentNullException(nameof(instanceFactory));
Routing\RouteData.cs (1)
30RouteValues = routeValues ?? throw new ArgumentNullException(nameof(routeValues));
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
647throw new ArgumentNullException("key");
Microsoft.AspNetCore.Components.Analyzers (12)
ComponentFacts.cs (10)
17throw new ArgumentNullException(nameof(symbols)); 22throw new ArgumentNullException(nameof(property)); 35throw new ArgumentNullException(nameof(symbols)); 40throw new ArgumentNullException(nameof(property)); 50throw new ArgumentNullException(nameof(symbols)); 55throw new ArgumentNullException(nameof(property)); 79throw new ArgumentNullException(nameof(symbols)); 84throw new ArgumentNullException(nameof(property)); 94throw new ArgumentNullException(nameof(symbols)); 99throw new ArgumentNullException(nameof(type));
ComponentSymbols.cs (1)
15throw new ArgumentNullException(nameof(compilation));
InternalUsageAnalyzer.cs (1)
32_descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor));
Microsoft.AspNetCore.Components.Authorization (1)
AuthorizeDataAdapter.cs (1)
15_component = component ?? throw new ArgumentNullException(nameof(component));
Microsoft.AspNetCore.Components.Endpoints (3)
DependencyInjection\ServerAuthenticationStateProvider.cs (1)
23_authenticationStateTask = authenticationStateTask ?? throw new ArgumentNullException(nameof(authenticationStateTask));
Results\RazorComponentResult.cs (1)
62? throw new ArgumentNullException(nameof(parameters))
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54Property = property ?? throw new ArgumentNullException(nameof(property));
Microsoft.AspNetCore.Components.Forms (4)
EditContext.cs (1)
31Model = model ?? throw new ArgumentNullException(nameof(model));
EditContextDataAnnotationsExtensions.cs (1)
81_editContext = editContext ?? throw new ArgumentNullException(nameof(editContext));
FieldIdentifier.cs (1)
57FieldName = fieldName ?? throw new ArgumentNullException(nameof(fieldName));
ValidationMessageStore.cs (1)
22_editContext = editContext ?? throw new ArgumentNullException(nameof(editContext));
Microsoft.AspNetCore.Components.SdkAnalyzers (12)
ComponentFacts.cs (10)
17throw new ArgumentNullException(nameof(symbols)); 22throw new ArgumentNullException(nameof(property)); 35throw new ArgumentNullException(nameof(symbols)); 40throw new ArgumentNullException(nameof(property)); 50throw new ArgumentNullException(nameof(symbols)); 55throw new ArgumentNullException(nameof(property)); 79throw new ArgumentNullException(nameof(symbols)); 84throw new ArgumentNullException(nameof(property)); 94throw new ArgumentNullException(nameof(symbols)); 99throw new ArgumentNullException(nameof(type));
ComponentSymbols.cs (1)
15throw new ArgumentNullException(nameof(compilation));
InternalUsageAnalyzer.cs (1)
32_descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor));
Microsoft.AspNetCore.Components.Server (19)
BlazorPack\Requires.cs (1)
12throw new ArgumentNullException(paramName);
Circuits\CircuitClientProxy.cs (2)
28Client = clientProxy ?? throw new ArgumentNullException(nameof(clientProxy)); 29ConnectionId = connectionId ?? throw new ArgumentNullException(nameof(connectionId));
Circuits\CircuitHost.cs (8)
67_options = options ?? throw new ArgumentNullException(nameof(options)); 68Client = client ?? throw new ArgumentNullException(nameof(client)); 69Renderer = renderer ?? throw new ArgumentNullException(nameof(renderer)); 70Descriptors = descriptors ?? throw new ArgumentNullException(nameof(descriptors)); 71JSRuntime = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime)); 72_navigationManager = navigationManager ?? throw new ArgumentNullException(nameof(navigationManager)); 73_circuitHandlers = circuitHandlers ?? throw new ArgumentNullException(nameof(circuitHandlers)); 76_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Circuits\CircuitId.cs (2)
22Secret = secret ?? throw new ArgumentNullException(nameof(secret)); 23Id = id ?? throw new ArgumentNullException(nameof(id));
Circuits\RemoteJSRuntime.cs (1)
57_clientProxy = clientProxy ?? throw new ArgumentNullException(nameof(clientProxy));
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (2)
39_jsRuntime = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime)); 40_dataProtectionProvider = dataProtectionProvider ?? throw new ArgumentNullException(nameof(dataProtectionProvider));
src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
109=> throw new ArgumentNullException(name);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (2)
59_output = output ?? throw new ArgumentNullException(nameof(output)); 79_sequencePool = sequencePool ?? throw new ArgumentNullException(nameof(sequencePool));
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitHostTest.cs (1)
929_js = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime));
Microsoft.AspNetCore.Components.Web (2)
Forms\InputFile\InputFileChangeEventArgs.cs (1)
19_files = files ?? throw new ArgumentNullException(nameof(files));
WebElementReferenceContext.cs (1)
21JSRuntime = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime));
Microsoft.AspNetCore.Components.WebAssembly (3)
Services\WebAssemblyConsoleLogger.cs (2)
30_name = name ?? throw new ArgumentNullException(nameof(name)); 31_jsRuntime = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime));
Services\WebAssemblyErrorBoundaryLogger.cs (1)
15_errorBoundaryLogger = errorBoundaryLogger ?? throw new ArgumentNullException(nameof(errorBoundaryLogger));
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializer.cs (1)
45_authenticationStateTask = authenticationStateTask ?? throw new ArgumentNullException(nameof(authenticationStateTask));
Microsoft.AspNetCore.Components.WebView (7)
src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
109=> throw new ArgumentNullException(name);
StaticContentProvider.cs (3)
18_fileProvider = fileProvider ?? throw new ArgumentNullException(nameof(fileProvider)); 19_appBaseUri = appBaseUri ?? throw new ArgumentNullException(nameof(appBaseUri)); 20_hostPageRelativePath = hostPageRelativePath ?? throw new ArgumentNullException(nameof(hostPageRelativePath));
WebViewManager.cs (3)
46_provider = provider ?? throw new ArgumentNullException(nameof(provider)); 47_dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher)); 48_appBaseUri = EnsureTrailingSlash(appBaseUri ?? throw new ArgumentNullException(nameof(appBaseUri)));
Microsoft.AspNetCore.Components.WebView.Photino (2)
PhotinoSynchronizationContext.cs (1)
48_window = window ?? throw new ArgumentNullException(nameof(window));
PhotinoWebViewManager.cs (1)
31_window = window ?? throw new ArgumentNullException(nameof(window));
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\ElementNode.cs (1)
55EventName = eventName ?? throw new ArgumentNullException(nameof(eventName));
StaticContentProviderTests.cs (2)
80_inMemoryFileProvider = inMemoryFileProvider ?? throw new ArgumentNullException(nameof(inMemoryFileProvider)); 81_subPath = subPath ?? throw new ArgumentNullException(nameof(inMemoryFileProvider));
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
RootComponent.cs (1)
30 ComponentType = componentType ?? throw new ArgumentNullException(nameof(componentType));
WindowsFormsDispatcher.cs (1)
32 throw new ArgumentNullException(nameof(dispatchThreadControl));
Microsoft.AspNetCore.Components.WebView.Wpf (1)
WpfDispatcher.cs (1)
17 _windowsDispatcher = windowsDispatcher ?? throw new ArgumentNullException(nameof(windowsDispatcher));
Microsoft.AspNetCore.Connections.Abstractions (1)
UriEndPoint.cs (1)
20Uri = uri ?? throw new ArgumentNullException(nameof(uri));
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyMiddleware.cs (1)
38_next = next ?? throw new ArgumentNullException(nameof(next));
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsOptions.cs (1)
26_defaultPolicyName = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.DataProtection (6)
KeyManagement\XmlKeyManager.cs (2)
94_loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); 96_keyStorageDirectories = keyStorageDirectories ?? throw new ArgumentNullException(nameof(keyStorageDirectories));
Repositories\FileSystemXmlRepository.cs (1)
31Directory = directory ?? throw new ArgumentNullException(nameof(directory));
Secret.cs (2)
54throw new ArgumentNullException(nameof(secret)); 266throw new ArgumentNullException(nameof(buffer));
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
37_services = services ?? throw new ArgumentNullException(nameof(services));
Microsoft.AspNetCore.DataProtection.Extensions (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.Diagnostics.Abstractions (2)
ErrorContext.cs (2)
20HttpContext = httpContext ?? throw new ArgumentNullException(nameof(httpContext)); 21Exception = exception ?? throw new ArgumentNullException(nameof(exception));
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
DatabaseDeveloperPageExceptionFilter.cs (2)
37_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 38_options = options?.Value ?? throw new ArgumentNullException(nameof(options));
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
175throw new ArgumentNullException(nameof(path));
Microsoft.AspNetCore.HeaderParsing (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.AspNetCore.HeaderPropagation (2)
HeaderPropagationMessageHandler.cs (2)
26_options = options ?? throw new ArgumentNullException(nameof(options)); 27_values = values ?? throw new ArgumentNullException(nameof(values));
Microsoft.AspNetCore.HostFiltering (3)
HostFilteringMiddleware.cs (3)
43_next = next ?? throw new ArgumentNullException(nameof(next)); 44_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 45_middlewareConfigurationManager = new MiddlewareConfigurationManager(optionsMonitor ?? throw new ArgumentNullException(nameof(optionsMonitor)), logger);
Microsoft.AspNetCore.Hosting.WindowsServices (1)
WebHostService.cs (1)
26_host = host ?? throw new ArgumentNullException(nameof(host));
Microsoft.AspNetCore.Http (5)
Features\ResponseCookiesFeature.cs (2)
26_features = features ?? throw new ArgumentNullException(nameof(features)); 40_features = features ?? throw new ArgumentNullException(nameof(features));
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
499throw new ArgumentNullException("key");
StreamResponseBodyFeature.cs (2)
25Stream = stream ?? throw new ArgumentNullException(nameof(stream)); 35Stream = stream ?? throw new ArgumentNullException(nameof(stream));
Microsoft.AspNetCore.Http.Abstractions (4)
HostString.cs (1)
229throw new ArgumentNullException(nameof(value));
ProblemDetails\HttpValidationProblemDetails.cs (1)
36: this(new Dictionary<string, string[]>(errors ?? throw new ArgumentNullException(nameof(errors)), StringComparer.Ordinal))
Routing\RouteValueDictionary.cs (1)
647throw new ArgumentNullException("key");
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54Property = property ?? throw new ArgumentNullException(nameof(property));
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
186set => _items = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Http.Connections.Client (5)
HttpConnectionFactory.cs (1)
33_loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
HttpConnectionOptions.cs (3)
79set => _headers = value ?? throw new ArgumentNullException(nameof(value)); 143_clientCertificates = value ?? throw new ArgumentNullException(nameof(value)); 161_cookies = value ?? throw new ArgumentNullException(nameof(value));
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
474ApplicationBuilder = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
ValidationEndpointConventionBuilderExtensionsTests.cs (1)
73private IApplicationBuilder ApplicationBuilder { get; } = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
ValidationFilterEndpointFactoryTests.cs (1)
178private IApplicationBuilder ApplicationBuilder { get; } = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
474ApplicationBuilder = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
Microsoft.AspNetCore.Http.Results (1)
VirtualFileHttpResult.cs (1)
98internal set => _fileName = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.HttpLogging (5)
HttpLoggingInterceptorContext.cs (1)
36set => _httpContext = value ?? throw new ArgumentNullException(nameof(value));
UpgradeFeatureLoggingDecorator.cs (4)
22_innerUpgradeFeature = innerUpgradeFeature ?? throw new ArgumentNullException(nameof(innerUpgradeFeature)); 23_logContext = logContext ?? throw new ArgumentNullException(nameof(logContext)); 24_options = options ?? throw new ArgumentNullException(nameof(options)); 26_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Microsoft.AspNetCore.HttpsPolicy (2)
HstsMiddleware.cs (1)
37_next = next ?? throw new ArgumentNullException(nameof(next));
HttpsRedirectionMiddleware.cs (1)
70_serverAddressesFeature = serverAddressesFeature ?? throw new ArgumentNullException(nameof(serverAddressesFeature));
Microsoft.AspNetCore.Identity (1)
DataProtectorTokenProvider.cs (1)
34Logger = logger ?? throw new ArgumentNullException(nameof(logger));
Microsoft.AspNetCore.Identity.UI (2)
IdentityDefaultUIConfigureOptions.cs (2)
29options = options ?? throw new ArgumentNullException(nameof(options)); 51options = options ?? throw new ArgumentNullException(nameof(options));
Microsoft.AspNetCore.InternalTesting (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.JsonPatch (6)
Adapters\ObjectAdapter.cs (2)
38ContractResolver = contractResolver ?? throw new ArgumentNullException(nameof(contractResolver)); 40AdapterFactory = adapterFactory ?? throw new ArgumentNullException(nameof(adapterFactory));
Internal\ObjectVisitor.cs (2)
39_contractResolver = contractResolver ?? throw new ArgumentNullException(nameof(contractResolver)); 40_adapterFactory = adapterFactory ?? throw new ArgumentNullException(nameof(adapterFactory));
JsonPatchDocumentOfT.cs (2)
41Operations = operations ?? throw new ArgumentNullException(nameof(operations)); 42ContractResolver = contractResolver ?? throw new ArgumentNullException(nameof(contractResolver));
Microsoft.AspNetCore.JsonPatch.SystemTextJson (6)
Adapters\ObjectAdapter.cs (2)
39SerializerOptions = serializerOptions ?? throw new ArgumentNullException(nameof(serializerOptions)); 41AdapterFactory = adapterFactory ?? throw new ArgumentNullException(nameof(adapterFactory));
Internal\ObjectVisitor.cs (2)
35_serializerOptions = serializerOptions ?? throw new ArgumentNullException(nameof(serializerOptions)); 36_adapterFactory = adapterFactory ?? throw new ArgumentNullException(nameof(adapterFactory));
JsonPatchDocumentOfT.cs (2)
42Operations = operations ?? throw new ArgumentNullException(nameof(operations)); 43SerializerOptions = serializerOptions ?? throw new ArgumentNullException(nameof(serializerOptions));
Microsoft.AspNetCore.Localization (2)
RequestLocalizationMiddleware.cs (2)
37_next = next ?? throw new ArgumentNullException(nameof(next)); 38_logger = loggerFactory?.CreateLogger<RequestLocalizationMiddleware>() ?? throw new ArgumentNullException(nameof(loggerFactory));
Microsoft.AspNetCore.Mvc.Abstractions (3)
Abstractions\ActionDescriptorExtensions.cs (1)
45throw new ArgumentNullException(nameof(value));
Filters\FilterContext.cs (1)
65throw new ArgumentNullException(nameof(policy));
ModelBinding\ModelError.cs (1)
29Exception = exception ?? throw new ArgumentNullException(nameof(exception));
Microsoft.AspNetCore.Mvc.Analyzers (12)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (7)
35attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 56typeSymbol = typeSymbol ?? throw new ArgumentNullException(nameof(typeSymbol)); 57attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 75propertySymbol = propertySymbol ?? throw new ArgumentNullException(nameof(propertySymbol)); 76attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 99source = source ?? throw new ArgumentNullException(nameof(source)); 100target = target ?? throw new ArgumentNullException(nameof(target));
src\Shared\Roslyn\MvcFacts.cs (5)
13type = type ?? throw new ArgumentNullException(nameof(type)); 14controllerAttribute = controllerAttribute ?? throw new ArgumentNullException(nameof(controllerAttribute)); 15nonControllerAttribute = nonControllerAttribute ?? throw new ArgumentNullException(nameof(nonControllerAttribute)); 59method = method ?? throw new ArgumentNullException(nameof(method)); 60nonActionAttribute = nonActionAttribute ?? throw new ArgumentNullException(nameof(nonActionAttribute));
Microsoft.AspNetCore.Mvc.Api.Analyzers (13)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (7)
35attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 56typeSymbol = typeSymbol ?? throw new ArgumentNullException(nameof(typeSymbol)); 57attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 75propertySymbol = propertySymbol ?? throw new ArgumentNullException(nameof(propertySymbol)); 76attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); 99source = source ?? throw new ArgumentNullException(nameof(source)); 100target = target ?? throw new ArgumentNullException(nameof(target));
src\Shared\Roslyn\MvcFacts.cs (5)
13type = type ?? throw new ArgumentNullException(nameof(type)); 14controllerAttribute = controllerAttribute ?? throw new ArgumentNullException(nameof(controllerAttribute)); 15nonControllerAttribute = nonControllerAttribute ?? throw new ArgumentNullException(nameof(nonControllerAttribute)); 59method = method ?? throw new ArgumentNullException(nameof(method)); 60nonActionAttribute = nonActionAttribute ?? throw new ArgumentNullException(nameof(nonActionAttribute));
SymbolApiConventionMatcher.cs (1)
97throw new ArgumentNullException(nameof(symbol));
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiDescriptionExtensions.cs (1)
45throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1732ApplicationBuilder = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
Microsoft.AspNetCore.Mvc.Core (50)
ActionResultOfT.cs (1)
47Result = result ?? throw new ArgumentNullException(nameof(result));
ApiBehaviorOptions.cs (1)
27set => _invalidModelStateResponseFactory = value ?? throw new ArgumentNullException(nameof(value));
ApiConventionMethodAttribute.cs (1)
39ConventionType = conventionType ?? throw new ArgumentNullException(nameof(conventionType));
ApiConventionTypeAttribute.cs (1)
44ConventionType = conventionType ?? throw new ArgumentNullException(nameof(conventionType));
ApiExplorer\ApiConventionResult.cs (1)
22throw new ArgumentNullException(nameof(responseMetadataProviders));
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
27DefaultErrorResponseType = defaultErrorResponseType ?? throw new ArgumentNullException(nameof(defaultErrorResponseType));
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
38_modelMetadataProvider = modelMetadataProvider ?? throw new ArgumentNullException(nameof(modelMetadataProvider)); 51_serviceProviderIsService = serviceProviderIsService ?? throw new ArgumentNullException(nameof(serviceProviderIsService));
ApplicationModels\ParameterModel.cs (1)
26ParameterInfo = parameterInfo ?? throw new ArgumentNullException(nameof(parameterInfo));
ApplicationModels\ParameterModelBase.cs (2)
25ParameterType = parameterType ?? throw new ArgumentNullException(nameof(parameterType)); 26Attributes = new List<object>(attributes ?? throw new ArgumentNullException(nameof(attributes)));
ApplicationModels\PropertyModel.cs (1)
26PropertyInfo = propertyInfo ?? throw new ArgumentNullException(nameof(propertyInfo));
ApplicationParts\ApplicationPartAttribute.cs (1)
23AssemblyName = assemblyName ?? throw new ArgumentNullException(nameof(assemblyName));
ApplicationParts\ApplicationPartManager.cs (1)
42throw new ArgumentNullException(nameof(feature));
ApplicationParts\AssemblyPart.cs (1)
19Assembly = assembly ?? throw new ArgumentNullException(nameof(assembly));
ApplicationParts\ProvideApplicationPartFactoryAttribute.cs (1)
21_applicationPartFactoryType = factoryType ?? throw new ArgumentNullException(nameof(factoryType));
Filters\ResponseCacheFilterExecutor.cs (1)
22_cacheProfile = cacheProfile ?? throw new ArgumentNullException(nameof(cacheProfile));
Infrastructure\ClientErrorResultFilter.cs (2)
19_clientErrorFactory = clientErrorFactory ?? throw new ArgumentNullException(nameof(clientErrorFactory)); 20_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Infrastructure\DefaultProblemDetailsFactory.cs (1)
32_options = options?.Value ?? throw new ArgumentNullException(nameof(options));
Infrastructure\ModelStateInvalidFilter.cs (2)
31_apiBehaviorOptions = apiBehaviorOptions ?? throw new ArgumentNullException(nameof(apiBehaviorOptions)); 39_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
12_problemDetailsFactory = problemDetailsFactory ?? throw new ArgumentNullException(nameof(problemDetailsFactory));
Infrastructure\ResourceInvoker.cs (7)
46_diagnosticListener = diagnosticListener ?? throw new ArgumentNullException(nameof(diagnosticListener)); 47_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 48_actionContextAccessor = actionContextAccessor ?? throw new ArgumentNullException(nameof(actionContextAccessor)); 49_mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); 50_actionContext = actionContext ?? throw new ArgumentNullException(nameof(actionContext)); 52_filters = filters ?? throw new ArgumentNullException(nameof(filters)); 53_valueProviderFactories = valueProviderFactories ?? throw new ArgumentNullException(nameof(valueProviderFactories));
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
18_key = key ?? throw new ArgumentNullException(nameof(key));
ModelBinding\FormFileValueProvider.cs (1)
29_files = files ?? throw new ArgumentNullException(nameof(files));
ObjectResult.cs (1)
46set => _contentTypes = value ?? throw new ArgumentNullException(nameof(value));
PhysicalFileResult.cs (2)
40FileName = fileName ?? throw new ArgumentNullException(nameof(fileName)); 50set => _fileName = value ?? throw new ArgumentNullException(nameof(value));
ProducesAttribute.cs (1)
27Type = type ?? throw new ArgumentNullException(nameof(type));
ProducesDefaultResponseTypeAttribute.cs (1)
29Type = type ?? throw new ArgumentNullException(nameof(type));
ProducesErrorResponseTypeAttribute.cs (1)
27Type = type ?? throw new ArgumentNullException(nameof(type));
ProducesResponseTypeAttribute.cs (2)
36Type = type ?? throw new ArgumentNullException(nameof(type)); 52Type = type ?? throw new ArgumentNullException(nameof(type));
RouteAttribute.cs (1)
23Template = template ?? throw new ArgumentNullException(nameof(template));
ServiceFilterAttribute.cs (1)
32ServiceType = type ?? throw new ArgumentNullException(nameof(type));
SignInResult.cs (1)
57Principal = principal ?? throw new ArgumentNullException(nameof(principal));
SignOutResult.cs (1)
75AuthenticationSchemes = authenticationSchemes ?? throw new ArgumentNullException(nameof(authenticationSchemes));
src\Shared\PropertyActivator\PropertyActivator.cs (2)
21PropertyInfo = propertyInfo ?? throw new ArgumentNullException(nameof(propertyInfo)); 22_valueAccessor = valueAccessor ?? throw new ArgumentNullException(nameof(valueAccessor));
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54Property = property ?? throw new ArgumentNullException(nameof(property));
TypeFilterAttribute.cs (1)
36ImplementationType = type ?? throw new ArgumentNullException(nameof(type));
VirtualFileResult.cs (2)
41FileName = fileName ?? throw new ArgumentNullException(nameof(fileName)); 51set => _fileName = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
28_loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (1)
26_loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
BsonTempDataSerializer.cs (2)
154item = item ?? throw new ArgumentNullException(nameof(item)); 168typeToSerialize = typeToSerialize ?? throw new ArgumentNullException(nameof(typeToSerialize));
NewtonsoftJsonOutputFormatter.cs (1)
66_mvcOptions = mvcOptions ?? throw new ArgumentNullException(nameof(mvcOptions));
NewtonsoftJsonResultExecutor.cs (1)
56_mvcOptions = mvcOptions?.Value ?? throw new ArgumentNullException(nameof(mvcOptions));
Microsoft.AspNetCore.Mvc.Razor (3)
ApplicationParts\CompiledRazorAssemblyPart.cs (1)
20Assembly = assembly ?? throw new ArgumentNullException(nameof(assembly));
RazorPageFactoryResult.cs (1)
24ViewDescriptor = viewDescriptor ?? throw new ArgumentNullException(nameof(viewDescriptor));
TagHelperInitializerOfT.cs (1)
31throw new ArgumentNullException(nameof(helper));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
AssemblyPartExtensions.cs (1)
17var assembly = assemblyPart?.Assembly ?? throw new ArgumentNullException(nameof(assemblyPart));
CSharpCompiler.cs (2)
33_referenceManager = manager ?? throw new ArgumentNullException(nameof(manager)); 34_hostingEnvironment = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
DependencyInjection\MvcRazorRuntimeCompilationOptionsSetup.cs (1)
15_hostingEnvironment = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (2)
23_options = options ?? throw new ArgumentNullException(nameof(options)); 24_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Microsoft.AspNetCore.Mvc.RazorPages (17)
ApplicationModels\CompiledPageRouteModelProvider.cs (2)
29_applicationManager = applicationManager ?? throw new ArgumentNullException(nameof(applicationManager)); 30_pagesOptions = pagesOptionsAccessor?.Value ?? throw new ArgumentNullException(nameof(pagesOptionsAccessor));
ApplicationModels\PageApplicationModel.cs (1)
37ActionDescriptor = actionDescriptor ?? throw new ArgumentNullException(nameof(actionDescriptor));
ApplicationModels\PageHandlerModel.cs (2)
25MethodInfo = handlerMethod ?? throw new ArgumentNullException(nameof(handlerMethod)); 26Attributes = attributes ?? throw new ArgumentNullException(nameof(attributes));
ApplicationModels\PagePropertyModel.cs (1)
26PropertyInfo = propertyInfo ?? throw new ArgumentNullException(nameof(propertyInfo));
ApplicationModels\PageRouteModel.cs (2)
33RelativePath = relativePath ?? throw new ArgumentNullException(nameof(relativePath)); 34ViewEnginePath = viewEnginePath ?? throw new ArgumentNullException(nameof(viewEnginePath));
ApplicationModels\PageRouteModelFactory.cs (2)
23_options = options ?? throw new ArgumentNullException(nameof(options)); 24_logger = logger ?? throw new ArgumentNullException(nameof(logger));
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (1)
21_loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
DependencyInjection\RazorPagesOptionsSetup.cs (1)
16_serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (1)
18_pagesOptions = pagesOptions?.Value ?? throw new ArgumentNullException(nameof(pagesOptions));
Infrastructure\RazorPageAdapter.cs (2)
27_page = page ?? throw new ArgumentNullException(nameof(page)); 28_modelType = modelType ?? throw new ArgumentNullException(nameof(modelType));
PageBase.cs (1)
75set => _metadataProvider = value ?? throw new ArgumentNullException(nameof(value));
PageModel.cs (1)
144set => _metadataProvider = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Mvc.TagHelpers (3)
PartialTagHelper.cs (3)
41_viewEngine = viewEngine ?? throw new ArgumentNullException(nameof(viewEngine)); 42_viewBufferScope = viewBufferScope ?? throw new ArgumentNullException(nameof(viewBufferScope)); 59_for = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
CookieTempDataProviderOptions.cs (1)
54set => _cookieBuilder = value ?? throw new ArgumentNullException(nameof(value));
HtmlHelperOfT.cs (1)
41_modelExpressionProvider = modelExpressionProvider ?? throw new ArgumentNullException(nameof(modelExpressionProvider));
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
181ApplicationBuilder = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
Microsoft.AspNetCore.Razor (1)
TagHelpers\NullHtmlEncoder.cs (1)
85throw new ArgumentNullException(nameof(buffer));
Microsoft.AspNetCore.ResponseCaching (1)
MemoryResponseCache.cs (1)
14_cache = cache ?? throw new ArgumentNullException(nameof(cache));
Microsoft.AspNetCore.Rewrite (1)
IISUrlRewrite\UrlRewriteRuleBuilder.cs (1)
36throw new ArgumentNullException(nameof(action), "Rules must contain an action");
Microsoft.AspNetCore.Routing (15)
Builder\EndpointRouteBuilderExtensions.cs (1)
38endpoints.MapGroup(RoutePatternFactory.Parse(prefix ?? throw new ArgumentNullException(nameof(prefix))));
DataTokensMetadata.cs (1)
25DataTokens = dataTokens ?? throw new ArgumentNullException(nameof(dataTokens));
DefaultEndpointRouteBuilder.cs (1)
12ApplicationBuilder = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder));
EndpointMiddleware.cs (3)
28_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 29_next = next ?? throw new ArgumentNullException(nameof(next)); 30_routeOptions = routeOptions?.Value ?? throw new ArgumentNullException(nameof(routeOptions));
EndpointRoutingMiddleware.cs (4)
46_matcherFactory = matcherFactory ?? throw new ArgumentNullException(nameof(matcherFactory)); 47_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 48_diagnosticListener = diagnosticListener ?? throw new ArgumentNullException(nameof(diagnosticListener)); 50_next = next ?? throw new ArgumentNullException(nameof(next));
Matching\CandidateSet.cs (1)
365throw new ArgumentNullException(parameter);
Matching\PolicyJumpTableEdge.cs (1)
18State = state ?? throw new System.ArgumentNullException(nameof(state));
Matching\PolicyNodeEdge.cs (2)
20State = state ?? throw new System.ArgumentNullException(nameof(state)); 21Endpoints = endpoints ?? throw new System.ArgumentNullException(nameof(endpoints));
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54Property = property ?? throw new ArgumentNullException(nameof(property));
Microsoft.AspNetCore.Routing.Abstractions (2)
RouteContext.cs (1)
21HttpContext = httpContext ?? throw new ArgumentNullException(nameof(httpContext));
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54Property = property ?? throw new ArgumentNullException(nameof(property));
Microsoft.AspNetCore.Server.Kestrel.Core (14)
EndpointConfiguration.cs (3)
18ListenOptions = listenOptions ?? throw new ArgumentNullException(nameof(listenOptions)); 19HttpsOptions = httpsOptions ?? throw new ArgumentNullException(nameof(httpsOptions)); 20ConfigSection = configSection ?? throw new ArgumentNullException(nameof(configSection));
Internal\ConfigurationReader.cs (1)
32_configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
KestrelConfigurationLoader.cs (1)
89EndpointConfigurations[name] = configureOptions ?? throw new ArgumentNullException(nameof(configureOptions));
KestrelServer.cs (1)
35new[] { transportFactory ?? throw new ArgumentNullException(nameof(transportFactory)) },
KestrelServerOptions.cs (4)
161set => _requestHeaderEncodingSelector = value ?? throw new ArgumentNullException(nameof(value)); 171set => _responseHeaderEncodingSelector = value ?? throw new ArgumentNullException(nameof(value)); 261EndpointDefaults = configureOptions ?? throw new ArgumentNullException(nameof(configureOptions)); 277HttpsDefaults = configureOptions ?? throw new ArgumentNullException(nameof(configureOptions));
Middleware\LoggingConnectionMiddleware.cs (2)
16_next = next ?? throw new ArgumentNullException(nameof(next)); 17_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
19_multiplexedNext = multiplexedNext ?? throw new ArgumentNullException(nameof(multiplexedNext)); 20_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Microsoft.AspNetCore.Session (1)
SessionOptions.cs (1)
31set => _cookieBuilder = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
499throw new ArgumentNullException("key");
src\Shared\PropertyActivator\PropertyActivator.cs (2)
21PropertyInfo = propertyInfo ?? throw new ArgumentNullException(nameof(propertyInfo)); 22_valueAccessor = valueAccessor ?? throw new ArgumentNullException(nameof(valueAccessor));
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54Property = property ?? throw new ArgumentNullException(nameof(property));
Microsoft.AspNetCore.SignalR.Client (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (4)
237_connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory)); 238_protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); 239_endPoint = endPoint ?? throw new ArgumentNullException(nameof(endPoint)); 240_serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
Microsoft.AspNetCore.SignalR.Core (6)
HubOptionsExtensions.cs (5)
21_ = options ?? throw new ArgumentNullException(nameof(options)); 22_ = hubFilter ?? throw new ArgumentNullException(nameof(hubFilter)); 39_ = options ?? throw new ArgumentNullException(nameof(options)); 51_ = options ?? throw new ArgumentNullException(nameof(options)); 52_ = filterType ?? throw new ArgumentNullException(nameof(filterType));
Internal\DefaultHubProtocolResolver.cs (1)
34protocolName = protocolName ?? throw new ArgumentNullException(nameof(protocolName));
Microsoft.AspNetCore.SpaProxy (8)
SpaProxyMiddleware.cs (5)
37_next = next ?? throw new ArgumentNullException(nameof(next)); 38_spaProxyLaunchManager = spaProxyLaunchManager ?? throw new ArgumentNullException(nameof(spaProxyLaunchManager)); 39_options = options ?? throw new ArgumentNullException(nameof(options)); 40_hostLifetime = hostLifetime ?? throw new ArgumentNullException(nameof(hostLifetime)); 41_logger = logger ?? throw new ArgumentNullException(nameof(logger));
SpaProxyStartupFilter.cs (3)
22_spaProxyLaunchManager = spaProxyLaunchManager ?? throw new ArgumentNullException(nameof(spaProxyLaunchManager)); 23_hostLifetime = hostLifetime ?? throw new ArgumentNullException(nameof(hostLifetime)); 24_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Microsoft.AspNetCore.SpaServices.Extensions (4)
DefaultSpaBuilder.cs (2)
17?? throw new ArgumentNullException(nameof(applicationBuilder)); 20?? throw new ArgumentNullException(nameof(options));
Util\EventedStreamReader.cs (1)
28_streamReader = streamReader ?? throw new ArgumentNullException(nameof(streamReader));
Util\EventedStreamStringReader.cs (1)
21?? throw new ArgumentNullException(nameof(eventedStreamReader));
Microsoft.AspNetCore.StaticFiles (2)
StaticFileResponseContext.cs (2)
21Context = context ?? throw new ArgumentNullException(nameof(context)); 22File = file ?? throw new ArgumentNullException(nameof(file));
Microsoft.AspNetCore.TestHost (15)
ClientHandler.cs (1)
34_application = application ?? throw new ArgumentNullException(nameof(application));
HttpContextBuilder.cs (1)
32_application = application ?? throw new ArgumentNullException(nameof(application));
RequestBuilder.cs (1)
22TestServer = server ?? throw new ArgumentNullException(nameof(server));
ResponseBodyPipeWriter.cs (2)
19_pipe = pipe ?? throw new ArgumentNullException(nameof(pipe)); 20_onFirstWriteAsync = onFirstWriteAsync ?? throw new ArgumentNullException(nameof(onFirstWriteAsync));
ResponseBodyReaderStream.cs (2)
26_pipe = pipe ?? throw new ArgumentNullException(nameof(pipe)); 27_abortRequest = abortRequest ?? throw new ArgumentNullException(nameof(abortRequest));
TestServer.cs (6)
48Services = services ?? throw new ArgumentNullException(nameof(services)); 49Features = featureCollection ?? throw new ArgumentNullException(nameof(featureCollection)); 50var options = optionsAccessor?.Value ?? throw new ArgumentNullException(nameof(optionsAccessor)); 73Services = services ?? throw new ArgumentNullException(nameof(services)); 74Features = featureCollection ?? throw new ArgumentNullException(nameof(featureCollection)); 95Features = featureCollection ?? throw new ArgumentNullException(nameof(featureCollection));
TestWebSocket.cs (1)
198throw new ArgumentNullException(nameof(buffer));
WebSocketClient.cs (1)
24_application = application ?? throw new ArgumentNullException(nameof(application));
Microsoft.AspNetCore.Testing (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.AspNetCore.WebUtilities (8)
HttpRequestStreamReader.cs (4)
72_stream = stream ?? throw new ArgumentNullException(nameof(stream)); 73_encoding = encoding ?? throw new ArgumentNullException(nameof(encoding)); 74_bytePool = bytePool ?? throw new ArgumentNullException(nameof(bytePool)); 75_charPool = charPool ?? throw new ArgumentNullException(nameof(charPool));
HttpResponseStreamWriter.cs (4)
68_stream = stream ?? throw new ArgumentNullException(nameof(stream)); 69Encoding = encoding ?? throw new ArgumentNullException(nameof(encoding)); 70_bytePool = bytePool ?? throw new ArgumentNullException(nameof(bytePool)); 71_charPool = charPool ?? throw new ArgumentNullException(nameof(charPool));
Microsoft.Bcl.AsyncInterfaces (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Bcl.Numerics (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Build (20)
Collections\RetrievableEntryHashSet\HashSetDebugView.cs (1)
21_set = set ?? throw new ArgumentNullException(nameof(set));
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (4)
167throw new ArgumentNullException(nameof(collection)); 520throw new ArgumentNullException(nameof(info)); 624throw new ArgumentNullException(nameof(other)); 658throw new ArgumentNullException(nameof(array));
Construction\Solution\SolutionFile.cs (1)
234throw new ArgumentNullException(nameof(FullPath));
CoreCLRAssemblyLoader.cs (2)
35throw new ArgumentNullException(nameof(fullPath)); 48throw new ArgumentNullException(nameof(fullPath));
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
Evaluation\Expander.cs (3)
3492throw new ArgumentNullException(nameof(evaluator)); 3497throw new ArgumentNullException(nameof(stringBuilder)); 3512throw new ArgumentNullException(nameof(regex));
Evaluation\IntrinsicFunctions.cs (1)
778throw new ArgumentNullException(nameof(keyName));
FileMatcher.cs (1)
1694throw new ArgumentNullException(nameof(pattern));
Graph\ProjectGraph.cs (2)
868Node = node ?? throw new ArgumentNullException(nameof(node)); 869RequestedTargets = targets ?? throw new ArgumentNullException(nameof(targets));
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (1)
133throw new ArgumentNullException(nameof(item));
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (2)
34throw new ArgumentNullException(nameof(allItems)); 38_itemsByType = itemsByType ?? throw new ArgumentNullException(nameof(itemsByType));
Utilities\SimpleVersion.cs (1)
109throw new ArgumentNullException(nameof(input));
Microsoft.Build.Engine.OM.UnitTests (1)
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
Microsoft.Build.Engine.UnitTests (11)
BackEnd\BinaryTranslator_Tests.cs (3)
186Exception value = new ArgumentNullException("The argument was null"); 206value = new ArgumentNullException("The argument was null", e); 229throw new ArgumentNullException("The argument was null", e);
BackEnd\MockHost.cs (2)
108throw new ArgumentNullException($"Attempted to create an override cache with a null {nameof(overrideConfigCache)}."); 112throw new ArgumentNullException($"Attempted to create an override cache with a null {nameof(overrideResultsCache)}.");
BackEnd\TaskHostTaskComplete_Tests.cs (2)
67new OutOfProcTaskHostTaskResult(TaskCompleteType.CrashedDuringExecution, new ArgumentNullException()), 102AssertInvalidConstructorThrows(typeof(InternalErrorException), TaskCompleteType.Success, new ArgumentNullException(), "ExceptionlessErrorMessage", null, null, null);
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (2)
58throw new ArgumentNullException(nameof(metadataName)); 138throw new ArgumentNullException(nameof(array));
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
557Template = template ?? throw new ArgumentNullException(nameof(template)); 582Template = template ?? throw new ArgumentNullException(nameof(template));
Microsoft.Build.Framework (40)
ICollectionDebugView`1.cs (1)
23_collection = collection ?? throw new ArgumentNullException(nameof(collection));
IDictionaryDebugView`2.cs (3)
24_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 45_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 66_collection = collection ?? throw new ArgumentNullException(nameof(collection));
ImmutableSegmentedDictionary.cs (5)
49throw new ArgumentNullException(nameof(builder)); 58throw new ArgumentNullException(nameof(items)); 74throw new ArgumentNullException(nameof(source)); 76throw new ArgumentNullException(nameof(keySelector)); 78throw new ArgumentNullException(nameof(elementSelector));
ImmutableSegmentedDictionary`2.cs (3)
79_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 222throw new ArgumentNullException(nameof(keys)); 245throw new ArgumentNullException(nameof(items));
ImmutableSegmentedDictionary`2+Builder.cs (3)
42throw new ArgumentNullException(nameof(value)); 115throw new ArgumentNullException(nameof(items)); 187throw new ArgumentNullException(nameof(keys));
ImmutableSegmentedList.cs (1)
46throw new ArgumentNullException(nameof(builder));
ImmutableSegmentedList`1.cs (2)
405throw new ArgumentNullException(nameof(items)); 429throw new ArgumentNullException(nameof(items));
ImmutableSegmentedList`1+ValueBuilder.cs (1)
90throw new ArgumentNullException(nameof(items));
OperatingSystem.cs (1)
19return platform?.Equals("WINDOWS", StringComparison.OrdinalIgnoreCase) ?? throw new ArgumentNullException(nameof(platform));
RoslynImmutableInterlocked.cs (17)
33throw new ArgumentNullException(nameof(transformer)); 74throw new ArgumentNullException(nameof(transformer)); 156throw new ArgumentNullException(nameof(transformer)); 199throw new ArgumentNullException(nameof(transformer)); 271throw new ArgumentNullException(nameof(valueFactory)); 275throw new ArgumentNullException(nameof(location)); 291throw new ArgumentNullException(nameof(valueFactory)); 295throw new ArgumentNullException(nameof(location)); 314throw new ArgumentNullException(nameof(location)); 339throw new ArgumentNullException(nameof(addValueFactory)); 341throw new ArgumentNullException(nameof(updateValueFactory)); 348throw new ArgumentNullException(nameof(location)); 377throw new ArgumentNullException(nameof(updateValueFactory)); 384throw new ArgumentNullException(nameof(location)); 416throw new ArgumentNullException(nameof(location)); 443throw new ArgumentNullException(nameof(location)); 470throw new ArgumentNullException(nameof(location));
SegmentedArray`1.cs (1)
354_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
ThrowHelper.cs (1)
141return new ArgumentNullException(GetArgumentName(argument));
XamlTypes\ContentType.cs (1)
101throw new ArgumentNullException(nameof(metadataName));
Microsoft.Build.Tasks.Core (41)
AddToWin32Manifest.cs (2)
65set => _outputDirectory = value ?? throw new ArgumentNullException(nameof(OutputDirectory)); 75set => _supportedArchitectures = value ?? throw new ArgumentNullException(nameof(SupportedArchitectures));
BootstrapperUtil\Product.cs (1)
161throw new ArgumentNullException(nameof(package));
DownloadFile.cs (1)
318throw new ArgumentNullException(nameof(requestUri));
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
FileMatcher.cs (1)
1694throw new ArgumentNullException(nameof(pattern));
GenerateManifestBase.cs (1)
433throw new ArgumentNullException(nameof(manifestType));
ManifestUtil\ApplicationIdentity.cs (6)
31throw new ArgumentNullException(nameof(url)); 36throw new ArgumentNullException(nameof(deployManifestPath)); 41throw new ArgumentNullException(nameof(applicationManifestPath)); 58throw new ArgumentNullException(nameof(url)); 62_deployManifestIdentity = deployManifestIdentity ?? throw new ArgumentNullException(nameof(deployManifestIdentity)); 63_applicationManifestIdentity = applicationManifestIdentity ?? throw new ArgumentNullException(nameof(applicationManifestIdentity));
ManifestUtil\AssemblyIdentity.cs (1)
399throw new ArgumentNullException(nameof(frameworkIdentifier));
ManifestUtil\EmbeddedManifestReader.cs (1)
64throw new ArgumentNullException(nameof(path));
ManifestUtil\Manifest.cs (1)
236throw new ArgumentNullException(nameof(searchPaths));
ManifestUtil\ManifestReader.cs (1)
113throw new ArgumentNullException(nameof(path));
ManifestUtil\mansign2.cs (4)
320_manifestDom = manifestDom ?? throw new ArgumentNullException(nameof(manifestDom)); 338throw new ArgumentNullException(nameof(signer)); 1065throw new ArgumentNullException(nameof(strongNameKey)); 1072throw new ArgumentNullException(nameof(strongNameKey));
ManifestUtil\OutputMessage.cs (2)
46Name = name ?? throw new ArgumentNullException(nameof(name)); 47_arguments = arguments ?? throw new ArgumentNullException(nameof(arguments));
ManifestUtil\PathUtil.cs (3)
78throw new ArgumentNullException(nameof(path)); 140throw new ArgumentNullException(nameof(path)); 153throw new ArgumentNullException(nameof(path));
ManifestUtil\RSAPKCS1SHA256SignatureDescription.cs (2)
31throw new ArgumentNullException(nameof(key)); 43throw new ArgumentNullException(nameof(key));
ManifestUtil\SecurityUtil.cs (3)
563throw new ArgumentNullException(nameof(certThumbprint)); 653throw new ArgumentNullException(nameof(cert)); 658throw new ArgumentNullException(nameof(path));
RedistList.cs (4)
100throw new ArgumentNullException(nameof(assemblyTableInfos)); 341throw new ArgumentNullException(nameof(assemblyTables)); 372throw new ArgumentNullException(nameof(assemblyName)); 383throw new ArgumentNullException(nameof(assemblyName));
system.design\stronglytypedresourcebuilder.cs (6)
118throw new ArgumentNullException(nameof(resourceList)); 140throw new ArgumentNullException(nameof(baseName)); 144throw new ArgumentNullException(nameof(codeProvider)); 271throw new ArgumentNullException(nameof(resxFile)); 675throw new ArgumentNullException(nameof(key)); 680throw new ArgumentNullException(nameof(provider));
Microsoft.Build.Tasks.UnitTests (1)
RoslynCodeTaskFactory_Tests.cs (1)
770throw new ArgumentNullException(nameof(expectedErrorMessage));
Microsoft.Build.Utilities.Core (5)
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
FileMatcher.cs (1)
1694throw new ArgumentNullException(nameof(pattern));
FileUtilities.cs (1)
1582throw new ArgumentNullException(nameof(buffer));
LockCheck.cs (1)
290throw new ArgumentNullException(nameof(paths));
MuxLogger.cs (1)
232throw new ArgumentNullException(nameof(logger));
Microsoft.Cci.Extensions (8)
Filters\CciFilterExtensions.cs (5)
13throw new ArgumentNullException(nameof(left)); 16throw new ArgumentNullException(nameof(right)); 24throw new ArgumentNullException(nameof(left)); 27throw new ArgumentNullException(nameof(right)); 35throw new ArgumentNullException(nameof(filter));
Mappings\AssemblySetMapping.cs (1)
30throw new ArgumentNullException("element", "Element contained a null entry.");
Mappings\ElementMapping.cs (1)
53throw new ArgumentNullException("element");
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
146throw new ArgumentNullException(nameof(value));
Microsoft.CodeAnalysis (298)
AdditionalTextFile.cs (1)
28throw new ArgumentNullException(nameof(compiler));
Collections\ImmutableHashSetExtensions.cs (2)
21throw new ArgumentNullException(nameof(set)); 23throw new ArgumentNullException(nameof(other));
Collections\Rope.cs (3)
32throw new ArgumentNullException(nameof(s)); 43throw new ArgumentNullException(nameof(r1)); 46throw new ArgumentNullException(nameof(r2));
CommandLine\AnalyzerConfigSet.cs (1)
181throw new ArgumentNullException(nameof(sourcePath));
CommandLine\CommandLineArguments.cs (3)
342throw new ArgumentNullException(nameof(outputFileName)); 362throw new ArgumentNullException(nameof(outputFileName)); 386throw new ArgumentNullException(nameof(metadataResolver));
CommandLine\ErrorLogOptions.cs (1)
33throw new ArgumentNullException(nameof(path));
CommandLine\TouchedFileLogger.cs (2)
33if (path == null) throw new ArgumentNullException(path); 43if (path == null) throw new ArgumentNullException(path);
Compilation\Compilation.cs (33)
350throw new ArgumentNullException(nameof(name)); 370throw new ArgumentNullException(nameof(container)); 375throw new ArgumentNullException(nameof(name)); 387=> CommonCreatePreprocessingSymbol(name ?? throw new ArgumentNullException(nameof(name))); 678throw new ArgumentNullException($"{nameof(references)}[{i}]"); 798throw new ArgumentNullException(nameof(references)); 828throw new ArgumentNullException(nameof(references)); 872throw new ArgumentNullException(nameof(oldReference)); 1304throw new ArgumentNullException(nameof(elementTypes)); 1321throw new ArgumentNullException($"{nameof(elementTypes)}[{i}]"); 1326throw new ArgumentNullException($"{nameof(elementLocations)}[{i}]"); 1421throw new ArgumentNullException(nameof(underlyingType)); 1462throw new ArgumentNullException(nameof(memberTypes)); 1467throw new ArgumentNullException(nameof(memberNames)); 1498throw new ArgumentNullException($"{nameof(memberTypes)}[{i}]"); 1503throw new ArgumentNullException($"{nameof(memberNames)}[{i}]"); 1508throw new ArgumentNullException($"{nameof(memberLocations)}[{i}]"); 1553throw new ArgumentNullException(nameof(returnType)); 1556throw new ArgumentNullException(nameof(leftType)); 1559throw new ArgumentNullException(nameof(rightType)); 1580throw new ArgumentNullException(nameof(returnType)); 1583throw new ArgumentNullException(nameof(operandType)); 1633throw new ArgumentNullException(nameof(symbol)); 1638throw new ArgumentNullException(nameof(within)); 2828throw new ArgumentNullException(nameof(peStream)); 3117throw new ArgumentNullException(nameof(baseline)); 3125throw new ArgumentNullException(nameof(edits)); 3130throw new ArgumentNullException(nameof(isAddedSymbol)); 3135throw new ArgumentNullException(nameof(metadataStream)); 3140throw new ArgumentNullException(nameof(ilStream)); 3145throw new ArgumentNullException(nameof(pdbStream)); 3814throw new ArgumentNullException(nameof(diagnostic)); 3844throw new ArgumentNullException(nameof(diagnostic));
Diagnostic\Diagnostic.cs (4)
152throw new ArgumentNullException(nameof(descriptor)); 264throw new ArgumentNullException(nameof(id)); 269throw new ArgumentNullException(nameof(category)); 274throw new ArgumentNullException(nameof(message));
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
112throw new ArgumentNullException(nameof(location));
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
47_descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor)); 184throw new ArgumentNullException(nameof(location));
Diagnostic\DiagnosticDescriptor.cs (4)
171throw new ArgumentNullException(nameof(messageFormat)); 176throw new ArgumentNullException(nameof(category)); 181throw new ArgumentNullException(nameof(title)); 239throw new ArgumentNullException(nameof(compilationOptions));
Diagnostic\DiagnosticFormatter.cs (1)
27throw new ArgumentNullException(nameof(diagnostic));
Diagnostic\DiagnosticWithInfo.cs (1)
199throw new ArgumentNullException(nameof(location));
Diagnostic\FileLinePositionSpan.cs (1)
63Path = path ?? throw new ArgumentNullException(nameof(path));
Diagnostic\LocalizableResourceString.cs (4)
46throw new ArgumentNullException(nameof(nameOfLocalizableResource)); 51throw new ArgumentNullException(nameof(resourceManager)); 56throw new ArgumentNullException(nameof(resourceSource)); 61throw new ArgumentNullException(nameof(formatArguments));
Diagnostic\Location.cs (4)
162throw new ArgumentNullException(nameof(syntaxTree)); 175throw new ArgumentNullException(nameof(filePath)); 188throw new ArgumentNullException(nameof(filePath)); 193throw new ArgumentNullException(nameof(mappedFilePath));
Diagnostic\SuppressionDescriptor.cs (2)
70this.Justification = justification ?? throw new ArgumentNullException(nameof(justification)); 106throw new ArgumentNullException(nameof(compilationOptions));
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
58_assemblyLoader = assemblyLoader ?? throw new ArgumentNullException(nameof(assemblyLoader));
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (1)
55throw new ArgumentNullException(nameof(message));
DiagnosticAnalyzer\AnalyzerOptions.cs (1)
38throw new ArgumentNullException(nameof(optionsProvider));
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (8)
117throw new ArgumentNullException(nameof(compilation)); 122throw new ArgumentNullException(nameof(analysisOptions)); 190throw new ArgumentNullException(nameof(model)); 203throw new ArgumentNullException(nameof(tree)); 216throw new ArgumentNullException(nameof(file)); 1171throw new ArgumentNullException(nameof(diagnostics)); 1176throw new ArgumentNullException(nameof(compilation)); 1227throw new ArgumentNullException(nameof(options));
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
1358throw new ArgumentNullException(nameof(operationBlock)); 1491throw new ArgumentNullException(nameof(operationBlock));
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (7)
53throw new ArgumentNullException(nameof(diagnostic)); 113throw new ArgumentNullException(nameof(action)); 121throw new ArgumentNullException(nameof(symbolKinds)); 135throw new ArgumentNullException(nameof(syntaxKinds)); 148throw new ArgumentNullException(nameof(operationKinds)); 162throw new ArgumentNullException(nameof(key)); 167throw new ArgumentNullException(nameof(valueProvider));
DiagnosticAnalyzer\DiagnosticAnalyzerAttribute.cs (2)
29throw new ArgumentNullException(nameof(firstLanguage)); 34throw new ArgumentNullException(nameof(additionalLanguages));
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
989throw new ArgumentNullException(nameof(otherActions));
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
70throw new ArgumentNullException(nameof(baseDirectory));
DiagnosticAnalyzer\Suppression.cs (2)
19Descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor)); 20SuppressedDiagnostic = suppressedDiagnostic ?? throw new ArgumentNullException(nameof(suppressedDiagnostic));
DiagnosticAnalyzer\UnresolvedAnalyzerReference.cs (1)
24throw new ArgumentNullException(nameof(unresolvedPath));
DiaSymReader\Writer\SymUnmanagedSequencePointsWriter.cs (1)
29_writer = writer ?? throw new ArgumentNullException(nameof(writer));
DiaSymReader\Writer\SymUnmanagedWriterFactory.cs (1)
38throw new ArgumentNullException(nameof(metadataProvider));
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (14)
60throw new ArgumentNullException(nameof(stream)); 153throw new ArgumentNullException(nameof(name)); 218if (offsets == null) throw new ArgumentNullException(nameof(offsets)); 219if (startLines == null) throw new ArgumentNullException(nameof(startLines)); 220if (startColumns == null) throw new ArgumentNullException(nameof(startColumns)); 221if (endLines == null) throw new ArgumentNullException(nameof(endLines)); 222if (endColumns == null) throw new ArgumentNullException(nameof(endColumns)); 464throw new ArgumentNullException(nameof(importString)); 486if (yieldOffsets == null) throw new ArgumentNullException(nameof(yieldOffsets)); 487if (resumeOffsets == null) throw new ArgumentNullException(nameof(resumeOffsets)); 544throw new ArgumentNullException(nameof(metadata)); 609throw new ArgumentNullException(nameof(data)); 636throw new ArgumentNullException(nameof(data)); 774throw new ArgumentNullException(nameof(name));
DocumentationCommentId.cs (16)
54throw new ArgumentNullException(nameof(symbol)); 73throw new ArgumentNullException(nameof(symbol)); 102throw new ArgumentNullException(nameof(id)); 107throw new ArgumentNullException(nameof(compilation)); 130throw new ArgumentNullException(nameof(id)); 135throw new ArgumentNullException(nameof(compilation)); 140throw new ArgumentNullException(nameof(results)); 153throw new ArgumentNullException(nameof(id)); 158throw new ArgumentNullException(nameof(compilation)); 180throw new ArgumentNullException(nameof(id)); 185throw new ArgumentNullException(nameof(compilation)); 208throw new ArgumentNullException(nameof(id)); 213throw new ArgumentNullException(nameof(compilation)); 218throw new ArgumentNullException(nameof(results)); 236throw new ArgumentNullException(nameof(id)); 241throw new ArgumentNullException(nameof(compilation));
EmbeddedText.cs (4)
103throw new ArgumentNullException(nameof(text)); 142throw new ArgumentNullException(nameof(stream)); 181throw new ArgumentNullException(nameof(bytes)); 199throw new ArgumentNullException(nameof(filePath));
Emit\EditAndContinue\EmitBaseline.cs (4)
147throw new ArgumentNullException(nameof(compilation)); 152throw new ArgumentNullException(nameof(module)); 157throw new ArgumentNullException(nameof(debugInformationProvider)); 162throw new ArgumentNullException(nameof(localSignatureProvider));
Emit\SemanticEdit.cs (3)
113throw new ArgumentNullException(nameof(oldSymbol)); 118throw new ArgumentNullException(nameof(newSymbol)); 124throw new ArgumentNullException(nameof(syntaxMap));
FileSystem\CompilerPathUtilities.cs (1)
15throw new ArgumentNullException(argumentName);
FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
FileSystemExtensions.cs (1)
43throw new ArgumentNullException(nameof(compilation));
Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
MetadataReference\AssemblyIdentity.cs (1)
526throw new ArgumentNullException(nameof(assembly));
MetadataReference\AssemblyIdentity.DisplayName.cs (2)
160throw new ArgumentNullException(nameof(displayName)); 219throw new ArgumentNullException(nameof(displayName));
MetadataReference\AssemblyMetadata.cs (2)
183throw new ArgumentNullException(nameof(module)); 209throw new ArgumentNullException(nameof(modules) + "[" + i + "]");
MetadataReference\CompilationReference.cs (1)
31throw new ArgumentNullException(nameof(compilation));
MetadataReference\MetadataReference.cs (1)
341throw new ArgumentNullException(nameof(assembly));
MetadataReference\ModuleMetadata.cs (6)
90throw new ArgumentNullException(nameof(onDispose)); 102throw new ArgumentNullException(nameof(metadata)); 134throw new ArgumentNullException(nameof(peImage)); 154throw new ArgumentNullException(nameof(peImage)); 169throw new ArgumentNullException(nameof(peImage)); 212throw new ArgumentNullException(nameof(peStream));
Operations\ControlFlowGraph.cs (5)
87throw new ArgumentNullException(nameof(node)); 92throw new ArgumentNullException(nameof(semanticModel)); 177throw new ArgumentNullException(argumentNameForException); 233throw new ArgumentNullException(nameof(localFunction)); 282throw new ArgumentNullException(nameof(anonymousFunction));
Operations\ControlFlowGraphExtensions.cs (4)
22throw new ArgumentNullException(nameof(controlFlowGraph)); 27throw new ArgumentNullException(nameof(localFunction)); 53throw new ArgumentNullException(nameof(controlFlowGraph)); 58throw new ArgumentNullException(nameof(anonymousFunction));
Operations\OperationExtensions.cs (12)
32throw new ArgumentNullException(nameof(operation)); 37throw new ArgumentNullException(nameof(compilation)); 132throw new ArgumentNullException(nameof(declarationGroup)); 152throw new ArgumentNullException(nameof(declaration)); 177throw new ArgumentNullException(nameof(declarationOperation)); 192throw new ArgumentNullException(nameof(dynamicOperation)); 207throw new ArgumentNullException(nameof(dynamicOperation)); 222throw new ArgumentNullException(nameof(dynamicOperation)); 260throw new ArgumentNullException(nameof(dynamicOperation)); 277throw new ArgumentNullException(nameof(dynamicOperation)); 294throw new ArgumentNullException(nameof(dynamicOperation)); 355throw new ArgumentNullException(nameof(operation));
ResourceDescription.cs (3)
66throw new ArgumentNullException(nameof(dataProvider)); 71throw new ArgumentNullException(nameof(resourceName)); 83throw new ArgumentNullException(nameof(fileName));
SourceFileResolver.cs (1)
44throw new ArgumentNullException(nameof(searchPaths));
SourceGeneration\AdditionalSourcesCollection.cs (1)
40throw new ArgumentNullException(nameof(hintName));
SourceGeneration\GeneratorAttribute.cs (2)
34throw new ArgumentNullException(nameof(firstLanguage)); 39throw new ArgumentNullException(nameof(additionalLanguages));
SourceGeneration\GeneratorDriver.cs (4)
151throw new ArgumentNullException(nameof(oldText)); 155throw new ArgumentNullException(nameof(newText)); 166: throw new ArgumentNullException(nameof(newOptions)); 170: throw new ArgumentNullException(nameof(newOptions));
SourceGeneration\SyntaxContextReceiverAdaptor.cs (1)
16Receiver = receiver ?? throw new ArgumentNullException(nameof(receiver));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
SymbolDisplay\SymbolDisplayPart.cs (1)
49throw new ArgumentNullException(nameof(text));
Syntax\GreenNode.cs (2)
522throw new ArgumentNullException(nameof(annotationKind)); 550throw new ArgumentNullException(nameof(annotationKinds));
Syntax\SeparatedSyntaxList.cs (4)
387throw new ArgumentNullException(nameof(node)); 402throw new ArgumentNullException(nameof(nodes)); 518throw new ArgumentNullException(nameof(newNode)); 539throw new ArgumentNullException(nameof(newNodes));
Syntax\SyntaxDiffer.cs (2)
50throw new ArgumentNullException(nameof(after)); 86throw new ArgumentNullException(nameof(after));
Syntax\SyntaxList`1.cs (4)
244throw new ArgumentNullException(nameof(node)); 264throw new ArgumentNullException(nameof(nodes)); 322throw new ArgumentNullException(nameof(nodeInList)); 327throw new ArgumentNullException(nameof(newNodes));
Syntax\SyntaxListBuilder.cs (1)
34throw new ArgumentNullException();
Syntax\SyntaxNodeExtensions_Tracking.cs (3)
39throw new ArgumentNullException(nameof(nodes)); 81throw new ArgumentNullException(nameof(node)); 110throw new ArgumentNullException(nameof(nodes));
Syntax\SyntaxNodeOrToken.cs (3)
629throw new ArgumentNullException(nameof(annotations)); 660throw new ArgumentNullException(nameof(annotations)); 683throw new ArgumentNullException(nameof(annotationKind));
Syntax\SyntaxNodeOrTokenList.cs (3)
80throw new ArgumentNullException(nameof(nodesAndTokens)); 105throw new ArgumentNullException(nameof(nodesAndTokens)); 333throw new ArgumentNullException(nameof(nodesAndTokens));
Syntax\SyntaxToken.cs (3)
307throw new ArgumentNullException(nameof(annotations)); 337throw new ArgumentNullException(nameof(annotations)); 359throw new ArgumentNullException(nameof(annotationKind));
Syntax\SyntaxTokenList.cs (1)
358throw new ArgumentNullException(nameof(tokens));
Syntax\SyntaxTrivia.cs (3)
307throw new ArgumentNullException(nameof(annotations)); 336throw new ArgumentNullException(nameof(annotations)); 357throw new ArgumentNullException(nameof(annotationKind));
Syntax\SyntaxTriviaList.cs (1)
327throw new ArgumentNullException(nameof(trivia));
Text\ChangedText.cs (1)
173throw new ArgumentNullException(nameof(oldText));
Text\CompositeText.cs (1)
132throw new ArgumentNullException(nameof(destination));
Text\SourceText.cs (6)
109throw new ArgumentNullException(nameof(text)); 139throw new ArgumentNullException(nameof(reader)); 189throw new ArgumentNullException(nameof(stream)); 259throw new ArgumentNullException(nameof(buffer)); 752throw new ArgumentNullException(nameof(changes)); 881throw new ArgumentNullException(nameof(oldText));
Text\SubText.cs (1)
22throw new ArgumentNullException(nameof(text));
Text\TextChange.cs (1)
43throw new ArgumentNullException(nameof(newText));
Text\TextChangeEventArgs.cs (1)
28throw new ArgumentNullException(nameof(changes));
Text\TextLine.cs (1)
38throw new ArgumentNullException(nameof(text));
Microsoft.CodeAnalysis.Analyzers (123)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
Microsoft.CodeAnalysis.AnalyzerUtilities (180)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.cs (1)
55throw new ArgumentNullException(nameof(cfg));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysis.cs (1)
75throw new ArgumentNullException(nameof(cfg));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (2)
58this.MapFromValueContentAbstractValue = mapFromValueContentAbstractValueCallback ?? throw new ArgumentNullException(nameof(mapFromValueContentAbstractValueCallback)); 68this.MapFromPointsToAbstractValue = mapFromPointsToAbstractValueCallback ?? throw new ArgumentNullException(nameof(mapFromPointsToAbstractValueCallback));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\HazardousUsageEvaluator.cs (7)
40MethodName = trackedTypeMethodName ?? throw new ArgumentNullException(nameof(trackedTypeMethodName)); 41InvocationEvaluator = evaluator ?? throw new ArgumentNullException(nameof(evaluator)); 56ContainingTypeName = containingType ?? throw new ArgumentNullException(nameof(containingType)); 57MethodName = methodName ?? throw new ArgumentNullException(nameof(methodName)); 58ParameterNameOfPropertySetObject = parameterNameOfPropertySetObject ?? throw new ArgumentNullException(nameof(parameterNameOfPropertySetObject)); 59InvocationEvaluator = evaluator ?? throw new ArgumentNullException(nameof(evaluator)); 80ValueEvaluator = evaluator ?? throw new ArgumentNullException(nameof(evaluator));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\HazardousUsageEvaluatorCollection.cs (1)
26throw new ArgumentNullException(nameof(hazardousUsageEvaluators));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertyMapper.cs (8)
39PropertyName = propertyName ?? throw new ArgumentNullException(nameof(propertyName)); 40MapFromValueContentAbstractValue = mapFromValueContentAbstractValueCallback ?? throw new ArgumentNullException(nameof(mapFromValueContentAbstractValueCallback)); 52PropertyName = propertyName ?? throw new ArgumentNullException(nameof(propertyName)); 53MapFromValueContentAbstractValue = mapFromValueContentAbstractValueCallback ?? throw new ArgumentNullException(nameof(mapFromValueContentAbstractValueCallback)); 68PropertyName = propertyName ?? throw new ArgumentNullException(nameof(propertyName)); 69MapFromPointsToAbstractValue = mapFromPointsToAbstractValueCallback ?? throw new ArgumentNullException(nameof(mapFromPointsToAbstractValueCallback)); 81PropertyName = propertyName ?? throw new ArgumentNullException(nameof(propertyName)); 82MapFromPointsToAbstractValue = mapFromPointsToAbstractValueCallback ?? throw new ArgumentNullException(nameof(mapFromPointsToAbstractValueCallback));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertyMapperCollection.cs (1)
21throw new ArgumentNullException(nameof(propertyMappers));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (3)
63throw new ArgumentNullException(nameof(constructorMapper)); 68throw new ArgumentNullException(nameof(propertyMappers)); 73throw new ArgumentNullException(nameof(hazardousUsageEvaluators));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (3)
24FullTypeName = fullTypeName ?? throw new ArgumentNullException(nameof(fullTypeName)); 27SanitizingMethods = sanitizingMethods ?? throw new ArgumentNullException(nameof(sanitizingMethods)); 28SanitizingInstanceMethods = sanitizingInstanceMethods ?? throw new ArgumentNullException(nameof(sanitizingInstanceMethods));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (4)
20FullTypeName = fullTypeName ?? throw new ArgumentNullException(nameof(fullTypeName)); 21SinkKinds = sinkKinds ?? throw new ArgumentNullException(nameof(sinkKinds)); 24SinkProperties = sinkProperties ?? throw new ArgumentNullException(nameof(sinkProperties)); 25SinkMethodParameters = sinkMethodParameters ?? throw new ArgumentNullException(nameof(sinkMethodParameters));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (8)
53FullTypeName = fullTypeName ?? throw new ArgumentNullException(nameof(fullTypeName)); 55TaintedProperties = taintedProperties ?? throw new ArgumentNullException(nameof(taintedProperties)); 56TaintedArguments = taintedArguments ?? throw new ArgumentNullException(nameof(taintedArguments)); 57TaintedMethods = taintedMethods ?? throw new ArgumentNullException(nameof(taintedMethods)); 58TaintedMethodsNeedsPointsToAnalysis = taintedMethodsNeedsPointsToAnalysis ?? throw new ArgumentNullException(nameof(taintedMethodsNeedsPointsToAnalysis)); 59TaintedMethodsNeedsValueContentAnalysis = taintedMethodsNeedsValueContentAnalysis ?? throw new ArgumentNullException(nameof(taintedMethodsNeedsValueContentAnalysis)); 60TransferProperties = transferProperties ?? throw new ArgumentNullException(nameof(transferProperties)); 61TransferMethods = transferMethods ?? throw new ArgumentNullException(nameof(transferMethods));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SymbolAccess.cs (6)
19Symbol = symbol ?? throw new ArgumentNullException(nameof(symbol)); 22throw new ArgumentNullException(nameof(syntaxNode)); 26AccessingMethod = accessingMethod ?? throw new ArgumentNullException(nameof(accessingMethod)); 31Symbol = symbol ?? throw new ArgumentNullException(nameof(symbol)); 32Location = location ?? throw new ArgumentNullException(nameof(location)); 33AccessingMethod = accessingMethod ?? throw new ArgumentNullException(nameof(accessingMethod));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysisContext.cs (3)
60this.SourceInfos = taintedSourceInfos ?? throw new ArgumentNullException(nameof(taintedSourceInfos)); 61this.SanitizerInfos = taintedSanitizerInfos ?? throw new ArgumentNullException(nameof(taintedSanitizerInfos)); 62this.SinkInfos = taintedSinkInfos ?? throw new ArgumentNullException(nameof(taintedSinkInfos));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSourceSink.cs (1)
17Sink = sink ?? throw new ArgumentNullException(nameof(sink));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (2)
38throw new ArgumentNullException(nameof(wellKnownTypeProvider)); 43throw new ArgumentNullException(nameof(taintedDataInfos));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (2)
171throw new ArgumentNullException(nameof(otherState)); 262throw new ArgumentNullException(nameof(otherState));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.cs (2)
61throw new ArgumentNullException(nameof(cfg)); 95throw new ArgumentNullException(nameof(cfg));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityMapAbstractDomain.cs (2)
30_isTrackedEntity = isTrackedEntity ?? throw new ArgumentNullException(nameof(isTrackedEntity)); 31_isTrackedPointsToValue = isTrackedPointsToValue ?? throw new ArgumentNullException(nameof(isTrackedPointsToValue));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (1)
43throw new ArgumentNullException(nameof(analysisContext));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (2)
1049throw new ArgumentNullException(nameof(operation)); 1083throw new ArgumentNullException(nameof(operation));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
26ExceptionType = exceptionType ?? throw new ArgumentNullException(nameof(exceptionType));
src\RoslynAnalyzers\Utilities\FlowAnalysis\SingleThreadedConcurrentDictionary.cs (2)
44throw new ArgumentNullException(nameof(key)); 49throw new ArgumentNullException(nameof(valueFactory));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Microsoft.CodeAnalysis.BannedApiAnalyzers (123)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
Microsoft.CodeAnalysis.CodeStyle (103)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (4)
49throw new ArgumentNullException(nameof(descriptor)); 265throw new ArgumentNullException(nameof(descriptor)); 350throw new ArgumentNullException(nameof(messageFormat)); 355throw new ArgumentNullException(nameof(formatArguments));
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (4)
40diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 41options = options ?? throw new ArgumentNullException(nameof(options)); 95diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 96fadingOption = fadingOption ?? throw new ArgumentNullException(nameof(fadingOption));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Analyzers\Core\CodeFixes\AddParameter\CodeFixData.cs (2)
20public IMethodSymbol Method { get; } = method ?? throw new ArgumentNullException(nameof(method)); 25public Func<CancellationToken, Task<Solution>> CreateChangedSolutionNonCascading { get; } = createChangedSolutionNonCascading ?? throw new ArgumentNullException(nameof(createChangedSolutionNonCascading));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
Microsoft.CodeAnalysis.Collections.Package (64)
Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
Microsoft.CodeAnalysis.CSharp (80)
Binder\Semantics\SemanticFacts.cs (4)
30throw new ArgumentNullException(nameof(symbol)); 35throw new ArgumentNullException(nameof(within)); 55throw new ArgumentNullException(nameof(symbol)); 60throw new ArgumentNullException(nameof(within));
Compilation\CSharpCompilation.cs (20)
502throw new ArgumentNullException(nameof(referenceManager)); 848throw new ArgumentNullException(nameof(trees)); 869throw new ArgumentNullException($"{nameof(trees)}[{i}]"); 921throw new ArgumentNullException(nameof(trees)); 990throw new ArgumentNullException(nameof(oldTree)); 1192throw new ArgumentNullException(nameof(reference)); 2325throw new ArgumentNullException(nameof(source)); 2330throw new ArgumentNullException(nameof(destination)); 2396throw new ArgumentNullException(nameof(elementType)); 2414throw new ArgumentNullException(nameof(elementType)); 2542throw new ArgumentNullException(nameof(syntaxTree)); 4097throw new ArgumentNullException(nameof(returnType)); 4102throw new ArgumentNullException(nameof(parameterTypes)); 4109throw new ArgumentNullException($"{nameof(parameterTypes)}[{i}]"); 4115throw new ArgumentNullException(nameof(parameterRefKinds)); 4161throw new ArgumentNullException($"{nameof(callingConventionTypes)}[{index}]"); 4632throw new ArgumentNullException(nameof(predicate)); 4650throw new ArgumentNullException(nameof(predicate)); 4671throw new ArgumentNullException(nameof(name)); 4697throw new ArgumentNullException(nameof(name));
Compilation\CSharpSemanticModel.cs (19)
284throw new ArgumentNullException(nameof(expression)); 406throw new ArgumentNullException(nameof(attribute)); 786throw new ArgumentNullException(nameof(constructorInitializer)); 858throw new ArgumentNullException(nameof(constructorInitializer)); 1367throw new ArgumentNullException(nameof(syntax)); 1381throw new ArgumentNullException(nameof(syntax)); 1830throw new ArgumentNullException(nameof(symbol)); 2841throw new ArgumentNullException(nameof(destination)); 2910throw new ArgumentNullException(nameof(destination)); 4959throw new ArgumentNullException(nameof(node)); 4986throw new ArgumentNullException(nameof(node)); 5007throw new ArgumentNullException(nameof(node)); 5312throw new ArgumentNullException(nameof(firstStatement)); 5317throw new ArgumentNullException(nameof(lastStatement)); 5337throw new ArgumentNullException(nameof(statement)); 5352throw new ArgumentNullException(nameof(firstStatement)); 5357throw new ArgumentNullException(nameof(lastStatement)); 5378throw new ArgumentNullException(nameof(statementOrExpression)); 5396throw new ArgumentNullException(nameof(node));
Compilation\MemberSemanticModel.cs (3)
196throw new ArgumentNullException(nameof(expression)); 437throw new ArgumentNullException(nameof(destination)); 495throw new ArgumentNullException(nameof(destination));
Compilation\SyntaxTreeSemanticModel.cs (9)
539throw new ArgumentNullException(nameof(destination)); 564throw new ArgumentNullException(nameof(destination)); 742throw new ArgumentNullException(nameof(expression)); 2194throw new ArgumentNullException(nameof(typeParameter)); 2258throw new ArgumentNullException(nameof(firstStatement)); 2263throw new ArgumentNullException(nameof(lastStatement)); 2294throw new ArgumentNullException(nameof(expression)); 2311throw new ArgumentNullException(nameof(constructorInitializer)); 2328throw new ArgumentNullException(nameof(primaryConstructorBaseType));
CSharpExtensions.cs (5)
270throw new ArgumentNullException(nameof(items)); 788throw new ArgumentNullException(nameof(conversionExpression)); 814throw new ArgumentNullException(nameof(compoundAssignment)); 840throw new ArgumentNullException(nameof(compoundAssignment)); 865throw new ArgumentNullException(nameof(spread));
Errors\CSDiagnostic.cs (1)
30throw new ArgumentNullException(nameof(location));
SymbolDisplay\ObjectDisplay.cs (1)
217throw new ArgumentNullException(nameof(value));
SymbolDisplay\SymbolDisplay.cs (1)
252throw new ArgumentNullException(nameof(symbol));
Symbols\AssemblySymbol.cs (2)
345throw new ArgumentNullException(nameof(fullyQualifiedMetadataName)); 649throw new ArgumentNullException(nameof(fullyQualifiedMetadataName));
Symbols\MethodSymbol.cs (2)
758throw new ArgumentNullException(nameof(receiverType)); 870throw new ArgumentNullException(nameof(typeArguments));
Symbols\ModuleSymbol.cs (2)
339throw new ArgumentNullException(nameof(namespaceSymbol)); 374throw new ArgumentNullException(nameof(namespaceSymbol));
Symbols\NamedTypeSymbol.cs (1)
1216throw new ArgumentNullException(nameof(typeArguments));
Symbols\ReducedExtensionMethodSymbol.cs (1)
261throw new System.ArgumentNullException();
Symbols\TypeSymbol.cs (1)
446throw new ArgumentNullException(nameof(interfaceMember));
Syntax\CSharpSyntaxTree.cs (6)
341throw new ArgumentNullException(nameof(root)); 499throw new ArgumentNullException(nameof(text)); 558throw new ArgumentNullException(nameof(changes)); 602throw new ArgumentNullException(nameof(oldTree)); 617throw new ArgumentNullException(nameof(oldTree)); 779throw new ArgumentNullException(nameof(node));
Syntax\SyntaxFactory.cs (2)
195throw new ArgumentNullException(nameof(text)); 2330throw new ArgumentNullException(nameof(tree));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
231var parent = token.Parent ?? throw new ArgumentNullException(nameof(token));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NameSyntaxIterator.cs (1)
18=> _name = name ?? throw new ArgumentNullException(nameof(name));
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
src\Compilers\CSharp\Portable\SymbolDisplay\ObjectDisplay.cs (1)
217throw new ArgumentNullException(nameof(value));
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\DeclarationName\ExportDeclarationNameRecommenderAttribute.cs (1)
14public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name));
Structure\CSharpStructureHelpers.cs (1)
216throw new ArgumentNullException(nameof(node));
Microsoft.CodeAnalysis.CSharp.Scripting (4)
CSharpScript.cs (4)
36throw new ArgumentNullException(nameof(code)); 53throw new ArgumentNullException(nameof(code)); 68throw new ArgumentNullException(nameof(code)); 84throw new ArgumentNullException(nameof(code));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
231var parent = token.Parent ?? throw new ArgumentNullException(nameof(token));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NameSyntaxIterator.cs (1)
18=> _name = name ?? throw new ArgumentNullException(nameof(name));
Microsoft.CodeAnalysis.EditorFeatures (28)
Adornments\AbstractAdornmentManagerProvider.cs (1)
47throw new ArgumentNullException(nameof(textView));
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
106=> _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
Extensibility\Completion\ExportCompletionProviderAttribute.cs (2)
15public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 16public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
ExternalAccess\IntelliCode\Api\IIntentSourceProvider.cs (3)
33public string IntentName { get; } = intentName ?? throw new ArgumentNullException(nameof(intentName)); 67public readonly string Title { get; } = title ?? throw new ArgumentNullException(nameof(title)); 79public readonly string ActionName { get; } = actionName ?? throw new ArgumentNullException(nameof(actionName));
IntelliSense\AsyncCompletion\CompletionSource.cs (3)
212throw new ArgumentNullException(nameof(session)); 460throw new ArgumentNullException(nameof(session)); 462throw new ArgumentNullException(nameof(item));
Interactive\InteractiveEvaluator.cs (1)
131_lazyInteractiveWindow = value ?? throw new ArgumentNullException(nameof(value));
Lightup\LightupHelpers.cs (7)
62throw new ArgumentNullException(nameof(propertyName)); 114throw new ArgumentNullException(nameof(methodName)); 170throw new ArgumentNullException(nameof(methodName)); 243throw new ArgumentNullException(nameof(methodName)); 298throw new ArgumentNullException(nameof(methodName)); 357throw new ArgumentNullException(nameof(methodName)); 438throw new ArgumentNullException(nameof(methodName));
Peek\PeekableItemFactory.cs (3)
52throw new ArgumentNullException(nameof(symbol)); 55throw new ArgumentNullException(nameof(project)); 58throw new ArgumentNullException(nameof(peekResultFactory));
ReferenceHighlighting\NavigateToHighlightReferenceCommandHandler.cs (2)
36private readonly IOutliningManagerService _outliningManagerService = outliningManagerService ?? throw new ArgumentNullException(nameof(outliningManagerService)); 37private readonly IViewTagAggregatorFactoryService _tagAggregatorFactory = tagAggregatorFactory ?? throw new ArgumentNullException(nameof(tagAggregatorFactory));
SmartIndent\SmartIndent.cs (1)
33throw new ArgumentNullException(nameof(line));
SmartIndent\SmartIndentProvider.cs (1)
27throw new ArgumentNullException(nameof(textView));
Tagging\AsynchronousTaggerProvider.cs (1)
18throw new ArgumentNullException(nameof(subjectBuffer));
Tagging\AsynchronousViewTaggerProvider.cs (2)
28throw new ArgumentNullException(nameof(subjectBuffer)); 31throw new ArgumentNullException(nameof(subjectBuffer));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Classification\FormattedClassification.cs (2)
28Text = text ?? throw new ArgumentNullException(nameof(text)); 29ClassificationName = classificationName ?? throw new ArgumentNullException(nameof(classificationName));
Threading\SynchronizationContextTaskScheduler.cs (1)
23_synchronizationContext = synchronizationContext ?? throw new ArgumentNullException(nameof(synchronizationContext));
Microsoft.CodeAnalysis.EditorFeatures.Text (6)
Extensions.SnapshotSourceText.cs (5)
74throw new ArgumentNullException(nameof(editorSnapshot)); 98throw new ArgumentNullException(nameof(editorSnapshot)); 188throw new ArgumentNullException(nameof(changes)); 291throw new ArgumentNullException(nameof(oldText)); 321throw new ArgumentNullException(nameof(oldText));
Extensions.TextBufferContainer.cs (1)
46throw new ArgumentNullException(nameof(buffer));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DebuggerDiagnosticFormatter.cs (1)
16throw new ArgumentNullException(nameof(diagnostic));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.TypeNames.cs (1)
27throw new ArgumentNullException(nameof(type));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (18)
Debugger\Engine\DkmClrValue.cs (11)
81throw new ArgumentNullException(nameof(inspectionContext)); 144throw new ArgumentNullException(nameof(inspectionContext)); 154throw new ArgumentNullException(nameof(inspectionContext)); 164throw new ArgumentNullException(nameof(inspectionContext)); 203throw new ArgumentNullException(nameof(inspectionContext)); 242throw new ArgumentNullException(nameof(inspectionContext)); 384throw new ArgumentNullException(nameof(InspectionContext)); 565throw new ArgumentNullException(nameof(inspectionContext)); 624throw new ArgumentNullException(nameof(inspectionContext)); 650throw new ArgumentNullException(nameof(inspectionContext)); 672throw new ArgumentNullException(nameof(inspectionContext));
Debugger\Engine\DkmDataContainer.cs (1)
36throw new ArgumentNullException(nameof(item));
Debugger\Engine\DkmEvaluateDebuggerDisplayStringAsyncResult.cs (1)
21throw new ArgumentNullException(nameof(result));
Debugger\Engine\DkmEvaluationAsyncResult.cs (1)
22throw new ArgumentNullException(nameof(Result));
Debugger\Engine\DkmEvaluationEnumAsyncResult.cs (1)
23throw new ArgumentNullException();
Debugger\Engine\DkmGetChildrenAsyncResult.cs (1)
23throw new ArgumentNullException();
Debugger\Engine\DkmMetadataImportHolder.cs (1)
30this.Value = value ?? throw new ArgumentNullException(nameof(value));
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.TypeNames.cs (1)
27throw new ArgumentNullException(nameof(type));
Microsoft.CodeAnalysis.Extensions.Package (64)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (6)
EmbeddedLanguages\BraceMatching\ExportAspNetCoreEmbeddedLanguageBraceMatcherAttribute.cs (2)
31Name = name ?? throw new ArgumentNullException(nameof(name)); 32Language = language ?? throw new ArgumentNullException(nameof(language));
EmbeddedLanguages\Classification\ExportAspNetCoreEmbeddedLanguageClassifierAttribute.cs (2)
31Name = name ?? throw new ArgumentNullException(nameof(name)); 32Language = language ?? throw new ArgumentNullException(nameof(language));
EmbeddedLanguages\DocumentHighlighting\ExportAspNetCoreEmbeddedLanguageClassifierAttribute.cs (2)
31Name = name ?? throw new ArgumentNullException(nameof(name)); 32Language = language ?? throw new ArgumentNullException(nameof(language));
Microsoft.CodeAnalysis.ExternalAccess.Copilot (4)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (4)
45FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCopilotService)), ErrorSeverity.Diagnostic); 48FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpCopilotGenerateDocumentationService)), ErrorSeverity.Diagnostic); 51FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpOnTheFlyDocsService)), ErrorSeverity.Diagnostic); 54FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpCopilotGenerateImplementationService)), ErrorSeverity.Diagnostic);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorDocumentServiceProviderWrapper.cs (1)
23_innerDocumentServiceProvider = innerDocumentServiceProvider ?? throw new ArgumentNullException(nameof(innerDocumentServiceProvider));
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
External\XamlRequestHandlerFactoryBase.cs (1)
36_resolveDataCache = resolveDataCache ?? throw new ArgumentNullException(nameof(resolveDataCache));
Microsoft.CodeAnalysis.Features (59)
BraceCompletion\ExportBraceCompletionServiceAttribute.cs (1)
14public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
BraceMatching\ExportBraceMatcherAttribute.cs (1)
14public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
ChangeSignature\ChangeSignatureCodeActionOperation.cs (1)
21public Solution ChangedSolution { get; } = changedSolution ?? throw new ArgumentNullException(nameof(changedSolution));
CodeFixes\Suppression\ExportConfigurationFixProviderAttribute.cs (2)
34throw new ArgumentNullException(nameof(languages)); 43Name = name ?? throw new ArgumentNullException(nameof(name));
Common\DocumentNavigationOperation.cs (1)
22internal DocumentId DocumentId { get; } = documentId ?? throw new ArgumentNullException(nameof(documentId));
Common\StartInlineRenameSessionOperation.cs (1)
22public DocumentId DocumentId { get; } = documentId ?? throw new ArgumentNullException(nameof(documentId));
Common\TaggedText.cs (2)
75Tag = tag ?? throw new ArgumentNullException(nameof(tag)); 76Text = text ?? throw new ArgumentNullException(nameof(text));
Completion\ArgumentContext.cs (3)
21internal ArgumentProvider Provider { get; } = provider ?? throw new ArgumentNullException(nameof(provider)); 26public SemanticModel SemanticModel { get; } = semanticModel ?? throw new ArgumentNullException(nameof(semanticModel)); 36public IParameterSymbol Parameter { get; } = parameter ?? throw new ArgumentNullException(nameof(parameter));
Completion\CompletionContext.cs (4)
120: this(provider ?? throw new ArgumentNullException(nameof(provider)), 121document ?? throw new ArgumentNullException(nameof(document)), 169throw new ArgumentNullException(nameof(item)); 180throw new ArgumentNullException(nameof(items));
Completion\CompletionItem.cs (1)
478throw new ArgumentNullException(nameof(tag));
Completion\ExportArgumentProviderAttribute.cs (2)
14public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 15public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
Completion\ExportCompletionProviderAttribute.cs (2)
18public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 19public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
72this.defaultRules = defaultRules ?? throw new ArgumentNullException(nameof(defaultRules));
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
85throw new ArgumentNullException(nameof(declaredSymbol));
Debugging\DebugInformationReaderProvider.cs (2)
128throw new ArgumentNullException(nameof(stream)); 165=> new Portable(metadataProvider ?? throw new ArgumentNullException(nameof(metadataProvider)));
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (2)
193throw new ArgumentNullException(nameof(symReader)); 223=> new Portable(pdbReader ?? throw new ArgumentNullException(nameof(pdbReader)));
EditAndContinue\SourceFileSpan.cs (1)
32public string Path { get; } = path ?? throw new ArgumentNullException(nameof(path));
EmbeddedLanguages\ExportEmbeddedLanguageFeatureServiceAttribute.cs (3)
50Name = name ?? throw new ArgumentNullException(nameof(name)); 51Languages = languages ?? throw new ArgumentNullException(nameof(languages)); 52Identifiers = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
ExternalAccess\UnitTesting\SolutionCrawler\ExportUnitTestingIncrementalAnalyzerProviderAttribute.cs (1)
21this.Name = name ?? throw new ArgumentNullException(nameof(name));
ExternalAccess\VSTypeScript\VSTypeScriptFormattingService.cs (1)
22private readonly IVSTypeScriptFormattingServiceImplementation _impl = impl ?? throw new ArgumentNullException(nameof(impl));
Highlighting\ExportHighlighterAttribute.cs (1)
16public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
Intents\IntentResult.cs (2)
28public readonly string Title = title ?? throw new ArgumentNullException(nameof(title)); 34public readonly string ActionName = actionName ?? throw new ArgumentNullException(nameof(actionName));
MetadataAsSource\ExportMetadataAsSourceFileProvider.cs (1)
18public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name));
MetadataAsSource\MetadataAsSourceFileService.cs (2)
78throw new ArgumentNullException(nameof(sourceProject)); 81throw new ArgumentNullException(nameof(symbol));
PdbSourceDocument\SourceLinkMap.cs (2)
67throw new ArgumentNullException(nameof(json)); 177throw new ArgumentNullException(nameof(path));
QuickInfo\ExportQuickInfoProviderAttribute.cs (2)
18public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 19public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
QuickInfo\QuickInfoContext.cs (1)
26public Document Document { get; } = document ?? throw new ArgumentNullException(nameof(document));
SignatureHelp\ExportSignatureHelpProviderAttribute.cs (2)
14public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 15public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
Snippets\ExportSnippetProviderAttribute.cs (2)
15public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 16public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language));
Snippets\SnippetContext.cs (1)
18SyntaxContext = syntaxContext ?? throw new ArgumentNullException(nameof(syntaxContext));
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (4)
49throw new ArgumentNullException(nameof(descriptor)); 265throw new ArgumentNullException(nameof(descriptor)); 350throw new ArgumentNullException(nameof(messageFormat)); 355throw new ArgumentNullException(nameof(formatArguments));
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (4)
40diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 41options = options ?? throw new ArgumentNullException(nameof(options)); 95diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 96fadingOption = fadingOption ?? throw new ArgumentNullException(nameof(fadingOption));
src\Analyzers\Core\CodeFixes\AddParameter\CodeFixData.cs (2)
20public IMethodSymbol Method { get; } = method ?? throw new ArgumentNullException(nameof(method)); 25public Func<CancellationToken, Task<Solution>> CreateChangedSolutionNonCascading { get; } = createChangedSolutionNonCascading ?? throw new ArgumentNullException(nameof(createChangedSolutionNonCascading));
Microsoft.CodeAnalysis.InteractiveHost (67)
Interactive\Core\InteractiveHost.cs (2)
131throw new ArgumentNullException(nameof(output)); 136throw new ArgumentNullException(nameof(errorOutput));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
Microsoft.CodeAnalysis.LanguageServer.Protocol (27)
Handler\LanguageServerNotificationManager.cs (1)
20throw new ArgumentNullException(nameof(jsonRpc));
Handler\RequestContext.cs (3)
210? throw new ArgumentNullException($"{nameof(ClientCapabilities)} is null when it was required for {Method}") 217? throw new ArgumentNullException($"{nameof(Document)} is null when it was required for {Method}") 224? throw new ArgumentNullException($"{nameof(TextDocument)} is null when it was required for {Method}")
Protocol\Converters\KindAttribute.cs (2)
26this.Kind = kind ?? throw new ArgumentNullException(nameof(kind)); 27this.KindPropertyName = kindPropertyName ?? throw new ArgumentNullException(nameof(kindPropertyName));
Protocol\Converters\SumConverter.cs (3)
153this.Type = type ?? throw new ArgumentNullException(nameof(type)); 154this.Constructor = constructor ?? throw new ArgumentNullException(nameof(constructor)); 260writer = writer ?? throw new ArgumentNullException(nameof(writer));
Protocol\Internal\Text\ClassifiedTextElement.cs (2)
22Runs = runs?.ToImmutableList() ?? throw new ArgumentNullException("runs"); 27Runs = runs?.ToImmutableList() ?? throw new ArgumentNullException("runs");
Protocol\Internal\Text\ClassifiedTextRun.cs (2)
20public string ClassificationTypeName { get; } = classificationTypeName ?? throw new ArgumentNullException(nameof(classificationTypeName)); 21public string Text { get; } = text ?? throw new ArgumentNullException(nameof(text));
Protocol\Internal\Text\ContainerElement.cs (2)
23Elements = elements?.ToImmutableList() ?? throw new ArgumentNullException("elements"); 29Elements = elements?.ToImmutableList() ?? throw new ArgumentNullException("elements");
Protocol\SumType.cs (9)
158throw new ArgumentNullException(nameof(firstMatch)); 163throw new ArgumentNullException(nameof(secondMatch)); 431throw new ArgumentNullException(nameof(firstMatch)); 436throw new ArgumentNullException(nameof(secondMatch)); 441throw new ArgumentNullException(nameof(thirdMatch)); 802throw new ArgumentNullException(nameof(firstMatch)); 807throw new ArgumentNullException(nameof(secondMatch)); 812throw new ArgumentNullException(nameof(thirdMatch)); 817throw new ArgumentNullException(nameof(fourthMatch));
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\TypeRef.cs (3)
24TypeName = typeName ?? throw new ArgumentNullException(nameof(typeName)); 25AssemblyName = assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)); 105throw new ArgumentNullException(nameof(type));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (123)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
Microsoft.CodeAnalysis.PublicApiAnalyzers (117)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Microsoft.CodeAnalysis.Remote.Workspaces (1)
CancellationTokenSourceExtensions.cs (1)
22throw new ArgumentNullException(nameof(cancellationTokenSource));
Microsoft.CodeAnalysis.ResxSourceGenerator (117)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Microsoft.CodeAnalysis.Scripting (23)
CompilationErrorException.cs (1)
27throw new ArgumentNullException(nameof(diagnostics));
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
158throw new ArgumentNullException(nameof(dependency)); 185throw new ArgumentNullException(nameof(dependency));
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
113throw new ArgumentNullException(argumentName);
Hosting\CommandLine\CommandLineScriptGlobals.cs (2)
46throw new ArgumentNullException(nameof(outputWriter)); 51throw new ArgumentNullException(nameof(objectFormatter));
Hosting\InteractiveScriptGlobals.cs (2)
51throw new ArgumentNullException(nameof(outputWriter)); 56throw new ArgumentNullException(nameof(objectFormatter));
Hosting\ObjectFormatter\CommonObjectFormatter.cs (2)
28throw new ArgumentNullException(nameof(options)); 65throw new ArgumentNullException(nameof(e));
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (3)
36throw new ArgumentNullException(nameof(type)); 95throw new ArgumentNullException(nameof(typeArguments)); 135throw new ArgumentNullException(nameof(arrayType));
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
397throw new ArgumentNullException(nameof(numberRadix));
Script.cs (2)
128throw new ArgumentNullException(nameof(code)); 553throw new ArgumentNullException(nameof(previousState));
ScriptState.cs (1)
87throw new ArgumentNullException(nameof(name));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
209throw new ArgumentNullException(nameof(displayName));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
174throw new ArgumentNullException(nameof(displayName));
Utilities\ParameterValidationHelpers.cs (4)
21throw new ArgumentNullException(parameterName); 28throw new ArgumentNullException($"{parameterName}[{i}]"); 61throw new ArgumentNullException($"{parameterName}[{builder.Count}]"); 80throw new ArgumentNullException(parameterName);
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1289Assert.Equal(new ArgumentNullException("operationBlock").Message, ex.Message);
FX\ProcessUtilities.cs (2)
29throw new ArgumentNullException(nameof(fileName)); 101throw new ArgumentNullException(nameof(fileName));
LazyToString.cs (1)
16=> _evaluator = evaluator ?? throw new ArgumentNullException(nameof(evaluator));
Metadata\IlasmUtilities.cs (1)
76throw new ArgumentNullException(nameof(declarations));
ObjectReference.cs (1)
78throw new ArgumentNullException(nameof(target));
Microsoft.CodeAnalysis.Threading.Package (64)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
287throw new ArgumentNullException(nameof(collection));
Collections\ImmutablesTestBase.nonnetstandard.cs (3)
33throw new ArgumentNullException(nameof(objectUnderTest)); 37throw new ArgumentNullException(nameof(equalsStructurally)); 84_enumerable = enumerable ?? throw new ArgumentNullException(nameof(enumerable));
Collections\TestExtensionsMethods.nonnetstandard.cs (3)
24throw new ArgumentNullException(nameof(dictionary)); 37null => throw new ArgumentNullException(nameof(dictionary)), 49null => throw new ArgumentNullException(nameof(dictionary)),
Diagnostics\OperationTests.cs (2)
287Assert.Equal(ex.Message, new ArgumentNullException("node").Message); 300Assert.Equal(ex.Message, new ArgumentNullException("semanticModel").Message);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbolExtensions.vb (1)
955Throw New Global.System.ArgumentNullException(NameOf(typeArguments))
Microsoft.CodeAnalysis.Workspaces (367)
CodeActions\CodeAction.cs (6)
504throw new ArgumentNullException(nameof(title)); 507throw new ArgumentNullException(nameof(createChangedDocument)); 543throw new ArgumentNullException(nameof(title)); 546throw new ArgumentNullException(nameof(createChangedSolution)); 568throw new ArgumentNullException(nameof(title)); 571throw new ArgumentNullException(nameof(nestedActions));
CodeActions\Operations\ApplyChangesOperation.cs (1)
36public Solution ChangedSolution { get; } = changedSolution ?? throw new ArgumentNullException(nameof(changedSolution));
CodeActions\Operations\OpenDocumentOperation.cs (1)
15public DocumentId DocumentId { get; } = documentId ?? throw new ArgumentNullException(nameof(documentId));
CodeCleanup\CodeCleaner.cs (1)
32throw new ArgumentNullException(nameof(document));
CodeCleanup\Providers\ExportCodeCleanupProvider.cs (1)
30this.Languages = languages ?? throw new ArgumentNullException(nameof(languages));
CodeFixes\CodeFixContext.cs (8)
125TextDocument = document ?? throw new ArgumentNullException(nameof(document)); 128_registerCodeFix = registerCodeFix ?? throw new ArgumentNullException(nameof(registerCodeFix)); 150(diagnostic ?? throw new ArgumentNullException(nameof(diagnostic))).Location.SourceSpan, 174(diagnostic ?? throw new ArgumentNullException(nameof(diagnostic))).Location.SourceSpan, 190throw new ArgumentNullException(nameof(action)); 195throw new ArgumentNullException(nameof(diagnostic)); 210throw new ArgumentNullException(nameof(diagnostics)); 225throw new ArgumentNullException(nameof(action));
CodeFixes\ExportCodeFixProviderAttribute.cs (3)
49throw new ArgumentNullException(nameof(value)); 84throw new ArgumentNullException(nameof(additionalLanguages)); 88languages[0] = firstLanguage ?? throw new ArgumentNullException(nameof(firstLanguage));
CodeFixes\FixAllOccurrences\FixAllContext.cs (10)
158document ?? throw new ArgumentNullException(nameof(document)), 160codeFixProvider ?? throw new ArgumentNullException(nameof(codeFixProvider)), 164fixAllDiagnosticProvider ?? throw new ArgumentNullException(nameof(fixAllDiagnosticProvider))), 194project ?? throw new ArgumentNullException(nameof(project)), 195codeFixProvider ?? throw new ArgumentNullException(nameof(codeFixProvider)), 199fixAllDiagnosticProvider ?? throw new ArgumentNullException(nameof(fixAllDiagnosticProvider))), 226throw new ArgumentNullException(nameof(document)); 263throw new ArgumentNullException(nameof(document)); 284throw new ArgumentNullException(nameof(project)); 298throw new ArgumentNullException(nameof(project));
CodeFixes\FixAllOccurrences\FixAllProvider.cs (2)
87throw new ArgumentNullException(nameof(fixAllAsync)); 90throw new ArgumentNullException(nameof(supportedFixAllScopes));
CodeRefactorings\CodeRefactoringContext.cs (3)
92TextDocument = document ?? throw new ArgumentNullException(nameof(document)); 94_registerRefactoring = registerRefactoring ?? throw new ArgumentNullException(nameof(registerRefactoring)); 119throw new ArgumentNullException(nameof(action));
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (3)
45throw new ArgumentNullException(nameof(value)); 78throw new ArgumentNullException(nameof(additionalLanguages)); 82languages[0] = firstLanguage ?? throw new ArgumentNullException(nameof(firstLanguage));
CodeRefactorings\FixAllOccurences\FixAllProvider.cs (2)
85throw new ArgumentNullException(nameof(fixAllAsync)); 88throw new ArgumentNullException(nameof(supportedFixAllScopes));
CodeRefactorings\FixAllOccurences\FixAllState.cs (2)
41: this(fixAllProvider, document ?? throw new ArgumentNullException(nameof(document)), document.Project, selectionSpan, codeRefactoringProvider, 53: this(fixAllProvider, document: null, project ?? throw new ArgumentNullException(nameof(project)), selectionSpan, codeRefactoringProvider,
Differencing\Match.cs (2)
373throw new ArgumentNullException(nameof(oldNodes)); 378throw new ArgumentNullException(nameof(newNodes));
Editing\DocumentEditor.cs (1)
32throw new ArgumentNullException(nameof(document));
Editing\SymbolEditor.cs (3)
35throw new ArgumentNullException(nameof(solution)); 48throw new ArgumentNullException(nameof(document)); 380throw new ArgumentNullException(WorkspacesResources.The_position_is_not_within_the_symbol_s_declaration, nameof(position));
Editing\SymbolEditorExtensions.cs (1)
27throw new ArgumentNullException(nameof(baseOrInterfaceType));
Editing\SyntaxEditor.cs (10)
64: this(root, (workspace ?? throw new ArgumentNullException(nameof(workspace))).Services.SolutionServices) 72: this(root, (services ?? throw new ArgumentNullException(nameof(services))).SolutionServices) 80: this(root ?? throw new ArgumentNullException(nameof(root)), 81SyntaxGenerator.GetGenerator(services ?? throw new ArgumentNullException(nameof(services)), root.Language)) 153throw new ArgumentNullException(nameof(computeReplacement)); 162throw new ArgumentNullException(nameof(computeReplacement)); 171throw new ArgumentNullException(nameof(computeReplacement)); 199throw new ArgumentNullException(nameof(newNodes)); 221throw new ArgumentNullException(nameof(newNodes)); 237throw new ArgumentNullException(nameof(node));
Editing\SyntaxGenerator.cs (3)
1901throw new ArgumentNullException(nameof(dottedName)); 1973throw new ArgumentNullException(nameof(elements)); 1999throw new ArgumentNullException(nameof(elementTypes));
ExternalAccess\UnitTesting\Api\UnitTestingTextDocumentEventArgsWrapper.cs (1)
11internal TextDocumentEventArgs UnderlyingObject { get; } = underlyingObject ?? throw new ArgumentNullException(nameof(underlyingObject));
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
31throw new ArgumentNullException(nameof(project));
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (8)
30throw new ArgumentNullException(nameof(solution)); 35throw new ArgumentNullException(nameof(name)); 68throw new ArgumentNullException(nameof(project)); 73throw new ArgumentNullException(nameof(name)); 106throw new ArgumentNullException(nameof(solution)); 111throw new ArgumentNullException(nameof(pattern)); 139throw new ArgumentNullException(nameof(project)); 144throw new ArgumentNullException(nameof(pattern));
FindSymbols\SearchQuery.cs (2)
30Name = name ?? throw new ArgumentNullException(nameof(name)); 57_predicate = predicate ?? throw new ArgumentNullException(nameof(predicate));
FindSymbols\SymbolFinder.cs (6)
49throw new ArgumentNullException(nameof(workspace)); 84throw new ArgumentNullException(nameof(semanticModel)); 86throw new ArgumentNullException(nameof(services)); 129throw new ArgumentNullException(nameof(document)); 158throw new ArgumentNullException(nameof(symbol)); 161throw new ArgumentNullException(nameof(compilation));
FindSymbols\SymbolFinder_Callers.cs (2)
36throw new System.ArgumentNullException(nameof(symbol)); 38throw new System.ArgumentNullException(nameof(solution));
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (2)
48throw new ArgumentNullException(nameof(solution)); 93throw new ArgumentNullException(nameof(project));
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (6)
31throw new System.ArgumentNullException(nameof(symbol)); 33throw new System.ArgumentNullException(nameof(solution)); 65throw new System.ArgumentNullException(nameof(symbol)); 67throw new System.ArgumentNullException(nameof(solution)); 88throw new System.ArgumentNullException(nameof(symbol)); 90throw new System.ArgumentNullException(nameof(solution));
FindSymbols\SymbolFinder_Hierarchy.cs (8)
235throw new ArgumentNullException(nameof(type)); 238throw new ArgumentNullException(nameof(solution)); 271throw new ArgumentNullException(nameof(type)); 274throw new ArgumentNullException(nameof(solution)); 307throw new ArgumentNullException(nameof(type)); 310throw new ArgumentNullException(nameof(solution)); 335throw new ArgumentNullException(nameof(symbol)); 338throw new ArgumentNullException(nameof(solution));
FindSymbols\SyntaxTree\SyntaxTreeIndex.IdentifierInfo.cs (2)
17private readonly BloomFilter _identifierFilter = identifierFilter ?? throw new ArgumentNullException(nameof(identifierFilter)); 18private readonly BloomFilter _escapedIdentifierFilter = escapedIdentifierFilter ?? throw new ArgumentNullException(nameof(escapedIdentifierFilter));
FindSymbols\SyntaxTree\SyntaxTreeIndex.LiteralInfo.cs (1)
15private readonly BloomFilter _literalsFilter = literalsFilter ?? throw new ArgumentNullException(nameof(literalsFilter));
Formatting\Formatter.cs (7)
124throw new ArgumentNullException(nameof(document)); 129throw new ArgumentNullException(nameof(annotation)); 161throw new ArgumentNullException(nameof(workspace)); 166throw new ArgumentNullException(nameof(node)); 171throw new ArgumentNullException(nameof(annotation)); 234throw new ArgumentNullException(nameof(workspace)); 239throw new ArgumentNullException(nameof(node));
Options\Option.cs (4)
39: this(feature ?? throw new ArgumentNullException(nameof(feature)), 40name ?? throw new ArgumentNullException(nameof(name)), 50: this(feature ?? throw new ArgumentNullException(nameof(feature)), 51name ?? throw new ArgumentNullException(nameof(name)),
Options\OptionKey.cs (2)
23throw new ArgumentNullException(nameof(option)); 33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option);
Options\PerLanguageOption.cs (4)
31: this(feature ?? throw new ArgumentNullException(nameof(feature)), 33name ?? throw new ArgumentNullException(nameof(name)), 42: this(feature ?? throw new ArgumentNullException(nameof(feature)), 44name ?? throw new ArgumentNullException(nameof(name)),
Progress\CodeAnalysisProgress.cs (1)
36=> new() { DescriptionValue = description ?? throw new ArgumentNullException(nameof(description)) };
Rename\Renamer.cs (3)
45throw new ArgumentNullException(nameof(solution)); 48throw new ArgumentNullException(nameof(symbol)); 105throw new ArgumentNullException(nameof(document));
Rename\Renamer.RenameDocumentActionSet.cs (1)
77throw new ArgumentNullException(nameof(solution));
Shared\Extensions\IComparerExtensions.cs (1)
16throw new ArgumentNullException(nameof(comparer));
Shared\Extensions\SourceTextExtensions.cs (1)
331throw new ArgumentNullException(nameof(buffer));
Shared\Utilities\BloomFilter.cs (1)
71_bitArray = bitArray ?? throw new ArgumentNullException(nameof(bitArray));
Simplification\Simplifier.cs (16)
66throw new ArgumentNullException(nameof(node)); 71throw new ArgumentNullException(nameof(document)); 84throw new ArgumentNullException(nameof(workspace)); 95throw new ArgumentNullException(nameof(node)); 98throw new ArgumentNullException(nameof(semanticModel)); 101throw new ArgumentNullException(nameof(services)); 116throw new ArgumentNullException(nameof(document)); 129throw new ArgumentNullException(nameof(workspace)); 140throw new ArgumentNullException(nameof(semanticModel)); 143throw new ArgumentNullException(nameof(services)); 156throw new ArgumentNullException(nameof(document)); 179throw new ArgumentNullException(nameof(document)); 184throw new ArgumentNullException(nameof(annotation)); 207throw new ArgumentNullException(nameof(document)); 226throw new ArgumentNullException(nameof(document)); 231throw new ArgumentNullException(nameof(spans));
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
70throw new ArgumentNullException(nameof(baseDirectory));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
52throw new ArgumentNullException(nameof(documentId)); 79throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
TemporaryStorage\TemporaryStorageService.DirectMemoryAccessStreamReader.cs (1)
53throw new ArgumentNullException(nameof(buffer));
Workspace\AdhocWorkspace.cs (7)
50throw new ArgumentNullException(nameof(solutionInfo)); 76throw new ArgumentNullException(nameof(projectInfo)); 94throw new ArgumentNullException(nameof(projectInfos)); 112throw new ArgumentNullException(nameof(projectId)); 117throw new ArgumentNullException(nameof(name)); 122throw new ArgumentNullException(nameof(text)); 138throw new ArgumentNullException(nameof(documentInfo));
Workspace\Host\Documentation\DocumentationProviderServiceFactory.cs (1)
34throw new ArgumentNullException(nameof(assemblyPath));
Workspace\Host\EventListener\ExportEventListenerAttribute.cs (2)
32throw new ArgumentNullException(nameof(workspaceKinds)); 35this.Service = service ?? throw new ArgumentNullException(nameof(service));
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (2)
32public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language)); 37public string Layer { get; } = layer ?? throw new ArgumentNullException(nameof(layer));
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (2)
32public string Language { get; } = language ?? throw new ArgumentNullException(nameof(language)); 37public string Layer { get; } = layer ?? throw new ArgumentNullException(nameof(layer));
Workspace\Host\Mef\ExportWorkspaceServiceAttribute.cs (1)
31public string Layer { get; } = layer ?? throw new ArgumentNullException(nameof(layer));
Workspace\Host\Mef\ExportWorkspaceServiceFactoryAttribute.cs (1)
31public string Layer { get; } = layer ?? throw new ArgumentNullException(nameof(layer));
Workspace\Host\Mef\MefHostServices.cs (2)
32throw new ArgumentNullException(nameof(compositionContext)); 42throw new ArgumentNullException(nameof(assemblies));
Workspace\Host\Metadata\MetadataReferenceCache.cs (1)
23private readonly Func<string, MetadataReferenceProperties, MetadataReference> _createReference = createReference ?? throw new ArgumentNullException(nameof(createReference));
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
153throw new ArgumentNullException(nameof(textContainer)); 326throw new ArgumentNullException(nameof(textContainer));
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
1296throw new ArgumentNullException(nameof(projectReference)); 1313throw new ArgumentNullException(nameof(projectReference)); 1358throw new ArgumentNullException(nameof(projectReference));
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (2)
45_project = project ?? throw new ArgumentNullException(nameof(project)); 82throw new ArgumentNullException(nameof(commandLine));
Workspace\Solution\AdditionalTextWithState.cs (1)
19private readonly AdditionalDocumentState _documentState = documentState ?? throw new ArgumentNullException(nameof(documentState));
Workspace\Solution\DocumentId.cs (1)
52throw new ArgumentNullException(nameof(projectId));
Workspace\Solution\DocumentInfo.cs (4)
87id ?? throw new ArgumentNullException(nameof(id)), 88name ?? throw new ArgumentNullException(nameof(name)), 118=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 121=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name))));
Workspace\Solution\Project.cs (1)
541throw new ArgumentNullException(nameof(oldProject));
Workspace\Solution\ProjectDependencyGraph.cs (6)
173throw new ArgumentNullException(nameof(projectId)); 186throw new ArgumentNullException(nameof(projectId)); 256throw new ArgumentNullException(nameof(projectId)); 270throw new ArgumentNullException(nameof(projectId)); 322throw new ArgumentNullException(nameof(projectId)); 553throw new ArgumentNullException(nameof(projectId));
Workspace\Solution\ProjectInfo.cs (7)
234id ?? throw new ArgumentNullException(nameof(id)), 236name ?? throw new ArgumentNullException(nameof(name)), 237assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)), 238language ?? throw new ArgumentNullException(nameof(language)), 336=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 342=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 345=> With(attributes: Attributes.With(assemblyName: assemblyName ?? throw new ArgumentNullException(nameof(assemblyName))));
Workspace\Solution\Solution.cs (53)
404throw new ArgumentNullException(nameof(assemblyName)); 469throw new ArgumentNullException(nameof(name)); 495throw new ArgumentNullException(nameof(options)); 511throw new ArgumentNullException(nameof(options)); 573throw new ArgumentNullException(nameof(documentIds)); 608[projectReference ?? throw new ArgumentNullException(nameof(projectReference))]); 656throw new ArgumentNullException(nameof(projectReference)); 706[metadataReference ?? throw new ArgumentNullException(nameof(metadataReference))]); 750throw new ArgumentNullException(nameof(metadataReference)); 786[analyzerReference ?? throw new ArgumentNullException(nameof(analyzerReference))]); 803throw new ArgumentNullException(nameof(analyzerReferences)); 837throw new ArgumentNullException(nameof(analyzerReference)); 877[analyzerReference ?? throw new ArgumentNullException(nameof(analyzerReference))]); 913throw new ArgumentNullException(nameof(analyzerReference)); 943throw new ArgumentNullException(nameof(documentId)); 946throw new ArgumentNullException(nameof(name)); 961throw new ArgumentNullException(nameof(documentId)); 964throw new ArgumentNullException(nameof(name)); 967throw new ArgumentNullException(nameof(text)); 980throw new ArgumentNullException(nameof(documentId)); 983throw new ArgumentNullException(nameof(name)); 986throw new ArgumentNullException(nameof(syntaxRoot)); 1014throw new ArgumentNullException(nameof(documentId)); 1017throw new ArgumentNullException(nameof(name)); 1020throw new ArgumentNullException(nameof(loader)); 1062throw new ArgumentNullException(nameof(documentId)); 1067throw new ArgumentNullException(nameof(name)); 1072throw new ArgumentNullException(nameof(text)); 1093throw new ArgumentNullException(nameof(documentId)); 1098throw new ArgumentNullException(nameof(name)); 1103throw new ArgumentNullException(nameof(text)); 1209throw new ArgumentNullException(nameof(name)); 1261throw new ArgumentNullException(nameof(text)); 1280throw new ArgumentNullException(nameof(text)); 1301throw new ArgumentNullException(nameof(text)); 1322throw new ArgumentNullException(nameof(textAndVersion)); 1343throw new ArgumentNullException(nameof(textAndVersion)); 1364throw new ArgumentNullException(nameof(textAndVersion)); 1393throw new ArgumentNullException(nameof(root)); 1442throw new ArgumentNullException(nameof(loader)); 1463throw new ArgumentNullException(nameof(loader)); 1484throw new ArgumentNullException(nameof(loader)); 1612throw new ArgumentNullException(nameof(documentIds)); 1617throw new ArgumentNullException(nameof(text)); 1680throw new ArgumentNullException(nameof(oldSolution)); 1730null => throw new ArgumentNullException(nameof(options)), 1745throw new ArgumentNullException(nameof(projectId)); 1758throw new ArgumentNullException(nameof(documentId)); 1788throw new ArgumentNullException(nameof(documentIds)); 1801throw new ArgumentNullException(nameof(documentId)); 1814throw new ArgumentNullException(nameof(documentIds)); 1827throw new ArgumentNullException(nameof(documentId)); 1840throw new ArgumentNullException(nameof(documentIds));
Workspace\Solution\SolutionCompilationState.cs (1)
1763throw new ArgumentNullException(nameof(documentInfos));
Workspace\Solution\SolutionInfo.cs (1)
102id ?? throw new ArgumentNullException(nameof(id)),
Workspace\Solution\SolutionState.cs (3)
375throw new ArgumentNullException(nameof(projectInfo)); 381throw new ArgumentNullException(nameof(language)); 385throw new ArgumentNullException(nameof(displayName));
Workspace\Solution\TextAndVersion.cs (1)
54=> new(text ?? throw new ArgumentNullException(nameof(text)), version, filePath, exceptionMessage: null);
Workspace\Solution\TextLoader.cs (2)
174throw new ArgumentNullException(nameof(textAndVersion)); 190throw new ArgumentNullException(nameof(container));
Workspace\TextDocumentEventArgs.cs (1)
11public TextDocument Document { get; } = document ?? throw new ArgumentNullException(nameof(document));
Workspace\Workspace.cs (2)
184throw new ArgumentNullException(nameof(solution)); 576null => throw new ArgumentNullException(nameof(value)),
Workspace\Workspace_Editor.cs (3)
220throw new ArgumentNullException(nameof(container)); 240throw new ArgumentNullException(nameof(container)); 263throw new ArgumentNullException(nameof(documentId));
Workspace\Workspace_Events.cs (1)
99throw new ArgumentNullException(nameof(newSolution));
Workspace\Workspace_Registration.cs (4)
25throw new ArgumentNullException(nameof(textContainer)); 41throw new ArgumentNullException(nameof(textContainer)); 62throw new ArgumentNullException(nameof(textContainer)); 80throw new ArgumentNullException(nameof(textContainer));
Workspace\WorkspaceChangeEventArgs.cs (2)
71this.OldSolution = oldSolution ?? throw new ArgumentNullException(nameof(oldSolution)); 72this.NewSolution = newSolution ?? throw new ArgumentNullException(nameof(newSolution));
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Workspace\Host\Mef\MefV1HostServices.cs (2)
45throw new ArgumentNullException(nameof(exportProvider)); 55throw new ArgumentNullException(nameof(assemblies));
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\MSBuildProjectLoader.cs (4)
111throw new ArgumentNullException(nameof(projectFileExtension)); 116throw new ArgumentNullException(nameof(language)); 166throw new ArgumentNullException(nameof(solutionFilePath)); 234throw new ArgumentNullException(nameof(projectFilePath));
MSBuild\MSBuildWorkspace.cs (4)
85throw new ArgumentNullException(nameof(properties)); 90throw new ArgumentNullException(nameof(hostServices)); 201throw new ArgumentNullException(nameof(solutionFilePath)); 249throw new ArgumentNullException(nameof(projectFilePath));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (66)
MSBuild\ProjectFile\ProjectFileLoader.cs (2)
24throw new ArgumentNullException(nameof(path)); 37throw new ArgumentNullException(nameof(path));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
WorkspaceTests\WorkspaceTests.cs (5)
137throw new ArgumentNullException(nameof(projectInfo)); 151throw new ArgumentNullException(nameof(projectId)); 156throw new ArgumentNullException(nameof(name)); 161throw new ArgumentNullException(nameof(text)); 177throw new ArgumentNullException(nameof(documentInfo));
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
TypeRef.cs (3)
24TypeName = typeName ?? throw new ArgumentNullException(nameof(typeName)); 25AssemblyName = assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)); 105throw new ArgumentNullException(nameof(type));
Microsoft.Data.Analysis (23)
DataFrame.cs (1)
621throw new ArgumentNullException(nameof(row));
DataFrame.Join.cs (3)
177throw new ArgumentNullException(nameof(retainedJoinColumnNames)); 180throw new ArgumentNullException(nameof(supplemetaryJoinColumnNames)); 334throw new ArgumentNullException(nameof(other));
DataFrameColumnCollection.cs (3)
23columns = columns ?? throw new ArgumentNullException(nameof(columns)); 72column = column ?? throw new ArgumentNullException(nameof(column)); 105column = column ?? throw new ArgumentNullException(nameof(column));
DataFrameColumns\StringDataFrameColumn.cs (4)
43values = values ?? throw new ArgumentNullException(nameof(values)); 342mapIndices = mapIndices ?? throw new ArgumentNullException(nameof(mapIndices)); 364mapIndices = mapIndices ?? throw new ArgumentNullException(nameof(mapIndices)); 451throw new ArgumentNullException(nameof(value));
DataFrameColumns\VBufferDataFrameColumn.cs (3)
46values = values ?? throw new ArgumentNullException(nameof(values)); 228mapIndices = mapIndices ?? throw new ArgumentNullException(nameof(mapIndices)); 250mapIndices = mapIndices ?? throw new ArgumentNullException(nameof(mapIndices));
DataFrameRowCollection.cs (1)
23_dataFrame = dataFrame ?? throw new ArgumentNullException(nameof(dataFrame));
PrimitiveColumnContainer.cs (3)
30values = values ?? throw new ArgumentNullException(nameof(values)); 39values = values ?? throw new ArgumentNullException(nameof(values)); 68throw new ArgumentNullException(Strings.InconsistentNullBitMapAndNullCount, nameof(nullBitMap));
TextFieldParser.cs (5)
391_reader = reader ?? throw new ArgumentNullException(nameof(reader)); 553throw new ArgumentNullException(nameof(path)); 557throw new ArgumentNullException(nameof(defaultEncoding)); 569throw new ArgumentNullException(nameof(stream)); 577throw new ArgumentNullException(nameof(defaultEncoding));
Microsoft.Data.Analysis.Interactive (1)
TabularDataResourceExtensions.cs (1)
19throw new ArgumentNullException(nameof(tabularDataResource));
Microsoft.Data.Analysis.Tests (5)
src\Microsoft.Data.Analysis\TextFieldParser.cs (5)
391_reader = reader ?? throw new ArgumentNullException(nameof(reader)); 553throw new ArgumentNullException(nameof(path)); 557throw new ArgumentNullException(nameof(defaultEncoding)); 569throw new ArgumentNullException(nameof(stream)); 577throw new ArgumentNullException(nameof(defaultEncoding));
Microsoft.DotNet.Build.Manifest (2)
BuildModel.cs (1)
15throw new ArgumentNullException(nameof(identity));
BuildModelFactory.cs (1)
82throw new ArgumentNullException(nameof(artifacts));
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetUtility.cs (1)
77throw new ArgumentNullException(nameof(settings));
Microsoft.DotNet.Build.Tasks.Workloads (3)
Swix\SwixProjectBase.cs (1)
104_ = relativePackagePath ?? throw new ArgumentNullException(nameof(relativePackagePath));
Utils.cs (1)
91throw new ArgumentNullException(name);
Wix\WixToolTaskBase.cs (1)
50BuildEngine = engine ?? throw new ArgumentNullException(nameof(engine));
Microsoft.DotNet.Helix.Client (95)
generated-code\Aggregate.cs (26)
124Client = client ?? throw new ArgumentNullException(nameof(client)); 148throw new ArgumentNullException(nameof(groupBy)); 153throw new ArgumentNullException(nameof(otherProperties)); 158throw new ArgumentNullException(nameof(workitem)); 272throw new ArgumentNullException(nameof(source)); 277throw new ArgumentNullException(nameof(type)); 368throw new ArgumentNullException(nameof(buildNumber)); 373throw new ArgumentNullException(nameof(sources)); 378throw new ArgumentNullException(nameof(types)); 477throw new ArgumentNullException(nameof(groupBy)); 588throw new ArgumentNullException(nameof(groupBy)); 696throw new ArgumentNullException(nameof(analysisName)); 701throw new ArgumentNullException(nameof(analysisType)); 706throw new ArgumentNullException(nameof(build)); 711throw new ArgumentNullException(nameof(groupBy)); 716throw new ArgumentNullException(nameof(source)); 721throw new ArgumentNullException(nameof(type)); 726throw new ArgumentNullException(nameof(workitem)); 926throw new ArgumentNullException(nameof(id)); 1008throw new ArgumentNullException(nameof(groupBy)); 1123throw new ArgumentNullException(nameof(analysisName)); 1128throw new ArgumentNullException(nameof(analysisType)); 1133throw new ArgumentNullException(nameof(source)); 1138throw new ArgumentNullException(nameof(type)); 1143throw new ArgumentNullException(nameof(workitem)); 1238throw new ArgumentNullException(nameof(body));
generated-code\Analysis.cs (10)
43Client = client ?? throw new ArgumentNullException(nameof(client)); 64throw new ArgumentNullException(nameof(analysisName)); 69throw new ArgumentNullException(nameof(analysisType)); 74throw new ArgumentNullException(nameof(body)); 79throw new ArgumentNullException(nameof(job)); 84throw new ArgumentNullException(nameof(workitem)); 167throw new ArgumentNullException(nameof(analysisName)); 172throw new ArgumentNullException(nameof(analysisType)); 177throw new ArgumentNullException(nameof(job)); 182throw new ArgumentNullException(nameof(workitem));
generated-code\HelixApi.cs (2)
355throw new ArgumentNullException(nameof(info)); 394throw new ArgumentNullException(nameof(info));
generated-code\Information.cs (2)
41Client = client ?? throw new ArgumentNullException(nameof(client)); 59throw new ArgumentNullException(nameof(queueId));
generated-code\Job.cs (9)
74Client = client ?? throw new ArgumentNullException(nameof(client)); 93throw new ArgumentNullException(nameof(body)); 103throw new ArgumentNullException(nameof(idempotencyKey)); 293throw new ArgumentNullException(nameof(job)); 368throw new ArgumentNullException(nameof(job)); 443throw new ArgumentNullException(nameof(job)); 518throw new ArgumentNullException(nameof(job)); 594throw new ArgumentNullException(nameof(job)); 664throw new ArgumentNullException(nameof(job));
generated-code\LogSearch.cs (3)
44Client = client ?? throw new ArgumentNullException(nameof(client)); 65throw new ArgumentNullException(nameof(responseType)); 155throw new ArgumentNullException(nameof(responseType));
generated-code\Machine.cs (6)
39Client = client ?? throw new ArgumentNullException(nameof(client)); 58throw new ArgumentNullException(nameof(body)); 63throw new ArgumentNullException(nameof(machineName)); 68throw new ArgumentNullException(nameof(queueId)); 141throw new ArgumentNullException(nameof(machineName)); 146throw new ArgumentNullException(nameof(queueId));
generated-code\ScaleSets.cs (1)
37Client = client ?? throw new ArgumentNullException(nameof(client));
generated-code\Storage.cs (3)
41Client = client ?? throw new ArgumentNullException(nameof(client)); 132throw new ArgumentNullException(nameof(body)); 218throw new ArgumentNullException(nameof(body));
generated-code\Telemetry.cs (20)
88Client = client ?? throw new ArgumentNullException(nameof(client)); 105throw new ArgumentNullException(nameof(body)); 192throw new ArgumentNullException(nameof(buildUri)); 197throw new ArgumentNullException(nameof(xHelixJobToken)); 285throw new ArgumentNullException(nameof(id)); 290throw new ArgumentNullException(nameof(xHelixJobToken)); 374throw new ArgumentNullException(nameof(friendlyName)); 379throw new ArgumentNullException(nameof(xHelixJobToken)); 467throw new ArgumentNullException(nameof(id)); 472throw new ArgumentNullException(nameof(resultsXmlUri)); 477throw new ArgumentNullException(nameof(xHelixJobToken)); 564throw new ArgumentNullException(nameof(eid)); 569throw new ArgumentNullException(nameof(id)); 574throw new ArgumentNullException(nameof(xHelixJobToken)); 661throw new ArgumentNullException(nameof(eid)); 666throw new ArgumentNullException(nameof(id)); 671throw new ArgumentNullException(nameof(xHelixJobToken)); 758throw new ArgumentNullException(nameof(id)); 763throw new ArgumentNullException(nameof(logUri)); 768throw new ArgumentNullException(nameof(xHelixJobToken));
generated-code\WorkItem.cs (11)
58Client = client ?? throw new ArgumentNullException(nameof(client)); 78throw new ArgumentNullException(nameof(file)); 83throw new ArgumentNullException(nameof(id)); 88throw new ArgumentNullException(nameof(job)); 164throw new ArgumentNullException(nameof(id)); 169throw new ArgumentNullException(nameof(job)); 249throw new ArgumentNullException(nameof(id)); 254throw new ArgumentNullException(nameof(job)); 324throw new ArgumentNullException(nameof(job)); 400throw new ArgumentNullException(nameof(id)); 405throw new ArgumentNullException(nameof(job));
HelixApiTokenAuthenticationPolicy.cs (1)
18if (credential == null) throw new ArgumentNullException(nameof(credential));
Job.cs (1)
15if (string.IsNullOrEmpty(jobCorrelationId)) throw new ArgumentNullException(nameof(jobCorrelationId));
Microsoft.DotNet.Helix.Sdk (6)
LoggerExtensions.cs (1)
29throw new ArgumentNullException(nameof(log));
ProvisioningProfileProvider.cs (5)
71_log = log ?? throw new ArgumentNullException(nameof(log)); 72_helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); 73_fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); 74_zipArchiveManager = zipArchiveManager ?? throw new ArgumentNullException(nameof(zipArchiveManager)); 75_httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolPublisherOptions.cs (1)
40Credential = credential ?? throw new ArgumentNullException(nameof(credential));
Microsoft.DotNet.MacOsPkg.Core (1)
ExecuteHelper.cs (1)
16throw new ArgumentNullException(nameof(command));
Microsoft.DotNet.RemoteExecutor (2)
MiniDump.cs (2)
18throw new ArgumentNullException(nameof(process)); 22throw new ArgumentNullException(nameof(destinationPath));
Microsoft.DotNet.SignCheckLibrary (14)
Interop\PortableExecutable\ImageCor20Header.cs (1)
50throw new ArgumentNullException("path");
Interop\PortableExecutable\ImageDataDirectory.cs (1)
37throw new ArgumentNullException("reader");
Interop\PortableExecutable\ImageDosHeader.cs (1)
101throw new ArgumentNullException("path");
Interop\PortableExecutable\ImageNTHeaders.cs (2)
27throw new ArgumentNullException("path"); 62throw new ArgumentNullException("path");
Interop\PortableExecutable\ImageOptionalHeader.cs (2)
302throw new ArgumentNullException("reader"); 371throw new ArgumentNullException("reader");
Interop\PortableExecutable\ImageSectionHeader.cs (1)
66throw new ArgumentNullException("reader");
Interop\StructuredStorage.cs (2)
32throw new ArgumentNullException("storage"); 138throw new ArgumentNullException("record");
Verification\FileVerifier.cs (2)
110Log = log ?? throw new ArgumentNullException("log"); 111Exclusions = exclusions ?? throw new ArgumentNullException("exclusions");
Verification\SignatureVerificationManager.cs (1)
173throw new ArgumentNullException("fileVerifier");
Verification\VsixVerifier.cs (1)
33throw new ArgumentNullException(nameof(packageSignature));
Microsoft.DotNet.XliffTasks (4)
EnumerableExtensions.cs (3)
15throw new ArgumentNullException(nameof(source)); 20throw new ArgumentNullException(nameof(keySelector)); 25throw new ArgumentNullException(nameof(comparer));
Validation.cs (1)
14throw new ArgumentNullException(parameterName);
Microsoft.DotNet.XUnitAssert.Tests (11)
ExceptionAssertsTests.cs (11)
67 var thrown = new ArgumentNullException(); 150 var thrown = new ArgumentNullException(); 223 var thrown = new ArgumentNullException(); 303 var thrown = new ArgumentNullException(); 392 var thrown = new ArgumentNullException(); 478 var thrown = new ArgumentNullException(); 550 void testCode() => throw new ArgumentNullException(); 620 object testCode() => throw new ArgumentNullException(); 680 Task testCode() => throw new ArgumentNullException(); 739 var thrown = new ArgumentNullException(); 825 var thrown = new ArgumentNullException();
Microsoft.Extensions.AI (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestData.cs (1)
28?? throw new ArgumentNullException("schema must not be null");
Microsoft.Extensions.AI.AzureAIInference (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Console (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Integration.Tests (7)
Settings.cs (7)
27throw new ArgumentNullException(nameof(DeploymentName)); 31throw new ArgumentNullException(nameof(ModelName)); 35throw new ArgumentNullException(nameof(Endpoint)); 39throw new ArgumentNullException(nameof(StorageRootPath)); 43?? throw new ArgumentNullException(nameof(AzureSubscriptionId)); 47?? throw new ArgumentNullException(nameof(AzureResourceGroupName)); 51?? throw new ArgumentNullException(nameof(AzureAIProjectName));
Microsoft.Extensions.AI.Evaluation.NLP (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Quality (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Reporting (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
Settings.cs (2)
22?? throw new ArgumentNullException(nameof(StorageAccountEndpoint)); 26?? throw new ArgumentNullException(nameof(StorageContainerName));
Microsoft.Extensions.AI.Evaluation.Safety (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Integration.Tests (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Ollama (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.OpenAI (4)
OpenAIAssistantChatClient.cs (1)
69serviceType is null ? throw new ArgumentNullException(nameof(serviceType)) :
src\Shared\ServerSentEvents\ThrowHelper.cs (1)
16throw new ArgumentNullException(parameterName);
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AmbientMetadata.Application (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AsyncState (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Caching.Hybrid (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
CacheServiceExtensionsTests.cs (1)
163throw new ArgumentNullException(nameof(services));
Microsoft.Extensions.Compliance.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Compliance.Redaction (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Compliance.Testing (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
27Source = source ?? throw new ArgumentNullException(nameof(source));
Microsoft.Extensions.DependencyInjection (2)
DefaultServiceProviderFactory.cs (1)
31_options = options ?? throw new ArgumentNullException(nameof(options));
ServiceLookup\ConstantCallSite.cs (1)
15_serviceType = serviceType ?? throw new ArgumentNullException(nameof(serviceType));
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
433return Expression.Block(Expression.IfThen(Expression.Equal(serviceProvider, Expression.Constant(null)), Expression.Throw(Expression.Constant(new ArgumentNullException(nameof(serviceProvider))))),
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.DependencyModel (3)
CollectionExtensions.cs (3)
17throw new ArgumentNullException(nameof(runtime)); 32throw new ArgumentNullException(nameof(runtime)); 56throw new ArgumentNullException(nameof(runtime));
Microsoft.Extensions.Diagnostics (3)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
16_configurations = configurations ?? throw new ArgumentNullException(nameof(configurations));
Metrics\Configuration\MetricsConfiguration.cs (1)
13Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
Metrics\Configuration\MetricsConfigureOptions.cs (1)
21_configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.HealthChecks (4)
DefaultHealthCheckService.cs (3)
29_scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory)); 30_options = options ?? throw new ArgumentNullException(nameof(options)); 31_logger = logger ?? throw new ArgumentNullException(nameof(logger));
DelegateHealthCheck.cs (1)
24_check = check ?? throw new ArgumentNullException(nameof(check));
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthReport.cs (1)
22CalculateAggregateStatus(entries?.Values ?? throw new ArgumentNullException(nameof(entries))),
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.Probes (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.Testing (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
80throw new ArgumentNullException(nameof(fileSystemWatcher), SR.Error_FileSystemWatcherRequiredWithoutPolling);
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
35throw new ArgumentNullException(nameof(rootDir));
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
58_options = options?.Value ?? throw new ArgumentNullException(nameof(options));
Microsoft.Extensions.Hosting.Testing (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggerTest.cs (2)
749var exception = new ArgumentNullException(); 792var enrichmentException = new ArgumentNullException();
Microsoft.Extensions.Http.Polly (27)
DependencyInjection\PollyHttpClientBuilderExtensions.cs (15)
35throw new ArgumentNullException(nameof(builder)); 40throw new ArgumentNullException(nameof(policy)); 67throw new ArgumentNullException(nameof(builder)); 72throw new ArgumentNullException(nameof(policySelector)); 99throw new ArgumentNullException(nameof(builder)); 104throw new ArgumentNullException(nameof(policySelector)); 132throw new ArgumentNullException(nameof(builder)); 137throw new ArgumentNullException(nameof(policyKey)); 171throw new ArgumentNullException(nameof(builder)); 176throw new ArgumentNullException(nameof(policySelector)); 221throw new ArgumentNullException(nameof(builder)); 226throw new ArgumentNullException(nameof(configurePolicy)); 258throw new ArgumentNullException(nameof(builder)); 263throw new ArgumentNullException(nameof(keySelector)); 268throw new ArgumentNullException(nameof(policyFactory));
DependencyInjection\PollyServiceCollectionExtensions.cs (5)
28throw new ArgumentNullException(nameof(services)); 62throw new ArgumentNullException(nameof(services)); 67throw new ArgumentNullException(nameof(registry)); 93throw new ArgumentNullException(nameof(services)); 98throw new ArgumentNullException(nameof(configureRegistry));
HttpRequestMessageExtensions.cs (2)
33throw new ArgumentNullException(nameof(request)); 54throw new ArgumentNullException(nameof(request));
PolicyHttpMessageHandler.cs (5)
86throw new ArgumentNullException(nameof(policy)); 100throw new ArgumentNullException(nameof(policySelector)); 111throw new ArgumentNullException(nameof(request)); 153throw new ArgumentNullException(nameof(request)); 158throw new ArgumentNullException(nameof(context));
Microsoft.Extensions.Http.Resilience (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Logging (1)
StaticFilterOptionsMonitor.cs (1)
13CurrentValue = currentValue ?? throw new ArgumentNullException(nameof(currentValue));
Microsoft.Extensions.Logging.AzureAppServices (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Extensions.ML (6)
ModelLoaders\FileModelLoader.cs (2)
30_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 31_context = contextOptions.Value?.MLContext ?? throw new ArgumentNullException(nameof(contextOptions));
ModelLoaders\UriModelLoader.cs (1)
37_logger = logger ?? throw new ArgumentNullException(nameof(logger));
PoolLoader.cs (2)
28Context = contextOptions.Value.MLContext ?? throw new ArgumentNullException(nameof(contextOptions)); 29Loader = poolOptions.ModelLoader ?? throw new ArgumentNullException(nameof(poolOptions));
PredictionEnginePool.cs (1)
141throw new ArgumentNullException(nameof(engine));
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Options.Contextual (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Extensions.Primitives (2)
ThrowHelper.cs (2)
15throw new ArgumentNullException(GetArgumentName(argument)); 46return new ArgumentNullException(GetArgumentName(argument));
Microsoft.Extensions.Resilience (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Telemetry (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Telemetry.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
455throw new ArgumentNullException("EM1", (Exception?)null);
Microsoft.Extensions.TimeProvider.Testing (2)
src\Shared\Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.WebEncoders (3)
Testing\HtmlTestEncoder.cs (1)
92throw new ArgumentNullException(nameof(buffer));
Testing\JavaScriptTestEncoder.cs (1)
92throw new ArgumentNullException(nameof(buffer));
Testing\UrlTestEncoder.cs (1)
92throw new ArgumentNullException(nameof(buffer));
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
Microsoft.JSInterop (2)
DotNetStreamReference.cs (1)
18Stream = stream ?? throw new ArgumentNullException(nameof(stream));
Infrastructure\DotNetInvocationResult.cs (1)
19Exception = exception ?? throw new ArgumentNullException(nameof(exception));
Microsoft.Maui (48)
ActivationState.cs (3)
35 Context = context ?? throw new ArgumentNullException(nameof(context)); 41 Context = context ?? throw new ArgumentNullException(nameof(context)); 42 State = state ?? throw new ArgumentNullException(nameof(state));
Animations\Easing.cs (1)
115 _easingFunc = easingFunc ?? throw new ArgumentNullException(nameof(easingFunc));
Dispatching\Dispatcher.cs (2)
18 _ = action ?? throw new ArgumentNullException(nameof(action)); 26 _ = action ?? throw new ArgumentNullException(nameof(action));
Dispatching\DispatcherExtensions.cs (1)
110 _ = callback ?? throw new ArgumentNullException(nameof(callback));
Extensions\EnumerableExtensions.cs (3)
67 throw new ArgumentNullException(nameof(enumerable)); 105 throw new ArgumentNullException(nameof(enumerable)); 147 throw new ArgumentNullException(nameof(enumerable));
Fonts\FileSystemEmbeddedFontLoader.cs (1)
25 _rootPath = rootPath ?? throw new ArgumentNullException(nameof(rootPath));
Fonts\FontFile.cs (2)
64 _ = input ?? throw new ArgumentNullException(nameof(input)); 99 _ = fontFamily ?? throw new ArgumentNullException(nameof(fontFamily));
Handlers\Element\ElementHandler.cs (2)
21 _ = mapper ?? throw new ArgumentNullException(nameof(mapper)); 40 _ = view ?? throw new ArgumentNullException(nameof(view));
Handlers\HybridWebView\FileExtensionContentTypeProvider.cs (1)
425 Mappings = mapping ?? throw new ArgumentNullException(nameof(mapping));
Hosting\Fonts\FontCollectionExtensions.cs (3)
20 _ = filename ?? throw new ArgumentNullException(nameof(filename)); 40 _ = assembly ?? throw new ArgumentNullException(nameof(assembly)); 41 _ = filename ?? throw new ArgumentNullException(nameof(filename));
Hosting\Internal\MauiFactory.cs (2)
21 _collection = collection ?? throw new ArgumentNullException(nameof(collection)); 31 throw new ArgumentNullException(nameof(serviceType));
Hosting\MauiAppBuilder.cs (1)
130 throw new ArgumentNullException(nameof(factory));
HotReload\HotReloadHelper.cs (2)
163 _ = HandlerService ?? throw new ArgumentNullException(nameof(HandlerService)); 179 _ = HandlerService ?? throw new ArgumentNullException(nameof(HandlerService));
Layouts\LayoutExtensions.cs (1)
13 _ = view ?? throw new ArgumentNullException(nameof(view));
MauiContext.cs (1)
26 _ = services ?? throw new ArgumentNullException(nameof(services));
Platform\ElementExtensions.cs (5)
58 _ = view ?? throw new ArgumentNullException(nameof(view)); 59 _ = context ?? throw new ArgumentNullException(nameof(context)); 140 _ = nativeElement ?? throw new ArgumentNullException(nameof(nativeElement)); 141 _ = element ?? throw new ArgumentNullException(nameof(element)); 142 _ = context ?? throw new ArgumentNullException(nameof(context));
VisualDiagnostics\VisualDiagnosticsOverlay.cs (4)
65 throw new ArgumentNullException(nameof(adorner)); 81 throw new ArgumentNullException(nameof(visualElement)); 106 throw new ArgumentNullException(nameof(adorner)); 127 throw new ArgumentNullException(nameof(visualElement));
WeakEventManager.cs (9)
20 throw new ArgumentNullException(nameof(eventName)); 23 throw new ArgumentNullException(nameof(handler)); 31 throw new ArgumentNullException(nameof(eventName)); 34 throw new ArgumentNullException(nameof(handler)); 86 throw new ArgumentNullException(nameof(eventName)); 89 throw new ArgumentNullException(nameof(handler)); 97 throw new ArgumentNullException(nameof(eventName)); 100 throw new ArgumentNullException(nameof(handler)); 154 Handler = handler ?? throw new ArgumentNullException(nameof(handler));
WeakReferenceExtensions.cs (2)
12 throw new ArgumentNullException(nameof(self)); 22 throw new ArgumentNullException(nameof(self));
WindowOverlay\WindowOverlay.cs (2)
98 throw new ArgumentNullException(nameof(drawable)); 109 throw new ArgumentNullException(nameof(drawable));
Microsoft.Maui.Controls (194)
Accelerator.cs (1)
19 throw new ArgumentNullException(nameof(text));
AnimatableKey.cs (1)
13 throw new ArgumentNullException(nameof(animatable));
AnimationExtensions.cs (3)
176 throw new ArgumentNullException(nameof(transform)); 178 throw new ArgumentNullException(nameof(callback)); 180 throw new ArgumentNullException(nameof(self));
BindableObject.cs (20)
85 throw new ArgumentNullException(nameof(property)); 99 throw new ArgumentNullException(nameof(property)); 119 throw new ArgumentNullException(nameof(propertyKey)); 168 throw new ArgumentNullException(nameof(property)); 249 var bpcontext = GetContext(targetProperty ?? throw new ArgumentNullException(nameof(targetProperty))); 266 BindablePropertyContext context = GetContext(property ?? throw new ArgumentNullException(nameof(property))); 277 BindablePropertyContext context = GetContext(property ?? throw new ArgumentNullException(nameof(property))); 294 throw new ArgumentNullException(nameof(targetProperty)); 331 context.Bindings[specificity] = binding ?? throw new ArgumentNullException(nameof(binding)); 429 throw new ArgumentNullException(nameof(targetProperty)); 449 throw new ArgumentNullException(nameof(property)); 466 throw new ArgumentNullException(nameof(property)); 468 throw new ArgumentNullException(nameof(key)); 483 throw new ArgumentNullException(nameof(property)); 509 throw new ArgumentNullException(nameof(propertyKey)); 517 throw new ArgumentNullException(nameof(property)); 531 throw new ArgumentNullException(nameof(propertyKey)); 556 throw new ArgumentNullException(nameof(property)); 808 throw new ArgumentNullException(nameof(propertyKey)); 816 throw new ArgumentNullException(nameof(property));
BindableObjectExtensions.cs (2)
58 throw new ArgumentNullException(nameof(self)); 60 throw new ArgumentNullException(nameof(targetProperty));
BindableProperty.cs (3)
82 throw new ArgumentNullException(nameof(propertyName)); 84 throw new ArgumentNullException(nameof(returnType)); 86 throw new ArgumentNullException(nameof(declaringType));
BindablePropertyKey.cs (1)
12 throw new ArgumentNullException(nameof(property));
Binding.cs (1)
32 throw new ArgumentNullException(nameof(path));
BindingBase.cs (4)
103 throw new ArgumentNullException(nameof(collection)); 114 throw new ArgumentNullException(nameof(collection)); 116 throw new ArgumentNullException(nameof(callback)); 182 throw new ArgumentNullException(nameof(collection));
BindingExpression.cs (2)
35 Binding = binding ?? throw new ArgumentNullException(nameof(binding)); 36 Path = path ?? throw new ArgumentNullException(nameof(path));
Command.cs (8)
22 throw new ArgumentNullException(nameof(execute)); 37 throw new ArgumentNullException(nameof(execute)); 39 throw new ArgumentNullException(nameof(canExecute)); 74 throw new ArgumentNullException(nameof(execute)); 83 throw new ArgumentNullException(nameof(execute)); 90 throw new ArgumentNullException(nameof(canExecute)); 99 throw new ArgumentNullException(nameof(execute)); 101 throw new ArgumentNullException(nameof(canExecute));
DataTemplate.cs (3)
55 Values.Remove(property ?? throw new ArgumentNullException(nameof(property))); 56 Bindings[property] = binding ?? throw new ArgumentNullException(nameof(binding)); 62 Bindings.Remove(property ?? throw new ArgumentNullException(nameof(property)));
Device.cs (1)
136 _ = callback ?? throw new ArgumentNullException(nameof(callback));
DragAndDrop\DataPackagePropertySetView.cs (1)
16 _ = dataPackagePropertySet ?? throw new global::System.ArgumentNullException(nameof(dataPackagePropertySet));
DragAndDrop\DataPackageView.cs (1)
16 _ = dataPackage ?? throw new global::System.ArgumentNullException(nameof(dataPackage));
DragAndDrop\DragGestureRecognizer.cs (1)
105 _ = args ?? throw new ArgumentNullException(nameof(args));
DragAndDrop\DropEventArgs.cs (1)
19 _ = view ?? throw new ArgumentNullException(nameof(view));
Element\ElementEventArgs.cs (1)
10 public ElementEventArgs(Element element) => Element = element ?? throw new ArgumentNullException(nameof(element));
ElementTemplate.cs (2)
28 throw new ArgumentNullException(nameof(type)); 36 internal ElementTemplate(Func<object> loadTemplate) : this() => LoadTemplate = loadTemplate ?? throw new ArgumentNullException(nameof(loadTemplate));
FlyoutPage\FlyoutPage.cs (2)
47 throw new ArgumentNullException(nameof(value), "Detail cannot be set to null once a value is set."); 98 throw new ArgumentNullException(nameof(value), "Flyout cannot be set to null once a value is set");
FocusEventArgs.cs (1)
13 throw new ArgumentNullException(nameof(visualElement));
FormattedString.cs (2)
81 protected override void InsertItem(int index, Span item) => base.InsertItem(index, item ?? throw new ArgumentNullException(nameof(item))); 82 protected override void SetItem(int index, Span item) => base.SetItem(index, item ?? throw new ArgumentNullException(nameof(item)));
Interactivity\AttachedCollection.cs (1)
27 throw new ArgumentNullException(nameof(bindable));
Interactivity\Behavior.cs (2)
19 internal Behavior(Type associatedType) => AssociatedType = associatedType ?? throw new ArgumentNullException(nameof(associatedType)); 29 throw new ArgumentNullException(nameof(bindable));
Interactivity\TriggerAction.cs (1)
11 throw new ArgumentNullException(nameof(associatedType));
Interactivity\TriggerBase.cs (3)
15 TargetType = targetType ?? throw new ArgumentNullException(nameof(targetType)); 62 throw new ArgumentNullException(nameof(bindable)); 71 throw new ArgumentNullException(nameof(bindable));
Internals\AsyncValue.cs (1)
45 _valueTask = valueTask ?? throw new ArgumentNullException(nameof(valueTask));
Internals\ImageParser.cs (1)
889 throw new ArgumentNullException(nameof(stream));
Internals\NameScope.cs (1)
50 throw new ArgumentNullException(nameof(name));
Internals\NotifyCollectionChangedEventArgsExtensions.cs (4)
28 throw new ArgumentNullException(nameof(self)); 30 throw new ArgumentNullException(nameof(reset)); 32 throw new ArgumentNullException(nameof(insert)); 34 throw new ArgumentNullException(nameof(removeAt));
Items\ItemsLayoutTypeConverter.cs (1)
21 throw new ArgumentNullException(nameof(strValue));
Items\SelectionChangedEventArgs.cs (2)
25 PreviousSelection = new List<object>(previousSelection ?? throw new ArgumentNullException(nameof(previousSelection))); 26 CurrentSelection = new List<object>(currentSelection ?? throw new ArgumentNullException(nameof(currentSelection)));
Items\SelectionList.cs (1)
20 _selectableItemsView = selectableItemsView ?? throw new ArgumentNullException(nameof(selectableItemsView));
Layout\GridExtensions.cs (1)
63 throw new ArgumentNullException(nameof(view));
LegacyLayouts\Grid.cs (5)
332 throw new ArgumentNullException(nameof(view)); 345 throw new ArgumentNullException(nameof(views)); 353 throw new ArgumentNullException(nameof(view)); 368 throw new ArgumentNullException(nameof(views)); 376 throw new ArgumentNullException(nameof(view));
LegacyLayouts\RelativeLayout.cs (1)
362 throw new ArgumentNullException(nameof(bounds));
MessagingCenter.cs (10)
118 throw new ArgumentNullException(nameof(sender)); 130 throw new ArgumentNullException(nameof(sender)); 142 throw new ArgumentNullException(nameof(subscriber)); 144 throw new ArgumentNullException(nameof(callback)); 165 throw new ArgumentNullException(nameof(subscriber)); 167 throw new ArgumentNullException(nameof(callback)); 203 throw new ArgumentNullException(nameof(message)); 229 throw new ArgumentNullException(nameof(message)); 246 throw new ArgumentNullException(nameof(subscriber)); 248 throw new ArgumentNullException(nameof(message));
MultiPage.cs (2)
181 throw new ArgumentNullException(nameof(page)); 201 throw new ArgumentNullException(nameof(page));
NavigationEventArgs.cs (1)
13 throw new ArgumentNullException(nameof(page));
NavigationPage\NavigationPage.cs (5)
174 throw new ArgumentNullException(nameof(page)); 335 throw new ArgumentNullException(nameof(page)); 738 throw new ArgumentNullException($"{nameof(page)} cannot be null."); 741 throw new ArgumentNullException($"{nameof(before)} cannot be null."); 871 throw new ArgumentNullException($"{nameof(page)} cannot be null.");
NavigationPage\NavigationPage.Legacy.cs (3)
123 throw new ArgumentNullException($"{nameof(page)} cannot be null."); 126 throw new ArgumentNullException($"{nameof(before)} cannot be null."); 234 throw new ArgumentNullException($"{nameof(page)} cannot be null.");
ObservableList.cs (4)
18 throw new ArgumentNullException(nameof(range)); 33 throw new ArgumentNullException(nameof(range)); 84 throw new ArgumentNullException(nameof(range)); 96 throw new ArgumentNullException(nameof(items));
ObservableWrapper.cs (4)
17 throw new ArgumentNullException(nameof(list)); 27 throw new ArgumentNullException(nameof(item)); 91 throw new ArgumentNullException(nameof(item)); 133 throw new ArgumentNullException(nameof(item));
OrderedDictionary.cs (6)
77 throw new ArgumentNullException(nameof(dictionary)); 127 throw new ArgumentNullException(nameof(array)); 299 throw new ArgumentNullException(nameof(key)); 315 throw new ArgumentNullException(nameof(key)); 338 throw new ArgumentNullException(nameof(key)); 394 throw new ArgumentNullException(nameof(array));
Page\Page.cs (1)
341 throw new ArgumentNullException(nameof(cancel));
PlatformBindingHelpers.cs (8)
36 throw new ArgumentNullException(nameof(target)); 38 throw new ArgumentNullException(nameof(targetProperty)); 107 throw new ArgumentNullException(nameof(target)); 109 throw new ArgumentNullException(nameof(targetProperty)); 111 throw new ArgumentNullException(nameof(binding)); 120 throw new ArgumentNullException(nameof(target)); 122 throw new ArgumentNullException(nameof(targetProperty)); 131 throw new ArgumentNullException(nameof(target));
PoppedToRootEventArgs.cs (1)
14 throw new ArgumentNullException(nameof(poppedPages));
RadioButton\RadioButtonGroupController.cs (1)
19 throw new ArgumentNullException(nameof(layout));
ReferenceTypeConverter.cs (1)
26 throw new ArgumentNullException(nameof(serviceProvider));
Registrar.cs (3)
149 throw new ArgumentNullException(nameof(obj)); 160 throw new ArgumentNullException(nameof(obj)); 199 throw new ArgumentNullException(nameof(obj));
ResourceDictionary.cs (1)
407 throw new ArgumentNullException(nameof(serviceProvider));
Routing.cs (2)
241 throw new ArgumentNullException(nameof(route), "Route cannot be an empty string"); 243 routeFactory = routeFactory ?? throw new ArgumentNullException(nameof(routeFactory), "Route Factory cannot be null");
ScrollView\ScrollView.cs (1)
268 throw new ArgumentNullException(nameof(element));
Setter.cs (3)
67 throw new ArgumentNullException(nameof(target)); 91 throw new ArgumentNullException(nameof(target)); 96 targetObject = element.FindByName(TargetName) as BindableObject ?? throw new ArgumentNullException(nameof(targetObject));
SettersExtensions.cs (2)
21 throw new ArgumentNullException(nameof(binding)); 30 throw new ArgumentNullException(nameof(key));
ShadowTypeConverter.cs (2)
53 throw new ArgumentNullException(nameof(strValue)); 147 throw new ArgumentNullException(nameof(value));
Shell\RouteRequestBuilder.cs (2)
78 _ = baseShellItem ?? throw new ArgumentNullException(nameof(baseShellItem)); 101 throw new ArgumentNullException(nameof(node));
StreamWrapper.cs (1)
24 throw new ArgumentNullException(nameof(wrapped));
Style.cs (1)
32 TargetType = targetType ?? throw new ArgumentNullException(nameof(targetType));
StyleSheets\CssReader.cs (1)
15 throw new ArgumentNullException(nameof(reader));
StyleSheets\Style.cs (1)
66 throw new ArgumentNullException(nameof(styleable));
StyleSheets\StyleSheet.cs (2)
42 throw new ArgumentNullException(nameof(stylesheet)); 51 throw new ArgumentNullException(nameof(reader));
SwipeView\SwipeItems.cs (1)
27 _swipeItems = new ObservableCollection<Maui.ISwipeItem>(swipeItems) ?? throw new ArgumentNullException(nameof(swipeItems));
TableView\TableSectionBase.cs (1)
28 throw new ArgumentNullException(nameof(title));
TableView\TableView.cs (1)
242 throw new ArgumentNullException(nameof(item));
TemplateBinding.cs (1)
29 throw new ArgumentNullException(nameof(path));
TemplatedItemsList.cs (9)
57 throw new ArgumentNullException(nameof(itemsView)); 59 throw new ArgumentNullException(nameof(itemSourceProperty)); 61 throw new ArgumentNullException(nameof(itemTemplateProperty)); 79 throw new ArgumentNullException(nameof(itemsView)); 81 throw new ArgumentNullException(nameof(itemTemplateProperty)); 366 throw new ArgumentNullException(nameof(group)); 590 throw new ArgumentNullException(nameof(item)); 598 throw new ArgumentNullException(nameof(item)); 1150 throw new ArgumentNullException(nameof(item));
TemplateExtensions.cs (1)
15 throw new ArgumentNullException(nameof(self));
Toolbar\ToolbarItem.cs (1)
26 throw new ArgumentNullException(nameof(activated));
TypedBinding.cs (1)
128 _getter = getter ?? throw new ArgumentNullException(nameof(getter));
TypeTypeConverter.cs (1)
22 throw new ArgumentNullException(nameof(serviceProvider));
ViewExtensions.cs (12)
25 throw new ArgumentNullException(nameof(view)); 74 throw new ArgumentNullException(nameof(view)); 92 throw new ArgumentNullException(nameof(view)); 120 throw new ArgumentNullException(nameof(view)); 138 throw new ArgumentNullException(nameof(view)); 156 throw new ArgumentNullException(nameof(view)); 174 throw new ArgumentNullException(nameof(view)); 192 throw new ArgumentNullException(nameof(view)); 209 throw new ArgumentNullException(nameof(view)); 227 throw new ArgumentNullException(nameof(view)); 245 throw new ArgumentNullException(nameof(view)); 264 throw new ArgumentNullException(nameof(view));
VisualStateManager.cs (3)
246 throw new ArgumentNullException(nameof(item)); 282 throw new ArgumentNullException(nameof(item)); 306 throw new ArgumentNullException(nameof(item));
Xaml\Diagnostics\BindablePropertyDiagnostics.cs (2)
10 throw new ArgumentNullException(nameof(bindable)); 12 throw new ArgumentNullException(nameof(property));
XmlnsDefinitionAttribute.cs (2)
22 ClrNamespace = clrNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 23 XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(clrNamespace));
XmlnsPrefixAttribute.cs (2)
13 XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 14 Prefix = prefix ?? throw new ArgumentNullException(nameof(prefix));
Microsoft.Maui.Controls.Build.Tasks (7)
MethodBodyExtensions.cs (1)
14 throw new ArgumentNullException(nameof(self));
MethodDefinitionExtensions.cs (2)
46 throw new System.ArgumentNullException(nameof(self)); 48 throw new System.ArgumentNullException(nameof(declaringTypeRef));
MethodReferenceExtensions.cs (2)
12 throw new ArgumentNullException(nameof(self)); 14 throw new ArgumentNullException(nameof(declaringTypeRef));
TypeReferenceExtensions.cs (2)
107 throw new ArgumentNullException(nameof(eventDef)); 109 throw new ArgumentNullException(nameof(declaringTypeRef));
Microsoft.Maui.Controls.Maps (2)
Map.cs (2)
198 throw new ArgumentNullException(nameof(mapSpan)); 214 throw new ArgumentNullException(nameof(visibleRegion));
Microsoft.Maui.Controls.SourceGen (5)
CodeBehindGenerator.cs (3)
604 throw new ArgumentNullException(nameof(node)); 609 throw new ArgumentNullException(nameof(localName)); 614 throw new ArgumentNullException(nameof(namespaceURIs));
src\Controls\src\Core\XmlnsDefinitionAttribute.cs (2)
22 ClrNamespace = clrNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 23 XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(clrNamespace));
Microsoft.Maui.Controls.Xaml (9)
MarkupExpressionParser.cs (1)
54 throw new ArgumentNullException(nameof(serviceProvider));
MarkupExtensions\DataTemplateExtension.cs (1)
16 throw new ArgumentNullException(nameof(serviceProvider));
MarkupExtensions\ReferenceExtension.cs (1)
17 throw new ArgumentNullException(nameof(serviceProvider));
MarkupExtensions\StaticExtension.cs (1)
20 throw new ArgumentNullException(nameof(serviceProvider));
MarkupExtensions\StaticResourceExtension.cs (1)
18 throw new ArgumentNullException(nameof(serviceProvider));
MarkupExtensions\TypeExtension.cs (1)
15 throw new ArgumentNullException(nameof(serviceProvider));
XamlServiceProvider.cs (3)
153 throw new ArgumentNullException(nameof(objectAndParents)); 206 this.namespaceResolver = namespaceResolver ?? throw new ArgumentNullException(); 207 this.getTypeFromXmlName = getTypeFromXmlName ?? throw new ArgumentNullException();
Microsoft.Maui.Essentials (28)
AppActions\AppActions.shared.cs (2)
211 Id = id ?? throw new ArgumentNullException(nameof(id)); 212 Title = title ?? throw new ArgumentNullException(nameof(title));
FileSystem\FileSystem.shared.cs (1)
192 throw new ArgumentNullException(nameof(fullPath));
Geocoding\Geocoding.shared.cs (1)
102 throw new ArgumentNullException(nameof(location));
Geolocation\GeolocationLocationChangedEventArgs.shared.cs (1)
24 throw new ArgumentNullException(nameof(location));
Launcher\Launcher.shared.cs (5)
142 throw new ArgumentNullException(nameof(uri)); 150 throw new ArgumentNullException(nameof(uri)); 158 throw new ArgumentNullException(nameof(request)); 160 throw new ArgumentNullException(nameof(request.File)); 168 throw new ArgumentNullException(nameof(uri));
Map\Map.shared.cs (4)
206 throw new ArgumentNullException(nameof(location)); 209 throw new ArgumentNullException(nameof(options)); 237 throw new ArgumentNullException(nameof(location)); 240 throw new ArgumentNullException(nameof(options));
PhoneDialer\PhoneDialer.shared.cs (1)
70 throw new ArgumentNullException(nameof(number));
SecureStorage\SecureStorage.shared.cs (3)
213 throw new ArgumentNullException(nameof(key)); 221 throw new ArgumentNullException(nameof(key)); 224 throw new ArgumentNullException(nameof(value));
Share\Share.shared.cs (3)
110 throw new ArgumentNullException(nameof(request)); 124 throw new ArgumentNullException(nameof(request)); 138 throw new ArgumentNullException(nameof(request));
TextToSpeech\TextToSpeech.shared.cs (1)
159 throw new ArgumentNullException(nameof(text), "Text cannot be null or empty string");
Types\DeviceIdiom.shared.cs (1)
45 throw new ArgumentNullException(nameof(deviceIdiom));
Types\DevicePlatform.shared.cs (1)
68 throw new ArgumentNullException(nameof(devicePlatform));
Types\Location.shared.cs (1)
100 throw new ArgumentNullException(nameof(point));
Types\Placemark.shared.cs (1)
25 throw new ArgumentNullException(nameof(placemark));
Types\PlacemarkExtensions.shared.cs (1)
23 throw new ArgumentNullException(nameof(placemark));
Types\Shared\WebUtils.shared.cs (1)
84 throw new ArgumentNullException(nameof(uri));
Microsoft.Maui.Graphics (4)
XmlnsDefinitionAttribute.cs (2)
15 ClrNamespace = clrNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 16 XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(clrNamespace));
XmlnsPrefixAttribute.cs (2)
10 XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 11 Prefix = prefix ?? throw new ArgumentNullException(nameof(prefix));
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
src\Graphics\src\Graphics\Platforms\Windows\AsyncPump.cs (3)
30 throw new ArgumentNullException("func"); 61 throw new ArgumentNullException("asyncMethod"); 102 throw new ArgumentNullException("d");
Microsoft.ML.AutoML (4)
Utils\StringEditDistance.cs (2)
15throw new ArgumentNullException(nameof(first)); 20throw new ArgumentNullException(nameof(second));
Utils\UserInputValidationUtil.cs (2)
73throw new ArgumentNullException(nameof(trainData), "Training data cannot be null"); 168throw new ArgumentNullException(nameof(path), "Provided path cannot be null");
Microsoft.ML.AutoML.SourceGenerator (10)
Template\EstimatorType.cs (2)
241throw new global::System.ArgumentNullException("indent"); 304throw new global::System.ArgumentNullException("objectToConvert");
Template\SearchSpace.cs (2)
258throw new global::System.ArgumentNullException("indent"); 321throw new global::System.ArgumentNullException("objectToConvert");
Template\SweepableEstimator.cs (2)
260throw new global::System.ArgumentNullException("indent"); 323throw new global::System.ArgumentNullException("objectToConvert");
Template\SweepableEstimator_T_.cs (2)
265throw new global::System.ArgumentNullException("indent"); 328throw new global::System.ArgumentNullException("objectToConvert");
Template\SweepableEstimatorFactory.cs (2)
236throw new global::System.ArgumentNullException("indent"); 299throw new global::System.ArgumentNullException("objectToConvert");
Microsoft.ML.Benchmarks.Tests (1)
BenchmarksTest.cs (1)
84this._testOutputHelper = testOutputHelper ?? throw new ArgumentNullException(nameof(testOutputHelper));
Microsoft.ML.CodeGenerator (23)
CodeGenerator\CSharp\CodeGenerator.cs (1)
255throw new ArgumentNullException(nameof(_pipeline));
CodeGenerator\CSharp\PipelineExtension.cs (1)
73throw new ArgumentNullException(nameof(pipeline));
Templates\Azure\Console\AzureModelBuilder.cs (2)
335throw new global::System.ArgumentNullException("indent"); 398throw new global::System.ArgumentNullException("objectToConvert");
Templates\Azure\Model\AzureImageModelOutputClass.cs (2)
276throw new global::System.ArgumentNullException("indent"); 339throw new global::System.ArgumentNullException("objectToConvert");
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (2)
276throw new global::System.ArgumentNullException("indent"); 339throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\ConsumeModel.cs (2)
287throw new global::System.ArgumentNullException("indent"); 350throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\ModelBuilder.cs (2)
652throw new global::System.ArgumentNullException("indent"); 715throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\ModelInputClass.cs (2)
250throw new global::System.ArgumentNullException("indent"); 313throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\ModelOutputClass.cs (2)
293throw new global::System.ArgumentNullException("indent"); 356throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\ModelProject.cs (2)
282throw new global::System.ArgumentNullException("indent"); 345throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\PredictProgram.cs (2)
309throw new global::System.ArgumentNullException("indent"); 372throw new global::System.ArgumentNullException("objectToConvert");
Templates\Console\PredictProject.cs (2)
287throw new global::System.ArgumentNullException("indent"); 350throw new global::System.ArgumentNullException("objectToConvert");
Utils.cs (1)
142case null: throw new ArgumentNullException(nameof(input));
Microsoft.ML.Core (11)
Environment\HostEnvironmentBase.cs (5)
586throw new ArgumentNullException(nameof(name)); 604throw new ArgumentNullException(nameof(name)); 619throw new ArgumentNullException(nameof(name)); 640throw new ArgumentNullException(nameof(name)); 658throw new ArgumentNullException(nameof(name));
Utilities\Contracts.cs (6)
322=> Process(new ArgumentNullException(paramName)); 324=> Process(new ArgumentNullException(paramName), ctx); 326=> Process(new ArgumentNullException(paramName, msg)); 328=> Process(new ArgumentNullException(paramName, msg), ctx); 330=> Process(new ArgumentNullException(paramName, GetMsg(msg, args))); 332=> Process(new ArgumentNullException(paramName, GetMsg(msg, args)), ctx);
Microsoft.ML.CpuMath (6)
src\Microsoft.ML.Core\Utilities\Contracts.cs (6)
322=> Process(new ArgumentNullException(paramName)); 324=> Process(new ArgumentNullException(paramName), ctx); 326=> Process(new ArgumentNullException(paramName, msg)); 328=> Process(new ArgumentNullException(paramName, msg), ctx); 330=> Process(new ArgumentNullException(paramName, GetMsg(msg, args))); 332=> Process(new ArgumentNullException(paramName, GetMsg(msg, args)), ctx);
Microsoft.ML.Data (1)
Utilities\StreamUtils.cs (1)
196throw new ArgumentNullException(nameof(buffer));
Microsoft.ML.DataView (22)
Contracts.cs (1)
43=> new ArgumentNullException(paramName);
DataViewSchema.cs (20)
38if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); 63if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); 108throw new ArgumentNullException(nameof(name)); 115Type = type ?? throw new ArgumentNullException(nameof(type)); 151throw new ArgumentNullException(nameof(name)); 154Type = type ?? throw new ArgumentNullException(nameof(type)); 204throw new ArgumentNullException(nameof(getter), $"Delegate at index '{i}' of {nameof(getters)} was null."); 215throw new ArgumentNullException(nameof(getter), $"Getter of type '{typeof(TValue)}' expected, but {getter.GetType()} found"); 277throw new ArgumentNullException(nameof(selector)); 298throw new ArgumentNullException(nameof(name)); 300throw new ArgumentNullException(nameof(type)); 302throw new ArgumentNullException(nameof(getter)); 321throw new ArgumentNullException(nameof(name)); 323throw new ArgumentNullException(nameof(type)); 325throw new ArgumentNullException(nameof(getter)); 341throw new ArgumentNullException(nameof(name)); 343throw new ArgumentNullException(nameof(type)); 399throw new ArgumentNullException(nameof(name)); 401throw new ArgumentNullException(nameof(type)); 450throw new ArgumentNullException(nameof(columns));
DataViewType.cs (1)
26RawType = rawType ?? throw new ArgumentNullException(nameof(rawType));
Microsoft.ML.GenAI.LLaMA (7)
LlamaConfig.cs (5)
52Llama3_1_8B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_1_8b_content) ?? throw new ArgumentNullException(nameof(llama3_1_8b_content)); 53Llama3_1_70B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_1_70b_content) ?? throw new ArgumentNullException(nameof(llama3_1_70b_content)); 54Llama3_1_405B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_1_405b_content) ?? throw new ArgumentNullException(nameof(llama3_1_405b_content)); 55Llama3_2_1B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_2_1b_content) ?? throw new ArgumentNullException(nameof(llama3_2_1b_content)); 56Llama_3_2_3B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_2_3b_content) ?? throw new ArgumentNullException(nameof(llama3_2_3b_content));
LlamaForCausalLM.cs (2)
103var modelConfig = JsonSerializer.Deserialize<LlamaConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 136var modelConfig = JsonSerializer.Deserialize<LlamaConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Mistral (4)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
180var schemaBuilder = new JsonSchemaBuilder().FromType(param.ParameterType ?? throw new ArgumentNullException(nameof(param.ParameterType)));
MistralConfig.cs (1)
44Mistral_7B_Instruct_v0_3 = JsonSerializer.Deserialize<MistralConfig>(mistral7BInstructContent) ?? throw new ArgumentNullException(nameof(mistral7BInstructContent));
MistralForCausalLM.cs (2)
58var modelConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 86var modelConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Phi (8)
Phi2\Config.cs (1)
45var phi2Config = JsonSerializer.Deserialize<Phi2Config>(phi2ConfigContent) ?? throw new ArgumentNullException(nameof(phi2ConfigContent));
Phi2\Phi2ForCasualLM.cs (1)
59var modelConfig = JsonSerializer.Deserialize<Phi2Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Phi3\Config.cs (4)
50Phi3Mini4kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Mini4kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Mini4kInstructContent)); 51Phi3Mini128kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Mini128kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Mini128kInstructContent)); 52Phi3Medium4kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Medium4kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Medium4kInstructContent)); 53Phi3Medium128kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Medium128kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Medium128kInstructContent));
Phi3\Phi3ForCasualLM.cs (2)
60var modelConfig = JsonSerializer.Deserialize<Phi3Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 88var modelConfig = JsonSerializer.Deserialize<Phi3Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Samples (1)
Mistral\Mistral_7B_Instruct.cs (1)
76var mistralConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(Path.Combine(weightFolder, configName))) ?? throw new ArgumentNullException(nameof(configName));
Microsoft.ML.ImageAnalytics (2)
MLImage.cs (2)
40throw new ArgumentNullException(nameof(imageStream)); 61throw new ArgumentNullException(nameof(imagePath));
Microsoft.ML.IntegrationTests (1)
Datasets\TypeTestData.cs (1)
126throw new ArgumentNullException(nameof(rng));
Microsoft.ML.TestFrameworkCommon (2)
Attributes\EnvironmentSpecificFactAttribute.cs (1)
24_skipMessage = skipMessage ?? throw new ArgumentNullException(nameof(skipMessage));
Attributes\EnvironmentSpecificTheoryAttribute.cs (1)
24_skipMessage = skipMessage ?? throw new ArgumentNullException(nameof(skipMessage));
Microsoft.ML.Tokenizers (68)
Model\BertTokenizer.cs (10)
294throw new ArgumentNullException(nameof(tokenIds)); 343throw new ArgumentNullException(nameof(tokenIds)); 406throw new ArgumentNullException(nameof(tokenIds)); 470throw new ArgumentNullException(nameof(tokenIds)); 562throw new ArgumentNullException(nameof(tokenIds)); 606throw new ArgumentNullException(nameof(tokenIds)); 665string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), 699throw new ArgumentNullException(nameof(vocabStream)); 722Stream stream = string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath); 738throw new ArgumentNullException(nameof(vocabStream));
Model\BpeOptions.cs (1)
22throw new ArgumentNullException(nameof(vocabulary));
Model\BPETokenizer.cs (7)
124throw new ArgumentNullException(nameof(vocabFile)); 139throw new ArgumentNullException(nameof(options)); 144throw new ArgumentNullException(nameof(options.Vocabulary), "The vocabulary cannot be null."); 234throw new ArgumentNullException(nameof(vocabStream)); 270throw new ArgumentNullException(nameof(vocabStream)); 780throw new ArgumentNullException(nameof(ids)); 899throw new ArgumentNullException(nameof(ids));
Model\CodeGenTokenizer.cs (8)
67this(vocabularyPath is null ? throw new ArgumentNullException(nameof(vocabularyPath)) : File.OpenRead(vocabularyPath), 68mergePath is null ? throw new ArgumentNullException(nameof(mergePath)) : File.OpenRead(mergePath), 108throw new ArgumentNullException(nameof(vocabularyStream)); 113throw new ArgumentNullException(nameof(mergeStream)); 1250throw new ArgumentNullException(nameof(ids)); 1351throw new ArgumentNullException(nameof(ids)); 1868throw new ArgumentNullException(nameof(vocabStream)); 1873throw new ArgumentNullException(nameof(mergesStream));
Model\EnglishRobertaTokenizer.cs (12)
119this(vocabularyPath is null ? throw new ArgumentNullException(nameof(vocabularyPath)) : File.OpenRead(vocabularyPath), 120mergePath is null ? throw new ArgumentNullException(nameof(mergePath)) : File.OpenRead(mergePath), 121highestOccurrenceMappingPath is null ? throw new ArgumentNullException(nameof(highestOccurrenceMappingPath)) : File.OpenRead(highestOccurrenceMappingPath), 144throw new ArgumentNullException(nameof(vocabularyStream)); 149throw new ArgumentNullException(nameof(mergeStream)); 154throw new ArgumentNullException(nameof(highestOccurrenceMappingStream)); 768throw new ArgumentNullException(nameof(ids)); 796throw new ArgumentNullException(nameof(ids)); 833throw new ArgumentNullException(nameof(ids)); 855throw new ArgumentNullException(nameof(ids)); 877throw new ArgumentNullException(nameof(ranks)); 1171throw new ArgumentNullException(nameof(symbol), $"argument {nameof(symbol)} should not be null.");
Model\LlamaTokenizer.cs (1)
44throw new ArgumentNullException(nameof(modelProto));
Model\Phi2Tokenizer.cs (2)
108throw new ArgumentNullException(nameof(vocabStream)); 113throw new ArgumentNullException(nameof(mergesStream));
Model\SentencePieceBaseModel.cs (3)
22throw new ArgumentNullException(nameof(modelProto)); 150throw new ArgumentNullException(nameof(ids)); 375throw new ArgumentNullException(nameof(ids));
Model\SentencePieceTokenizer.cs (1)
455throw new ArgumentNullException(nameof(modelProto));
Model\TiktokenTokenizer.cs (12)
47this(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), preTokenizer, specialTokens, normalizer, cacheSize, disposeStream: true) 62this(vocabStream ?? throw new ArgumentNullException(nameof(vocabStream)), preTokenizer, specialTokens, normalizer, cacheSize, disposeStream: false) 85_encoder = encoder ?? throw new ArgumentNullException(nameof(encoder)); 86_decoder = decoder ?? throw new ArgumentNullException(nameof(decoder)); 87_vocab = vocab ?? throw new ArgumentNullException(nameof(vocab)); 806throw new ArgumentNullException(nameof(ids)); 874throw new ArgumentNullException(nameof(ids)); 1327throw new ArgumentNullException(nameof(vocabStream)); 1359throw new ArgumentNullException(nameof(vocabFilePath)); 1384throw new ArgumentNullException(nameof(modelName)); 1424throw new ArgumentNullException(nameof(modelName)); 1465throw new ArgumentNullException(nameof(encodingName));
Model\WordPieceTokenizer.cs (7)
49throw new ArgumentNullException(nameof(options.UnknownToken)); 54throw new ArgumentNullException(nameof(options.ContinuingSubwordPrefix)); 96throw new ArgumentNullException(nameof(vocabStream)); 134Create(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), options, disposeStream: true); 158throw new ArgumentNullException(nameof(vocabStream)); 192string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), 222throw new ArgumentNullException(nameof(vocabStream));
PreTokenizer\CompositePreTokenizer.cs (1)
35throw new ArgumentNullException(nameof(preTokenizers));
PreTokenizer\RegexPreTokenizer.cs (1)
31throw new ArgumentNullException(nameof(regex));
Tokenizer.cs (1)
368throw new ArgumentNullException(nameof(ids));
Utils\DoubleArrayTrie.cs (1)
1058throw new ArgumentNullException(nameof(preCompiledData));
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
33throw new ArgumentNullException(nameof(test)); 83throw new ArgumentNullException(nameof(test));
Microsoft.ML.Tokenizers.Tests (3)
src\Common\tests\RetryHelper.cs (2)
33throw new ArgumentNullException(nameof(test)); 83throw new ArgumentNullException(nameof(test));
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (1)
1058throw new ArgumentNullException(nameof(preCompiledData));
Microsoft.ML.TorchSharp (12)
NasBert\Models\BaseModel.cs (1)
27Options = options ?? throw new ArgumentNullException(nameof(options));
NasBert\Modules\IncrementalState.cs (1)
80incrementalState = incrementalState ?? throw new ArgumentNullException(nameof(incrementalState));
NasBert\NerTrainer.cs (2)
201predictions = predictions ?? throw new ArgumentNullException(nameof(predictions)); 208logits = logits ?? throw new ArgumentNullException(nameof(logits));
NasBert\SentenceSimilarityTrainer.cs (2)
136predictions = predictions ?? throw new ArgumentNullException(nameof(predictions)); 143logits = logits ?? throw new ArgumentNullException(nameof(logits));
NasBert\TextClassificationTrainer.cs (2)
137predictions = predictions ?? throw new ArgumentNullException(nameof(predictions)); 144logits = logits ?? throw new ArgumentNullException(nameof(logits));
Utils\ImageUtils.cs (4)
26throw new ArgumentNullException(nameof(imgBatch)); 31throw new ArgumentNullException(nameof(classification)); 36throw new ArgumentNullException(nameof(regression)); 41throw new ArgumentNullException(nameof(anchors));
Microsoft.Net.Http.Headers (8)
CookieHeaderValue.cs (5)
36throw new ArgumentNullException(nameof(name)); 49throw new ArgumentNullException(nameof(name)); 54throw new ArgumentNullException(nameof(value)); 169throw new ArgumentNullException(nameof(name)); 182throw new ArgumentNullException(nameof(value));
ObjectCollection.cs (1)
75throw new ArgumentNullException(nameof(item));
SetCookieHeaderValue.cs (2)
70throw new ArgumentNullException(nameof(name)); 75throw new ArgumentNullException(nameof(value));
Microsoft.NET.StringTools (3)
InternableString.cs (1)
138throw new ArgumentNullException(nameof(str));
SpanBasedStringBuilder.cs (2)
99throw new ArgumentNullException(nameof(str)); 245throw new ArgumentNullException(nameof(value));
Microsoft.NET.StringTools.net35 (2)
InternableString.Simple.cs (1)
101throw new ArgumentNullException(nameof(str));
SpanBasedStringBuilder.Simple.cs (1)
72throw new ArgumentNullException(nameof(str));
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\Information.vb (2)
132Throw VbMakeException(New ArgumentNullException(NameOf(Array)), vbErrors.OutOfBounds) 146Throw VbMakeException(New ArgumentNullException(NameOf(Array)), vbErrors.OutOfBounds)
Microsoft.VisualStudio.LanguageServices (38)
CodeMarkers\ManagedCodeMarkers.cs (3)
212throw new ArgumentNullException(nameof(aBuff)); 277throw new ArgumentNullException(nameof(stringData)); 352throw new ArgumentNullException(nameof(regRoot));
Interop\CleanableWeakComHandleTable.cs (1)
150throw new ArgumentNullException(nameof(value));
LanguageClient\LogHubLspLogger.cs (2)
22_configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); 23_traceSource = traceSource ?? throw new ArgumentNullException(nameof(traceSource));
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (1)
32_syntaxFacts = syntaxFacts ?? throw new ArgumentNullException(nameof(syntaxFacts));
MoveToNamespace\MoveToNamespaceDialogViewModel.cs (1)
27_syntaxFacts = syntaxFacts ?? throw new ArgumentNullException(nameof(syntaxFacts));
Preview\PreviewEngine.cs (3)
64_title = title ?? throw new ArgumentNullException(nameof(title)); 65_helpString = helpString ?? throw new ArgumentNullException(nameof(helpString)); 66_description = description ?? throw new ArgumentNullException(nameof(description));
ProjectSystem\VisualStudioWorkspaceImpl.cs (20)
300throw new ArgumentNullException(nameof(documentId)); 493throw new ArgumentNullException(nameof(projectId)); 498throw new ArgumentNullException(nameof(options)); 511throw new ArgumentNullException(nameof(projectId)); 516throw new ArgumentNullException(nameof(options)); 528throw new ArgumentNullException(nameof(projectId)); 533throw new ArgumentNullException(nameof(analyzerReference)); 550throw new ArgumentNullException(nameof(projectId)); 555throw new ArgumentNullException(nameof(analyzerReference)); 583throw new ArgumentNullException(nameof(projectId)); 588throw new ArgumentNullException(nameof(metadataReference)); 609throw new ArgumentNullException(nameof(projectId)); 614throw new ArgumentNullException(nameof(metadataReference)); 702throw new ArgumentNullException(nameof(projectId)); 707throw new ArgumentNullException(nameof(projectReference)); 742throw new ArgumentNullException(nameof(projectId)); 747throw new ArgumentNullException(nameof(projectReference)); 1012throw new ArgumentNullException(nameof(documentId)); 1084throw new ArgumentNullException(nameof(documentId)); 1168throw new ArgumentNullException(nameof(documentId));
ValueTracking\ValueTrackingToolWindow.cs (1)
39throw new ArgumentNullException(nameof(value));
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (2)
31throw new ArgumentNullException(nameof(projectId)); 36throw new ArgumentNullException(nameof(assemblyIdentity));
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (4)
37symbol ?? throw new ArgumentNullException(nameof(symbol)), 38newName ?? throw new ArgumentNullException(nameof(newName)), 39startingSolution ?? throw new ArgumentNullException(nameof(startingSolution)), 40updatedSolution ?? throw new ArgumentNullException(nameof(updatedSolution)));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
798throw new ArgumentNullException(nameof(node)); 873throw new ArgumentNullException(nameof(node));
Microsoft.VisualStudio.LanguageServices.LiveShare (8)
Client\Projects\RemoteProjectInfoProvider.cs (1)
28=> _remoteProjectInfoProviders = remoteProjectInfoProviders ?? throw new ArgumentNullException(nameof(remoteProjectInfoProviders));
Client\Projects\RoslynRemoteProjectInfoProvider.cs (2)
35_roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); 36_remoteLanguageServiceWorkspace = remoteLanguageServiceWorkspace ?? throw new ArgumentNullException(nameof(RemoteLanguageServiceWorkspace));
Client\Razor\CSharpLspContainedLanguageProvider.cs (3)
31_contentTypeRegistry = contentTypeRegistry ?? throw new ArgumentNullException(nameof(contentTypeRegistry)); 32_serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); 33_razorProjectFactory = razorProjectFactory ?? throw new ArgumentNullException(nameof(razorProjectFactory));
Client\Razor\CSharpLspRazorProjectFactory.cs (1)
40=> _remoteLanguageServiceWorkspaceHost = remoteLanguageServiceWorkspaceHost ?? throw new ArgumentNullException(nameof(remoteLanguageServiceWorkspaceHost));
Client\RemoteLanguageServiceWorkspaceHost.cs (1)
60_serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlTextViewCreationListener.cs (1)
52throw new ArgumentNullException(nameof(textView));
Microsoft.Web.Xdt.Extensions (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
61throw new ArgumentNullException(paramName);
MSBuild (3)
CoreCLRAssemblyLoader.cs (2)
35throw new ArgumentNullException(nameof(fullPath)); 48throw new ArgumentNullException(nameof(fullPath));
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
MSBuildTaskHost (5)
Concurrent\ConcurrentDictionary.cs (2)
271throw new ArgumentNullException("key"); 298throw new ArgumentNullException(nameof(valueFactory));
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
FileUtilities.cs (1)
1582throw new ArgumentNullException(nameof(buffer));
Immutable\ImmutableDictionary.cs (1)
114throw new ArgumentNullException(nameof(array));
PresentationBuildTasks (37)
MS\Internal\MarkupCompiler\PathInternal.cs (2)
29throw new ArgumentNullException(nameof(relativeTo)); 35throw new ArgumentNullException(nameof(path));
MS\Internal\Tasks\TaskFileService.cs (8)
126throw new ArgumentNullException(nameof(srcFile)); 217throw new ArgumentNullException(nameof(srcFile)); 243throw new ArgumentNullException(nameof(fileName)); 265throw new ArgumentNullException(nameof(fileName)); 287throw new ArgumentNullException(nameof(destinationFile)); 292throw new ArgumentNullException(nameof(contentArray)); 331throw new ArgumentNullException(nameof(destinationFileBaseName)); 336throw new ArgumentNullException(nameof(contentArray));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
420throw new ArgumentNullException( nameof(parserContext));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlBrushSerializer.cs (1)
97throw new ArgumentNullException(nameof(writer));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlNodes.cs (4)
431throw new ArgumentNullException(nameof(typeFullName)); 435throw new ArgumentNullException(nameof(propertyName)); 2210throw new ArgumentNullException(nameof(typeFullName)); 2214throw new ArgumentNullException(nameof(propertyName));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (11)
74throw new ArgumentNullException( nameof(assemblyNames)); 105throw new ArgumentNullException( nameof(xmlNamespace)); 109throw new ArgumentNullException( nameof(localName)); 182throw new ArgumentNullException(nameof(assemblyName)); 186throw new ArgumentNullException(nameof(assemblyPath)); 4230throw new ArgumentNullException(nameof(xmlNamespace)); 4233throw new ArgumentNullException(nameof(assemblyName)); 4236throw new ArgumentNullException(nameof(clrNamespace)); 4274throw new ArgumentNullException(nameof(value)); 4293throw new ArgumentNullException(nameof(value)); 4312throw new ArgumentNullException(nameof(value));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (5)
337throw new ArgumentNullException( nameof(prefix)); 609throw new ArgumentNullException(nameof(xmlNamespace)); 612throw new ArgumentNullException(nameof(prefix)); 659throw new ArgumentNullException(nameof(xmlNamespace)); 664throw new ArgumentNullException(nameof(prefix));
src\Microsoft.DotNet.Wpf\src\WindowsBase\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
262throw new ArgumentNullException(testStringIdentifier);
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\FormatVersion.cs (4)
67throw new ArgumentNullException(nameof(featureId)); 69throw new ArgumentNullException(nameof(writerVersion)); 71throw new ArgumentNullException(nameof(readerVersion)); 73throw new ArgumentNullException(nameof(updaterVersion));
PresentationCore (62)
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (2)
362throw new ArgumentNullException(StrokeCollectionSerializer.ISFDebugMessage("input or compressed data was null in Compress")); 410throw new ArgumentNullException(StrokeCollectionSerializer.ISFDebugMessage("reader or compressedData was null in compress"));
MS\Internal\Media\VisualTreeUtils.cs (1)
210throw new ArgumentNullException(nameof(element));
MS\Internal\TextFormatting\FullTextLine.cs (1)
711throw new ArgumentNullException(nameof(collapsingPropertiesList));
MS\Internal\TextFormatting\TextFormatterImp.cs (2)
451throw new ArgumentNullException("paragraphProperties.DefaultTextRunProperties"); 454throw new ArgumentNullException("paragraphProperties.DefaultTextRunProperties.Typeface");
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (1)
380throw new ArgumentNullException(nameof(characterString));
System\Windows\DragDrop.cs (1)
893throw new ArgumentNullException(nameof(handle));
System\Windows\Ink\DrawingAttributes.cs (2)
590throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 619throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\Events.cs (1)
158throw new ArgumentNullException(nameof(oldProperty));
System\Windows\Ink\Stroke.cs (5)
586throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 617throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 632throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 649throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 667throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\StrokeCollection.cs (5)
448throw new ArgumentNullException(SR.EmptyScToReplace); 465throw new ArgumentNullException(SR.EmptyScToReplace); 469throw new ArgumentNullException(SR.EmptyScToReplaceWith); 617throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 674throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\StrokeCollection2.cs (2)
318throw new System.ArgumentNullException(SR.SCEraseShape); 322throw new System.ArgumentNullException(SR.SCErasePath);
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (2)
38throw new ArgumentNullException(nameof(plugIn), SR.Stylus_PlugInIsNull); 171throw new ArgumentNullException(nameof(plugIn), SR.Stylus_PlugInIsNull);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
290throw new ArgumentNullException("stylusPointDescription");
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
111throw new ArgumentNullException("stylusPointPropertyInfo");
System\Windows\InterOp\Imaging.cs (3)
54throw new ArgumentNullException(nameof(bitmap)); 77throw new ArgumentNullException(nameof(icon)); 106throw new ArgumentNullException(nameof(section));
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "BooleanKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ByteKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "CharKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ColorKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "DecimalKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "DoubleKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int16KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int32KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int64KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "MatrixKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ObjectKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Point3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "PointKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "QuaternionKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "RectKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Rotation3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "SingleKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "SizeKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "StringKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Vector3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "VectorKeyFrameCollection[{0}]", index));
System\Windows\Media\ColorTransformHelper.cs (2)
59throw new ArgumentNullException(nameof(sourceProfile)); 64throw new ArgumentNullException(nameof(destinationProfile));
System\Windows\Media\Fonts.cs (1)
102throw new ArgumentNullException(nameof(baseUri), SR.Format(SR.NullBaseUriParam, "baseUri", "location"));
System\Windows\Media\FormattedText.cs (1)
1281throw new ArgumentNullException(nameof(maxTextWidths));
System\Windows\Media\Imaging\BitmapSource.cs (1)
684throw new ArgumentNullException(nameof(buffer));
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
833throw new ArgumentNullException(backwardsCompat ? "buffer" : "sourceBuffer"); 1048throw new ArgumentNullException(backwardsCompat ? "pixels" : "sourceBuffer");
System\Windows\Media\textformatting\TextCharacters.cs (3)
114throw new ArgumentNullException("textRunProperties.Typeface"); 119throw new ArgumentNullException("textRunProperties.CultureInfo"); 186throw new ArgumentNullException("characterBufferReference.CharacterBuffer");
System\Windows\Media\textformatting\TextEndOfLine.cs (1)
46throw new ArgumentNullException("textRunProperties.Typeface");
PresentationFramework (68)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
44throw new ArgumentNullException("annotation component");
MS\Internal\AppModel\ResourcePart.cs (1)
30throw new ArgumentNullException(nameof(rmWrapper));
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
41throw new ArgumentNullException(nameof(thisPtr));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
232throw new ArgumentNullException("anchorLocator.Parts");
System\Windows\Condition.cs (1)
277throw new ArgumentNullException(nameof(targetObject));
System\Windows\Controls\DataGridColumnCollection.cs (2)
40throw new ArgumentNullException(nameof(item), SR.DataGrid_NullColumn); 61throw new ArgumentNullException(nameof(item), SR.DataGrid_NullColumn);
System\Windows\Controls\TextRangeAdaptor.cs (1)
1655throw new ArgumentNullException(nameof(attributeId));
System\Windows\Controls\UIElementCollection.cs (2)
36throw new ArgumentNullException(SR.Format(SR.Panel_NoNullVisualParent, "visualParent", this.GetType())); 515throw new ArgumentNullException(SR.Format(SR.Panel_NoNullChildren, this.GetType()));
System\Windows\Controls\WebBrowser.cs (2)
170throw new ArgumentNullException(nameof(text)); 257throw new ArgumentNullException(nameof(scriptName));
System\Windows\ControlTemplate.cs (1)
132throw new ArgumentNullException(argName);
System\Windows\Data\BindingListCollectionView.cs (1)
1149throw new ArgumentNullException(nameof(value));
System\Windows\Data\ListCollectionView.cs (3)
1392throw new ArgumentNullException(nameof(value)); 1416throw new ArgumentNullException(nameof(value)); 1440throw new ArgumentNullException(nameof(value));
System\Windows\Documents\ValidationHelper.cs (2)
39throw new ArgumentNullException(paramName); 102throw new ArgumentNullException(paramName);
System\Windows\Documents\WpfPayload.cs (1)
484throw new ArgumentNullException("image.Source");
System\Windows\Markup\ParserContext.cs (2)
93throw new ArgumentNullException( nameof(xmlParserContext)); 420throw new ArgumentNullException( nameof(parserContext));
System\Windows\Markup\XamlNodes.cs (4)
431throw new ArgumentNullException(nameof(typeFullName)); 435throw new ArgumentNullException(nameof(propertyName)); 2210throw new ArgumentNullException(nameof(typeFullName)); 2214throw new ArgumentNullException(nameof(propertyName));
System\Windows\Markup\XamlTypeMapper.cs (20)
55throw new ArgumentNullException( nameof(assemblyNames)); 74throw new ArgumentNullException( nameof(assemblyNames)); 105throw new ArgumentNullException( nameof(xmlNamespace)); 109throw new ArgumentNullException( nameof(localName)); 139throw new ArgumentNullException(nameof(xmlNamespace)); 143throw new ArgumentNullException(nameof(clrNamespace)); 147throw new ArgumentNullException(nameof(assemblyName)); 182throw new ArgumentNullException(nameof(assemblyName)); 186throw new ArgumentNullException(nameof(assemblyPath)); 447throw new ArgumentNullException( nameof(localName)); 451throw new ArgumentNullException( nameof(xmlNamespace)); 1785throw new ArgumentNullException( nameof(ownerType)); 2155throw new ArgumentNullException( nameof(element)); 2159throw new ArgumentNullException( nameof(typeName)); 4230throw new ArgumentNullException(nameof(xmlNamespace)); 4233throw new ArgumentNullException(nameof(assemblyName)); 4236throw new ArgumentNullException(nameof(clrNamespace)); 4274throw new ArgumentNullException(nameof(value)); 4293throw new ArgumentNullException(nameof(value)); 4312throw new ArgumentNullException(nameof(value));
System\Windows\Markup\XmlAttributeProperties.cs (8)
185throw new ArgumentNullException( nameof(dependencyObject)); 198throw new ArgumentNullException( nameof(dependencyObject)); 219throw new ArgumentNullException( nameof(dependencyObject)); 232throw new ArgumentNullException( nameof(dependencyObject)); 257throw new ArgumentNullException( nameof(dependencyObject)); 270throw new ArgumentNullException( nameof(dependencyObject)); 294throw new ArgumentNullException( nameof(dependencyObject)); 310throw new ArgumentNullException( nameof(dependencyObject));
System\Windows\Markup\XmlnsDictionary.cs (7)
96throw new ArgumentNullException( nameof(xmlnsDictionary)); 337throw new ArgumentNullException( nameof(prefix)); 368throw new ArgumentNullException( nameof(xmlNamespace)); 609throw new ArgumentNullException(nameof(xmlNamespace)); 612throw new ArgumentNullException(nameof(prefix)); 659throw new ArgumentNullException(nameof(xmlNamespace)); 664throw new ArgumentNullException(nameof(prefix));
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
466throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ThicknessKeyFrameCollection[{0}]", index));
System\Windows\Setter.cs (1)
249throw new ArgumentNullException(nameof(targetObject));
System\Windows\Standard\Verify.cs (3)
62throw new ArgumentNullException(name, errorMessage); 86throw new ArgumentNullException(name, errorMessage); 116throw new ArgumentNullException(name);
System\Windows\TemplateKey.cs (1)
159result = new ArgumentNullException(argName);
System\Windows\Trigger.cs (1)
285throw new ArgumentNullException(nameof(targetObject));
ReachFramework (1)
Serialization\Manager\XpsPackagingPolicy.cs (1)
1332throw new ArgumentNullException("CurrentFixedPageWriter");
Roslyn.Diagnostics.Analyzers (123)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
231var parent = token.Parent ?? throw new ArgumentNullException(nameof(token));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NameSyntaxIterator.cs (1)
18=> _name = name ?? throw new ArgumentNullException(nameof(name));
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
533throw new ArgumentNullException(nameof(nvalue), "ArgumentNull_Value");
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
188if (d == null) throw new ArgumentNullException("d"); 1264throw new ArgumentNullException("allowedIssuerName", "[MyX509CertificateValidator] The string parameter allowedIssuerName was null or empty."); 1277throw new ArgumentNullException("certificate", "[MyX509CertificateValidator] The X509Certificate2 parameter certificate was null.");
Security.TransportSecurity.IntegrationTests (1)
Tcp\ClientCredentialTypeTests.OSX.cs (1)
96throw new ArgumentNullException(nameof(certificate));
Shared (3)
ServerSentEvents\ThrowHelper.cs (1)
16throw new ArgumentNullException(parameterName);
Throw\Throw.cs (2)
310=> throw new ArgumentNullException(paramName); 322=> throw new ArgumentNullException(paramName, message);
Shared.Tests (1)
JsonSchemaExporter\TestData.cs (1)
28?? throw new ArgumentNullException("schema must not be null");
System.CodeDom (1)
System\CodeDom\CodeGotoStatement.cs (1)
24throw new ArgumentNullException(nameof(value));
System.Collections (6)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IDictionaryDebugView.cs (3)
14_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 40_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 61_collection = collection ?? throw new ArgumentNullException(nameof(collection));
System\Collections\Generic\PriorityQueueDebugView.cs (1)
23_queue = collection?._queue ?? throw new ArgumentNullException(nameof(collection));
System\Collections\Generic\SortedList.cs (2)
150: this(dictionary?.Count ?? throw new ArgumentNullException(nameof(dictionary)), comparer) 614throw new ArgumentNullException(nameof(key));
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (1)
1570throw new ArgumentNullException(nameof(array));
System\ThrowHelper.cs (2)
14internal static void ThrowArgumentNullException(string name) => throw new ArgumentNullException(name); 17internal static void ThrowArgumentNullException(string name, string message) => throw new ArgumentNullException(name, message);
System.Collections.Immutable (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IDictionaryDebugView.cs (3)
14_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 40_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 61_collection = collection ?? throw new ArgumentNullException(nameof(collection));
System\Collections\ThrowHelper.cs (1)
18throw new ArgumentNullException(paramName);
Validation\Requires.cs (1)
77throw new ArgumentNullException(parameterName);
System.Collections.NonGeneric (3)
System\Collections\Queue.cs (1)
68public Queue(ICollection col) : this(col?.Count ?? throw new ArgumentNullException(nameof(col)))
System\Collections\SortedList.cs (1)
155: this(comparer, d?.Count ?? throw new ArgumentNullException(nameof(d)))
System\Collections\Stack.cs (1)
55public Stack(ICollection col) : this(col?.Count ?? throw new ArgumentNullException(nameof(col)))
System.Collections.Specialized (1)
System\Collections\Specialized\NameValueCollection.cs (1)
81: base(capacity, col != null ? col.Comparer : throw new ArgumentNullException(nameof(col)))
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
196throw new ArgumentNullException(nameof(propertyName));
System\ComponentModel\DataAnnotations\ValidationContext.cs (1)
186throw new ArgumentNullException(nameof(value));
System.ComponentModel.Composition (1)
Microsoft\Internal\Requires.cs (1)
109throw new ArgumentNullException(parameterName);
System.Composition.AttributedModel (2)
System\Composition\PartMetadataAttribute.cs (1)
26Name = name ?? throw new ArgumentNullException(nameof(name));
System\Composition\SharingBoundaryAttribute.cs (1)
32_sharingBoundaryNames = sharingBoundaryNames ?? throw new ArgumentNullException(nameof(sharingBoundaryNames));
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorPromise.cs (1)
87throw new ArgumentNullException("descriptor");
System.Composition.Runtime (5)
System\Composition\ExportFactoryOfT.cs (1)
20_exportLifetimeContextCreator = exportCreator ?? throw new ArgumentNullException(nameof(exportCreator));
System\Composition\Hosting\Core\CompositionContract.cs (2)
47if (contractType == null) throw new ArgumentNullException(nameof(contractType)); 127if (newContractType == null) throw new ArgumentNullException(nameof(newContractType));
System\Composition\Runtime\Util\Formatters.cs (2)
13value is null ? throw new ArgumentNullException(nameof(value)) : 18type is null ? throw new ArgumentNullException(nameof(type)) :
System.Composition.TypedParts (4)
System\Composition\Hosting\ContainerConfiguration.cs (1)
96if (partType == null) throw new ArgumentNullException(nameof(partType));
System\Composition\TypedParts\Util\DirectAttributeContext.cs (3)
14if (reflectedType == null) throw new ArgumentNullException(nameof(reflectedType)); 15if (member == null) throw new ArgumentNullException(nameof(member)); 27if (reflectedType == null) throw new ArgumentNullException(nameof(reflectedType));
System.Configuration.ConfigurationManager (10)
System\Configuration\CallbackValidator.cs (1)
13if (type == null) throw new ArgumentNullException(nameof(type));
System\Configuration\CallbackValidatorAttribute.cs (1)
21if (_type == null) throw new ArgumentNullException(nameof(Type));
System\Configuration\ConfigurationCollectionAttribute.cs (1)
19if (itemType == null) throw new ArgumentNullException(nameof(itemType));
System\Configuration\ConfigurationFileMap.cs (1)
28throw new ArgumentNullException(nameof(machineConfigFilename));
System\Configuration\ConfigurationValidatorAttribute.cs (1)
17if (validator == null) throw new ArgumentNullException(nameof(validator));
System\Configuration\GenericEnumConverter.cs (1)
17throw new ArgumentNullException(nameof(typeEnum));
System\Configuration\MgmtConfigurationRecord.cs (1)
662if (configSection == null) throw new ArgumentNullException(nameof(configSection));
System\Configuration\Provider\ProviderBase.cs (1)
29throw new ArgumentNullException(nameof(name));
System\Configuration\Provider\ProviderCollection.cs (1)
42throw new ArgumentNullException(nameof(provider));
System\Configuration\SubclassTypeValidator.cs (1)
14throw new ArgumentNullException(nameof(baseClass));
System.Data.Common (4)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
67ArgumentNullException e = new ArgumentNullException(parameter); 74ArgumentNullException e = new ArgumentNullException(parameter, error);
System\Data\DataException.cs (1)
340private static Exception _ArgumentNull(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentNullException(paramName, msg));
System\Data\DataSetUtil.cs (1)
25return new ArgumentNullException(message);
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
67ArgumentNullException e = new ArgumentNullException(parameter); 74ArgumentNullException e = new ArgumentNullException(parameter, error);
System.Diagnostics.DiagnosticSource (20)
System\Diagnostics\Activity.cs (1)
187set => _displayName = value ?? throw new ArgumentNullException(nameof(value));
System\Diagnostics\ActivitySource.cs (2)
43public ActivitySource(ActivitySourceOptions options) : this((options ?? throw new ArgumentNullException(nameof(options))).Name, options.Version, options.Tags, options.TelemetrySchemaUrl) {} 47Name = name ?? throw new ArgumentNullException(nameof(name));
System\Diagnostics\ActivitySourceOptions.cs (2)
21_name = name ?? throw new ArgumentNullException(nameof(name)); 30set => _name = value ?? throw new ArgumentNullException(nameof(value));
System\Diagnostics\ActivityTagsCollection.cs (1)
160throw new ArgumentNullException(nameof(item));
System\Diagnostics\DistributedContextPropagator.cs (1)
82s_current = value ?? throw new ArgumentNullException(nameof(value));
System\Diagnostics\Metrics\Instrument.cs (2)
69Meter = meter ?? throw new ArgumentNullException(nameof(meter)); 70Name = name ?? throw new ArgumentNullException(nameof(name));
System\Diagnostics\Metrics\Meter.cs (1)
77Name = name ?? throw new ArgumentNullException(nameof(name));
System\Diagnostics\Metrics\MeterOptions.cs (1)
21set => _name = value ?? throw new ArgumentNullException(nameof(value));
System\Diagnostics\Metrics\ObservableCounter.cs (3)
26_callback = observeValue ?? throw new ArgumentNullException(nameof(observeValue)); 36_callback = observeValue ?? throw new ArgumentNullException(nameof(observeValue)); 46_callback = observeValues ?? throw new ArgumentNullException(nameof(observeValues));
System\Diagnostics\Metrics\ObservableGauge.cs (3)
26_callback = observeValue ?? throw new ArgumentNullException(nameof(observeValue)); 36_callback = observeValue ?? throw new ArgumentNullException(nameof(observeValue)); 46_callback = observeValues ?? throw new ArgumentNullException(nameof(observeValues));
System\Diagnostics\Metrics\ObservableUpDownCounter.cs (3)
26_callback = observeValue ?? throw new ArgumentNullException(nameof(observeValue)); 36_callback = observeValue ?? throw new ArgumentNullException(nameof(observeValue)); 46_callback = observeValues ?? throw new ArgumentNullException(nameof(observeValues));
System.Diagnostics.Process (1)
System\Diagnostics\Process.cs (1)
1274throw new ArgumentNullException("item", SR.ArgumentListMayNotContainNull);
System.Drawing.Common.Tests (1)
System\Drawing\ImageTests.cs (1)
703_innerStream = innerStream ?? throw new ArgumentNullException(nameof(innerStream));
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnDecoder.Enumerated.cs (1)
197throw new ArgumentNullException(nameof(enumType));
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
185throw new ArgumentNullException(nameof(flagsEnumType));
System.IO.Packaging (15)
System\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
22_stream = stream ?? throw new ArgumentNullException(nameof(stream));
System\IO\Packaging\Package.cs (8)
218throw new ArgumentNullException(nameof(partUri)); 221throw new ArgumentNullException(nameof(contentType)); 287throw new ArgumentNullException(nameof(partUri)); 313throw new ArgumentNullException(nameof(partUri)); 627throw new ArgumentNullException(nameof(id)); 668throw new ArgumentNullException(nameof(relationshipType)); 1140throw new ArgumentNullException(nameof(partUri)); 1179throw new ArgumentNullException(nameof(id));
System\IO\Packaging\PackagePart.cs (3)
428throw new ArgumentNullException(nameof(id)); 472throw new ArgumentNullException(nameof(relationshipType)); 743throw new ArgumentNullException(nameof(id));
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (2)
252throw new ArgumentNullException(nameof(packageUri)); 264throw new ArgumentNullException(nameof(packUri));
System\IO\Packaging\ZipPackage.cs (1)
44throw new ArgumentNullException(nameof(contentType));
System.IO.Pipelines (1)
System\IO\Pipelines\ThrowHelper.cs (1)
19private static ArgumentNullException CreateArgumentNullException(ExceptionArgument argument) => new ArgumentNullException(argument.ToString());
System.IO.Ports (9)
System\IO\Ports\SerialPort.cs (9)
302throw new ArgumentNullException(nameof(Encoding)); 350throw new ArgumentNullException(nameof(NewLine)); 397throw new ArgumentNullException(nameof(PortName)); 663throw new ArgumentNullException(nameof(buffer)); 804throw new ArgumentNullException(nameof(buffer)); 1061throw new ArgumentNullException(nameof(value)); 1179throw new ArgumentNullException(nameof(text)); 1195throw new ArgumentNullException(nameof(buffer)); 1215throw new ArgumentNullException(nameof(buffer));
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
12internal static void ThrowArgumentNullException(ExceptionArgument argument) => throw new ArgumentNullException(GetArgumentString(argument));
System.Linq.AsyncEnumerable (1)
System\Linq\ThrowHelper.cs (1)
28internal static void ThrowArgumentNullException(string paramName) => throw new ArgumentNullException(paramName);
System.Linq.Expressions (6)
System\Dynamic\Utils\ContractUtils.cs (2)
71throw new ArgumentNullException(GetParamName(paramName, index)); 117throw new ArgumentNullException(GetParamName(arrayName, i));
System\Linq\Expressions\LambdaExpression.cs (2)
1032throw new ArgumentNullException(nameof(typeArgs)); 1079throw new ArgumentNullException(nameof(typeArgs));
System\Linq\Expressions\NewExpression.cs (2)
143throw new ArgumentNullException($"{nameof(constructor)}.{nameof(constructor.DeclaringType)}"); 168throw new ArgumentNullException($"{nameof(constructor)}.{nameof(constructor.DeclaringType)}");
System.Memory (1)
System\ThrowHelper.cs (1)
30private static ArgumentNullException CreateArgumentNullException(ExceptionArgument argument) { return new ArgumentNullException(argument.ToString()); }
System.Memory.Data (1)
System\BinaryData.cs (1)
62_bytes = data ?? throw new ArgumentNullException(nameof(data));
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
302throw new ArgumentNullException(nameof(result));
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
101throw new ArgumentNullException(parameterName + "." + nameof(arraySegment.Array));
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
355throw new ArgumentNullException(nameof(hostNameOrAddress)); 635throw new ArgumentNullException(nameof(hostNameOrAddress));
System.Net.Primitives (1)
System\Net\IPAddress.cs (1)
771private static byte[] ThrowAddressNullException() => throw new ArgumentNullException("address");
System.Net.Quic (2)
System\Net\Quic\Internal\ThrowHelper.cs (1)
215throw new ArgumentNullException(argumentName, SR.Format(resourceName, propertyName));
System\Net\Quic\QuicListenerOptions.cs (1)
49throw new ArgumentNullException(argumentName, SR.Format(SR.net_quic_not_null_not_empty_listener, nameof(ApplicationProtocols)));
System.Net.Requests (1)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
302throw new ArgumentNullException(nameof(result));
System.Net.Security (3)
System\Net\Security\AuthenticatedStream.cs (1)
19throw new ArgumentNullException(nameof(innerStream));
System\Net\Security\SslApplicationProtocol.cs (2)
43this(protocol ?? throw new ArgumentNullException(nameof(protocol)), copy: true) 48this(s_utf8.GetBytes(protocol ?? throw new ArgumentNullException(nameof(protocol))), copy: false)
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\ThrowHelper.cs (1)
13throw new ArgumentNullException(parameterName);
System.Net.Sockets (1)
System\Net\Sockets\Socket.cs (1)
2396throw new ArgumentNullException(null, SR.net_sockets_empty_select);
System.Net.WebHeaderCollection (3)
System\Net\WebHeaderCollection.cs (3)
113throw new ArgumentNullException(nameof(name)); 311throw new ArgumentNullException(nameof(header)); 366throw new ArgumentNullException(nameof(name));
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
101throw new ArgumentNullException(parameterName + "." + nameof(arraySegment.Array));
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
101throw new ArgumentNullException(parameterName + "." + nameof(arraySegment.Array));
System.ObjectModel (2)
System\Collections\ObjectModel\ObservableCollection.cs (2)
47public ObservableCollection(IEnumerable<T> collection) : base(new List<T>(collection ?? throw new ArgumentNullException(nameof(collection)))) 61public ObservableCollection(List<T> list) : base(new List<T>(list ?? throw new ArgumentNullException(nameof(list))))
System.Private.CoreLib (55)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (4)
74this(SR.AggregateException_ctor_DefaultMessage, innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))) 88this(SR.AggregateException_ctor_DefaultMessage, innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))) 103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false) 118this(message, innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions)), cloneExceptions: true)
src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
97throw new ArgumentNullException(paramName);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IDictionaryDebugView.cs (3)
14_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 40_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 61_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
282this((ReadOnlySpan<int>)(bits ?? throw new ArgumentNullException(nameof(bits))))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs (1)
102throw new ArgumentNullException(
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
73GenerateGuidFromName((eventSourceName ?? throw new ArgumentNullException(nameof(eventSourceName))).ToUpperInvariant()),
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
1054throw new ArgumentNullException("value", SR.ArgumentNull_ArrayValue); 1610throw new ArgumentNullException(nameof(patterns) + "[" + i + "]", SR.ArgumentNull_ArrayValue);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5202return new ArgumentNullException("formats", SR.ArgumentNull_String);
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
117throw new ArgumentNullException(propertyName, SR.ArgumentNull_ArrayValue);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
60this(new ReadOnlySpan<byte>(b ?? throw new ArgumentNullException(nameof(b))))
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
17: this(fileName ?? throw new ArgumentNullException(nameof(fileName)), isNormalized: false)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
2157throw new ArgumentNullException(lowInclusive is null ? nameof(lowInclusive) : nameof(highInclusive));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBody.cs (2)
12public virtual IList<LocalVariableInfo> LocalVariables => throw new ArgumentNullException("array"); 16public virtual IList<ExceptionHandlingClause> ExceptionHandlingClauses => throw new ArgumentNullException("array");
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (4)
909throw new ArgumentNullException(nameof(externalComObject)); 930throw new ArgumentNullException(nameof(externalComObject)); 972throw new ArgumentNullException(nameof(externalComObject)); 1081throw new ArgumentNullException(nameof(externalComObject));
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\VersioningHelper.cs (1)
42throw new ArgumentNullException(nameof(type), SR.ArgumentNull_TypeRequiredByResourceScope);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (2)
261_ => throw (value is null ? new ArgumentNullException(nameof(value)) : new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType))), 386_ => throw (value is null ? new ArgumentNullException(nameof(value)) : new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType))),
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
60throw new ArgumentNullException(nameof(timeProvider));
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
251WaitHandle waitHandle = waitHandles[i] ?? throw new ArgumentNullException($"waitHandles[{i}]", SR.ArgumentNull_ArrayElement);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (5)
125throw new ArgumentNullException("value", SR.ArgumentNull_TypedRefType); 353throw new ArgumentNullException(GetArgumentName(argument)); 359throw new ArgumentNullException(GetResourceString(resource)); 365throw new ArgumentNullException(GetArgumentName(argument), GetResourceString(resource)); 708return new ArgumentNullException(nameof(array));
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
353throw new ArgumentNullException(paramName);
src\System\Delegate.CoreCLR.cs (2)
372throw new ArgumentNullException(nameof(method)); 475throw new ArgumentNullException(nameof(method));
src\System\Reflection\Emit\CustomAttributeBuilder.cs (5)
108throw new ArgumentNullException($"{nameof(constructorArgs)}[{i}]"); 133PropertyInfo property = namedProperties[i] ?? throw new ArgumentNullException($"namedProperties[{i}]"); 139throw new ArgumentNullException("propertyValues[" + i + "]"); 189FieldInfo namedField = namedFields[i] ?? throw new ArgumentNullException($"namedFields[{i}]"); 195throw new ArgumentNullException("fieldValues[" + i + "]");
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
1875throw new ArgumentNullException(null, SR.Arg_InvalidHandle); 1905throw new ArgumentNullException(null, SR.Arg_InvalidHandle);
src\System\RuntimeHandles.cs (10)
26m_type ?? throw new ArgumentNullException(null, SR.Arg_InvalidHandle); 426throw new ArgumentNullException(SR.Arg_InvalidHandle); 972throw new ArgumentNullException(null, SR.Arg_InvalidHandle); 1350throw new ArgumentNullException(SR.Arg_InvalidHandle); 1430new RuntimeFieldHandle(m_ptr ?? throw new ArgumentNullException(null, SR.Arg_InvalidHandle)); 1594throw new ArgumentNullException(SR.Arg_InvalidHandle); 1615throw new ArgumentNullException(SR.Arg_InvalidHandle); 1637throw new ArgumentNullException(SR.Arg_InvalidHandle); 1656throw new ArgumentNullException(SR.Arg_InvalidHandle); 1683throw new ArgumentNullException(SR.Arg_InvalidHandle);
src\System\RuntimeType.CoreCLR.cs (1)
3602Type instantiationElem = typeArguments[i] ?? throw new ArgumentNullException();
System.Private.CoreLib.Generators (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
System.Private.DataContractSerialization (9)
System\Xml\XmlBaseReader.cs (4)
1059throw new ArgumentNullException($"localNames[{i}]"); 1074throw new ArgumentNullException($"localNames[{i}]"); 1100throw new ArgumentNullException($"localNames[{i}]"); 1115throw new ArgumentNullException($"localNames[{i}]");
System\Xml\XmlBaseWriter.cs (1)
204throw new ArgumentNullException(nameof(localName));
System\Xml\XmlDictionaryReader.cs (4)
301throw new ArgumentNullException($"localNames[{i}]"); 324throw new ArgumentNullException($"localNames[{i}]"); 619throw new ArgumentNullException($"strings[{i}]"); 639throw new ArgumentNullException($"strings[{i}]");
System.Private.Windows.Core (9)
System\ArgumentValidation.cs (5)
20argument is null ? throw new ArgumentNullException(paramName, message) : argument; 23argument == 0 ? throw new ArgumentNullException(paramName) : argument; 35throw new ArgumentNullException(paramName); 43throw new ArgumentNullException(paramName, message); 51throw new ArgumentNullException(paramName);
Windows\Win32\System\Com\ComHelpers.cs (2)
267throw new ArgumentNullException(nameof(comPointer)); 293throw new ArgumentNullException(nameof(unknown));
Windows\Win32\System\Com\ComPointerList.cs (2)
25throw new ArgumentNullException(nameof(item)); 32return item is null ? throw new ArgumentNullException(nameof(item)) : _pointers.Remove((nint)item);
System.Private.Windows.GdiPlus (2)
System\Drawing\CoreImageExtensions.cs (1)
18throw new ArgumentNullException(nameof(encoder));
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
85throw new ArgumentNullException(nameof(deviceContext));
System.Private.Xml (5)
System\Xml\Core\XmlTextReaderImpl.cs (1)
8140throw new ArgumentNullException((_incReadDecoder is IncrementalReadCharsDecoder) ? "buffer" : nameof(array));
System\Xml\Schema\XmlSchemaCollection.cs (1)
99throw new ArgumentNullException(nameof(uri));
System\Xml\Schema\XmlSchemaSet.cs (1)
223throw new ArgumentNullException(nameof(schemaUri));
System\Xml\Serialization\XmlSerializationReader.cs (1)
967throw new ArgumentNullException(nameof(value), SR.Format(SR.XmlMissingArrayType, CurrentTag()));
System\Xml\XmlConvert.cs (1)
349throw new ArgumentNullException(nameof(name));
System.Reflection.Context (1)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
26throw new ArgumentNullException(nameof(propertyType));
System.Reflection.Metadata (3)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
44Name = name ?? throw new ArgumentNullException(nameof(name));
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
353throw new ArgumentNullException(paramName);
System\Reflection\Throw.cs (1)
101throw new ArgumentNullException(parameterName);
System.Reflection.MetadataLoadContext (4)
System\Reflection\DefaultBinder.cs (1)
156throw new ArgumentNullException(nameof(indexes));
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
178throw new ArgumentNullException(nameof(type));
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
114throw new ArgumentNullException();
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
107throw new ArgumentNullException();
System.Resources.Extensions (2)
System\Resources\Extensions\TypeNameComparer.cs (2)
60throw new ArgumentNullException(nameof(assemblyQualifiedTypeName1)); 64throw new ArgumentNullException(nameof(assemblyQualifiedTypeName2));
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
24internal Counters(string cacheName) : base(EVENT_SOURCE_NAME_ROOT + (cacheName ?? throw new ArgumentNullException(nameof(cacheName))))
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
272this(new ReadOnlySpan<byte>(value ?? throw new ArgumentNullException(nameof(value))))
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\FormatterServices.cs (2)
232throw new ArgumentNullException(nameof(members), SR.Format(SR.ArgumentNull_NullMember, i)); 269throw new ArgumentNullException(nameof(members), SR.Format(SR.ArgumentNull_NullMember, i));
System.Runtime.Serialization.Schema (19)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (1)
77return new ArgumentNullException(message);
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (18)
82throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 96throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 99throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeNames))); 113throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 116throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 133throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 136throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(element))); 153throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 168throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 171throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeNames))); 186throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 189throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 204throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 207throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(element))); 236throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(element))); 238throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 248throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 269throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName)));
System.Security.Cryptography (12)
src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (1)
107: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))), tagSizeInBytes)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs (1)
14throw new ArgumentNullException(nameof(attribute));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
45throw new ArgumentNullException(nameof(bagIdValue));
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
537throw new ArgumentNullException(nameof(hashAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
724throw new ArgumentNullException(paramName);
System\Security\Cryptography\AesGcm.cs (1)
26: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))))
System\Security\Cryptography\Base64Transforms.cs (1)
384public static void ThrowArgumentNull(ExceptionArgument argument) => throw new ArgumentNullException(argument.ToString());
System\Security\Cryptography\Rfc2898DeriveBytes.cs (3)
59Encoding.UTF8.GetBytes(password ?? throw new ArgumentNullException(nameof(password))), 100new ReadOnlySpan<byte>(password ?? throw new ArgumentNullException(nameof(password))), 101new ReadOnlySpan<byte>(salt ?? throw new ArgumentNullException(nameof(salt))),
System\Security\Cryptography\X509Certificates\X509Extension.cs (1)
21: this(oid, (ReadOnlySpan<byte>)(rawData ?? throw new ArgumentNullException(nameof(rawData))), critical)
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
28: this((ReadOnlySpan<byte>)(subjectKeyIdentifier ?? throw new ArgumentNullException(nameof(subjectKeyIdentifier))), critical)
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseSigner.cs (1)
132throw new ArgumentNullException(nameof(key));
System.Security.Cryptography.Pkcs (4)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs (1)
14throw new ArgumentNullException(nameof(attribute));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
45throw new ArgumentNullException(nameof(bagIdValue));
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
608throw new ArgumentNullException(nameof(extraStore));
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
297throw new ArgumentNullException(nameof(signer));
System.Security.Cryptography.Xml (8)
System\Security\Cryptography\Xml\CipherData.cs (2)
43throw new ArgumentNullException(nameof(value)); 59throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\DataObject.cs (1)
79throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptedReference.cs (2)
39throw new ArgumentNullException(SR.Cryptography_Xml_UriRequired); 115throw new ArgumentNullException(SR.Cryptography_Xml_UriRequired);
System\Security\Cryptography\Xml\EncryptedType.cs (1)
100throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptionProperty.cs (1)
47throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\ReferenceList.cs (1)
100throw new ArgumentNullException(nameof(value));
System.ServiceModel.Federation (19)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
22_innerCommunicationObject = innerCommunicationObject ?? throw new ArgumentNullException(nameof(innerCommunicationObject));
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
359throw new ArgumentNullException(nameof(result));
System\ServiceModel\Federation\WsFederationHttpBinding.cs (1)
28WSTrustTokenParameters = wsTrustTokenParameters ?? throw new ArgumentNullException(nameof(wsTrustTokenParameters));
System\ServiceModel\Federation\WSTrustChannel.cs (5)
30RequestChannel = requestChannel ?? throw new ArgumentNullException(nameof(requestChannel)); 75_ = trustRequest ?? throw new ArgumentNullException(nameof(trustRequest)); 88_ = trustRequest ?? throw new ArgumentNullException(nameof(trustRequest)); 119_ = trustRequest ?? throw new ArgumentNullException(nameof(trustRequest)); 358_ = trustRequest ?? throw new ArgumentNullException(nameof(trustRequest));
System\ServiceModel\Federation\WSTrustChannelFactory.cs (5)
23_ = serviceEndpoint ?? throw new ArgumentNullException(nameof(serviceEndpoint)); 35_ = binding ?? throw new ArgumentNullException(nameof(binding)); 37EndpointAddress = endpointAddress ?? throw new ArgumentNullException(nameof(endpointAddress)); 48_ = endpointAddress ?? throw new ArgumentNullException(nameof(endpointAddress)); 49_ = via ?? throw new ArgumentNullException(nameof(via));
System\ServiceModel\Federation\WsTrustChannelSecurityTokenManager.cs (2)
28_wsTrustChannelClientCredentials = wsTrustChannelClientCredentials ?? throw new ArgumentNullException(nameof(wsTrustChannelClientCredentials)); 39throw new ArgumentNullException(nameof(tokenRequirement));
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
55SecurityTokenRequirement = tokenRequirement ?? throw new ArgumentNullException(nameof(tokenRequirement));
System\ServiceModel\Federation\WSTrustRequestBodyWriter.cs (2)
23TrustRequest = trustRequest ?? throw new ArgumentNullException(nameof(trustRequest)); 24TrustSerializer = trustSerializer ?? throw new ArgumentNullException(nameof(trustSerializer));
System\ServiceModel\Federation\WsTrustTokenParameters.cs (1)
166set => _messageSecurityVersion = value ?? throw new ArgumentNullException(nameof(value));
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
143set => _items = value ?? throw new ArgumentNullException(nameof(value));
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
723throw new ArgumentNullException(nameof(callback));
System.Text.Encoding.CodePages (16)
System\Text\DecoderNLS.cs (5)
100throw new ArgumentNullException(nameof(bytes)); 149throw new ArgumentNullException(nameof(bytes)); 152throw new ArgumentNullException(nameof(chars)); 202throw new ArgumentNullException(nameof(bytes)); 205throw new ArgumentNullException(nameof(chars));
System\Text\EncoderNLS.cs (5)
98throw new ArgumentNullException(nameof(chars)); 137throw new ArgumentNullException(nameof(chars)); 140throw new ArgumentNullException(nameof(bytes)); 187throw new ArgumentNullException(nameof(chars)); 190throw new ArgumentNullException(nameof(bytes));
System\Text\EncodingNLS.cs (6)
84throw new ArgumentNullException(nameof(chars)); 170throw new ArgumentNullException(nameof(chars)); 173throw new ArgumentNullException(nameof(bytes)); 211throw new ArgumentNullException(nameof(bytes)); 258throw new ArgumentNullException(nameof(bytes)); 261throw new ArgumentNullException(nameof(chars));
System.Text.Encodings.Web (2)
System\Text\Encodings\Web\ThrowHelper.cs (1)
14throw new ArgumentNullException(GetArgumentName(argument));
System\ThrowHelper.cs (1)
40throw new ArgumentNullException(GetArgumentName(argument));
System.Text.Json (4)
src\libraries\System.Text.Json\Common\ThrowHelper.cs (1)
13throw new ArgumentNullException(parameterName);
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
300throw new ArgumentNullException(nameof(utf8Json)); 336_output = bufferWriter ?? throw new ArgumentNullException(nameof(bufferWriter));
System\ThrowHelper.cs (1)
40throw new ArgumentNullException(GetArgumentName(argument));
System.Text.Json.SourceGeneration (2)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
src\libraries\System.Text.Json\Common\ThrowHelper.cs (1)
13throw new ArgumentNullException(parameterName);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\ThrowHelper.cs (1)
12throw new ArgumentNullException(GetStringForExceptionArgument(arg));
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
25throw new ArgumentNullException(paramName);
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\MetadataName.T.cs (1)
22_name = name ?? throw new ArgumentNullException(nameof(name));
System.Threading.Tasks.Dataflow (25)
Base\DataflowBlock.cs (6)
136if (source == null) throw new ArgumentNullException(nameof(source)); 622if (target == null) throw new ArgumentNullException(nameof(target)); 667if (target == null) throw new ArgumentNullException(nameof(target)); 684if (target == null) throw new ArgumentNullException(nameof(target)); 1405source is null ? throw new ArgumentNullException(nameof(source)) : 1463if (source == null) throw new ArgumentNullException(nameof(source));
Base\DataflowBlockOptions.cs (2)
114if (value == null) throw new ArgumentNullException(nameof(value)); 176if (value == null) throw new ArgumentNullException(nameof(value));
Blocks\BatchBlock.cs (1)
50if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions));
Blocks\BatchedJoinBlock.cs (2)
58if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions)); 303if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions));
Blocks\BroadcastBlock.cs (3)
1036if (target == null) throw new ArgumentNullException(nameof(target)); 1076if (target == null) throw new ArgumentNullException(nameof(target)); 1103if (target == null) throw new ArgumentNullException(nameof(target));
Blocks\TransformBlock.cs (2)
95if (transformSync == null && transformAsync == null) throw new ArgumentNullException("transform"); 96if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions));
Blocks\TransformManyBlock.cs (3)
70if (transform == null) throw new ArgumentNullException(nameof(transform)); 94if (transform == null) throw new ArgumentNullException(nameof(transform)); 106if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions));
Blocks\WriteOnceBlock.cs (3)
379if (target == null) throw new ArgumentNullException(nameof(target)); 400if (target == null) throw new ArgumentNullException(nameof(target)); 413if (target == null) throw new ArgumentNullException(nameof(target));
Internal\SourceCore.cs (3)
161if (target == null) throw new ArgumentNullException(nameof(target)); 217if (target == null) throw new ArgumentNullException(nameof(target)); 244if (target == null) throw new ArgumentNullException(nameof(target));
System.Windows.Forms (2)
System\Windows\Forms\Rendering\DCMapping.cs (1)
33throw new ArgumentNullException(nameof(hdc));
System\Windows\Forms\WindowSubclassHandler.cs (1)
65throw new ArgumentNullException(nameof(hwnd));
System.Windows.Forms.Design (4)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
30throw new ArgumentNullException(nameof(descriptor));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
91throw new ArgumentNullException(nameof(descriptor)); 367throw new ArgumentNullException(nameof(descriptor));
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
213_picker = picker ?? throw new ArgumentNullException(nameof(picker));
System.Windows.Forms.IntegrationTests.Common (4)
TestHelpers.cs (4)
55throw new ArgumentNullException(nameof(projectName)); 80throw new ArgumentNullException(nameof(path)); 239throw new ArgumentNullException(nameof(seek)); 397throw new ArgumentNullException(nameof(culture));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\NonNullCollection.cs (1)
132private static T ThrowArgumentNull(string name) => throw new ArgumentNullException(name);
Windows\Win32\System\Com\StandardDispatch.cs (1)
36throw new ArgumentNullException(nameof(typeInfo));
System.Windows.Forms.Tests (1)
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (1)
35_execute = execute ?? throw new ArgumentNullException(nameof(execute));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\SendInput.cs (1)
61throw new ArgumentNullException(nameof(keys));
System.Xaml (33)
System\Windows\Markup\ArrayExtension.cs (1)
34Type = arrayType ?? throw new ArgumentNullException(nameof(arrayType));
System\Windows\Markup\StaticExtension.cs (3)
37_member = member ?? throw new ArgumentNullException(nameof(member)); 160set => _member = value ?? throw new ArgumentNullException(nameof(value)); 167set => _memberType = value ?? throw new ArgumentNullException(nameof(value));
System\Windows\Markup\TypeExtension.cs (4)
34_typeName = typeName ?? throw new ArgumentNullException(nameof(typeName)); 42_type = type ?? throw new ArgumentNullException(nameof(type)); 95_typeName = value ?? throw new ArgumentNullException(nameof(value)); 111_type = value ?? throw new ArgumentNullException(nameof(value));
System\Windows\Markup\XamlDeferLoadAttribute.cs (2)
21LoaderTypeName = loaderType ?? throw new ArgumentNullException(nameof(loaderType)); 22ContentTypeName = contentType ?? throw new ArgumentNullException(nameof(contentType));
System\Windows\Markup\XmlnsCompatibleWithAttribute.cs (2)
31OldNamespace = oldNamespace ?? throw new ArgumentNullException(nameof(oldNamespace)); 32NewNamespace = newNamespace ?? throw new ArgumentNullException(nameof(newNamespace));
System\Windows\Markup\XmlnsDefinitionAttribute.cs (2)
48XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 49ClrNamespace = clrNamespace ?? throw new ArgumentNullException(nameof(clrNamespace));
System\Windows\Markup\XmlnsPrefixAttribute.cs (2)
39XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 40Prefix= prefix ?? throw new ArgumentNullException(nameof(prefix));
System\Xaml\Events\XamlObjectEventArgs.cs (1)
12Instance = instance ?? throw new ArgumentNullException(nameof(instance));
System\Xaml\NameScopeDictionary.cs (1)
33_underlyingNameScope = underlyingNameScope ?? throw new ArgumentNullException(nameof(underlyingNameScope));
System\Xaml\ReaderBaseDelegate.cs (1)
23_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
System\Xaml\Schema\XamlMemberInvoker.cs (1)
25_member = member ?? throw new ArgumentNullException(nameof(member));
System\Xaml\Schema\XamlTypeInvoker.cs (1)
31_xamlType = type ?? throw new ArgumentNullException(nameof(type));
System\Xaml\XamlMember.cs (5)
36_name = name ?? throw new ArgumentNullException(nameof(name)); 37_declaringType = declaringType ?? throw new ArgumentNullException(nameof(declaringType)); 107throw new ArgumentNullException(SR.GetterOrSetterRequired, (Exception)null); 110_name = attachablePropertyName ?? throw new ArgumentNullException(nameof(attachablePropertyName)); 141_name = attachableEventName ?? throw new ArgumentNullException(nameof(attachableEventName));
System\Xaml\XamlObjectReader.cs (1)
46this.schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
System\Xaml\XamlType.cs (5)
40_name = typeName ?? throw new ArgumentNullException(nameof(typeName)); 41_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext)); 49_name = unknownTypeName ?? throw new ArgumentNullException(nameof(unknownTypeName)); 51_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext)); 72_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
System\Xaml\XamlXmlWriter.cs (1)
96this.schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
Test.Utilities (106)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
Text.Analyzers (123)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
369throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
93throw new ArgumentNullException(nameof(source)); 112throw new ArgumentNullException(nameof(stream)); 152throw new ArgumentNullException(nameof(stream));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
66throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (11)
33throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(action)); 99throw new ArgumentNullException(nameof(source)); 109throw new ArgumentNullException(nameof(source1)); 114throw new ArgumentNullException(nameof(source2)); 124throw new ArgumentNullException(nameof(source1)); 129throw new ArgumentNullException(nameof(source2)); 139throw new ArgumentNullException(nameof(source)); 149throw new ArgumentNullException(nameof(source)); 591throw new ArgumentNullException(nameof(sequence)); 949throw new ArgumentNullException(nameof(source));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
25_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\IDictionaryDebugView`2.cs (3)
26_dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 47_collection = collection ?? throw new ArgumentNullException(nameof(collection)); 68_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
157return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\OneOrMany.cs (1)
43throw new ArgumentNullException(nameof(many));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
36throw new ArgumentNullException(nameof(transformer)); 77throw new ArgumentNullException(nameof(transformer)); 157throw new ArgumentNullException(nameof(transformer)); 198throw new ArgumentNullException(nameof(transformer)); 280throw new ArgumentNullException(nameof(transformer)); 323throw new ArgumentNullException(nameof(transformer)); 395throw new ArgumentNullException(nameof(valueFactory)); 399throw new ArgumentNullException(nameof(location)); 415throw new ArgumentNullException(nameof(valueFactory)); 419throw new ArgumentNullException(nameof(location)); 438throw new ArgumentNullException(nameof(location)); 463throw new ArgumentNullException(nameof(addValueFactory)); 465throw new ArgumentNullException(nameof(updateValueFactory)); 472throw new ArgumentNullException(nameof(location)); 501throw new ArgumentNullException(nameof(updateValueFactory)); 508throw new ArgumentNullException(nameof(location)); 540throw new ArgumentNullException(nameof(location)); 567throw new ArgumentNullException(nameof(location)); 594throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
51throw new ArgumentNullException(nameof(builder)); 60throw new ArgumentNullException(nameof(items)); 76throw new ArgumentNullException(nameof(source)); 78throw new ArgumentNullException(nameof(keySelector)); 80throw new ArgumentNullException(nameof(elementSelector));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
81_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 212throw new ArgumentNullException(nameof(keys)); 235throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
45throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(items)); 199throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
87throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
48throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
407throw new ArgumentNullException(nameof(items)); 431throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
92throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (11)
20throw new ArgumentNullException(nameof(immutableList)); 22throw new ArgumentNullException(nameof(predicate)); 36throw new ArgumentNullException(nameof(immutableList)); 44throw new ArgumentNullException(nameof(builder)); 52throw new ArgumentNullException(nameof(immutableList)); 54throw new ArgumentNullException(nameof(predicate)); 77throw new ArgumentNullException(nameof(builder)); 89throw new ArgumentNullException(nameof(immutableList)); 91throw new ArgumentNullException(nameof(predicate)); 106throw new ArgumentNullException(nameof(immutableList)); 108throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
353_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (9)
190throw new ArgumentNullException(nameof(compilation)); 203throw new ArgumentNullException(nameof(context)); 216throw new ArgumentNullException(nameof(context)); 230throw new ArgumentNullException(nameof(symbol)); 235throw new ArgumentNullException(nameof(compilation)); 248throw new ArgumentNullException(nameof(symbol)); 253throw new ArgumentNullException(nameof(context)); 293throw new ArgumentNullException(nameof(symbol)); 298throw new ArgumentNullException(nameof(context));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (4)
20throw new ArgumentNullException(nameof(source)); 47throw new ArgumentNullException(nameof(source)); 84throw new ArgumentNullException(nameof(source)); 121throw new ArgumentNullException(nameof(source));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
137throw new ArgumentNullException(nameof(root)); 171throw new ArgumentNullException(nameof(root));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\SourceTextExtensions.cs (2)
29throw new ArgumentNullException(nameof(text)); 34throw new ArgumentNullException(nameof(parser));
src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
55analyzerConfigOptionsProvider = analyzerConfigOptionsProvider ?? throw new ArgumentNullException(nameof(analyzerConfigOptionsProvider));
src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
20Name = name ?? throw new ArgumentNullException(nameof(name));
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (1)
35this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (2)
106_text = text ?? throw new ArgumentNullException(nameof(text)); 240throw new ArgumentNullException(nameof(words));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (11)
66throw new ArgumentNullException(nameof(left)); 71throw new ArgumentNullException(nameof(right)); 140throw new ArgumentNullException(nameof(left)); 145throw new ArgumentNullException(nameof(right)); 200throw new ArgumentNullException(nameof(left)); 205throw new ArgumentNullException(nameof(right)); 258throw new ArgumentNullException(nameof(left)); 263throw new ArgumentNullException(nameof(right)); 393throw new ArgumentNullException(nameof(set)); 453throw new ArgumentNullException(nameof(set)); 589throw new ArgumentNullException(nameof(spans));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
33throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 36this.Option = option ?? throw new ArgumentNullException(nameof(option)); 43this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
124private readonly string _symbolKeyData = data ?? throw new ArgumentNullException(nameof(data));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\CompilerPathUtilities.cs (1)
16throw new ArgumentNullException(argumentName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
49private readonly string _source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (4)
31throw new ArgumentNullException(argumentName); 47throw new ArgumentNullException(argumentName); 151? new ArgumentNullException(argumentName) 158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
102_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 238throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
128throw new ArgumentNullException(nameof(func)); 130throw new ArgumentNullException(nameof(transform));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
160throw new ArgumentNullException(nameof(destination)); 177throw new ArgumentNullException(nameof(destination)); 197throw new ArgumentNullException(nameof(destination)); 468throw new ArgumentNullException(nameof(namespaceOrType));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
52throw new ArgumentNullException(nameof(documentId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
22=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
43throw new ArgumentNullException( nameof(hwnd));
System\Windows\Automation\Text\TextRange.cs (1)
449throw new ArgumentNullException(name);
UnitTests.Common (1)
TestTypes.cs (1)
278if (d == null) throw new ArgumentNullException("d");
WindowsFormsIntegration (6)
System\Windows\Integration\IntegrationExceptionEventArgs.cs (1)
20throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception"));
System\Windows\Integration\PropertyMap.cs (3)
82throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "propertyName")); 86throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "translator")); 250throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_ArgumentNullOrEmpty, "propertyName"));
System\Windows\Integration\PropertyMappingExceptionEventArgs.cs (2)
24throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception")); 28throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_ArgumentNullOrEmpty, "propertyName"));
XmlFileLogger (2)
PropertyBag.cs (2)
65throw new ArgumentNullException(nameof(newProperties)); 84throw new ArgumentNullException(nameof(newProperties));
xunit.assert (2)
Guards.cs (1)
37 throw new ArgumentNullException(argName.TrimStart('@'));
Sdk\AssertEqualityComparer.cs (1)
525 throw new ArgumentNullException(argName.TrimStart('@'));
xunit.console (19)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\CompilationLibrary.cs (1)
37throw new ArgumentNullException(nameof(assemblies));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\CompilationOptions.cs (1)
65throw new ArgumentNullException(nameof(defines));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContext.cs (6)
23throw new ArgumentNullException(nameof(target)); 27throw new ArgumentNullException(nameof(compilationOptions)); 31throw new ArgumentNullException(nameof(compileLibraries)); 35throw new ArgumentNullException(nameof(runtimeLibraries)); 39throw new ArgumentNullException(nameof(runtimeGraph)); 65throw new ArgumentNullException(nameof(other));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (1)
22throw new ArgumentNullException(nameof(stream));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextLoader.cs (1)
57throw new ArgumentNullException(nameof(assembly));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Library.cs (1)
47throw new ArgumentNullException(nameof(dependencies));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeFallbacks.cs (1)
24throw new ArgumentNullException(nameof(fallbacks));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeLibrary.cs (3)
62throw new ArgumentNullException(nameof(runtimeAssemblyGroups)); 66throw new ArgumentNullException(nameof(nativeLibraryGroups)); 70throw new ArgumentNullException(nameof(resourceAssemblies));
common\Json.cs (4)
21throw new ArgumentNullException(nameof(array)); 383throw new ArgumentNullException(nameof(reader)); 724throw new ArgumentNullException(nameof(data)); 817throw new ArgumentNullException(nameof(value));
Xunit.NetCore.Extensions (1)
AssemblyFixtureSupport\XunitTestCollectionRunnerWithAssemblyFixture.cs (1)
33this.assemblyFixtureAttributes = assemblyFixtureAttributes ?? throw new ArgumentNullException(nameof(assemblyFixtureAttributes));
23291 references to ArgumentNullException
aspire (43)
Commands\AddCommand.cs (6)
30ArgumentNullException.ThrowIfNull(runner); 31ArgumentNullException.ThrowIfNull(nuGetPackageCache); 32ArgumentNullException.ThrowIfNull(interactionService); 33ArgumentNullException.ThrowIfNull(projectLocator); 34ArgumentNullException.ThrowIfNull(prompter); 35ArgumentNullException.ThrowIfNull(telemetry);
Commands\ConfigCommand.cs (3)
24ArgumentNullException.ThrowIfNull(configuration); 25ArgumentNullException.ThrowIfNull(configurationService); 26ArgumentNullException.ThrowIfNull(interactionService);
Commands\NewCommand.cs (7)
39ArgumentNullException.ThrowIfNull(runner); 40ArgumentNullException.ThrowIfNull(nuGetPackageCache); 41ArgumentNullException.ThrowIfNull(certificateService); 42ArgumentNullException.ThrowIfNull(prompter); 43ArgumentNullException.ThrowIfNull(interactionService); 44ArgumentNullException.ThrowIfNull(templateProvider); 45ArgumentNullException.ThrowIfNull(telemetry);
Commands\PublishCommand.cs (1)
40ArgumentNullException.ThrowIfNull(prompter);
Commands\PublishCommandBase.cs (4)
41ArgumentNullException.ThrowIfNull(runner); 42ArgumentNullException.ThrowIfNull(interactionService); 43ArgumentNullException.ThrowIfNull(projectLocator); 44ArgumentNullException.ThrowIfNull(telemetry);
Commands\RootCommand.cs (8)
25ArgumentNullException.ThrowIfNull(newCommand); 26ArgumentNullException.ThrowIfNull(runCommand); 27ArgumentNullException.ThrowIfNull(addCommand); 28ArgumentNullException.ThrowIfNull(publishCommand); 29ArgumentNullException.ThrowIfNull(configCommand); 30ArgumentNullException.ThrowIfNull(deployCommand); 31ArgumentNullException.ThrowIfNull(featureFlags); 32ArgumentNullException.ThrowIfNull(interactionService);
Commands\RunCommand.cs (7)
44ArgumentNullException.ThrowIfNull(runner); 45ArgumentNullException.ThrowIfNull(interactionService); 46ArgumentNullException.ThrowIfNull(certificateService); 47ArgumentNullException.ThrowIfNull(projectLocator); 48ArgumentNullException.ThrowIfNull(ansiConsole); 49ArgumentNullException.ThrowIfNull(telemetry); 50ArgumentNullException.ThrowIfNull(configuration);
Commands\TemplateCommand.cs (2)
18ArgumentNullException.ThrowIfNull(template); 19ArgumentNullException.ThrowIfNull(executeCallback);
Interaction\ConsoleInteractionService.cs (5)
18ArgumentNullException.ThrowIfNull(ansiConsole); 38ArgumentNullException.ThrowIfNull(promptText, nameof(promptText)); 61ArgumentNullException.ThrowIfNull(promptText, nameof(promptText)); 62ArgumentNullException.ThrowIfNull(choices, nameof(choices)); 63ArgumentNullException.ThrowIfNull(choiceFormatter, nameof(choiceFormatter));
Aspire.Azure.AI.Inference (4)
AspireAzureAIInferenceExtensions.cs (4)
50ArgumentNullException.ThrowIfNull(builder); 87ArgumentNullException.ThrowIfNull(builder); 177ArgumentNullException.ThrowIfNull(builder); 192ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.AI.Inference.Tests (6)
AspireAzureAIInferencePublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.AI.OpenAI (4)
AspireAzureOpenAIExtensions.cs (2)
44ArgumentNullException.ThrowIfNull(builder); 72ArgumentNullException.ThrowIfNull(builder);
AspireConfigurableOpenAIExtensions.cs (2)
33ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.AI.OpenAI.Tests (15)
AIOpenAIPublicApiTests.cs (15)
21var exception = Assert.Throws<ArgumentNullException>(action); 38? Assert.Throws<ArgumentNullException>(action) 51var exception = Assert.Throws<ArgumentNullException>(action); 66? Assert.Throws<ArgumentNullException>(action) 79var exception = Assert.Throws<ArgumentNullException>(action); 94? Assert.Throws<ArgumentNullException>(action) 107var exception = Assert.Throws<ArgumentNullException>(action); 122? Assert.Throws<ArgumentNullException>(action) 135var exception = Assert.Throws<ArgumentNullException>(action); 150? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Data.Tables (2)
AspireTablesExtensions.cs (2)
40ArgumentNullException.ThrowIfNull(builder); 62ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Data.Tables.Tests (6)
DataTablesPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Messaging.EventHubs (11)
AspireEventHubsExtensions.cs (10)
36ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(builder); 82ArgumentNullException.ThrowIfNull(builder); 105ArgumentNullException.ThrowIfNull(builder); 128ArgumentNullException.ThrowIfNull(builder); 151ArgumentNullException.ThrowIfNull(builder); 175ArgumentNullException.ThrowIfNull(builder); 199ArgumentNullException.ThrowIfNull(builder); 222ArgumentNullException.ThrowIfNull(builder); 246ArgumentNullException.ThrowIfNull(builder);
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
Aspire.Azure.Messaging.EventHubs.Tests (30)
MessagingEventHubsPublicApiTests.cs (30)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action) 75var exception = Assert.Throws<ArgumentNullException>(action); 90? Assert.Throws<ArgumentNullException>(action) 103var exception = Assert.Throws<ArgumentNullException>(action); 118? Assert.Throws<ArgumentNullException>(action) 131var exception = Assert.Throws<ArgumentNullException>(action); 146? Assert.Throws<ArgumentNullException>(action) 159var exception = Assert.Throws<ArgumentNullException>(action); 174? Assert.Throws<ArgumentNullException>(action) 187var exception = Assert.Throws<ArgumentNullException>(action); 202? Assert.Throws<ArgumentNullException>(action) 215var exception = Assert.Throws<ArgumentNullException>(action); 230? Assert.Throws<ArgumentNullException>(action) 243var exception = Assert.Throws<ArgumentNullException>(action); 258? Assert.Throws<ArgumentNullException>(action) 271var exception = Assert.Throws<ArgumentNullException>(action); 286? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Messaging.ServiceBus (3)
AspireServiceBusExtensions.cs (2)
40ArgumentNullException.ThrowIfNull(builder); 61ArgumentNullException.ThrowIfNull(builder);
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
Aspire.Azure.Messaging.ServiceBus.Tests (6)
MessagingServiceBusPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Messaging.WebPubSub (4)
AspireWebPubSubExtensions.cs (3)
39ArgumentNullException.ThrowIfNull(builder); 62ArgumentNullException.ThrowIfNull(builder); 94ArgumentNullException.ThrowIfNull(builder);
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
Aspire.Azure.Messaging.WebPubSub.Tests (7)
MessagingWebPubSubPublicApiTests.cs (7)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 64? Assert.Throws<ArgumentNullException>(action) 81? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Npgsql (4)
AspireAzureNpgsqlExtensions.cs (4)
27/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 31ArgumentNullException.ThrowIfNull(builder); 55/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="name"/> is null.</exception> 60ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (4)
AspireAzureEFPostgreSqlExtensions.cs (4)
44/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 52ArgumentNullException.ThrowIfNull(builder); 70/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 77ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (5)
AzureNpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (5)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Azure.Npgsql.Tests (6)
NpgsqlPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Search.Documents (3)
AspireAzureSearchExtensions.cs (2)
40ArgumentNullException.ThrowIfNull(builder); 60ArgumentNullException.ThrowIfNull(builder);
AzureSearchIndexHealthCheck.cs (1)
17ArgumentNullException.ThrowIfNull(indexClient, nameof(indexClient));
Aspire.Azure.Search.Documents.Tests (6)
SearchDocumentsPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Security.KeyVault (7)
AspireKeyVaultExtensions.cs (7)
40ArgumentNullException.ThrowIfNull(builder); 63ArgumentNullException.ThrowIfNull(builder); 85ArgumentNullException.ThrowIfNull(builder); 107ArgumentNullException.ThrowIfNull(builder); 129ArgumentNullException.ThrowIfNull(builder); 151ArgumentNullException.ThrowIfNull(builder); 173ArgumentNullException.ThrowIfNull(configurationManager);
Aspire.Azure.Security.KeyVault.Tests (12)
AspireKeyVaultExtensionsTests.cs (3)
285? Assert.Throws<ArgumentNullException>(action) 303? Assert.Throws<ArgumentNullException>(action) 321? Assert.Throws<ArgumentNullException>(action)
SecurityKeyVaultPublicApiTests.cs (9)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 63? Assert.Throws<ArgumentNullException>(action) 76var exception = Assert.Throws<ArgumentNullException>(action); 91? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Storage.Blobs (4)
AspireBlobStorageExtensions.cs (4)
42ArgumentNullException.ThrowIfNull(builder); 74ArgumentNullException.ThrowIfNull(builder); 105ArgumentNullException.ThrowIfNull(builder); 139ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Storage.Blobs.Tests (6)
StorageBlobsPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Azure.Storage.Queues (2)
AspireQueueStorageExtensions.cs (2)
41ArgumentNullException.ThrowIfNull(builder); 63ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Storage.Queues.Tests (6)
StorageQueuesPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Confluent.Kafka (5)
AspireKafkaConsumerExtensions.cs (1)
118ArgumentNullException.ThrowIfNull(builder);
AspireKafkaProducerExtensions.cs (1)
118ArgumentNullException.ThrowIfNull(builder);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (3)
36ArgumentNullException.ThrowIfNull(consumeResult); 84ArgumentNullException.ThrowIfNull(consumer); 98ArgumentNullException.ThrowIfNull(handler);
Aspire.Confluent.Kafka.Tests (12)
ConfluentKafkaPublicApiTests.cs (12)
38var exception = Assert.Throws<ArgumentNullException>(action); 75? Assert.Throws<ArgumentNullException>(action) 106var exception = Assert.Throws<ArgumentNullException>(action); 143? Assert.Throws<ArgumentNullException>(action) 174var exception = Assert.Throws<ArgumentNullException>(action); 211? Assert.Throws<ArgumentNullException>(action) 242var exception = Assert.Throws<ArgumentNullException>(action); 279? Assert.Throws<ArgumentNullException>(action)
Aspire.Dashboard (6)
Authentication\AspirePolicyEvaluator.cs (1)
107ArgumentNullException.ThrowIfNull(policy);
Components\Pages\IPageWithSessionAndUrlState.cs (1)
114ArgumentNullException.ThrowIfNull(page.PageViewModel, nameof(page.PageViewModel));
Model\ResourceViewModel.cs (2)
368ArgumentNullException.ThrowIfNull(url); 369ArgumentNullException.ThrowIfNull(displayProperties);
Otlp\Model\OtlpHelpers.cs (1)
95ArgumentNullException.ThrowIfNull(bytes);
Otlp\Storage\TelemetryRepository.cs (1)
212ArgumentNullException.ThrowIfNull(resource);
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Aspire.Dashboard.Tests (2)
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Aspire.Hosting (279)
ApplicationModel\AllocatedEndpoint.cs (1)
51ArgumentNullException.ThrowIfNull(endpoint);
ApplicationModel\AspireStore.cs (2)
22ArgumentNullException.ThrowIfNull(basePath); 38ArgumentNullException.ThrowIfNull(contentStream);
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
20ArgumentNullException.ThrowIfNull(callback); 31ArgumentNullException.ThrowIfNull(callback);
ApplicationModel\ContainerRuntimeArgsCallbackAnnotation.cs (2)
20ArgumentNullException.ThrowIfNull(callback); 31ArgumentNullException.ThrowIfNull(callback);
ApplicationModel\EndpointReference.cs (4)
121ArgumentNullException.ThrowIfNull(owner); 122ArgumentNullException.ThrowIfNull(endpoint); 136ArgumentNullException.ThrowIfNull(owner); 137ArgumentNullException.ThrowIfNull(endpointName);
ApplicationModel\EnvironmentAnnotation.cs (2)
17ArgumentNullException.ThrowIfNull(name); 18ArgumentNullException.ThrowIfNull(value);
ApplicationModel\EnvironmentCallbackAnnotation.cs (5)
23ArgumentNullException.ThrowIfNull(name); 24ArgumentNullException.ThrowIfNull(callback); 40ArgumentNullException.ThrowIfNull(callback); 55ArgumentNullException.ThrowIfNull(callback); 70ArgumentNullException.ThrowIfNull(callback);
ApplicationModel\IInteractionService.cs (1)
215ArgumentNullException.ThrowIfNull(input, nameof(input));
ApplicationModel\ParameterResource.cs (2)
24ArgumentNullException.ThrowIfNull(name); 25ArgumentNullException.ThrowIfNull(callback);
ApplicationModel\ProjectResourceExtensions.cs (2)
18ArgumentNullException.ThrowIfNull(model); 31ArgumentNullException.ThrowIfNull(projectResource);
ApplicationModel\ReferenceExpression.cs (3)
19ArgumentNullException.ThrowIfNull(format); 20ArgumentNullException.ThrowIfNull(valueProviders); 21ArgumentNullException.ThrowIfNull(manifestExpressions);
ApplicationModel\ResourceCommandAnnotation.cs (4)
29ArgumentNullException.ThrowIfNull(name); 30ArgumentNullException.ThrowIfNull(displayName); 31ArgumentNullException.ThrowIfNull(updateState); 32ArgumentNullException.ThrowIfNull(executeCommand);
ApplicationModel\ResourceLoggerService.cs (10)
49ArgumentNullException.ThrowIfNull(resource); 133ArgumentNullException.ThrowIfNull(resourceName); 144ArgumentNullException.ThrowIfNull(resourceName); 157ArgumentNullException.ThrowIfNull(resource); 177ArgumentNullException.ThrowIfNull(resource); 197ArgumentNullException.ThrowIfNull(resourceName); 209ArgumentNullException.ThrowIfNull(resourceName); 256ArgumentNullException.ThrowIfNull(resource); 274ArgumentNullException.ThrowIfNull(name); 287ArgumentNullException.ThrowIfNull(resourceName);
ApplicationModel\ResourceUrlsCallbackAnnotation.cs (2)
17ArgumentNullException.ThrowIfNull(callback); 32ArgumentNullException.ThrowIfNull(callback);
Backchannel\AppHostRpcTarget.cs (1)
31ArgumentNullException.ThrowIfNull(channel);
Backchannel\BackchannelLoggerProvider.cs (1)
20ArgumentNullException.ThrowIfNull(serviceProvider);
ContainerResourceBuilderExtensions.cs (49)
24ArgumentNullException.ThrowIfNull(builder); 25ArgumentNullException.ThrowIfNull(name); 26ArgumentNullException.ThrowIfNull(image); 82ArgumentNullException.ThrowIfNull(builder); 83ArgumentNullException.ThrowIfNull(target); 122ArgumentNullException.ThrowIfNull(builder); 123ArgumentNullException.ThrowIfNull(target); 177ArgumentNullException.ThrowIfNull(builder); 178ArgumentNullException.ThrowIfNull(source); 179ArgumentNullException.ThrowIfNull(target); 196ArgumentNullException.ThrowIfNull(builder); 197ArgumentNullException.ThrowIfNull(entrypoint); 212ArgumentNullException.ThrowIfNull(builder); 213ArgumentNullException.ThrowIfNull(tag); 233ArgumentNullException.ThrowIfNull(builder); 254ArgumentNullException.ThrowIfNull(builder); 255ArgumentNullException.ThrowIfNull(image); 312ArgumentNullException.ThrowIfNull(builder); 313ArgumentNullException.ThrowIfNull(sha256); 336ArgumentNullException.ThrowIfNull(builder); 353ArgumentNullException.ThrowIfNull(builder); 354ArgumentNullException.ThrowIfNull(callback); 375ArgumentNullException.ThrowIfNull(builder); 376ArgumentNullException.ThrowIfNull(callback); 404ArgumentNullException.ThrowIfNull(builder); 418ArgumentNullException.ThrowIfNull(builder); 434ArgumentNullException.ThrowIfNull(builder); 478ArgumentNullException.ThrowIfNull(builder); 530ArgumentNullException.ThrowIfNull(builder); 531ArgumentNullException.ThrowIfNull(name); 532ArgumentNullException.ThrowIfNull(contextPath); 553ArgumentNullException.ThrowIfNull(builder); 554ArgumentNullException.ThrowIfNull(name); 592ArgumentNullException.ThrowIfNull(builder); 642ArgumentNullException.ThrowIfNull(builder); 643ArgumentNullException.ThrowIfNull(name); 644ArgumentNullException.ThrowIfNull(value); 689ArgumentNullException.ThrowIfNull(builder); 691ArgumentNullException.ThrowIfNull(value); 749ArgumentNullException.ThrowIfNull(builder); 750ArgumentNullException.ThrowIfNull(destinationPath); 751ArgumentNullException.ThrowIfNull(entries); 822ArgumentNullException.ThrowIfNull(builder); 823ArgumentNullException.ThrowIfNull(destinationPath); 824ArgumentNullException.ThrowIfNull(callback); 855ArgumentNullException.ThrowIfNull(builder); 856ArgumentNullException.ThrowIfNull(destinationPath); 857ArgumentNullException.ThrowIfNull(sourcePath); 907ArgumentNullException.ThrowIfNull(builder);
ContainerResourceExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(model); 38ArgumentNullException.ThrowIfNull(resource);
CustomResourceExtensions.cs (2)
23ArgumentNullException.ThrowIfNull(builder); 24ArgumentNullException.ThrowIfNull(initialSnapshot);
DistributedApplication.cs (3)
61ArgumentNullException.ThrowIfNull(host); 143ArgumentNullException.ThrowIfNull(args); 190ArgumentNullException.ThrowIfNull(options);
DistributedApplicationBuilder.cs (4)
103ArgumentNullException.ThrowIfNull(args); 158ArgumentNullException.ThrowIfNull(options); 534ArgumentNullException.ThrowIfNull(resource); 548ArgumentNullException.ThrowIfNull(resource);
DistributedApplicationBuilderExtensions.cs (1)
62ArgumentNullException.ThrowIfNull(builder, nameof(builder));
DistributedApplicationResourceBuilder.cs (1)
16ArgumentNullException.ThrowIfNull(annotation);
EmulatorResourceExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(resource);
ExecutableResourceBuilderExtensions.cs (9)
31ArgumentNullException.ThrowIfNull(builder); 32ArgumentNullException.ThrowIfNull(name); 33ArgumentNullException.ThrowIfNull(command); 34ArgumentNullException.ThrowIfNull(workingDirectory); 50ArgumentNullException.ThrowIfNull(builder); 51ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(command); 53ArgumentNullException.ThrowIfNull(workingDirectory); 91ArgumentNullException.ThrowIfNull(builder);
ExecutableResourceExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(model);
ExternalServiceBuilderExtensions.cs (9)
27ArgumentNullException.ThrowIfNull(builder); 28ArgumentNullException.ThrowIfNull(name); 29ArgumentNullException.ThrowIfNull(url); 48ArgumentNullException.ThrowIfNull(builder); 49ArgumentNullException.ThrowIfNull(name); 50ArgumentNullException.ThrowIfNull(uri); 64ArgumentNullException.ThrowIfNull(builder); 65ArgumentNullException.ThrowIfNull(name); 66ArgumentNullException.ThrowIfNull(urlParameter);
OtlpConfigurationExtensions.cs (4)
28ArgumentNullException.ThrowIfNull(resource); 29ArgumentNullException.ThrowIfNull(configuration); 30ArgumentNullException.ThrowIfNull(environment); 112ArgumentNullException.ThrowIfNull(builder);
ParameterResourceBuilderExtensions.cs (24)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(name); 50ArgumentNullException.ThrowIfNull(builder); 51ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(value); 71ArgumentNullException.ThrowIfNull(builder); 72ArgumentNullException.ThrowIfNull(name); 73ArgumentNullException.ThrowIfNull(valueGetter); 104ArgumentNullException.ThrowIfNull(builder); 105ArgumentNullException.ThrowIfNull(name); 106ArgumentNullException.ThrowIfNull(configurationKey); 134ArgumentNullException.ThrowIfNull(builder); 135ArgumentNullException.ThrowIfNull(name); 136ArgumentNullException.ThrowIfNull(value); 187ArgumentNullException.ThrowIfNull(builder); 188ArgumentNullException.ThrowIfNull(name); 208ArgumentNullException.ThrowIfNull(builder); 220ArgumentNullException.ThrowIfNull(builder); 252ArgumentNullException.ThrowIfNull(builder); 253ArgumentNullException.ThrowIfNull(name); 285ArgumentNullException.ThrowIfNull(builder); 286ArgumentNullException.ThrowIfNull(name); 313ArgumentNullException.ThrowIfNull(builder); 314ArgumentNullException.ThrowIfNull(name);
ProjectResourceBuilderExtensions.cs (21)
63ArgumentNullException.ThrowIfNull(builder); 64ArgumentNullException.ThrowIfNull(name); 96ArgumentNullException.ThrowIfNull(builder); 97ArgumentNullException.ThrowIfNull(name); 98ArgumentNullException.ThrowIfNull(projectPath); 143ArgumentNullException.ThrowIfNull(builder); 144ArgumentNullException.ThrowIfNull(name); 181ArgumentNullException.ThrowIfNull(builder); 182ArgumentNullException.ThrowIfNull(name); 183ArgumentNullException.ThrowIfNull(projectPath); 230ArgumentNullException.ThrowIfNull(builder); 231ArgumentNullException.ThrowIfNull(name); 232ArgumentNullException.ThrowIfNull(configure); 270ArgumentNullException.ThrowIfNull(builder); 271ArgumentNullException.ThrowIfNull(name); 272ArgumentNullException.ThrowIfNull(projectPath); 273ArgumentNullException.ThrowIfNull(configure); 599ArgumentNullException.ThrowIfNull(builder); 633ArgumentNullException.ThrowIfNull(builder); 649ArgumentNullException.ThrowIfNull(builder); 650ArgumentNullException.ThrowIfNull(filter);
ResourceBuilderExtensions.cs (103)
35ArgumentNullException.ThrowIfNull(builder); 36ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(builder); 53ArgumentNullException.ThrowIfNull(name); 76ArgumentNullException.ThrowIfNull(builder); 77ArgumentNullException.ThrowIfNull(name); 78ArgumentNullException.ThrowIfNull(value); 98ArgumentNullException.ThrowIfNull(builder); 99ArgumentNullException.ThrowIfNull(name); 100ArgumentNullException.ThrowIfNull(callback); 114ArgumentNullException.ThrowIfNull(builder); 115ArgumentNullException.ThrowIfNull(callback); 129ArgumentNullException.ThrowIfNull(builder); 130ArgumentNullException.ThrowIfNull(callback); 146ArgumentNullException.ThrowIfNull(builder); 147ArgumentNullException.ThrowIfNull(name); 148ArgumentNullException.ThrowIfNull(endpointReference); 169ArgumentNullException.ThrowIfNull(builder); 170ArgumentNullException.ThrowIfNull(externalService); 204ArgumentNullException.ThrowIfNull(builder); 205ArgumentNullException.ThrowIfNull(name); 206ArgumentNullException.ThrowIfNull(parameter); 230ArgumentNullException.ThrowIfNull(builder); 231ArgumentNullException.ThrowIfNull(envVarName); 232ArgumentNullException.ThrowIfNull(resource); 255ArgumentNullException.ThrowIfNull(builder); 256ArgumentNullException.ThrowIfNull(name); 257ArgumentNullException.ThrowIfNull(value); 280ArgumentNullException.ThrowIfNull(builder); 281ArgumentNullException.ThrowIfNull(args); 295ArgumentNullException.ThrowIfNull(builder); 296ArgumentNullException.ThrowIfNull(args); 312ArgumentNullException.ThrowIfNull(builder); 313ArgumentNullException.ThrowIfNull(callback); 331ArgumentNullException.ThrowIfNull(builder); 332ArgumentNullException.ThrowIfNull(callback); 346ArgumentNullException.ThrowIfNull(builder); 347ArgumentNullException.ThrowIfNull(callback); 363ArgumentNullException.ThrowIfNull(builder); 364ArgumentNullException.ThrowIfNull(callback); 379ArgumentNullException.ThrowIfNull(builder); 380ArgumentNullException.ThrowIfNull(callback); 395ArgumentNullException.ThrowIfNull(builder); 396ArgumentNullException.ThrowIfNull(resource); 445ArgumentNullException.ThrowIfNull(builder); 446ArgumentNullException.ThrowIfNull(source); 472ArgumentNullException.ThrowIfNull(builder); 473ArgumentNullException.ThrowIfNull(source); 491ArgumentNullException.ThrowIfNull(builder); 492ArgumentNullException.ThrowIfNull(name); 493ArgumentNullException.ThrowIfNull(uri); 519ArgumentNullException.ThrowIfNull(builder); 520ArgumentNullException.ThrowIfNull(externalService); 565ArgumentNullException.ThrowIfNull(builder); 566ArgumentNullException.ThrowIfNull(endpointReference); 639ArgumentNullException.ThrowIfNull(builder); 640ArgumentNullException.ThrowIfNull(endpointName); 641ArgumentNullException.ThrowIfNull(callback); 686ArgumentNullException.ThrowIfNull(builder); 753ArgumentNullException.ThrowIfNull(builder); 773ArgumentNullException.ThrowIfNull(builder); 786ArgumentNullException.ThrowIfNull(builder); 814ArgumentNullException.ThrowIfNull(builder); 827ArgumentNullException.ThrowIfNull(builder); 882ArgumentNullException.ThrowIfNull(builder); 883ArgumentNullException.ThrowIfNull(callback); 905ArgumentNullException.ThrowIfNull(builder); 906ArgumentNullException.ThrowIfNull(callback); 926ArgumentNullException.ThrowIfNull(builder); 927ArgumentNullException.ThrowIfNull(url); 947ArgumentNullException.ThrowIfNull(builder); 969ArgumentNullException.ThrowIfNull(builder); 970ArgumentNullException.ThrowIfNull(url); 1095ArgumentNullException.ThrowIfNull(builder); 1129ArgumentNullException.ThrowIfNull(builder); 1130ArgumentNullException.ThrowIfNull(dependency); 1171ArgumentNullException.ThrowIfNull(builder); 1172ArgumentNullException.ThrowIfNull(dependency); 1272ArgumentNullException.ThrowIfNull(builder); 1273ArgumentNullException.ThrowIfNull(dependency); 1328ArgumentNullException.ThrowIfNull(builder); 1329ArgumentNullException.ThrowIfNull(key); 1372ArgumentNullException.ThrowIfNull(builder); 1496ArgumentNullException.ThrowIfNull(builder); 1527ArgumentNullException.ThrowIfNull(builder); 1528ArgumentNullException.ThrowIfNull(name); 1529ArgumentNullException.ThrowIfNull(displayName); 1530ArgumentNullException.ThrowIfNull(executeCommand); 1594ArgumentNullException.ThrowIfNull(builder); 1595ArgumentNullException.ThrowIfNull(name); 1596ArgumentNullException.ThrowIfNull(displayName); 1597ArgumentNullException.ThrowIfNull(executeCommand); 1938ArgumentNullException.ThrowIfNull(builder); 1939ArgumentNullException.ThrowIfNull(resource); 1940ArgumentNullException.ThrowIfNull(type); 1956ArgumentNullException.ThrowIfNull(builder); 1957ArgumentNullException.ThrowIfNull(resource); 1973ArgumentNullException.ThrowIfNull(builder); 1974ArgumentNullException.ThrowIfNull(expression); 2032ArgumentNullException.ThrowIfNull(builder); 2033ArgumentNullException.ThrowIfNull(resourceBuilder); 2111ArgumentNullException.ThrowIfNull(builder); 2112ArgumentNullException.ThrowIfNull(computeEnvironmentResource);
src\Shared\SecretsStore.cs (1)
24ArgumentNullException.ThrowIfNull(userSecretsId);
Aspire.Hosting.Azure (36)
AzureEnvironmentResource.cs (1)
43/// <exception cref="ArgumentNullException">Thrown when the name is null or empty.</exception>
AzureEnvironmentResourceExtensions.cs (4)
65ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(location); 88ArgumentNullException.ThrowIfNull(builder); 89ArgumentNullException.ThrowIfNull(resourceGroup);
AzureProvisioningResource.cs (3)
124ArgumentNullException.ThrowIfNull(infrastructure); 125ArgumentNullException.ThrowIfNull(createExisting); 126ArgumentNullException.ThrowIfNull(createNew);
AzureProvisioningResourceExtensions.cs (16)
42ArgumentNullException.ThrowIfNull(builder); 43ArgumentNullException.ThrowIfNull(configure); 64ArgumentNullException.ThrowIfNull(secretReference); 65ArgumentNullException.ThrowIfNull(infrastructure); 115ArgumentNullException.ThrowIfNull(parameterResourceBuilder); 116ArgumentNullException.ThrowIfNull(infrastructure); 131ArgumentNullException.ThrowIfNull(manifestExpressionProvider); 132ArgumentNullException.ThrowIfNull(infrastructure); 161ArgumentNullException.ThrowIfNull(parameterResource); 162ArgumentNullException.ThrowIfNull(infrastructure); 190ArgumentNullException.ThrowIfNull(outputReference); 191ArgumentNullException.ThrowIfNull(infrastructure); 217ArgumentNullException.ThrowIfNull(endpointReference); 218ArgumentNullException.ThrowIfNull(infrastructure); 243ArgumentNullException.ThrowIfNull(expression); 244ArgumentNullException.ThrowIfNull(infrastructure);
AzurePublishingContext.cs (2)
69ArgumentNullException.ThrowIfNull(model); 70ArgumentNullException.ThrowIfNull(outputPath);
AzureUserAssignedIdentityExtensions.cs (4)
20/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> is null.</exception> 32ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(builder); 67ArgumentNullException.ThrowIfNull(identityResourceBuilder);
ExistingAzureResourceExtensions.cs (6)
22ArgumentNullException.ThrowIfNull(resource); 38ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(builder); 80ArgumentNullException.ThrowIfNull(builder); 101ArgumentNullException.ThrowIfNull(builder); 122ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.AIFoundry (6)
AzureAIFoundryExtensions.cs (5)
50ArgumentNullException.ThrowIfNull(builder); 81ArgumentNullException.ThrowIfNull(builder); 82ArgumentNullException.ThrowIfNull(configure); 96ArgumentNullException.ThrowIfNull(builder, nameof(builder)); 185ArgumentNullException.ThrowIfNull(deployment, nameof(deployment));
AzureAIFoundryResource.cs (1)
65ArgumentNullException.ThrowIfNull(deployment);
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationExtensions.cs (1)
31ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.AppContainers (13)
AzureContainerAppContainerExtensions.cs (2)
37ArgumentNullException.ThrowIfNull(container); 38ArgumentNullException.ThrowIfNull(configure);
AzureContainerAppExecutableExtensions.cs (2)
37ArgumentNullException.ThrowIfNull(executable); 38ArgumentNullException.ThrowIfNull(configure);
AzureContainerAppExtensions.cs (4)
36ArgumentNullException.ThrowIfNull(builder); 374/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="workspaceBuilder"/> is null.</exception> 377ArgumentNullException.ThrowIfNull(builder); 378ArgumentNullException.ThrowIfNull(workspaceBuilder);
AzureContainerAppProjectExtensions.cs (2)
37ArgumentNullException.ThrowIfNull(project); 38ArgumentNullException.ThrowIfNull(configure);
ContainerAppExtensions.cs (3)
60ArgumentNullException.ThrowIfNull(app); 61ArgumentNullException.ThrowIfNull(customDomain); 62ArgumentNullException.ThrowIfNull(certificateName);
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsExtensions.cs (1)
38ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceComputeResourceExtensions.cs (2)
37ArgumentNullException.ThrowIfNull(builder); 38ArgumentNullException.ThrowIfNull(configure);
Aspire.Hosting.Azure.CognitiveServices (8)
AzureOpenAIDeploymentResource.cs (1)
37ArgumentNullException.ThrowIfNull(parent);
AzureOpenAIExtensions.cs (6)
32ArgumentNullException.ThrowIfNull(builder); 149ArgumentNullException.ThrowIfNull(builder); 150ArgumentNullException.ThrowIfNull(deployment); 167ArgumentNullException.ThrowIfNull(builder); 186ArgumentNullException.ThrowIfNull(builder); 187ArgumentNullException.ThrowIfNull(configure);
AzureOpenAIResource.cs (1)
52ArgumentNullException.ThrowIfNull(deployment);
Aspire.Hosting.Azure.ContainerRegistry (5)
AzureContainerRegistryExtensions.cs (5)
24/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> is null.</exception> 28ArgumentNullException.ThrowIfNull(builder); 73/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="registryBuilder"/> is null.</exception> 77ArgumentNullException.ThrowIfNull(builder); 78ArgumentNullException.ThrowIfNull(registryBuilder);
Aspire.Hosting.Azure.CosmosDB (16)
AzureCosmosDBContainerResource.cs (2)
29ArgumentNullException.ThrowIfNull(partitionKeyPaths); 90ArgumentNullException.ThrowIfNull(value);
AzureCosmosDBExtensions.cs (13)
33ArgumentNullException.ThrowIfNull(builder); 74ArgumentNullException.ThrowIfNull(builder); 171ArgumentNullException.ThrowIfNull(builder); 187ArgumentNullException.ThrowIfNull(builder); 206ArgumentNullException.ThrowIfNull(builder); 230ArgumentNullException.ThrowIfNull(builder); 247ArgumentNullException.ThrowIfNull(builder); 269ArgumentNullException.ThrowIfNull(builder); 292ArgumentNullException.ThrowIfNull(builder); 294ArgumentNullException.ThrowIfNull(partitionKeyPaths); 339ArgumentNullException.ThrowIfNull(builder); 388ArgumentNullException.ThrowIfNull(builder); 418ArgumentNullException.ThrowIfNull(builder);
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
Aspire.Hosting.Azure.EventHubs (14)
AzureEventHubsExtensions.cs (14)
40ArgumentNullException.ThrowIfNull(builder); 111ArgumentNullException.ThrowIfNull(builder); 128ArgumentNullException.ThrowIfNull(builder); 148ArgumentNullException.ThrowIfNull(builder); 149ArgumentNullException.ThrowIfNull(configure); 168ArgumentNullException.ThrowIfNull(builder); 210ArgumentNullException.ThrowIfNull(builder); 332ArgumentNullException.ThrowIfNull(builder); 346ArgumentNullException.ThrowIfNull(builder); 360ArgumentNullException.ThrowIfNull(builder); 373ArgumentNullException.ThrowIfNull(builder); 389ArgumentNullException.ThrowIfNull(builder); 403ArgumentNullException.ThrowIfNull(builder); 404ArgumentNullException.ThrowIfNull(configJson);
Aspire.Hosting.Azure.Functions (5)
AzureFunctionsProjectResourceExtensions.cs (5)
38ArgumentNullException.ThrowIfNull(builder); 209ArgumentNullException.ThrowIfNull(builder); 210ArgumentNullException.ThrowIfNull(storage); 227ArgumentNullException.ThrowIfNull(destination); 228ArgumentNullException.ThrowIfNull(source);
Aspire.Hosting.Azure.KeyVault (15)
AzureKeyVaultResourceExtensions.cs (15)
61ArgumentNullException.ThrowIfNull(builder); 62ArgumentNullException.ThrowIfNull(name); 168ArgumentNullException.ThrowIfNull(builder); 182ArgumentNullException.ThrowIfNull(builder); 183ArgumentNullException.ThrowIfNull(parameterResource); 197ArgumentNullException.ThrowIfNull(builder); 198ArgumentNullException.ThrowIfNull(parameterResource); 217ArgumentNullException.ThrowIfNull(builder); 218ArgumentNullException.ThrowIfNull(value); 238ArgumentNullException.ThrowIfNull(builder); 239ArgumentNullException.ThrowIfNull(parameterResource); 254ArgumentNullException.ThrowIfNull(builder); 255ArgumentNullException.ThrowIfNull(parameterResource); 275ArgumentNullException.ThrowIfNull(builder); 276ArgumentNullException.ThrowIfNull(value);
Aspire.Hosting.Azure.OperationalInsights (2)
AzureLogAnalyticsWorkspaceExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(builder); 25ArgumentNullException.ThrowIfNull(name);
Aspire.Hosting.Azure.PostgreSQL (6)
AzurePostgresExtensions.cs (6)
36ArgumentNullException.ThrowIfNull(builder); 138ArgumentNullException.ThrowIfNull(builder); 157ArgumentNullException.ThrowIfNull(builder); 209ArgumentNullException.ThrowIfNull(builder); 291ArgumentNullException.ThrowIfNull(builder); 328ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.Redis (6)
AzureRedisExtensions.cs (6)
32ArgumentNullException.ThrowIfNull(builder); 118ArgumentNullException.ThrowIfNull(builder); 155ArgumentNullException.ThrowIfNull(builder); 197ArgumentNullException.ThrowIfNull(builder); 227ArgumentNullException.ThrowIfNull(builder); 228ArgumentNullException.ThrowIfNull(keyVaultBuilder);
Aspire.Hosting.Azure.Search (1)
AzureSearchExtensions.cs (1)
33ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.ServiceBus (20)
AzureServiceBusExtensions.cs (20)
39ArgumentNullException.ThrowIfNull(builder); 123ArgumentNullException.ThrowIfNull(builder); 140ArgumentNullException.ThrowIfNull(builder); 160ArgumentNullException.ThrowIfNull(builder); 161ArgumentNullException.ThrowIfNull(configure); 176ArgumentNullException.ThrowIfNull(builder); 193ArgumentNullException.ThrowIfNull(builder); 195ArgumentNullException.ThrowIfNull(subscriptions); 217ArgumentNullException.ThrowIfNull(builder); 237ArgumentNullException.ThrowIfNull(builder); 238ArgumentNullException.ThrowIfNull(configure); 255ArgumentNullException.ThrowIfNull(builder); 283ArgumentNullException.ThrowIfNull(builder); 303ArgumentNullException.ThrowIfNull(builder); 304ArgumentNullException.ThrowIfNull(configure); 338ArgumentNullException.ThrowIfNull(builder); 471ArgumentNullException.ThrowIfNull(builder); 501ArgumentNullException.ThrowIfNull(builder); 502ArgumentNullException.ThrowIfNull(configJson); 517ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.SignalR (2)
AzureSignalRExtensions.cs (2)
55ArgumentNullException.ThrowIfNull(builder); 118ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.Sql (4)
AzureSqlExtensions.cs (4)
22ArgumentNullException.ThrowIfNull(builder); 77ArgumentNullException.ThrowIfNull(builder); 105ArgumentNullException.ThrowIfNull(builder); 169ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.Storage (12)
AzureStorageExtensions.cs (12)
39ArgumentNullException.ThrowIfNull(builder); 117ArgumentNullException.ThrowIfNull(builder); 193ArgumentNullException.ThrowIfNull(builder); 207ArgumentNullException.ThrowIfNull(builder); 220ArgumentNullException.ThrowIfNull(builder); 236ArgumentNullException.ThrowIfNull(builder); 252ArgumentNullException.ThrowIfNull(builder); 268ArgumentNullException.ThrowIfNull(builder); 292ArgumentNullException.ThrowIfNull(builder); 325ArgumentNullException.ThrowIfNull(builder); 359ArgumentNullException.ThrowIfNull(builder); 374ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.Tests (293)
PublicApiTests\AppConfigurationPublicApiTests.cs (6)
18var exception = Assert.Throws<ArgumentNullException>(action); 33? Assert.Throws<ArgumentNullException>(action) 49? Assert.Throws<ArgumentNullException>(action) 62var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\AppContainersPublicApiTests.cs (22)
21var exception = Assert.Throws<ArgumentNullException>(action); 34var exception = Assert.Throws<ArgumentNullException>(action); 45var exception = Assert.Throws<ArgumentNullException>(action); 57var exception = Assert.Throws<ArgumentNullException>(action); 70var exception = Assert.Throws<ArgumentNullException>(action); 86var exception = Assert.Throws<ArgumentNullException>(action); 98var exception = Assert.Throws<ArgumentNullException>(action); 111var exception = Assert.Throws<ArgumentNullException>(action); 126var exception = Assert.Throws<ArgumentNullException>(action); 141var exception = Assert.Throws<ArgumentNullException>(action); 156var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\ApplicationInsightsPublicApiTests.cs (6)
27var exception = Assert.Throws<ArgumentNullException>(action); 50? Assert.Throws<ArgumentNullException>(action) 66? Assert.Throws<ArgumentNullException>(action) 79var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\CognitiveServicesPublicApiTests.cs (10)
25? Assert.Throws<ArgumentNullException>(action) 42? Assert.Throws<ArgumentNullException>(action) 59? Assert.Throws<ArgumentNullException>(action) 72var exception = Assert.Throws<ArgumentNullException>(action); 87? Assert.Throws<ArgumentNullException>(action) 100var exception = Assert.Throws<ArgumentNullException>(action); 113var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\CosmosDBPublicApiTests.cs (49)
27? Assert.Throws<ArgumentNullException>(action) 47? Assert.Throws<ArgumentNullException>(action) 67? Assert.Throws<ArgumentNullException>(action) 87? Assert.Throws<ArgumentNullException>(action) 107? Assert.Throws<ArgumentNullException>(action) 124var exception = Assert.Throws<ArgumentNullException>(action); 172var exception = Assert.Throws<ArgumentNullException>(action); 186var exception = Assert.Throws<ArgumentNullException>(action); 203? Assert.Throws<ArgumentNullException>(action) 221? Assert.Throws<ArgumentNullException>(action) 235var exception = Assert.Throws<ArgumentNullException>(action); 246var exception = Assert.Throws<ArgumentNullException>(action); 261? Assert.Throws<ArgumentNullException>(action) 274var exception = Assert.Throws<ArgumentNullException>(action); 286var exception = Assert.Throws<ArgumentNullException>(action); 301? Assert.Throws<ArgumentNullException>(action) 314var exception = Assert.Throws<ArgumentNullException>(action); 327var exception = Assert.Throws<ArgumentNullException>(action); 338var exception = Assert.Throws<ArgumentNullException>(action); 350var exception = Assert.Throws<ArgumentNullException>(action); 362var exception = Assert.Throws<ArgumentNullException>(action); 375var exception = Assert.Throws<ArgumentNullException>(action); 392? Assert.Throws<ArgumentNullException>(action) 405var exception = Assert.Throws<ArgumentNullException>(action); 421? Assert.Throws<ArgumentNullException>(action) 435var exception = Assert.Throws<ArgumentNullException>(action); 453? Assert.Throws<ArgumentNullException>(action) 472? Assert.Throws<ArgumentNullException>(action) 485var exception = Assert.Throws<ArgumentNullException>(action); 523var exception = Assert.Throws<ArgumentNullException>(action); 537var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\EventHubsPublicApiTests.cs (46)
26? Assert.Throws<ArgumentNullException>(action) 45? Assert.Throws<ArgumentNullException>(action) 59var exception = Assert.Throws<ArgumentNullException>(action); 75? Assert.Throws<ArgumentNullException>(action) 92? Assert.Throws<ArgumentNullException>(action) 106var exception = Assert.Throws<ArgumentNullException>(action); 117var exception = Assert.Throws<ArgumentNullException>(action); 129var exception = Assert.Throws<ArgumentNullException>(action); 144? Assert.Throws<ArgumentNullException>(action) 158var exception = Assert.Throws<ArgumentNullException>(action); 175? Assert.Throws<ArgumentNullException>(action) 188var exception = Assert.Throws<ArgumentNullException>(action); 204? Assert.Throws<ArgumentNullException>(action) 217var exception = Assert.Throws<ArgumentNullException>(action); 230var exception = Assert.Throws<ArgumentNullException>(action); 242var exception = Assert.Throws<ArgumentNullException>(action); 258? Assert.Throws<ArgumentNullException>(action) 270var exception = Assert.Throws<ArgumentNullException>(action); 283var exception = Assert.Throws<ArgumentNullException>(action); 296var exception = Assert.Throws<ArgumentNullException>(action); 309var exception = Assert.Throws<ArgumentNullException>(action); 321var exception = Assert.Throws<ArgumentNullException>(action); 333var exception = Assert.Throws<ArgumentNullException>(action); 350? Assert.Throws<ArgumentNullException>(action) 363var exception = Assert.Throws<ArgumentNullException>(action); 376var exception = Assert.Throws<ArgumentNullException>(action); 391? Assert.Throws<ArgumentNullException>(action) 404var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\FunctionsPublicApiTests.cs (10)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 61var exception = Assert.Throws<ArgumentNullException>(action); 77var exception = Assert.Throws<ArgumentNullException>(action); 91? Assert.Throws<ArgumentNullException>(action)
PublicApiTests\KeyVaultPublicApiTests.cs (6)
21? Assert.Throws<ArgumentNullException>(action) 34var exception = Assert.Throws<ArgumentNullException>(action); 46var exception = Assert.Throws<ArgumentNullException>(action); 61? Assert.Throws<ArgumentNullException>(action)
PublicApiTests\OperationalInsightsPublicApiTests.cs (6)
21? Assert.Throws<ArgumentNullException>(action) 34var exception = Assert.Throws<ArgumentNullException>(action); 46var exception = Assert.Throws<ArgumentNullException>(action); 61? Assert.Throws<ArgumentNullException>(action)
PublicApiTests\PostgreSQLPublicApiTests.cs (25)
23var exception = Assert.Throws<ArgumentNullException>(action); 38var exception = Assert.Throws<ArgumentNullException>(action); 50var exception = Assert.Throws<ArgumentNullException>(action); 65? Assert.Throws<ArgumentNullException>(action) 78var exception = Assert.Throws<ArgumentNullException>(action); 94? Assert.Throws<ArgumentNullException>(action) 106var exception = Assert.Throws<ArgumentNullException>(action); 117var exception = Assert.Throws<ArgumentNullException>(action); 130var exception = Assert.Throws<ArgumentNullException>(action); 145var exception = Assert.Throws<ArgumentNullException>(action); 161? Assert.Throws<ArgumentNullException>(action) 178? Assert.Throws<ArgumentNullException>(action) 192var exception = Assert.Throws<ArgumentNullException>(action); 207? Assert.Throws<ArgumentNullException>(action) 220var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\RedisPublicApiTests.cs (18)
22? Assert.Throws<ArgumentNullException>(action) 35var exception = Assert.Throws<ArgumentNullException>(action); 50var exception = Assert.Throws<ArgumentNullException>(action); 65var exception = Assert.Throws<ArgumentNullException>(action); 77var exception = Assert.Throws<ArgumentNullException>(action); 92? Assert.Throws<ArgumentNullException>(action) 104var exception = Assert.Throws<ArgumentNullException>(action); 118var exception = Assert.Throws<ArgumentNullException>(action); 131var exception = Assert.Throws<ArgumentNullException>(action); 144var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\SearchPublicApiTests.cs (6)
18var exception = Assert.Throws<ArgumentNullException>(action); 33? Assert.Throws<ArgumentNullException>(action) 49? Assert.Throws<ArgumentNullException>(action) 62var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\ServiceBusPublicApiTests.cs (40)
19var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 46? Assert.Throws<ArgumentNullException>(action) 60var exception = Assert.Throws<ArgumentNullException>(action); 77? Assert.Throws<ArgumentNullException>(action) 90var exception = Assert.Throws<ArgumentNullException>(action); 106? Assert.Throws<ArgumentNullException>(action) 119var exception = Assert.Throws<ArgumentNullException>(action); 132var exception = Assert.Throws<ArgumentNullException>(action); 144var exception = Assert.Throws<ArgumentNullException>(action); 160? Assert.Throws<ArgumentNullException>(action) 173var exception = Assert.Throws<ArgumentNullException>(action); 186var exception = Assert.Throws<ArgumentNullException>(action); 198var exception = Assert.Throws<ArgumentNullException>(action); 215? Assert.Throws<ArgumentNullException>(action) 228var exception = Assert.Throws<ArgumentNullException>(action); 243var exception = Assert.Throws<ArgumentNullException>(action); 254var exception = Assert.Throws<ArgumentNullException>(action); 266var exception = Assert.Throws<ArgumentNullException>(action); 282? Assert.Throws<ArgumentNullException>(action) 295var exception = Assert.Throws<ArgumentNullException>(action); 308var exception = Assert.Throws<ArgumentNullException>(action); 320var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\SignalRPublicApiTests.cs (10)
18var exception = Assert.Throws<ArgumentNullException>(action); 38var exception = Assert.Throws<ArgumentNullException>(action); 61? Assert.Throws<ArgumentNullException>(action) 73var exception = Assert.Throws<ArgumentNullException>(action); 88? Assert.Throws<ArgumentNullException>(action) 101var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\SqlPublicApiTests.cs (16)
23? Assert.Throws<ArgumentNullException>(action) 40? Assert.Throws<ArgumentNullException>(action) 54var exception = Assert.Throws<ArgumentNullException>(action); 69var exception = Assert.Throws<ArgumentNullException>(action); 84var exception = Assert.Throws<ArgumentNullException>(action); 96var exception = Assert.Throws<ArgumentNullException>(action); 111? Assert.Throws<ArgumentNullException>(action) 124var exception = Assert.Throws<ArgumentNullException>(action); 140? Assert.Throws<ArgumentNullException>(action) 152var exception = Assert.Throws<ArgumentNullException>(action);
PublicApiTests\WebPubSubPublicApiTests.cs (17)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 64? Assert.Throws<ArgumentNullException>(action) 85var exception = Assert.Throws<ArgumentNullException>(action); 109? Assert.Throws<ArgumentNullException>(action) 123var exception = Assert.Throws<ArgumentNullException>(action); 138? Assert.Throws<ArgumentNullException>(action) 151var exception = Assert.Throws<ArgumentNullException>(action); 166? Assert.Throws<ArgumentNullException>(action) 179var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Azure.WebPubSub (4)
AzureWebPubSubExtensions.cs (4)
34ArgumentNullException.ThrowIfNull(builder); 156ArgumentNullException.ThrowIfNull(builder); 215ArgumentNullException.ThrowIfNull(builder); 216ArgumentNullException.ThrowIfNull(urlExpression);
Aspire.Hosting.Containers.Tests (1)
ContainerMountAnnotationTests.cs (1)
17Assert.Throws<ArgumentNullException>("source", () => new ContainerMountAnnotation(source, "/usr/foo", ContainerMountType.BindMount, false));
Aspire.Hosting.Docker (14)
DockerComposeAspireDashboardResourceBuilderExtensions.cs (2)
25/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> is <c>null</c>.</exception> 31ArgumentNullException.ThrowIfNull(builder);
DockerComposeEnvironmentExtensions.cs (8)
33ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(builder); 67ArgumentNullException.ThrowIfNull(configure); 82ArgumentNullException.ThrowIfNull(builder); 83ArgumentNullException.ThrowIfNull(configure); 97ArgumentNullException.ThrowIfNull(builder); 112ArgumentNullException.ThrowIfNull(builder); 113ArgumentNullException.ThrowIfNull(configure);
DockerComposePublishingContext.cs (2)
50ArgumentNullException.ThrowIfNull(model); 51ArgumentNullException.ThrowIfNull(OutputPath);
DockerComposeServiceExtensions.cs (2)
39ArgumentNullException.ThrowIfNull(builder); 40ArgumentNullException.ThrowIfNull(configure);
Aspire.Hosting.Garnet (4)
GarnetBuilderExtensions.cs (4)
100ArgumentNullException.ThrowIfNull(builder); 196ArgumentNullException.ThrowIfNull(builder); 231ArgumentNullException.ThrowIfNull(builder); 284ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Garnet.Tests (13)
GarnetPublicApiTests.cs (13)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 75? Assert.Throws<ArgumentNullException>(action) 87var exception = Assert.Throws<ArgumentNullException>(action); 101var exception = Assert.Throws<ArgumentNullException>(action); 117? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Kafka (5)
KafkaBuilderExtensions.cs (5)
34ArgumentNullException.ThrowIfNull(builder); 93ArgumentNullException.ThrowIfNull(builder); 156ArgumentNullException.ThrowIfNull(builder); 173ArgumentNullException.ThrowIfNull(builder); 189ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Kafka.Tests (14)
KafkaPublicApiTests.cs (14)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 70var exception = Assert.Throws<ArgumentNullException>(action); 82var exception = Assert.Throws<ArgumentNullException>(action); 98? Assert.Throws<ArgumentNullException>(action) 113? Assert.Throws<ArgumentNullException>(action) 128? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Keycloak (5)
KeycloakResourceBuilderExtensions.cs (5)
52ArgumentNullException.ThrowIfNull(builder); 107ArgumentNullException.ThrowIfNull(builder); 130ArgumentNullException.ThrowIfNull(builder); 159ArgumentNullException.ThrowIfNull(builder); 187ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Keycloak.Tests (14)
KeycloakPublicApiTests.cs (14)
24? Assert.Throws<ArgumentNullException>(action) 38var exception = Assert.Throws<ArgumentNullException>(action); 50var exception = Assert.Throws<ArgumentNullException>(action); 65? Assert.Throws<ArgumentNullException>(action) 77var exception = Assert.Throws<ArgumentNullException>(action); 89var exception = Assert.Throws<ArgumentNullException>(action); 105? Assert.Throws<ArgumentNullException>(action) 118var exception = Assert.Throws<ArgumentNullException>(action); 134? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Kubernetes (7)
KubernetesEnvironmentExtensions.cs (3)
32ArgumentNullException.ThrowIfNull(builder); 57ArgumentNullException.ThrowIfNull(builder); 58ArgumentNullException.ThrowIfNull(configure);
KubernetesPublishingContext.cs (2)
54ArgumentNullException.ThrowIfNull(model); 55ArgumentNullException.ThrowIfNull(OutputPath);
KubernetesServiceExtensions.cs (2)
38ArgumentNullException.ThrowIfNull(builder); 39ArgumentNullException.ThrowIfNull(configure);
Aspire.Hosting.Milvus (8)
MilvusBuilderExtensions.cs (7)
46ArgumentNullException.ThrowIfNull(builder); 97ArgumentNullException.ThrowIfNull(builder); 133ArgumentNullException.ThrowIfNull(builder); 159ArgumentNullException.ThrowIfNull(builder); 173ArgumentNullException.ThrowIfNull(builder); 188ArgumentNullException.ThrowIfNull(builder); 202ArgumentNullException.ThrowIfNull(builder);
MilvusServerResource.cs (1)
22ArgumentNullException.ThrowIfNull(apiKey);
Aspire.Hosting.Milvus.Tests (27)
MilvusPublicApiTests.cs (27)
22? Assert.Throws<ArgumentNullException>(action) 35var exception = Assert.Throws<ArgumentNullException>(action); 50? Assert.Throws<ArgumentNullException>(action) 63var exception = Assert.Throws<ArgumentNullException>(action); 79? Assert.Throws<ArgumentNullException>(action) 91var exception = Assert.Throws<ArgumentNullException>(action); 102var exception = Assert.Throws<ArgumentNullException>(action); 114var exception = Assert.Throws<ArgumentNullException>(action); 130? Assert.Throws<ArgumentNullException>(action) 145var exception = Assert.Throws<ArgumentNullException>(action); 163? Assert.Throws<ArgumentNullException>(action) 176var exception = Assert.Throws<ArgumentNullException>(action); 192? Assert.Throws<ArgumentNullException>(action) 210? Assert.Throws<ArgumentNullException>(action) 228? Assert.Throws<ArgumentNullException>(action) 242var exception = Assert.Throws<ArgumentNullException>(action); 257? Assert.Throws<ArgumentNullException>(action) 270var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.MongoDB (8)
MongoDBBuilderExtensions.cs (8)
53ArgumentNullException.ThrowIfNull(builder); 102ArgumentNullException.ThrowIfNull(builder); 150ArgumentNullException.ThrowIfNull(builder); 176ArgumentNullException.ThrowIfNull(builder); 193ArgumentNullException.ThrowIfNull(builder); 207ArgumentNullException.ThrowIfNull(builder); 223ArgumentNullException.ThrowIfNull(builder); 237ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.MongoDB.Tests (30)
MongoDBPublicApiTests.cs (30)
21var exception = Assert.Throws<ArgumentNullException>(action); 37? Assert.Throws<ArgumentNullException>(action) 51var exception = Assert.Throws<ArgumentNullException>(action); 68? Assert.Throws<ArgumentNullException>(action) 81var exception = Assert.Throws<ArgumentNullException>(action); 97? Assert.Throws<ArgumentNullException>(action) 109var exception = Assert.Throws<ArgumentNullException>(action); 123var exception = Assert.Throws<ArgumentNullException>(action); 134var exception = Assert.Throws<ArgumentNullException>(action); 146var exception = Assert.Throws<ArgumentNullException>(action); 162? Assert.Throws<ArgumentNullException>(action) 176var exception = Assert.Throws<ArgumentNullException>(action); 194? Assert.Throws<ArgumentNullException>(action) 206var exception = Assert.Throws<ArgumentNullException>(action); 222? Assert.Throws<ArgumentNullException>(action) 239? Assert.Throws<ArgumentNullException>(action) 256? Assert.Throws<ArgumentNullException>(action) 270var exception = Assert.Throws<ArgumentNullException>(action); 284? Assert.Throws<ArgumentNullException>(action) 299? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.MySql (12)
MySqlBuilderExtensions.cs (10)
34ArgumentNullException.ThrowIfNull(builder); 97ArgumentNullException.ThrowIfNull(builder); 170ArgumentNullException.ThrowIfNull(builder); 171ArgumentNullException.ThrowIfNull(script); 190ArgumentNullException.ThrowIfNull(builder); 278ArgumentNullException.ThrowIfNull(builder); 295ArgumentNullException.ThrowIfNull(builder); 309ArgumentNullException.ThrowIfNull(builder); 325ArgumentNullException.ThrowIfNull(builder); 339ArgumentNullException.ThrowIfNull(builder);
MySqlCreateDatabaseScriptAnnotation.cs (1)
19ArgumentNullException.ThrowIfNull(script);
MySqlServerResource.cs (1)
23ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.MySql.Tests (29)
MySqlPublicApiTests.cs (29)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 64? Assert.Throws<ArgumentNullException>(action) 76var exception = Assert.Throws<ArgumentNullException>(action); 90var exception = Assert.Throws<ArgumentNullException>(action); 101var exception = Assert.Throws<ArgumentNullException>(action); 113var exception = Assert.Throws<ArgumentNullException>(action); 129? Assert.Throws<ArgumentNullException>(action) 144var exception = Assert.Throws<ArgumentNullException>(action); 162? Assert.Throws<ArgumentNullException>(action) 175var exception = Assert.Throws<ArgumentNullException>(action); 191? Assert.Throws<ArgumentNullException>(action) 212? Assert.Throws<ArgumentNullException>(action) 233? Assert.Throws<ArgumentNullException>(action) 248var exception = Assert.Throws<ArgumentNullException>(action); 265? Assert.Throws<ArgumentNullException>(action) 278var exception = Assert.Throws<ArgumentNullException>(action); 292? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Nats (5)
NatsBuilderExtensions.cs (5)
51ArgumentNullException.ThrowIfNull(builder); 115ArgumentNullException.ThrowIfNull(builder); 135ArgumentNullException.ThrowIfNull(builder); 149ArgumentNullException.ThrowIfNull(builder); 165ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Nats.Tests (17)
NatsPublicApiTests.cs (17)
22var exception = Assert.Throws<ArgumentNullException>(action); 39? Assert.Throws<ArgumentNullException>(action) 58var exception = Assert.Throws<ArgumentNullException>(action); 79? Assert.Throws<ArgumentNullException>(action) 93var exception = Assert.Throws<ArgumentNullException>(action); 104var exception = Assert.Throws<ArgumentNullException>(action); 115var exception = Assert.Throws<ArgumentNullException>(action); 127var exception = Assert.Throws<ArgumentNullException>(action); 143? Assert.Throws<ArgumentNullException>(action) 158? Assert.Throws<ArgumentNullException>(action) 182? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.NodeJs (2)
NodeExtensions.cs (2)
25ArgumentNullException.ThrowIfNull(builder); 53ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.NodeJs.Tests (14)
NodeJsPublicApiTests.cs (14)
23? Assert.Throws<ArgumentNullException>(action) 40? Assert.Throws<ArgumentNullException>(action) 54var exception = Assert.Throws<ArgumentNullException>(action); 67var exception = Assert.Throws<ArgumentNullException>(action); 83? Assert.Throws<ArgumentNullException>(action) 100? Assert.Throws<ArgumentNullException>(action) 114var exception = Assert.Throws<ArgumentNullException>(action); 130? Assert.Throws<ArgumentNullException>(action) 144var exception = Assert.Throws<ArgumentNullException>(action); 161? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Oracle (8)
OracleDatabaseBuilderExtensions.cs (7)
34ArgumentNullException.ThrowIfNull(builder); 80ArgumentNullException.ThrowIfNull(builder); 99ArgumentNullException.ThrowIfNull(builder); 112ArgumentNullException.ThrowIfNull(builder); 127ArgumentNullException.ThrowIfNull(builder); 141ArgumentNullException.ThrowIfNull(builder); 159ArgumentNullException.ThrowIfNull(builder);
OracleDatabaseServerResource.cs (1)
20ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.Oracle.Tests (27)
OraclePublicApiTests.cs (27)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 64? Assert.Throws<ArgumentNullException>(action) 76var exception = Assert.Throws<ArgumentNullException>(action); 88var exception = Assert.Throws<ArgumentNullException>(action); 104? Assert.Throws<ArgumentNullException>(action) 119var exception = Assert.Throws<ArgumentNullException>(action); 137? Assert.Throws<ArgumentNullException>(action) 150var exception = Assert.Throws<ArgumentNullException>(action); 166? Assert.Throws<ArgumentNullException>(action) 179var exception = Assert.Throws<ArgumentNullException>(action); 195? Assert.Throws<ArgumentNullException>(action) 214? Assert.Throws<ArgumentNullException>(action) 233? Assert.Throws<ArgumentNullException>(action) 247var exception = Assert.Throws<ArgumentNullException>(action); 262? Assert.Throws<ArgumentNullException>(action) 275var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.PostgreSQL (19)
PostgresBuilderExtensions.cs (17)
47ArgumentNullException.ThrowIfNull(builder); 140ArgumentNullException.ThrowIfNull(builder); 183ArgumentNullException.ThrowIfNull(builder); 236ArgumentNullException.ThrowIfNull(builder); 252ArgumentNullException.ThrowIfNull(builder); 287ArgumentNullException.ThrowIfNull(builder); 371ArgumentNullException.ThrowIfNull(builder); 386ArgumentNullException.ThrowIfNull(builder); 402ArgumentNullException.ThrowIfNull(builder); 416ArgumentNullException.ThrowIfNull(builder); 439ArgumentNullException.ThrowIfNull(builder); 440ArgumentNullException.ThrowIfNull(script); 455ArgumentNullException.ThrowIfNull(builder); 456ArgumentNullException.ThrowIfNull(password); 470ArgumentNullException.ThrowIfNull(builder); 471ArgumentNullException.ThrowIfNull(userName); 485ArgumentNullException.ThrowIfNull(builder);
PostgresCreateDatabaseScriptAnnotation.cs (1)
19ArgumentNullException.ThrowIfNull(script);
PostgresServerResource.cs (1)
22ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.PostgreSQL.Tests (34)
PostgrePublicApiTests.cs (34)
23? Assert.Throws<ArgumentNullException>(action) 38? Assert.Throws<ArgumentNullException>(action) 51var exception = Assert.Throws<ArgumentNullException>(action); 66? Assert.Throws<ArgumentNullException>(action) 79var exception = Assert.Throws<ArgumentNullException>(action); 95? Assert.Throws<ArgumentNullException>(action) 107var exception = Assert.Throws<ArgumentNullException>(action); 119var exception = Assert.Throws<ArgumentNullException>(action); 131var exception = Assert.Throws<ArgumentNullException>(action); 142var exception = Assert.Throws<ArgumentNullException>(action); 153var exception = Assert.Throws<ArgumentNullException>(action); 165var exception = Assert.Throws<ArgumentNullException>(action); 181? Assert.Throws<ArgumentNullException>(action) 196var exception = Assert.Throws<ArgumentNullException>(action); 208var exception = Assert.Throws<ArgumentNullException>(action); 226? Assert.Throws<ArgumentNullException>(action) 243? Assert.Throws<ArgumentNullException>(action) 263? Assert.Throws<ArgumentNullException>(action) 283? Assert.Throws<ArgumentNullException>(action) 297var exception = Assert.Throws<ArgumentNullException>(action); 314? Assert.Throws<ArgumentNullException>(action) 328var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (2)
109ArgumentNullException.ThrowIfNull(builder); 179ArgumentNullException.ThrowIfNull(scriptArgs);
PythonProjectResourceBuilderExtensions.cs (2)
112ArgumentNullException.ThrowIfNull(builder); 182ArgumentNullException.ThrowIfNull(scriptArgs);
Aspire.Hosting.Python.Tests (38)
PythonPublicApiTests.cs (38)
23? Assert.Throws<ArgumentNullException>(action) 40? Assert.Throws<ArgumentNullException>(action) 53var exception = Assert.Throws<ArgumentNullException>(action); 72var exception = Assert.Throws<ArgumentNullException>(action); 94? Assert.Throws<ArgumentNullException>(action) 117? Assert.Throws<ArgumentNullException>(action) 140? Assert.Throws<ArgumentNullException>(action) 160var exception = Assert.Throws<ArgumentNullException>(action); 182? Assert.Throws<ArgumentNullException>(action) 208var exception = Assert.Throws<ArgumentNullException>(action); 232? Assert.Throws<ArgumentNullException>(action) 257? Assert.Throws<ArgumentNullException>(action) 282? Assert.Throws<ArgumentNullException>(action) 307? Assert.Throws<ArgumentNullException>(action) 332? Assert.Throws<ArgumentNullException>(action) 354? Assert.Throws<ArgumentNullException>(action) 372? Assert.Throws<ArgumentNullException>(action) 386var exception = Assert.Throws<ArgumentNullException>(action); 406var exception = Assert.Throws<ArgumentNullException>(action); 429? Assert.Throws<ArgumentNullException>(action) 453? Assert.Throws<ArgumentNullException>(action) 477? Assert.Throws<ArgumentNullException>(action) 498var exception = Assert.Throws<ArgumentNullException>(action); 521? Assert.Throws<ArgumentNullException>(action) 548var exception = Assert.Throws<ArgumentNullException>(action); 573? Assert.Throws<ArgumentNullException>(action) 599? Assert.Throws<ArgumentNullException>(action) 625? Assert.Throws<ArgumentNullException>(action) 651? Assert.Throws<ArgumentNullException>(action) 677? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Qdrant (7)
QdrantBuilderExtensions.cs (5)
43ArgumentNullException.ThrowIfNull(builder); 109ArgumentNullException.ThrowIfNull(builder); 124ArgumentNullException.ThrowIfNull(builder); 139ArgumentNullException.ThrowIfNull(builder); 140ArgumentNullException.ThrowIfNull(qdrantResource);
QdrantServerResource.cs (1)
21ArgumentNullException.ThrowIfNull(apiKey);
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (1)
14ArgumentNullException.ThrowIfNull(client, nameof(client));
Aspire.Hosting.Qdrant.Tests (15)
QdrantPublicApiTests.cs (15)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 75? Assert.Throws<ArgumentNullException>(action) 89var exception = Assert.Throws<ArgumentNullException>(action); 102var exception = Assert.Throws<ArgumentNullException>(action); 119? Assert.Throws<ArgumentNullException>(action) 132var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.RabbitMQ (6)
RabbitMQBuilderExtensions.cs (5)
35ArgumentNullException.ThrowIfNull(builder); 97ArgumentNullException.ThrowIfNull(builder); 112ArgumentNullException.ThrowIfNull(builder); 132ArgumentNullException.ThrowIfNull(builder); 152ArgumentNullException.ThrowIfNull(builder);
RabbitMQServerResource.cs (1)
23ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.RabbitMQ.Tests (15)
RabbitMQPublicApiTests.cs (15)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 75? Assert.Throws<ArgumentNullException>(action) 87var exception = Assert.Throws<ArgumentNullException>(action); 99var exception = Assert.Throws<ArgumentNullException>(action); 117? Assert.Throws<ArgumentNullException>(action) 131var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Redis (13)
RedisBuilderExtensions.cs (13)
62ArgumentNullException.ThrowIfNull(builder); 63ArgumentNullException.ThrowIfNull(name); 142ArgumentNullException.ThrowIfNull(builder); 210ArgumentNullException.ThrowIfNull(builder); 270ArgumentNullException.ThrowIfNull(builder); 286ArgumentNullException.ThrowIfNull(builder); 314ArgumentNullException.ThrowIfNull(builder); 344ArgumentNullException.ThrowIfNull(builder); 373ArgumentNullException.ThrowIfNull(builder); 394ArgumentNullException.ThrowIfNull(builder); 407ArgumentNullException.ThrowIfNull(builder); 421ArgumentNullException.ThrowIfNull(builder); 435ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Redis.Tests (26)
RedisPublicApiTests.cs (26)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 58var exception = Assert.Throws<ArgumentNullException>(action); 70var exception = Assert.Throws<ArgumentNullException>(action); 82var exception = Assert.Throws<ArgumentNullException>(action); 93var exception = Assert.Throws<ArgumentNullException>(action); 105var exception = Assert.Throws<ArgumentNullException>(action); 121? Assert.Throws<ArgumentNullException>(action) 133var exception = Assert.Throws<ArgumentNullException>(action); 144var exception = Assert.Throws<ArgumentNullException>(action); 156var exception = Assert.Throws<ArgumentNullException>(action); 174? Assert.Throws<ArgumentNullException>(action) 189? Assert.Throws<ArgumentNullException>(action) 204? Assert.Throws<ArgumentNullException>(action) 219? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Seq (5)
SeqBuilderExtensions.cs (5)
30ArgumentNullException.ThrowIfNull(builder); 31ArgumentNullException.ThrowIfNull(name); 53ArgumentNullException.ThrowIfNull(builder); 67ArgumentNullException.ThrowIfNull(builder); 68ArgumentNullException.ThrowIfNull(source);
Aspire.Hosting.Seq.Tests (12)
SeqPublicApiTests.cs (12)
20var exception = Assert.Throws<ArgumentNullException>(action); 32var exception = Assert.Throws<ArgumentNullException>(action); 43var exception = Assert.Throws<ArgumentNullException>(action); 55var exception = Assert.Throws<ArgumentNullException>(action); 68var exception = Assert.Throws<ArgumentNullException>(action); 80var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.SqlServer (12)
SqlServerBuilderExtensions.cs (9)
38ArgumentNullException.ThrowIfNull(builder); 101ArgumentNullException.ThrowIfNull(builder); 139ArgumentNullException.ThrowIfNull(builder); 157ArgumentNullException.ThrowIfNull(builder); 192ArgumentNullException.ThrowIfNull(builder); 193ArgumentNullException.ThrowIfNull(script); 208ArgumentNullException.ThrowIfNull(builder); 209ArgumentNullException.ThrowIfNull(password); 223ArgumentNullException.ThrowIfNull(builder);
SqlServerCreateDatabaseScriptAnnotation.cs (1)
19ArgumentNullException.ThrowIfNull(script);
SqlServerServerResource.cs (2)
20ArgumentNullException.ThrowIfNull(password); 81ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.SqlServer.Tests (18)
SqlServerPublicApiTests.cs (18)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 48var exception = Assert.Throws<ArgumentNullException>(action); 64? Assert.Throws<ArgumentNullException>(action) 76var exception = Assert.Throws<ArgumentNullException>(action); 88var exception = Assert.Throws<ArgumentNullException>(action); 104? Assert.Throws<ArgumentNullException>(action) 125? Assert.Throws<ArgumentNullException>(action) 146? Assert.Throws<ArgumentNullException>(action) 160var exception = Assert.Throws<ArgumentNullException>(action); 177? Assert.Throws<ArgumentNullException>(action) 190var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Testing (8)
DistributedApplicationFactory.cs (1)
154ArgumentNullException.ThrowIfNull(args);
DistributedApplicationHostingTestingExtensions.cs (3)
25ArgumentNullException.ThrowIfNull(app); 46ArgumentNullException.ThrowIfNull(app); 69ArgumentNullException.ThrowIfNull(app);
DistributedApplicationTestingBuilder.cs (4)
104ArgumentNullException.ThrowIfNull(entryPoint); 106ArgumentNullException.ThrowIfNull(configureBuilder, nameof(configureBuilder)); 133ArgumentNullException.ThrowIfNull(configureBuilder); 140ArgumentNullException.ThrowIfNull(args);
Aspire.Hosting.Testing.Tests (58)
TestingPublicApiTests.cs (49)
19var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 43var exception = Assert.Throws<ArgumentNullException>(action); 58? Assert.Throws<ArgumentNullException>(action) 79? Assert.Throws<ArgumentNullException>(action) 96? await Assert.ThrowsAsync<ArgumentNullException>(action) 113? Assert.Throws<ArgumentNullException>(action) 126var exception = Assert.Throws<ArgumentNullException>(action); 141? Assert.Throws<ArgumentNullException>(action) 154var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 169? await Assert.ThrowsAsync<ArgumentNullException>(action) 182var exception = Assert.Throws<ArgumentNullException>(action); 197? Assert.Throws<ArgumentNullException>(action) 209var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 220var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 234? await Assert.ThrowsAsync<ArgumentNullException>(action) 251var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 263var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 278? await Assert.ThrowsAsync<ArgumentNullException>(action) 295var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 307var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 322? await Assert.ThrowsAsync<ArgumentNullException>(action) 340var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 353var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 366var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 382? await Assert.ThrowsAsync<ArgumentNullException>(action) 398var exception = Assert.Throws<ArgumentNullException>(action); 412? Assert.Throws<ArgumentNullException>(action) 429var exception = Assert.Throws<ArgumentNullException>(action); 441var exception = Assert.Throws<ArgumentNullException>(action); 456? Assert.Throws<ArgumentNullException>(action)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (7)
25ArgumentNullException.ThrowIfNull(app); 33ArgumentNullException.ThrowIfNull(app); 34ArgumentNullException.ThrowIfNull(resource); 49ArgumentNullException.ThrowIfNull(app); 50ArgumentNullException.ThrowIfNull(logTexts); 75ArgumentNullException.ThrowIfNull(app); 76ArgumentNullException.ThrowIfNull(predicate);
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Aspire.Hosting.Tests (19)
ExecutableResourceTests.cs (2)
87=> Assert.Throws<ArgumentNullException>("command", () => new ExecutableResource("name", command: null!, workingDirectory: ".")); 95=> Assert.Throws<ArgumentNullException>("workingDirectory", () => new ExecutableResource("name", command: "cmd", workingDirectory: null!));
ModelNameTests.cs (2)
14var exception = Assert.Throws<ArgumentNullException>(() => ModelName.ValidateName(nameof(Resource), null!));
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Utils\LoggerNotificationExtensions.cs (7)
25ArgumentNullException.ThrowIfNull(app); 33ArgumentNullException.ThrowIfNull(app); 34ArgumentNullException.ThrowIfNull(resource); 49ArgumentNullException.ThrowIfNull(app); 50ArgumentNullException.ThrowIfNull(logTexts); 75ArgumentNullException.ThrowIfNull(app); 76ArgumentNullException.ThrowIfNull(predicate);
Utils\UseCultureAttributeTests.cs (2)
17Assert.Throws<ArgumentNullException>(() => new UseCultureAttribute(null!).Culture); 18Assert.Throws<ArgumentNullException>(() => new UseCultureAttribute("en-US", null!).UICulture);
WithEnvironmentTests.cs (3)
417Assert.Throws<ArgumentNullException>(() => 421Assert.Throws<ArgumentNullException>(() => 425Assert.Throws<ArgumentNullException>(() =>
Aspire.Hosting.Valkey (5)
ValkeyBuilderExtensions.cs (5)
62ArgumentNullException.ThrowIfNull(builder); 113ArgumentNullException.ThrowIfNull(builder); 207ArgumentNullException.ThrowIfNull(builder); 244ArgumentNullException.ThrowIfNull(builder); 279ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Valkey.Tests (11)
ValkeyPublicApiTests.cs (11)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 75? Assert.Throws<ArgumentNullException>(action) 87var exception = Assert.Throws<ArgumentNullException>(action); 101? Assert.Throws<ArgumentNullException>(action)
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpRoute.cs (1)
137ArgumentNullException.ThrowIfNull(createTransform);
Aspire.Keycloak.Authentication (2)
AspireKeycloakExtensions.cs (2)
79ArgumentNullException.ThrowIfNull(builder); 161ArgumentNullException.ThrowIfNull(builder);
Aspire.Keycloak.Authentication.Tests (36)
KeycloakAuthenticationPublicApiTests.cs (36)
23var exception = Assert.Throws<ArgumentNullException>(action); 40? Assert.Throws<ArgumentNullException>(action) 58? Assert.Throws<ArgumentNullException>(action) 73var exception = Assert.Throws<ArgumentNullException>(action); 91? Assert.Throws<ArgumentNullException>(action) 110? Assert.Throws<ArgumentNullException>(action) 129? Assert.Throws<ArgumentNullException>(action) 144var exception = Assert.Throws<ArgumentNullException>(action); 162? Assert.Throws<ArgumentNullException>(action) 181? Assert.Throws<ArgumentNullException>(action) 201var exception = Assert.Throws<ArgumentNullException>(action); 224? Assert.Throws<ArgumentNullException>(action) 248? Assert.Throws<ArgumentNullException>(action) 272? Assert.Throws<ArgumentNullException>(action) 286var exception = Assert.Throws<ArgumentNullException>(action); 303? Assert.Throws<ArgumentNullException>(action) 321? Assert.Throws<ArgumentNullException>(action) 336var exception = Assert.Throws<ArgumentNullException>(action); 354? Assert.Throws<ArgumentNullException>(action) 373? Assert.Throws<ArgumentNullException>(action) 392? Assert.Throws<ArgumentNullException>(action) 407var exception = Assert.Throws<ArgumentNullException>(action); 425? Assert.Throws<ArgumentNullException>(action) 444? Assert.Throws<ArgumentNullException>(action) 464var exception = Assert.Throws<ArgumentNullException>(action); 487? Assert.Throws<ArgumentNullException>(action) 511? Assert.Throws<ArgumentNullException>(action) 535? Assert.Throws<ArgumentNullException>(action)
Aspire.Microsoft.Azure.Cosmos (2)
AspireMicrosoftAzureCosmosExtensions.cs (1)
190ArgumentNullException.ThrowIfNull(builder);
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
Aspire.Microsoft.Azure.Cosmos.Tests (6)
MicrosoftAzureCosmosPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Microsoft.Data.SqlClient (1)
AspireSqlServerSqlClientExtensions.cs (1)
56ArgumentNullException.ThrowIfNull(builder);
Aspire.Microsoft.Data.SqlClient.Tests (6)
MicrosoftDataSqlClientPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (7)
AspireAzureEFCoreCosmosExtensions.cs (6)
35/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 43ArgumentNullException.ThrowIfNull(builder); 78/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 87ArgumentNullException.ThrowIfNull(builder); 177/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 184ArgumentNullException.ThrowIfNull(builder);
src\Shared\StableConnectionStringBuilder.cs (1)
39ArgumentNullException.ThrowIfNull(connectionString);
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
MicrosoftEntityFrameworkCoreCosmosPublicApiTests.cs (6)
21var exception = Assert.Throws<ArgumentNullException>(action); 37? Assert.Throws<ArgumentNullException>(action) 54? Assert.Throws<ArgumentNullException>(action) 66var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (4)
AspireSqlServerEFCoreSqlClientExtensions.cs (4)
35/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 43ArgumentNullException.ThrowIfNull(builder); 94/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 100ArgumentNullException.ThrowIfNull(builder);
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (5)
MicrosoftEntityFrameworkCoreSqlServerPublicApiTests.cs (5)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Milvus.Client (2)
AspireMilvusExtensions.cs (1)
63ArgumentNullException.ThrowIfNull(builder);
MilvusHealthCheck.cs (1)
16ArgumentNullException.ThrowIfNull(milvusClient, nameof(milvusClient));
Aspire.Milvus.Client.Tests (6)
MilvusClientPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.MongoDB.Driver (2)
src\Components\Aspire.MongoDB.Driver\AspireMongoDBDriverExtensions.cs (2)
49/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 74ArgumentNullException.ThrowIfNull(builder);
Aspire.MongoDB.Driver.Tests (6)
MongoDBDriverPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.MongoDB.Driver.v3.Tests (6)
tests\Aspire.MongoDB.Driver.Tests\MongoDBDriverPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.MySqlConnector (3)
AspireMySqlConnectorExtensions.cs (3)
30/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 43/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="name"/> is null.</exception> 59ArgumentNullException.ThrowIfNull(builder);
Aspire.MySqlConnector.Tests (6)
MySqlConnectorPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.NATS.Net (5)
AspireNatsClientExtensions.cs (5)
52/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 107/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="name"/> is null.</exception> 119ArgumentNullException.ThrowIfNull(builder); 195/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 198ArgumentNullException.ThrowIfNull(builder);
Aspire.NATS.Net.Tests (8)
NatsClientPublicApiTests.cs (8)
40var exception = Assert.Throws<ArgumentNullException>(action); 77? Assert.Throws<ArgumentNullException>(action) 108var exception = Assert.Throws<ArgumentNullException>(action); 145? Assert.Throws<ArgumentNullException>(action) 157var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Npgsql (3)
AspirePostgreSqlNpgsqlExtensions.cs (3)
30/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 44/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="name"/> is null.</exception> 57ArgumentNullException.ThrowIfNull(builder);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (4)
AspireEFPostgreSqlExtensions.cs (4)
43/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 51ArgumentNullException.ThrowIfNull(builder); 105/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 112ArgumentNullException.ThrowIfNull(builder);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (5)
NpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (5)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Npgsql.Tests (6)
NpgsqlPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.OpenAI (7)
AspireOpenAIClientBuilderChatClientExtensions.cs (2)
27ArgumentNullException.ThrowIfNull(builder); 45ArgumentNullException.ThrowIfNull(builder);
AspireOpenAIClientBuilderEmbeddingGeneratorExtensions.cs (2)
27ArgumentNullException.ThrowIfNull(builder); 45ArgumentNullException.ThrowIfNull(builder);
AspireOpenAIExtensions.cs (3)
65ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(configurationSectionName); 67ArgumentNullException.ThrowIfNull(connectionName);
Aspire.OpenAI.Tests (19)
OpenAIPublicApiTests.cs (19)
21var exception = Assert.Throws<ArgumentNullException>(action); 38? Assert.Throws<ArgumentNullException>(action) 50var exception = Assert.Throws<ArgumentNullException>(action); 62var exception = Assert.Throws<ArgumentNullException>(action); 81? Assert.Throws<ArgumentNullException>(action) 93var exception = Assert.Throws<ArgumentNullException>(action); 105var exception = Assert.Throws<ArgumentNullException>(action); 124? Assert.Throws<ArgumentNullException>(action) 137var exception = Assert.Throws<ArgumentNullException>(action); 152? Assert.Throws<ArgumentNullException>(action) 165var exception = Assert.Throws<ArgumentNullException>(action); 180? Assert.Throws<ArgumentNullException>(action)
Aspire.Oracle.EntityFrameworkCore (4)
AspireOracleEFCoreExtensions.cs (4)
36/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 44ArgumentNullException.ThrowIfNull(builder); 93/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 99ArgumentNullException.ThrowIfNull(builder);
Aspire.Oracle.EntityFrameworkCore.Tests (5)
OracleEntityFrameworkCorePublicApiTests.cs (5)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Playground.Tests (9)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (7)
25ArgumentNullException.ThrowIfNull(app); 33ArgumentNullException.ThrowIfNull(app); 34ArgumentNullException.ThrowIfNull(resource); 49ArgumentNullException.ThrowIfNull(app); 50ArgumentNullException.ThrowIfNull(logTexts); 75ArgumentNullException.ThrowIfNull(app); 76ArgumentNullException.ThrowIfNull(predicate);
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Aspire.Pomelo.EntityFrameworkCore.MySql (4)
AspireEFMySqlExtensions.cs (4)
47/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 56ArgumentNullException.ThrowIfNull(builder); 142/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 149ArgumentNullException.ThrowIfNull(builder);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (5)
PomeloEntityFrameworkCoreMySqlPublicApiTests.cs (5)
20var exception = Assert.Throws<ArgumentNullException>(action); 35? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Qdrant.Client (2)
AspireQdrantExtensions.cs (1)
61ArgumentNullException.ThrowIfNull(builder);
QdrantHealthCheck.cs (1)
14ArgumentNullException.ThrowIfNull(client, nameof(client));
Aspire.Qdrant.Client.Tests (6)
QdrantClientPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\AspireRabbitMQExtensions.cs (1)
72ArgumentNullException.ThrowIfNull(builder);
Aspire.RabbitMQ.Client.Tests (6)
RabbitMQClientPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.Seq (1)
AspireSeqExtensions.cs (1)
34ArgumentNullException.ThrowIfNull(builder);
Aspire.Seq.Tests (3)
SeqPublicApiTests.cs (3)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action)
Aspire.StackExchange.Redis (1)
AspireRedisExtensions.cs (1)
68ArgumentNullException.ThrowIfNull(builder);
Aspire.StackExchange.Redis.DistributedCaching (2)
AspireRedisDistributedCacheExtensions.cs (2)
36ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(builder);
Aspire.StackExchange.Redis.DistributedCaching.Tests (6)
StackExchangeRedisDistributedCachingPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.StackExchange.Redis.OutputCaching (2)
AspireRedisOutputCacheExtensions.cs (2)
35ArgumentNullException.ThrowIfNull(builder); 65ArgumentNullException.ThrowIfNull(builder);
Aspire.StackExchange.Redis.OutputCaching.Tests (6)
StackExchangeRedisOutputCachingPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
Aspire.StackExchange.Redis.Tests (6)
StackExchangeRedisPublicApiTests.cs (6)
19var exception = Assert.Throws<ArgumentNullException>(action); 34? Assert.Throws<ArgumentNullException>(action) 47var exception = Assert.Throws<ArgumentNullException>(action); 62? Assert.Throws<ArgumentNullException>(action)
CodeGenerator (1)
HttpUtilities\HttpUtilities.cs (1)
245ArgumentNullException.ThrowIfNull(method);
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
127ArgumentNullException = compilation.GetBestTypeByMetadataName(typeof(ArgumentNullException));
CorsMiddlewareWebSite (1)
EchoMiddleware.cs (1)
25ArgumentNullException.ThrowIfNull(context);
CustomEncryptorSample (2)
CustomXmlDecryptor.cs (1)
22ArgumentNullException.ThrowIfNull(encryptedElement);
CustomXmlEncryptor.cs (1)
22ArgumentNullException.ThrowIfNull(plaintextElement);
dotnet-razorpagegenerator (2)
Program.cs (2)
148ArgumentNullException.ThrowIfNull(options); 160ArgumentNullException.ThrowIfNull(options);
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
2090catch (ArgumentNullException)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
1244catch (ArgumentNullException) { }
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (4)
176public ArgumentNullException ArgumentNull(string paramName) 178return TraceException<ArgumentNullException>(new ArgumentNullException(paramName)); 181public ArgumentNullException ArgumentNull(string paramName, string message) 183return TraceException<ArgumentNullException>(new ArgumentNullException(paramName, message));
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (4)
49public ArgumentNullException ThrowHelperArgumentNull(string paramName) 51return (ArgumentNullException)this.ThrowHelperError(new ArgumentNullException(paramName)); 54public ArgumentNullException ThrowHelperArgumentNull(string paramName, string message) 56return (ArgumentNullException)this.ThrowHelperError(new ArgumentNullException(paramName, message));
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (2)
254internal static ArgumentNullException ThrowHelperArgumentNull(string paramName, Message message) 256return (ArgumentNullException)TraceUtility.ThrowHelperError(new ArgumentNullException(paramName), message);
Shared\Utilities\Utilities.cs (1)
14return ex != null && (ex is NullReferenceException || ex is ArgumentNullException);
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
30ArgumentNullException.ThrowIfNull(values);
GenerateDocumentationAndConfigFiles (32)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (3)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 62ArgumentNullException.ThrowIfNull(source);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
HtmlGenerationWebSite (2)
Models\ProductRecommendations.cs (1)
10ArgumentNullException.ThrowIfNull(products);
TestCacheTagHelper.cs (1)
21ArgumentNullException.ThrowIfNull(loggerFactory);
http2cat (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Identity.DefaultUI.WebSite (1)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (1)
336ArgumentNullException.ThrowIfNull(claim);
IIS.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
IIS.LongTests (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
IIS.NewHandler.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
IIS.NewShim.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
IIS.ShadowCopy.Tests (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
IISExpress.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
illink (3)
Infrastructure.Common (1)
TestProperties.cs (1)
45/// <exception cref="ArgumentNullException">propertyName is <c>null</c>.</exception>
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\HandshakeHelpers.cs (1)
27ArgumentNullException.ThrowIfNull(requestKey);
Metrics (45)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Metrics.Legacy (45)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.Analyzers.Local.Tests (12)
InternalReferencedInPublicDocAnalyzerTests.cs (1)
89Assert.Throws<ArgumentNullException>(() => a.Initialize(null!));
Json\JsonArrayTest.cs (1)
31Assert.Throws<ArgumentNullException>("values", () => new JsonArray(default!));
Json\JsonReaderTest.cs (2)
40Assert.Throws<ArgumentNullException>("source", () => JsonReader.Parse(default(string)!)); 41Assert.Throws<ArgumentNullException>("reader", () => JsonReader.Parse(default(TextReader)!));
Json\JsonValueTest.cs (1)
186Assert.ThrowsAny<ArgumentNullException>(() => new JsonValue(new JsonObject())[null!]);
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
350catch (ArgumentNullException e)
Microsoft.AspNetCore (4)
ConfigureHostBuilder.cs (2)
54ArgumentNullException.ThrowIfNull(configureDelegate); 105ArgumentNullException.ThrowIfNull(factory);
GenericHostBuilderExtensions.cs (2)
34ArgumentNullException.ThrowIfNull(configure); 60ArgumentNullException.ThrowIfNull(configure);
Microsoft.AspNetCore.Antiforgery (18)
AntiforgeryApplicationBuilderExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(builder);
AntiforgeryServiceCollectionExtensions.cs (3)
23ArgumentNullException.ThrowIfNull(services); 57ArgumentNullException.ThrowIfNull(services); 58ArgumentNullException.ThrowIfNull(setupAction);
AntiforgeryTokenSet.cs (1)
24ArgumentNullException.ThrowIfNull(formFieldName);
Internal\AntiforgeryOptionsSetup.cs (1)
23ArgumentNullException.ThrowIfNull(options);
Internal\DefaultAntiforgery.cs (5)
42ArgumentNullException.ThrowIfNull(httpContext); 79ArgumentNullException.ThrowIfNull(httpContext); 90ArgumentNullException.ThrowIfNull(httpContext); 145ArgumentNullException.ThrowIfNull(httpContext); 211ArgumentNullException.ThrowIfNull(httpContext);
Internal\DefaultAntiforgeryTokenGenerator.cs (3)
39ArgumentNullException.ThrowIfNull(httpContext); 40ArgumentNullException.ThrowIfNull(cookieToken); 108ArgumentNullException.ThrowIfNull(httpContext);
Internal\DefaultAntiforgeryTokenSerializer.cs (3)
22ArgumentNullException.ThrowIfNull(provider); 23ArgumentNullException.ThrowIfNull(pool); 127ArgumentNullException.ThrowIfNull(token);
Internal\DefaultAntiforgeryTokenStore.cs (1)
17ArgumentNullException.ThrowIfNull(optionsAccessor);
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTokenGeneratorTest.cs (4)
279var ex = Assert.Throws<ArgumentNullException>( 300var ex = Assert.Throws<ArgumentNullException>(
Microsoft.AspNetCore.AsyncState (8)
AsyncStateHttpContextExtensions.cs (1)
23/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.AspNetCore.AsyncState.Tests (1)
AsyncStateHttpContextExtensionsTests.cs (1)
18Assert.Throws<ArgumentNullException>(() => AsyncStateHttpContextExtensions.AddAsyncStateHttpContext(null!));
Microsoft.AspNetCore.Authentication (29)
AuthAppBuilderExtensions.cs (1)
22ArgumentNullException.ThrowIfNull(app);
AuthenticationConfigurationProviderExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(provider, nameof(provider));
AuthenticationHandler.cs (2)
149ArgumentNullException.ThrowIfNull(scheme); 150ArgumentNullException.ThrowIfNull(context);
AuthenticationMiddleware.cs (2)
24ArgumentNullException.ThrowIfNull(next); 25ArgumentNullException.ThrowIfNull(schemes);
AuthenticationServiceCollectionExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(services); 53ArgumentNullException.ThrowIfNull(services); 54ArgumentNullException.ThrowIfNull(configureOptions);
Events\BaseContext.cs (3)
21ArgumentNullException.ThrowIfNull(context); 22ArgumentNullException.ThrowIfNull(scheme); 23ArgumentNullException.ThrowIfNull(options);
HandleRequestResult.cs (1)
34ArgumentNullException.ThrowIfNull(ticket);
PropertiesSerializer.cs (3)
47ArgumentNullException.ThrowIfNull(writer); 48ArgumentNullException.ThrowIfNull(properties); 63ArgumentNullException.ThrowIfNull(reader);
RemoteAuthenticationHandler.cs (2)
228ArgumentNullException.ThrowIfNull(properties); 250ArgumentNullException.ThrowIfNull(properties);
SystemClock.cs (1)
21ArgumentNullException.ThrowIfNull(timeProvider);
TicketSerializer.cs (10)
55ArgumentNullException.ThrowIfNull(writer); 56ArgumentNullException.ThrowIfNull(ticket); 80ArgumentNullException.ThrowIfNull(writer); 81ArgumentNullException.ThrowIfNull(identity); 122ArgumentNullException.ThrowIfNull(writer); 123ArgumentNullException.ThrowIfNull(claim); 148ArgumentNullException.ThrowIfNull(reader); 183ArgumentNullException.ThrowIfNull(reader); 227ArgumentNullException.ThrowIfNull(reader); 228ArgumentNullException.ThrowIfNull(identity);
Microsoft.AspNetCore.Authentication.Abstractions (15)
AuthenticateResult.cs (1)
81ArgumentNullException.ThrowIfNull(ticket);
AuthenticationOptions.cs (2)
34ArgumentNullException.ThrowIfNull(name); 35ArgumentNullException.ThrowIfNull(configureBuilder);
AuthenticationScheme.cs (2)
22ArgumentNullException.ThrowIfNull(name); 23ArgumentNullException.ThrowIfNull(handlerType);
AuthenticationTicket.cs (1)
21ArgumentNullException.ThrowIfNull(principal);
TokenExtensions.cs (9)
23ArgumentNullException.ThrowIfNull(properties); 24ArgumentNullException.ThrowIfNull(tokens); 61ArgumentNullException.ThrowIfNull(properties); 62ArgumentNullException.ThrowIfNull(tokenName); 78ArgumentNullException.ThrowIfNull(properties); 79ArgumentNullException.ThrowIfNull(tokenName); 97ArgumentNullException.ThrowIfNull(properties); 136ArgumentNullException.ThrowIfNull(auth); 137ArgumentNullException.ThrowIfNull(tokenName);
Microsoft.AspNetCore.Authentication.BearerToken (3)
BearerTokenExtensions.cs (3)
64ArgumentNullException.ThrowIfNull(builder); 65ArgumentNullException.ThrowIfNull(authenticationScheme); 66ArgumentNullException.ThrowIfNull(configure);
Microsoft.AspNetCore.Authentication.Cookies (12)
CookieAuthenticationHandler.cs (1)
293ArgumentNullException.ThrowIfNull(user);
CookieSlidingExpirationContext.cs (1)
26ArgumentNullException.ThrowIfNull(ticket);
CookieValidatePrincipalContext.cs (1)
24ArgumentNullException.ThrowIfNull(ticket);
PostConfigureCookieAuthenticationOptions.cs (1)
34ArgumentNullException.ThrowIfNull(name);
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (8)
92ArgumentNullException.ThrowIfNull(context); 93ArgumentNullException.ThrowIfNull(key); 147ArgumentNullException.ThrowIfNull(context); 148ArgumentNullException.ThrowIfNull(key); 149ArgumentNullException.ThrowIfNull(options); 227ArgumentNullException.ThrowIfNull(context); 228ArgumentNullException.ThrowIfNull(key); 229ArgumentNullException.ThrowIfNull(options);
Microsoft.AspNetCore.Authentication.Core (4)
AuthenticationCoreServiceCollectionExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(services); 40ArgumentNullException.ThrowIfNull(services); 41ArgumentNullException.ThrowIfNull(configureOptions);
AuthenticationService.cs (1)
157ArgumentNullException.ThrowIfNull(principal);
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerOptions.cs (1)
128/// <exception cref="ArgumentNullException">if 'value' is null.</exception>
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateOptions.cs (1)
60ArgumentNullException.ThrowIfNull(configureSettings);
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
LdapSettingsValidationTests.cs (2)
16Assert.Throws<ArgumentNullException>(() => settings.Validate()); 28Assert.Throws<ArgumentNullException>(() => settings.Validate());
Microsoft.AspNetCore.Authentication.OAuth (14)
ClaimActionCollectionMapExtensions.cs (11)
24ArgumentNullException.ThrowIfNull(collection); 39ArgumentNullException.ThrowIfNull(collection); 54ArgumentNullException.ThrowIfNull(collection); 70ArgumentNullException.ThrowIfNull(collection); 84ArgumentNullException.ThrowIfNull(collection); 99ArgumentNullException.ThrowIfNull(collection); 110ArgumentNullException.ThrowIfNull(collection); 123ArgumentNullException.ThrowIfNull(collection); 136ArgumentNullException.ThrowIfNull(collection); 148ArgumentNullException.ThrowIfNull(collection); 149ArgumentNullException.ThrowIfNull(claimTypes);
Events\OAuthCreatingTicketContext.cs (2)
39ArgumentNullException.ThrowIfNull(backchannel); 40ArgumentNullException.ThrowIfNull(tokens);
OAuthPostConfigureOptions.cs (1)
33ArgumentNullException.ThrowIfNull(name);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectOptions.cs (1)
183/// <exception cref="ArgumentNullException">if 'value' is null.</exception>
OpenIdConnectPostConfigureOptions.cs (1)
36ArgumentNullException.ThrowIfNull(name);
Microsoft.AspNetCore.Authentication.Test (9)
FacebookTests.cs (2)
53await Assert.ThrowsAsync<ArgumentNullException>("AppId", () => context.ChallengeAsync("Facebook")); 69await Assert.ThrowsAsync<ArgumentNullException>("AppSecret", () => context.ChallengeAsync("Facebook"));
OAuthTests.cs (4)
47await Assert.ThrowsAsync<ArgumentNullException>("ClientId", () => server.SendAsync("http://example.com/")); 63await Assert.ThrowsAsync<ArgumentNullException>("ClientSecret", () => server.SendAsync("http://example.com/")); 95await Assert.ThrowsAsync<ArgumentNullException>("TokenEndpoint", () => server.SendAsync("http://example.com/")); 111await Assert.ThrowsAsync<ArgumentNullException>("AuthorizationEndpoint", () => server.SendAsync("http://example.com/"));
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
486return TestConfigurationException<ArgumentNullException>(
TwitterTests.cs (2)
89await Assert.ThrowsAsync<ArgumentNullException>("ConsumerKey", async () => await server.SendAsync("http://example.com/challenge")); 105await Assert.ThrowsAsync<ArgumentNullException>("ConsumerSecret", async () => await server.SendAsync("http://example.com/challenge"));
Microsoft.AspNetCore.Authentication.Twitter (4)
Messages\RequestTokenSerializer.cs (3)
54ArgumentNullException.ThrowIfNull(writer); 55ArgumentNullException.ThrowIfNull(token); 71ArgumentNullException.ThrowIfNull(reader);
TwitterPostConfigureOptions.cs (1)
33ArgumentNullException.ThrowIfNull(name);
Microsoft.AspNetCore.Authentication.WsFederation (2)
WsFederationOptions.cs (1)
137/// <exception cref="ArgumentNullException"> if 'TokenValidationParameters' is null.</exception>
WsFederationPostConfigureOptions.cs (1)
36ArgumentNullException.ThrowIfNull(name);
Microsoft.AspNetCore.Authorization (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.Authorization.Policy (13)
AuthorizationAppBuilderExtensions.cs (1)
28ArgumentNullException.ThrowIfNull(app);
AuthorizationEndpointConventionBuilderExtensions.cs (4)
44ArgumentNullException.ThrowIfNull(policyNames); 65ArgumentNullException.ThrowIfNull(authorizeData); 90ArgumentNullException.ThrowIfNull(policy); 111ArgumentNullException.ThrowIfNull(configurePolicy);
AuthorizationMiddleware.cs (2)
80ArgumentNullException.ThrowIfNull(services); 95ArgumentNullException.ThrowIfNull(context);
PolicyEvaluator.cs (1)
96ArgumentNullException.ThrowIfNull(policy);
PolicyServiceCollectionExtensions.cs (3)
30ArgumentNullException.ThrowIfNull(services); 45ArgumentNullException.ThrowIfNull(services); 61ArgumentNullException.ThrowIfNull(services);
src\Http\Routing\src\DataSourceDependentCache.cs (2)
29ArgumentNullException.ThrowIfNull(dataSource); 30ArgumentNullException.ThrowIfNull(initialize);
Microsoft.AspNetCore.AzureAppServicesIntegration (1)
AppServicesWebHostBuilderExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(hostBuilder);
Microsoft.AspNetCore.BrowserTesting (2)
BrowserTestOutputLogger.cs (2)
16ArgumentNullException.ThrowIfNull(logger); 23ArgumentNullException.ThrowIfNull(message);
Microsoft.AspNetCore.Components (120)
BindElementAttribute.cs (3)
21ArgumentNullException.ThrowIfNull(element); 22ArgumentNullException.ThrowIfNull(valueAttribute); 23ArgumentNullException.ThrowIfNull(changeAttribute);
CascadingTypeParameterAttribute.cs (1)
20ArgumentNullException.ThrowIfNull(name);
CascadingValueSource.cs (2)
45ArgumentNullException.ThrowIfNull(name); 67ArgumentNullException.ThrowIfNull(name);
Dispatcher.cs (1)
88ArgumentNullException.ThrowIfNull(e);
ErrorBoundaryBase.cs (1)
59ArgumentNullException.ThrowIfNull(exception);
EventCallbackFactory.cs (11)
23ArgumentNullException.ThrowIfNull(receiver); 37ArgumentNullException.ThrowIfNull(receiver); 51ArgumentNullException.ThrowIfNull(receiver); 65ArgumentNullException.ThrowIfNull(receiver); 79ArgumentNullException.ThrowIfNull(receiver); 93ArgumentNullException.ThrowIfNull(receiver); 107ArgumentNullException.ThrowIfNull(receiver); 121ArgumentNullException.ThrowIfNull(receiver); 135ArgumentNullException.ThrowIfNull(receiver); 149ArgumentNullException.ThrowIfNull(receiver); 163ArgumentNullException.ThrowIfNull(receiver);
EventCallbackFactoryEventArgsExtensions.cs (4)
21ArgumentNullException.ThrowIfNull(factory); 36ArgumentNullException.ThrowIfNull(factory); 51ArgumentNullException.ThrowIfNull(factory); 66ArgumentNullException.ThrowIfNull(factory);
EventHandlerAttribute.cs (2)
30ArgumentNullException.ThrowIfNull(attributeName); 31ArgumentNullException.ThrowIfNull(eventArgsType);
NavigationManager.cs (2)
225ArgumentNullException.ThrowIfNull(uri); 226ArgumentNullException.ThrowIfNull(baseUri);
NavigationManagerExtensions.cs (3)
524ArgumentNullException.ThrowIfNull(navigationManager); 561ArgumentNullException.ThrowIfNull(navigationManager); 562ArgumentNullException.ThrowIfNull(uri);
ParameterView.cs (1)
321ArgumentNullException.ThrowIfNull(target);
PersistentComponentState.cs (7)
57ArgumentNullException.ThrowIfNull(callback); 80ArgumentNullException.ThrowIfNull(key); 98ArgumentNullException.ThrowIfNull(key); 125ArgumentNullException.ThrowIfNull(key); 143ArgumentNullException.ThrowIfNull(type); 144ArgumentNullException.ThrowIfNull(key); 160ArgumentNullException.ThrowIfNull(key);
Reflection\ComponentProperties.cs (1)
26ArgumentNullException.ThrowIfNull(target);
Rendering\RendererSynchronizationContextDispatcher.cs (4)
23ArgumentNullException.ThrowIfNull(workItem); 35ArgumentNullException.ThrowIfNull(workItem); 46ArgumentNullException.ThrowIfNull(workItem); 57ArgumentNullException.ThrowIfNull(workItem);
Rendering\RenderTreeBuilder.cs (1)
670ArgumentNullException.ThrowIfNull(eventType);
RenderTree\Renderer.cs (3)
92ArgumentNullException.ThrowIfNull(serviceProvider); 93ArgumentNullException.ThrowIfNull(loggerFactory); 94ArgumentNullException.ThrowIfNull(componentActivator);
RouteAttribute.cs (1)
20ArgumentNullException.ThrowIfNull(template);
Routing\RouteData.cs (1)
22ArgumentNullException.ThrowIfNull(pageType);
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (2)
445ArgumentNullException.ThrowIfNull(array); 799ArgumentNullException.ThrowIfNull(dictionary);
src\Http\Routing\src\Constraints\BoolRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\CompositeRouteConstraint.cs (3)
27ArgumentNullException.ThrowIfNull(constraints); 50ArgumentNullException.ThrowIfNull(routeKey); 51ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\DateTimeRouteConstraint.cs (2)
42ArgumentNullException.ThrowIfNull(routeKey); 43ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\DecimalRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\DoubleRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\FileNameRouteConstraint.cs (2)
107ArgumentNullException.ThrowIfNull(routeKey); 108ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\FloatRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\GuidRouteConstraint.cs (2)
38ArgumentNullException.ThrowIfNull(routeKey); 39ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\IntRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\LengthRouteConstraint.cs (2)
92ArgumentNullException.ThrowIfNull(routeKey); 93ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\LongRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\MaxLengthRouteConstraint.cs (2)
56ArgumentNullException.ThrowIfNull(routeKey); 57ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\MaxRouteConstraint.cs (1)
53ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\MinLengthRouteConstraint.cs (2)
56ArgumentNullException.ThrowIfNull(routeKey); 57ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\MinRouteConstraint.cs (2)
50ArgumentNullException.ThrowIfNull(routeKey); 51ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\NonFileNameRouteConstraint.cs (2)
103ArgumentNullException.ThrowIfNull(routeKey); 104ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\OptionalRouteConstraint.cs (3)
27ArgumentNullException.ThrowIfNull(innerConstraint); 50ArgumentNullException.ThrowIfNull(routeKey); 51ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\RangeRouteConstraint.cs (2)
64ArgumentNullException.ThrowIfNull(routeKey); 65ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Constraints\RegexRouteConstraint.cs (4)
36ArgumentNullException.ThrowIfNull(regex); 49ArgumentNullException.ThrowIfNull(regexPattern); 91ArgumentNullException.ThrowIfNull(routeKey); 92ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\DefaultInlineConstraintResolver.cs (3)
33ArgumentNullException.ThrowIfNull(routeOptions); 34ArgumentNullException.ThrowIfNull(serviceProvider); 50ArgumentNullException.ThrowIfNull(inlineConstraint);
src\Http\Routing\src\ParameterPolicyActivator.cs (1)
76ArgumentNullException.ThrowIfNull(inlineParameterPolicy);
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
18ArgumentNullException.ThrowIfNull(parameter);
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
140ArgumentNullException.ThrowIfNull(name);
src\Http\Routing\src\Patterns\RoutePatternException.cs (2)
34ArgumentNullException.ThrowIfNull(pattern); 35ArgumentNullException.ThrowIfNull(message);
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (3)
180ArgumentNullException.ThrowIfNull(segments); 974ArgumentNullException.ThrowIfNull(constraint); 1004ArgumentNullException.ThrowIfNull(parameterPolicy);
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (2)
27ArgumentNullException.ThrowIfNull(pattern); 65ArgumentNullException.ThrowIfNull(values);
src\Http\Routing\src\Patterns\RoutePatternParser.cs (1)
27ArgumentNullException.ThrowIfNull(pattern);
src\Http\Routing\src\RouteConstraintBuilder.cs (5)
38ArgumentNullException.ThrowIfNull(inlineConstraintResolver); 39ArgumentNullException.ThrowIfNull(displayName); 134ArgumentNullException.ThrowIfNull(key); 135ArgumentNullException.ThrowIfNull(constraintText); 162ArgumentNullException.ThrowIfNull(key);
src\Http\Routing\src\RouteConstraintMatcher.cs (1)
49ArgumentNullException.ThrowIfNull(routeValues);
src\Http\Routing\src\RouteOptions.cs (1)
90ArgumentNullException.ThrowIfNull(value);
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (4)
53ArgumentNullException.ThrowIfNull(loggerFactory); 57ArgumentNullException.ThrowIfNull(constraintResolver); 91ArgumentNullException.ThrowIfNull(handler); 92ArgumentNullException.ThrowIfNull(routeTemplate);
src\Http\Routing\src\Tree\TreeRouter.cs (3)
71ArgumentNullException.ThrowIfNull(trees); 75ArgumentNullException.ThrowIfNull(urlEncoder); 79ArgumentNullException.ThrowIfNull(routeLogger);
Microsoft.AspNetCore.Components.Authorization (2)
AuthenticationState.cs (1)
19ArgumentNullException.ThrowIfNull(user);
AuthenticationStateProvider.cs (1)
29ArgumentNullException.ThrowIfNull(task);
Microsoft.AspNetCore.Components.Endpoints (30)
Builder\RazorComponentsEndpointConventionBuilder.cs (1)
54ArgumentNullException.ThrowIfNull(convention);
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (3)
28ArgumentNullException.ThrowIfNull(builder); 29ArgumentNullException.ThrowIfNull(assemblies); 54ArgumentNullException.ThrowIfNull(builder);
Builder\RazorComponentsEndpointHttpContextExtensions.cs (1)
31ArgumentNullException.ThrowIfNull(context);
Builder\RazorComponentsEndpointRouteBuilderExtensions.cs (2)
27ArgumentNullException.ThrowIfNull(endpoints); 58ArgumentNullException.ThrowIfNull(endpoints);
DependencyInjection\RazorComponentsRazorComponentBuilderExtensions.cs (1)
27ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
38ArgumentNullException.ThrowIfNull(services);
Discovery\AssemblyComponentLibraryDescriptor.cs (2)
25ArgumentNullException.ThrowIfNull(pages); 26ArgumentNullException.ThrowIfNull(components);
Discovery\ComponentInfo.cs (2)
23ArgumentNullException.ThrowIfNull(componentType); 40ArgumentNullException.ThrowIfNull(value, nameof(value));
FormMapping\Converters\CollectionConverter.cs (1)
47ArgumentNullException.ThrowIfNull(elementConverter);
FormMapping\Converters\DictionaryConverter.cs (1)
23ArgumentNullException.ThrowIfNull(elementConverter);
FormMapping\Factories\CollectionConverterFactory.cs (2)
49ArgumentNullException.ThrowIfNull(type); 50ArgumentNullException.ThrowIfNull(options);
FormMapping\FormDataMappingError.cs (2)
10ArgumentNullException.ThrowIfNull(key); 11ArgumentNullException.ThrowIfNull(message);
FormMapping\FormDataMappingException.cs (1)
13ArgumentNullException.ThrowIfNull(error);
FormMapping\FormDataReader.cs (2)
59ArgumentNullException.ThrowIfNull(errorMessage); 85ArgumentNullException.ThrowIfNull(exception);
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
103ArgumentNullException.ThrowIfNull(httpContext); 104ArgumentNullException.ThrowIfNull(componentType);
Results\RazorComponentResult.cs (2)
51ArgumentNullException.ThrowIfNull(componentType); 52ArgumentNullException.ThrowIfNull(parameters);
Results\RazorComponentResultExecutor.cs (1)
24ArgumentNullException.ThrowIfNull(httpContext);
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
25ArgumentNullException.ThrowIfNull(existingState);
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (1)
2508ArgumentNullException.ThrowIfNull(key);
RazorComponentResultTest.cs (2)
28Assert.Throws<ArgumentNullException>(() => new RazorComponentResult(typeof(SimpleComponent), (object)null)); 29Assert.Throws<ArgumentNullException>(() => new RazorComponentResult(typeof(SimpleComponent), null));
Microsoft.AspNetCore.Components.Forms (3)
EditContextDataAnnotationsExtensions.cs (1)
52ArgumentNullException.ThrowIfNull(serviceProvider);
FieldIdentifier.cs (2)
33ArgumentNullException.ThrowIfNull(accessor); 46ArgumentNullException.ThrowIfNull(model);
Microsoft.AspNetCore.Components.Forms.Tests (10)
EditContextDataAnnotationsExtensionsTest.cs (2)
17var ex = Assert.Throws<ArgumentNullException>(() => editContext.EnableDataAnnotationsValidation(_serviceProvider));
EditContextTest.cs (2)
11var ex = Assert.Throws<ArgumentNullException>(() => new EditContext(null));
FieldIdentifierTest.cs (4)
15var ex = Assert.Throws<ArgumentNullException>(() => new FieldIdentifier(null, "somefield")); 30var ex = Assert.Throws<ArgumentNullException>(() => new FieldIdentifier(new object(), null));
ValidationMessageStoreTest.cs (2)
11var ex = Assert.Throws<ArgumentNullException>(() => new ValidationMessageStore(null));
Microsoft.AspNetCore.Components.Server (17)
Builder\ComponentEndpointRouteBuilderExtensions.cs (8)
23ArgumentNullException.ThrowIfNull(endpoints); 38ArgumentNullException.ThrowIfNull(endpoints); 39ArgumentNullException.ThrowIfNull(path); 54ArgumentNullException.ThrowIfNull(endpoints); 55ArgumentNullException.ThrowIfNull(configureOptions); 72ArgumentNullException.ThrowIfNull(endpoints); 73ArgumentNullException.ThrowIfNull(path); 74ArgumentNullException.ThrowIfNull(configureOptions);
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (2)
37ArgumentNullException.ThrowIfNull(builder); 38ArgumentNullException.ThrowIfNull(configure);
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
26ArgumentNullException.ThrowIfNull(loggerFactory);
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
35ArgumentNullException.ThrowIfNull(builder, nameof(builder));
DependencyInjection\ServerSideBlazorBuilderExtensions.cs (4)
22ArgumentNullException.ThrowIfNull(builder); 23ArgumentNullException.ThrowIfNull(configure); 38ArgumentNullException.ThrowIfNull(builder); 39ArgumentNullException.ThrowIfNull(configure);
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
25ArgumentNullException.ThrowIfNull(existingState);
Microsoft.AspNetCore.Components.Tests (4)
Rendering\RenderTreeBuilderTest.cs (4)
2226var ex = Assert.Throws<ArgumentNullException>(() => 2241var ex = Assert.Throws<ArgumentNullException>(() =>
Microsoft.AspNetCore.Components.Web (33)
BindInputElementAttribute.cs (2)
29ArgumentNullException.ThrowIfNull(valueAttribute); 30ArgumentNullException.ThrowIfNull(changeAttribute);
Forms\AntiforgeryRequestToken.cs (2)
18ArgumentNullException.ThrowIfNull(value); 19ArgumentNullException.ThrowIfNull(formFieldName);
Forms\EditContextFieldClassExtensions.cs (1)
49ArgumentNullException.ThrowIfNull(fieldCssClassProvider);
Forms\Mapping\EditContextFormMappingExtensions.cs (4)
14ArgumentNullException.ThrowIfNull(context, nameof(context)); 15ArgumentNullException.ThrowIfNull(mappingContext, nameof(mappingContext)); 24ArgumentNullException.ThrowIfNull(context, nameof(context)); 25ArgumentNullException.ThrowIfNull(fieldName, nameof(fieldName));
Forms\Mapping\FormMappingContext.cs (1)
19ArgumentNullException.ThrowIfNull(mappingScopeName);
Forms\Mapping\FormValueMappingContext.cs (3)
15ArgumentNullException.ThrowIfNull(acceptMappingScopeName, nameof(acceptMappingScopeName)); 16ArgumentNullException.ThrowIfNull(valueType, nameof(valueType)); 17ArgumentNullException.ThrowIfNull(parameterName, nameof(parameterName));
Web\WebEventCallbackFactoryEventArgsExtensions.cs (20)
22ArgumentNullException.ThrowIfNull(factory); 38ArgumentNullException.ThrowIfNull(factory); 54ArgumentNullException.ThrowIfNull(factory); 70ArgumentNullException.ThrowIfNull(factory); 86ArgumentNullException.ThrowIfNull(factory); 102ArgumentNullException.ThrowIfNull(factory); 118ArgumentNullException.ThrowIfNull(factory); 134ArgumentNullException.ThrowIfNull(factory); 150ArgumentNullException.ThrowIfNull(factory); 166ArgumentNullException.ThrowIfNull(factory); 182ArgumentNullException.ThrowIfNull(factory); 198ArgumentNullException.ThrowIfNull(factory); 213ArgumentNullException.ThrowIfNull(factory); 229ArgumentNullException.ThrowIfNull(factory); 245ArgumentNullException.ThrowIfNull(factory); 261ArgumentNullException.ThrowIfNull(factory); 277ArgumentNullException.ThrowIfNull(factory); 293ArgumentNullException.ThrowIfNull(factory); 309ArgumentNullException.ThrowIfNull(factory); 325ArgumentNullException.ThrowIfNull(factory);
Microsoft.AspNetCore.Components.WebAssembly (29)
Hosting\RootComponentMapping.cs (2)
22ArgumentNullException.ThrowIfNull(componentType); 31ArgumentNullException.ThrowIfNull(selector);
Hosting\RootComponentMappingCollection.cs (4)
26ArgumentNullException.ThrowIfNull(selector); 49ArgumentNullException.ThrowIfNull(componentType); 50ArgumentNullException.ThrowIfNull(selector); 61ArgumentNullException.ThrowIfNull(items);
Hosting\WebAssemblyHostBuilder.cs (1)
269ArgumentNullException.ThrowIfNull(factory);
Hosting\WebAssemblyHostConfiguration.cs (1)
145ArgumentNullException.ThrowIfNull(source);
Hosting\WebAssemblyHostEnvironmentExtensions.cs (4)
18ArgumentNullException.ThrowIfNull(hostingEnvironment); 30ArgumentNullException.ThrowIfNull(hostingEnvironment); 42ArgumentNullException.ThrowIfNull(hostingEnvironment); 57ArgumentNullException.ThrowIfNull(hostingEnvironment);
Http\WebAssemblyHttpRequestMessageExtensions.cs (6)
28ArgumentNullException.ThrowIfNull(requestMessage); 52ArgumentNullException.ThrowIfNull(requestMessage); 79ArgumentNullException.ThrowIfNull(requestMessage); 117ArgumentNullException.ThrowIfNull(requestMessage); 148ArgumentNullException.ThrowIfNull(requestMessage); 167ArgumentNullException.ThrowIfNull(requestMessage);
Rendering\NullDispatcher.cs (4)
18ArgumentNullException.ThrowIfNull(workItem); 26ArgumentNullException.ThrowIfNull(workItem); 33ArgumentNullException.ThrowIfNull(workItem); 40ArgumentNullException.ThrowIfNull(workItem);
Rendering\WebAssemblyDispatcher.cs (4)
20ArgumentNullException.ThrowIfNull(workItem); 53ArgumentNullException.ThrowIfNull(workItem); 81ArgumentNullException.ThrowIfNull(workItem); 126ArgumentNullException.ThrowIfNull(workItem);
Services\WebAssemblyConsoleLogger.cs (1)
51ArgumentNullException.ThrowIfNull(formatter);
Services\WebAssemblyNavigationManager.cs (1)
55ArgumentNullException.ThrowIfNull(uri);
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
25ArgumentNullException.ThrowIfNull(existingState);
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
36ArgumentNullException.ThrowIfNull(builder);
WebAssemblyRazorComponentsBuilderExtensions.cs (1)
25ArgumentNullException.ThrowIfNull(builder, nameof(builder));
Microsoft.AspNetCore.Components.WebView (5)
FileExtensionContentTypeProvider.cs (1)
424ArgumentNullException.ThrowIfNull(mapping);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
42ArgumentNullException.ThrowIfNull(subpath); 156ArgumentNullException.ThrowIfNull(subpath);
WebViewManager.cs (2)
175/// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception> 178ArgumentNullException.ThrowIfNull(workItem);
Microsoft.AspNetCore.Components.WebView.Maui (3)
BlazorWebView.cs (2)
85 /// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception> 91 ArgumentNullException.ThrowIfNull(workItem);
Standard\BlazorWebViewHandler.cs (1)
24 /// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception>
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\ElementNode.cs (2)
40ArgumentNullException.ThrowIfNull(eventName); 41ArgumentNullException.ThrowIfNull(descriptor);
StaticContentProviderTests.cs (1)
48ArgumentNullException.ThrowIfNull(filePathsAndContents);
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
BlazorWebView.cs (2)
300 /// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception> 303 ArgumentNullException.ThrowIfNull(workItem);
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
101 ArgumentNullException.ThrowIfNull(webview);
Microsoft.AspNetCore.Components.WebView.Wpf (3)
BlazorWebView.cs (2)
360 /// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception> 363 ArgumentNullException.ThrowIfNull(workItem);
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
101 ArgumentNullException.ThrowIfNull(webview);
Microsoft.AspNetCore.ConcurrencyLimiter (1)
ConcurrencyLimiterExtensions.cs (1)
21ArgumentNullException.ThrowIfNull(app);
Microsoft.AspNetCore.CookiePolicy (10)
CookiePolicyAppBuilderExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(app); 34ArgumentNullException.ThrowIfNull(app); 35ArgumentNullException.ThrowIfNull(options);
CookiePolicyServiceCollectionExtensions.cs (4)
21ArgumentNullException.ThrowIfNull(services); 22ArgumentNullException.ThrowIfNull(configureOptions); 35ArgumentNullException.ThrowIfNull(services); 36ArgumentNullException.ThrowIfNull(configureOptions);
ResponseCookiesWrapper.cs (3)
126ArgumentNullException.ThrowIfNull(options); 140ArgumentNullException.ThrowIfNull(options); 198ArgumentNullException.ThrowIfNull(options);
Microsoft.AspNetCore.CookiePolicy.Test (8)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (8)
92ArgumentNullException.ThrowIfNull(context); 93ArgumentNullException.ThrowIfNull(key); 147ArgumentNullException.ThrowIfNull(context); 148ArgumentNullException.ThrowIfNull(key); 149ArgumentNullException.ThrowIfNull(options); 227ArgumentNullException.ThrowIfNull(context); 228ArgumentNullException.ThrowIfNull(key); 229ArgumentNullException.ThrowIfNull(options);
Microsoft.AspNetCore.Cors (36)
CorsServiceCollectionExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(services); 39ArgumentNullException.ThrowIfNull(services); 40ArgumentNullException.ThrowIfNull(setupAction);
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (4)
21ArgumentNullException.ThrowIfNull(builder); 38ArgumentNullException.ThrowIfNull(builder); 55ArgumentNullException.ThrowIfNull(builder); 56ArgumentNullException.ThrowIfNull(configurePolicy);
Infrastructure\CorsMiddleware.cs (7)
50ArgumentNullException.ThrowIfNull(next); 51ArgumentNullException.ThrowIfNull(corsService); 52ArgumentNullException.ThrowIfNull(loggerFactory); 73ArgumentNullException.ThrowIfNull(next); 74ArgumentNullException.ThrowIfNull(corsService); 75ArgumentNullException.ThrowIfNull(policy); 76ArgumentNullException.ThrowIfNull(loggerFactory);
Infrastructure\CorsMiddlewareExtensions.cs (4)
20ArgumentNullException.ThrowIfNull(app); 33ArgumentNullException.ThrowIfNull(app); 48ArgumentNullException.ThrowIfNull(app); 49ArgumentNullException.ThrowIfNull(configurePolicy);
Infrastructure\CorsOptions.cs (7)
36ArgumentNullException.ThrowIfNull(policy); 47ArgumentNullException.ThrowIfNull(configurePolicy); 59ArgumentNullException.ThrowIfNull(name); 60ArgumentNullException.ThrowIfNull(policy); 72ArgumentNullException.ThrowIfNull(name); 73ArgumentNullException.ThrowIfNull(configurePolicy); 89ArgumentNullException.ThrowIfNull(name);
Infrastructure\CorsPolicyBuilder.cs (3)
56ArgumentNullException.ThrowIfNull(origins); 69ArgumentNullException.ThrowIfNull(origin); 245ArgumentNullException.ThrowIfNull(policy);
Infrastructure\CorsService.cs (7)
29ArgumentNullException.ThrowIfNull(options); 30ArgumentNullException.ThrowIfNull(loggerFactory); 46ArgumentNullException.ThrowIfNull(context); 60ArgumentNullException.ThrowIfNull(context); 61ArgumentNullException.ThrowIfNull(policy); 154ArgumentNullException.ThrowIfNull(result); 155ArgumentNullException.ThrowIfNull(response);
Infrastructure\DefaultCorsPolicyProvider.cs (1)
27ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Cors.Test (2)
CorsPolicyBuilderTests.cs (2)
145Assert.Throws<ArgumentNullException>(() => builder.WithOrigins(args)); 156Assert.Throws<ArgumentNullException>(() => builder.WithOrigins(args));
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.AspNetCore.DataProtection (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.AspNetCore.DataProtection.Abstractions (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
34ArgumentNullException.ThrowIfNull(loggerFactory);
Microsoft.AspNetCore.DataProtection.Extensions (3)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.AspNetCore.Diagnostics (42)
DeveloperExceptionPage\DeveloperExceptionPageExtensions.cs (3)
24ArgumentNullException.ThrowIfNull(app); 43ArgumentNullException.ThrowIfNull(app); 44ArgumentNullException.ThrowIfNull(options);
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (3)
56ArgumentNullException.ThrowIfNull(next); 57ArgumentNullException.ThrowIfNull(options); 58ArgumentNullException.ThrowIfNull(filters);
ExceptionHandler\ExceptionHandlerExtensions.cs (7)
28ArgumentNullException.ThrowIfNull(app); 42ArgumentNullException.ThrowIfNull(app); 60ArgumentNullException.ThrowIfNull(app); 78ArgumentNullException.ThrowIfNull(app); 79ArgumentNullException.ThrowIfNull(configure); 100ArgumentNullException.ThrowIfNull(app); 101ArgumentNullException.ThrowIfNull(options);
ExceptionHandler\ExceptionHandlerServiceCollectionExtensions.cs (4)
23ArgumentNullException.ThrowIfNull(services); 24ArgumentNullException.ThrowIfNull(configureOptions); 37ArgumentNullException.ThrowIfNull(services); 38ArgumentNullException.ThrowIfNull(configureOptions);
src\Shared\Diagnostics\BaseView.cs (4)
144ArgumentNullException.ThrowIfNull(writer); 145ArgumentNullException.ThrowIfNull(name); 146ArgumentNullException.ThrowIfNull(leader); 147ArgumentNullException.ThrowIfNull(trailer);
src\Shared\RazorViews\BaseView.cs (4)
101ArgumentNullException.ThrowIfNull(writer); 182ArgumentNullException.ThrowIfNull(name); 183ArgumentNullException.ThrowIfNull(leader); 184ArgumentNullException.ThrowIfNull(trailer);
StatusCodePage\StatusCodePagesExtensions.cs (10)
29ArgumentNullException.ThrowIfNull(app); 30ArgumentNullException.ThrowIfNull(options); 43ArgumentNullException.ThrowIfNull(app); 57ArgumentNullException.ThrowIfNull(app); 58ArgumentNullException.ThrowIfNull(handler); 76ArgumentNullException.ThrowIfNull(app); 96ArgumentNullException.ThrowIfNull(app); 128ArgumentNullException.ThrowIfNull(app); 149ArgumentNullException.ThrowIfNull(app); 181ArgumentNullException.ThrowIfNull(app);
WelcomePage\WelcomePageExtensions.cs (5)
23ArgumentNullException.ThrowIfNull(app); 24ArgumentNullException.ThrowIfNull(options); 37ArgumentNullException.ThrowIfNull(app); 53ArgumentNullException.ThrowIfNull(app); 68ArgumentNullException.ThrowIfNull(app);
WelcomePage\WelcomePageMiddleware.cs (2)
26ArgumentNullException.ThrowIfNull(next); 27ArgumentNullException.ThrowIfNull(options);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (23)
DatabaseDeveloperPageExceptionFilterServiceExtensions.cs (1)
28ArgumentNullException.ThrowIfNull(services);
DatabaseErrorPageExtensions.cs (3)
27ArgumentNullException.ThrowIfNull(app); 44ArgumentNullException.ThrowIfNull(app); 45ArgumentNullException.ThrowIfNull(options);
DatabaseErrorPageMiddleware.cs (4)
57ArgumentNullException.ThrowIfNull(next); 58ArgumentNullException.ThrowIfNull(loggerFactory); 59ArgumentNullException.ThrowIfNull(options); 77ArgumentNullException.ThrowIfNull(httpContext);
MigrationsEndPointExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(app); 35ArgumentNullException.ThrowIfNull(app); 36ArgumentNullException.ThrowIfNull(options);
MigrationsEndPointMiddleware.cs (4)
36ArgumentNullException.ThrowIfNull(next); 37ArgumentNullException.ThrowIfNull(logger); 38ArgumentNullException.ThrowIfNull(options); 53ArgumentNullException.ThrowIfNull(context);
src\Shared\Diagnostics\BaseView.cs (4)
144ArgumentNullException.ThrowIfNull(writer); 145ArgumentNullException.ThrowIfNull(name); 146ArgumentNullException.ThrowIfNull(leader); 147ArgumentNullException.ThrowIfNull(trailer);
src\Shared\RazorViews\BaseView.cs (4)
101ArgumentNullException.ThrowIfNull(writer); 182ArgumentNullException.ThrowIfNull(name); 183ArgumentNullException.ThrowIfNull(leader); 184ArgumentNullException.ThrowIfNull(trailer);
Microsoft.AspNetCore.Diagnostics.HealthChecks (18)
Builder\HealthCheckApplicationBuilderExtensions.cs (11)
36ArgumentNullException.ThrowIfNull(app); 59ArgumentNullException.ThrowIfNull(app); 60ArgumentNullException.ThrowIfNull(options); 87ArgumentNullException.ThrowIfNull(app); 114ArgumentNullException.ThrowIfNull(app); 115ArgumentNullException.ThrowIfNull(port); 145ArgumentNullException.ThrowIfNull(app); 146ArgumentNullException.ThrowIfNull(options); 171ArgumentNullException.ThrowIfNull(app); 178ArgumentNullException.ThrowIfNull(port); 185ArgumentNullException.ThrowIfNull(options);
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (3)
30ArgumentNullException.ThrowIfNull(endpoints); 47ArgumentNullException.ThrowIfNull(endpoints); 48ArgumentNullException.ThrowIfNull(options);
HealthCheckMiddleware.cs (4)
27ArgumentNullException.ThrowIfNull(next); 28ArgumentNullException.ThrowIfNull(healthCheckOptions); 29ArgumentNullException.ThrowIfNull(healthCheckService); 43ArgumentNullException.ThrowIfNull(httpContext);
Microsoft.AspNetCore.Diagnostics.Middleware (10)
Latency\RequestLatencyTelemetryApplicationBuilderExtensions.cs (2)
20/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null" />.</exception>
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (4)
24/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 35/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 53/// <exception cref="ArgumentNullException">Either <paramref name="services"/> or <paramref name="configure"/> is <see langword="null" />.</exception> 65/// <exception cref="ArgumentNullException">Either <paramref name="services"/> or <paramref name="section"/> is <see langword="null" />.</exception>
Logging\HttpLoggingServiceCollectionExtensions.cs (2)
33/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception> 72/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception>
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (2)
20/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception> 36/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception>
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Latency\RequestCheckpointExtensionsTests.cs (3)
17Assert.Throws<ArgumentNullException>(() => Extensions.DependencyInjection.RequestLatencyTelemetryServiceCollectionExtensions.AddRequestCheckpoint(null!)); 23Assert.Throws<ArgumentNullException>(() => Builder.RequestLatencyTelemetryApplicationBuilderExtensions.UseRequestCheckpoint(null!)); 29Assert.Throws<ArgumentNullException>(() => Extensions.DependencyInjection.RequestLatencyTelemetryServiceCollectionExtensions.AddPipelineEntryCheckpoint(null!));
Latency\RequestLatencyTelemetryExtensionsTests.cs (4)
20Assert.Throws<ArgumentNullException>(() => 22Assert.Throws<ArgumentNullException>(() => 24Assert.Throws<ArgumentNullException>(() => 26Assert.Throws<ArgumentNullException>(() =>
Logging\HttpLoggingServiceExtensionsTests.cs (2)
25Assert.Throws<ArgumentNullException>(static () => HttpLoggingServiceCollectionExtensions.AddHttpLogEnricher<TestHttpLogEnricher>(null!)); 27Assert.Throws<ArgumentNullException>(
Logging\RequestHeadersEnricherExtensionsTests.cs (4)
18Assert.Throws<ArgumentNullException>(() => 21Assert.Throws<ArgumentNullException>(() => 24Assert.Throws<ArgumentNullException>(() => 35Assert.Throws<ArgumentNullException>(() => sp.GetRequiredService<ILogEnricher>());
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
GrpcJsonTranscodingServiceExtensions.cs (3)
27ArgumentNullException.ThrowIfNull(builder); 45ArgumentNullException.ThrowIfNull(builder); 63ArgumentNullException.ThrowIfNull(options);
Internal\HttpContextStreamWriter.cs (1)
44ArgumentNullException.ThrowIfNull(message);
Internal\JsonRequestHelpers.cs (1)
30ArgumentNullException.ThrowIfNull(request);
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
29ArgumentNullException.ThrowIfNull(services);
Microsoft.AspNetCore.HeaderParsing (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.AspNetCore.HeaderPropagation (25)
DependencyInjection\HeaderPropagationApplicationBuilderExtensions.cs (1)
29ArgumentNullException.ThrowIfNull(app);
DependencyInjection\HeaderPropagationHttpClientBuilderExtensions.cs (3)
24ArgumentNullException.ThrowIfNull(builder); 53ArgumentNullException.ThrowIfNull(builder); 54ArgumentNullException.ThrowIfNull(configure);
DependencyInjection\HeaderPropagationServiceCollectionExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(services); 37ArgumentNullException.ThrowIfNull(services); 38ArgumentNullException.ThrowIfNull(configureOptions);
HeaderPropagationContext.cs (2)
23ArgumentNullException.ThrowIfNull(httpContext); 24ArgumentNullException.ThrowIfNull(headerName);
HeaderPropagationEntry.cs (2)
31ArgumentNullException.ThrowIfNull(inboundHeaderName); 32ArgumentNullException.ThrowIfNull(capturedHeaderName);
HeaderPropagationEntryCollection.cs (6)
22ArgumentNullException.ThrowIfNull(headerName); 39ArgumentNullException.ThrowIfNull(headerName); 56ArgumentNullException.ThrowIfNull(inboundHeaderName); 57ArgumentNullException.ThrowIfNull(outboundHeaderName); 81ArgumentNullException.ThrowIfNull(inboundHeaderName); 82ArgumentNullException.ThrowIfNull(outboundHeaderName);
HeaderPropagationMessageHandlerEntry.cs (2)
25ArgumentNullException.ThrowIfNull(capturedHeaderName); 26ArgumentNullException.ThrowIfNull(outboundHeaderName);
HeaderPropagationMessageHandlerEntryCollection.cs (3)
23ArgumentNullException.ThrowIfNull(headerName); 40ArgumentNullException.ThrowIfNull(capturedHeaderName); 41ArgumentNullException.ThrowIfNull(outboundHeaderName);
HeaderPropagationMiddleware.cs (3)
30ArgumentNullException.ThrowIfNull(next); 31ArgumentNullException.ThrowIfNull(options); 32ArgumentNullException.ThrowIfNull(values);
Microsoft.AspNetCore.HostFiltering (3)
HostFilteringBuilderExtensions.cs (1)
21ArgumentNullException.ThrowIfNull(app);
HostFilteringServicesExtensions.cs (2)
22ArgumentNullException.ThrowIfNull(services); 23ArgumentNullException.ThrowIfNull(configureOptions);
Microsoft.AspNetCore.Hosting (21)
GenericHostWebHostBuilderExtensions.cs (3)
23ArgumentNullException.ThrowIfNull(configure); 66ArgumentNullException.ThrowIfNull(configure); 67ArgumentNullException.ThrowIfNull(configureWebHostBuilder);
Http\DefaultHttpContextFactory.cs (1)
46ArgumentNullException.ThrowIfNull(featureCollection);
Internal\HostingEnvironmentExtensions.cs (2)
15ArgumentNullException.ThrowIfNull(options); 66ArgumentNullException.ThrowIfNull(options);
Internal\WebHost.cs (3)
55ArgumentNullException.ThrowIfNull(appServices); 56ArgumentNullException.ThrowIfNull(hostingServiceProvider); 57ArgumentNullException.ThrowIfNull(config);
Internal\WebHostOptions.cs (1)
16ArgumentNullException.ThrowIfNull(primaryConfiguration);
src\Shared\RazorViews\BaseView.cs (4)
101ArgumentNullException.ThrowIfNull(writer); 182ArgumentNullException.ThrowIfNull(name); 183ArgumentNullException.ThrowIfNull(leader); 184ArgumentNullException.ThrowIfNull(trailer);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
42ArgumentNullException.ThrowIfNull(subpath); 156ArgumentNullException.ThrowIfNull(subpath);
WebHostBuilder.cs (1)
94ArgumentNullException.ThrowIfNull(configureServices);
WebHostBuilderExtensions.cs (4)
33ArgumentNullException.ThrowIfNull(configureApp); 62ArgumentNullException.ThrowIfNull(configureApp); 92ArgumentNullException.ThrowIfNull(startupFactory); 135ArgumentNullException.ThrowIfNull(startupType);
Microsoft.AspNetCore.Hosting.Abstractions (11)
HostingAbstractionsWebHostBuilderExtensions.cs (6)
55ArgumentNullException.ThrowIfNull(startupAssemblyName); 70ArgumentNullException.ThrowIfNull(server); 88ArgumentNullException.ThrowIfNull(environment); 101ArgumentNullException.ThrowIfNull(contentRoot); 114ArgumentNullException.ThrowIfNull(webRoot); 127ArgumentNullException.ThrowIfNull(urls);
HostingEnvironmentExtensions.cs (4)
19ArgumentNullException.ThrowIfNull(hostingEnvironment); 31ArgumentNullException.ThrowIfNull(hostingEnvironment); 43ArgumentNullException.ThrowIfNull(hostingEnvironment); 58ArgumentNullException.ThrowIfNull(hostingEnvironment);
HostingStartupAttribute.cs (1)
20ArgumentNullException.ThrowIfNull(hostingStartupType);
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostBuilderTests.cs (2)
69Assert.Throws<ArgumentNullException>(() => builder.UseServer(server).UseStartup((Func<WebHostBuilderContext, object>)null)); 1260Assert.Throws<ArgumentNullException>(() => new HostingStartupAttribute(null));
WebHostTests.cs (1)
34Assert.Throws<ArgumentNullException>(() => CreateBuilder().UseStartup((string)null));
Microsoft.AspNetCore.Html.Abstractions (24)
HtmlContentBuilder.cs (5)
45ArgumentNullException.ThrowIfNull(entries); 103ArgumentNullException.ThrowIfNull(destination); 130ArgumentNullException.ThrowIfNull(destination); 159ArgumentNullException.ThrowIfNull(writer); 160ArgumentNullException.ThrowIfNull(encoder);
HtmlContentBuilderExtensions.cs (13)
32ArgumentNullException.ThrowIfNull(builder); 33ArgumentNullException.ThrowIfNull(format); 34ArgumentNullException.ThrowIfNull(args); 61ArgumentNullException.ThrowIfNull(builder); 62ArgumentNullException.ThrowIfNull(format); 63ArgumentNullException.ThrowIfNull(args); 76ArgumentNullException.ThrowIfNull(builder); 91ArgumentNullException.ThrowIfNull(builder); 106ArgumentNullException.ThrowIfNull(builder); 122ArgumentNullException.ThrowIfNull(builder); 138ArgumentNullException.ThrowIfNull(builder); 153ArgumentNullException.ThrowIfNull(builder); 169ArgumentNullException.ThrowIfNull(builder);
HtmlFormattableString.cs (4)
46ArgumentNullException.ThrowIfNull(format); 47ArgumentNullException.ThrowIfNull(args); 57ArgumentNullException.ThrowIfNull(writer); 58ArgumentNullException.ThrowIfNull(encoder);
HtmlString.cs (2)
40ArgumentNullException.ThrowIfNull(writer); 41ArgumentNullException.ThrowIfNull(encoder);
Microsoft.AspNetCore.Http (31)
Features\FormFeature.cs (3)
32ArgumentNullException.ThrowIfNull(form); 60ArgumentNullException.ThrowIfNull(request); 61ArgumentNullException.ThrowIfNull(options);
Features\QueryFeature.cs (2)
30ArgumentNullException.ThrowIfNull(query); 41ArgumentNullException.ThrowIfNull(features);
Features\RequestBodyPipeFeature.cs (1)
26ArgumentNullException.ThrowIfNull(context);
Features\RequestCookiesFeature.cs (2)
27ArgumentNullException.ThrowIfNull(cookies); 38ArgumentNullException.ThrowIfNull(features);
FormFile.cs (2)
86ArgumentNullException.ThrowIfNull(target); 101ArgumentNullException.ThrowIfNull(target);
HeaderDictionary.cs (2)
85ArgumentNullException.ThrowIfNull(key); 212ArgumentNullException.ThrowIfNull(key);
HttpServiceCollectionExtensions.cs (1)
21ArgumentNullException.ThrowIfNull(services);
Internal\BufferingHelper.cs (3)
15ArgumentNullException.ThrowIfNull(request); 30ArgumentNullException.ThrowIfNull(section); 31ArgumentNullException.ThrowIfNull(registerForDispose);
Internal\DefaultHttpResponse.cs (2)
129ArgumentNullException.ThrowIfNull(callback); 136ArgumentNullException.ThrowIfNull(callback);
Internal\ReferenceReadStream.cs (1)
20ArgumentNullException.ThrowIfNull(inner);
Internal\RequestCookieCollection.cs (1)
48ArgumentNullException.ThrowIfNull(key);
Internal\ResponseCookies.cs (3)
46ArgumentNullException.ThrowIfNull(options); 70ArgumentNullException.ThrowIfNull(options); 114ArgumentNullException.ThrowIfNull(options);
RequestFormReaderExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(request); 25ArgumentNullException.ThrowIfNull(options);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (2)
26ArgumentNullException.ThrowIfNull(sourceDictionary); 27ArgumentNullException.ThrowIfNull(comparer);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
19ArgumentNullException.ThrowIfNull(source);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
295ArgumentNullException.ThrowIfNull(array); 612ArgumentNullException.ThrowIfNull(dictionary);
Timeouts\RequestTimeoutOptions.cs (1)
42ArgumentNullException.ThrowIfNull(policy);
Microsoft.AspNetCore.Http.Abstractions (52)
CookieBuilder.cs (1)
107ArgumentNullException.ThrowIfNull(context);
Extensions\HttpResponseWritingExtensions.cs (5)
28ArgumentNullException.ThrowIfNull(response); 29ArgumentNullException.ThrowIfNull(text); 45ArgumentNullException.ThrowIfNull(response); 46ArgumentNullException.ThrowIfNull(text); 47ArgumentNullException.ThrowIfNull(encoding);
Extensions\MapExtensions.cs (2)
51ArgumentNullException.ThrowIfNull(app); 52ArgumentNullException.ThrowIfNull(configuration);
Extensions\MapMiddleware.cs (3)
23ArgumentNullException.ThrowIfNull(next); 24ArgumentNullException.ThrowIfNull(options); 42ArgumentNullException.ThrowIfNull(context);
Extensions\MapWhenExtensions.cs (3)
25ArgumentNullException.ThrowIfNull(app); 26ArgumentNullException.ThrowIfNull(predicate); 27ArgumentNullException.ThrowIfNull(configuration);
Extensions\MapWhenMiddleware.cs (3)
23ArgumentNullException.ThrowIfNull(next); 24ArgumentNullException.ThrowIfNull(options); 47ArgumentNullException.ThrowIfNull(context);
Extensions\MapWhenOptions.cs (1)
26ArgumentNullException.ThrowIfNull(value);
Extensions\RunExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(app); 21ArgumentNullException.ThrowIfNull(handler);
Extensions\UsePathBaseExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(app);
Extensions\UsePathBaseMiddleware.cs (2)
23ArgumentNullException.ThrowIfNull(next); 41ArgumentNullException.ThrowIfNull(context);
Extensions\UseWhenExtensions.cs (3)
24ArgumentNullException.ThrowIfNull(app); 25ArgumentNullException.ThrowIfNull(predicate); 26ArgumentNullException.ThrowIfNull(configuration);
FragmentString.cs (1)
96ArgumentNullException.ThrowIfNull(uri);
HostString.cs (3)
48ArgumentNullException.ThrowIfNull(host); 203ArgumentNullException.ThrowIfNull(uri); 231ArgumentNullException.ThrowIfNull(patterns);
HttpProtocol.cs (1)
112ArgumentNullException.ThrowIfNull(version);
HttpResults\EmptyHttpResult.cs (1)
24ArgumentNullException.ThrowIfNull(httpContext);
Internal\ParsingHelpers.cs (7)
43ArgumentNullException.ThrowIfNull(headers); 51ArgumentNullException.ThrowIfNull(headers); 89ArgumentNullException.ThrowIfNull(headers); 104ArgumentNullException.ThrowIfNull(headers); 105ArgumentNullException.ThrowIfNull(key); 125ArgumentNullException.ThrowIfNull(headers); 126ArgumentNullException.ThrowIfNull(key);
Metadata\AcceptsMetadata.cs (1)
23ArgumentNullException.ThrowIfNull(contentTypes);
PathString.cs (2)
201ArgumentNullException.ThrowIfNull(uri); 525ArgumentNullException.ThrowIfNull(destinationType);
QueryString.cs (3)
93ArgumentNullException.ThrowIfNull(uri); 111ArgumentNullException.ThrowIfNull(name); 197ArgumentNullException.ThrowIfNull(name);
Routing\EndpointHttpContextExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(context); 36ArgumentNullException.ThrowIfNull(context);
Routing\EndpointMetadataCollection.cs (2)
38ArgumentNullException.ThrowIfNull(items); 228ArgumentNullException.ThrowIfNull(collection);
Routing\RouteValueDictionary.cs (3)
62ArgumentNullException.ThrowIfNull(items); 445ArgumentNullException.ThrowIfNull(array); 799ArgumentNullException.ThrowIfNull(dictionary);
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
MapPathMiddlewareTests.cs (2)
41Assert.Throws<ArgumentNullException>(() => builder.Map("/foo", configuration: null!)); 42Assert.Throws<ArgumentNullException>(() => new MapMiddleware(noMiddleware, null!));
MapPredicateMiddlewareTests.cs (6)
51Assert.Throws<ArgumentNullException>(() => builder.MapWhen(null!, UseNotImplemented)); 52Assert.Throws<ArgumentNullException>(() => builder.MapWhen(NotImplementedPredicate, configuration: null!)); 53Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(null!, noOptions)); 54Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(noMiddleware, null!)); 55Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(null!, noOptions)); 56Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(noMiddleware, null!));
UseWhenExtensionsTests.cs (2)
21Assert.Throws<ArgumentNullException>(nullPredicate); 22Assert.Throws<ArgumentNullException>(nullConfiguration);
Microsoft.AspNetCore.Http.Connections (5)
Internal\Transports\WebSocketsServerTransport.cs (3)
25ArgumentNullException.ThrowIfNull(options); 26ArgumentNullException.ThrowIfNull(application); 27ArgumentNullException.ThrowIfNull(loggerFactory);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.Http.Connections.Client (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.AspNetCore.Http.Extensions (79)
HeaderDictionaryTypeExtensions.cs (12)
44ArgumentNullException.ThrowIfNull(headers); 45ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(headers); 53ArgumentNullException.ThrowIfNull(name); 67ArgumentNullException.ThrowIfNull(headers); 68ArgumentNullException.ThrowIfNull(name); 98ArgumentNullException.ThrowIfNull(name); 99ArgumentNullException.ThrowIfNull(values); 122ArgumentNullException.ThrowIfNull(headers); 123ArgumentNullException.ThrowIfNull(name); 170ArgumentNullException.ThrowIfNull(headers); 222ArgumentNullException.ThrowIfNull(headers);
HttpContextServerVariableExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(context); 25ArgumentNullException.ThrowIfNull(variableName);
HttpRequestJsonExtensions.cs (11)
39ArgumentNullException.ThrowIfNull(request); 61ArgumentNullException.ThrowIfNull(request); 101ArgumentNullException.ThrowIfNull(request); 139ArgumentNullException.ThrowIfNull(request); 175ArgumentNullException.ThrowIfNull(request); 198ArgumentNullException.ThrowIfNull(request); 199ArgumentNullException.ThrowIfNull(type); 241ArgumentNullException.ThrowIfNull(request); 242ArgumentNullException.ThrowIfNull(type); 243ArgumentNullException.ThrowIfNull(context); 277ArgumentNullException.ThrowIfNull(request);
HttpRequestMultipartExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(request);
HttpResponseJsonExtensions.cs (10)
41ArgumentNullException.ThrowIfNull(response); 87ArgumentNullException.ThrowIfNull(response); 120ArgumentNullException.ThrowIfNull(response); 162ArgumentNullException.ThrowIfNull(response); 217ArgumentNullException.ThrowIfNull(response); 265ArgumentNullException.ThrowIfNull(response); 266ArgumentNullException.ThrowIfNull(type); 317ArgumentNullException.ThrowIfNull(response); 318ArgumentNullException.ThrowIfNull(type); 319ArgumentNullException.ThrowIfNull(context);
ProblemDetailsService.cs (3)
28ArgumentNullException.ThrowIfNull(context); 29ArgumentNullException.ThrowIfNull(context.ProblemDetails); 30ArgumentNullException.ThrowIfNull(context.HttpContext);
ProblemDetailsServiceCollectionExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(services); 38ArgumentNullException.ThrowIfNull(services);
RequestDelegateFactory.cs (2)
178ArgumentNullException.ThrowIfNull(handler); 230ArgumentNullException.ThrowIfNull(methodInfo);
RequestHeaders.cs (5)
21ArgumentNullException.ThrowIfNull(headers); 383ArgumentNullException.ThrowIfNull(name); 396ArgumentNullException.ThrowIfNull(name); 408ArgumentNullException.ThrowIfNull(name); 409ArgumentNullException.ThrowIfNull(value);
ResponseHeaders.cs (5)
21ArgumentNullException.ThrowIfNull(headers); 233ArgumentNullException.ThrowIfNull(name); 246ArgumentNullException.ThrowIfNull(name); 258ArgumentNullException.ThrowIfNull(name); 259ArgumentNullException.ThrowIfNull(value);
SendFileResponseExtensions.cs (8)
27ArgumentNullException.ThrowIfNull(response); 28ArgumentNullException.ThrowIfNull(file); 45ArgumentNullException.ThrowIfNull(response); 46ArgumentNullException.ThrowIfNull(file); 61ArgumentNullException.ThrowIfNull(response); 62ArgumentNullException.ThrowIfNull(fileName); 79ArgumentNullException.ThrowIfNull(response); 80ArgumentNullException.ThrowIfNull(fileName);
src\Components\Endpoints\src\FormMapping\Converters\CollectionConverter.cs (1)
47ArgumentNullException.ThrowIfNull(elementConverter);
src\Components\Endpoints\src\FormMapping\Converters\DictionaryConverter.cs (1)
23ArgumentNullException.ThrowIfNull(elementConverter);
src\Components\Endpoints\src\FormMapping\Factories\CollectionConverterFactory.cs (2)
49ArgumentNullException.ThrowIfNull(type); 50ArgumentNullException.ThrowIfNull(options);
src\Components\Endpoints\src\FormMapping\FormDataMappingError.cs (2)
10ArgumentNullException.ThrowIfNull(key); 11ArgumentNullException.ThrowIfNull(message);
src\Components\Endpoints\src\FormMapping\FormDataMappingException.cs (1)
13ArgumentNullException.ThrowIfNull(error);
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
59ArgumentNullException.ThrowIfNull(errorMessage); 85ArgumentNullException.ThrowIfNull(exception);
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
32ArgumentNullException.ThrowIfNull(methodInfo); 114ArgumentNullException.ThrowIfNull(parameterDefaultValues);
src\Shared\PropertyAsParameterInfo.cs (2)
66ArgumentNullException.ThrowIfNull(parameters); 67ArgumentNullException.ThrowIfNull(cache);
UriHelper.cs (3)
58ArgumentNullException.ThrowIfNull(scheme); 112ArgumentNullException.ThrowIfNull(uri); 160ArgumentNullException.ThrowIfNull(uri);
Microsoft.AspNetCore.Http.Extensions.Tests (8)
HttpResponseJsonExtensionsTests.cs (2)
207await Assert.ThrowsAsync<ArgumentNullException>(async () => await context.Response.WriteAsJsonAsync(value: null, type: null!)); 219await Assert.ThrowsAsync<ArgumentNullException>(async () => await HttpResponseJsonExtensions.WriteAsJsonAsync(response: null!, value: null, typeof(int?)));
RequestDelegateFactoryTests.cs (4)
210var exNullAction = Assert.Throws<ArgumentNullException>(() => RequestDelegateFactory.Create(handler: null!)); 211var exNullMethodInfo1 = Assert.Throws<ArgumentNullException>(() => RequestDelegateFactory.Create(methodInfo: null!));
UriHelperTests.cs (2)
180Assert.Throws<ArgumentNullException>(() => UriHelper.BuildAbsolute(null, resHost, resPath, resPath, resQuery, resFragment)); 192Assert.Throws<ArgumentNullException>(() => UriHelper.FromAbsolute(null, out resScheme, out resHost, out resPath, out resQuery, out resFragment));
Microsoft.AspNetCore.Http.Features (10)
CookieOptions.cs (1)
35ArgumentNullException.ThrowIfNull(options);
IFormCollection.cs (3)
42/// <exception cref="System.ArgumentNullException"> 63/// <exception cref="System.ArgumentNullException"> 77/// <exception cref="System.ArgumentNullException">
IQueryCollection.cs (3)
42/// <exception cref="System.ArgumentNullException"> 63/// <exception cref="System.ArgumentNullException"> 77/// <exception cref="System.ArgumentNullException">
IRequestCookieCollection.cs (3)
42/// <exception cref="System.ArgumentNullException"> 63/// <exception cref="System.ArgumentNullException"> 77/// <exception cref="System.ArgumentNullException">
Microsoft.AspNetCore.Http.Results (121)
Accepted.cs (3)
61ArgumentNullException.ThrowIfNull(httpContext); 81ArgumentNullException.ThrowIfNull(method); 82ArgumentNullException.ThrowIfNull(builder);
AcceptedAtRoute.cs (3)
79ArgumentNullException.ThrowIfNull(httpContext); 108ArgumentNullException.ThrowIfNull(method); 109ArgumentNullException.ThrowIfNull(builder);
AcceptedAtRouteOfT.cs (3)
93ArgumentNullException.ThrowIfNull(httpContext); 122ArgumentNullException.ThrowIfNull(method); 123ArgumentNullException.ThrowIfNull(builder);
AcceptedOfT.cs (4)
43ArgumentNullException.ThrowIfNull(locationUri); 77ArgumentNullException.ThrowIfNull(httpContext); 100ArgumentNullException.ThrowIfNull(method); 101ArgumentNullException.ThrowIfNull(builder);
BadRequest.cs (3)
36ArgumentNullException.ThrowIfNull(httpContext); 51ArgumentNullException.ThrowIfNull(method); 52ArgumentNullException.ThrowIfNull(builder);
BadRequestOfT.cs (3)
47ArgumentNullException.ThrowIfNull(httpContext); 65ArgumentNullException.ThrowIfNull(method); 66ArgumentNullException.ThrowIfNull(builder);
ChallengeHttpResult.cs (1)
72ArgumentNullException.ThrowIfNull(httpContext);
Conflict.cs (3)
36ArgumentNullException.ThrowIfNull(httpContext); 51ArgumentNullException.ThrowIfNull(method); 52ArgumentNullException.ThrowIfNull(builder);
ConflictOfT.cs (3)
47ArgumentNullException.ThrowIfNull(httpContext); 65ArgumentNullException.ThrowIfNull(method); 66ArgumentNullException.ThrowIfNull(builder);
ContentHttpResult.cs (1)
60ArgumentNullException.ThrowIfNull(httpContext);
Created.cs (3)
61ArgumentNullException.ThrowIfNull(httpContext); 81ArgumentNullException.ThrowIfNull(method); 82ArgumentNullException.ThrowIfNull(builder);
CreatedAtRoute.cs (3)
79ArgumentNullException.ThrowIfNull(httpContext); 108ArgumentNullException.ThrowIfNull(method); 109ArgumentNullException.ThrowIfNull(builder);
CreatedAtRouteOfT.cs (3)
93ArgumentNullException.ThrowIfNull(httpContext); 125ArgumentNullException.ThrowIfNull(method); 126ArgumentNullException.ThrowIfNull(builder);
CreatedOfT.cs (3)
76ArgumentNullException.ThrowIfNull(httpContext); 99ArgumentNullException.ThrowIfNull(method); 100ArgumentNullException.ThrowIfNull(builder);
FileContentHttpResult.cs (1)
109ArgumentNullException.ThrowIfNull(httpContext);
FileStreamHttpResult.cs (2)
62ArgumentNullException.ThrowIfNull(fileStream); 115ArgumentNullException.ThrowIfNull(httpContext);
ForbidHttpResult.cs (1)
83ArgumentNullException.ThrowIfNull(httpContext);
InternalServerError.cs (3)
36ArgumentNullException.ThrowIfNull(httpContext); 51ArgumentNullException.ThrowIfNull(method); 52ArgumentNullException.ThrowIfNull(builder);
InternalServerErrorOfT.cs (3)
47ArgumentNullException.ThrowIfNull(httpContext); 65ArgumentNullException.ThrowIfNull(method); 66ArgumentNullException.ThrowIfNull(builder);
JsonHttpResultOfT.cs (1)
91ArgumentNullException.ThrowIfNull(httpContext);
NoContent.cs (3)
35ArgumentNullException.ThrowIfNull(httpContext); 51ArgumentNullException.ThrowIfNull(method); 52ArgumentNullException.ThrowIfNull(builder);
NotFound.cs (3)
35ArgumentNullException.ThrowIfNull(httpContext); 50ArgumentNullException.ThrowIfNull(method); 51ArgumentNullException.ThrowIfNull(builder);
NotFoundOfT.cs (3)
46ArgumentNullException.ThrowIfNull(httpContext); 64ArgumentNullException.ThrowIfNull(method); 65ArgumentNullException.ThrowIfNull(builder);
Ok.cs (3)
35ArgumentNullException.ThrowIfNull(httpContext); 50ArgumentNullException.ThrowIfNull(method); 51ArgumentNullException.ThrowIfNull(builder);
OkOfT.cs (3)
46ArgumentNullException.ThrowIfNull(httpContext); 64ArgumentNullException.ThrowIfNull(method); 65ArgumentNullException.ThrowIfNull(builder);
PhysicalFileHttpResult.cs (1)
110ArgumentNullException.ThrowIfNull(httpContext);
ProblemHttpResult.cs (1)
51ArgumentNullException.ThrowIfNull(httpContext);
PushStreamHttpResult.cs (1)
103ArgumentNullException.ThrowIfNull(httpContext);
RedirectHttpResult.cs (1)
91ArgumentNullException.ThrowIfNull(httpContext);
RedirectToRouteHttpResult.cs (1)
159ArgumentNullException.ThrowIfNull(httpContext);
Results.cs (3)
203ArgumentNullException.ThrowIfNull(jsonTypeInfo); 222ArgumentNullException.ThrowIfNull(context); 800ArgumentNullException.ThrowIfNull(errors);
ResultsOfT.Generated.cs (15)
42ArgumentNullException.ThrowIfNull(httpContext); 67ArgumentNullException.ThrowIfNull(method); 68ArgumentNullException.ThrowIfNull(builder); 106ArgumentNullException.ThrowIfNull(httpContext); 137ArgumentNullException.ThrowIfNull(method); 138ArgumentNullException.ThrowIfNull(builder); 179ArgumentNullException.ThrowIfNull(httpContext); 216ArgumentNullException.ThrowIfNull(method); 217ArgumentNullException.ThrowIfNull(builder); 261ArgumentNullException.ThrowIfNull(httpContext); 304ArgumentNullException.ThrowIfNull(method); 305ArgumentNullException.ThrowIfNull(builder); 352ArgumentNullException.ThrowIfNull(httpContext); 401ArgumentNullException.ThrowIfNull(method); 402ArgumentNullException.ThrowIfNull(builder);
ServerSentEventsResult.cs (3)
41ArgumentNullException.ThrowIfNull(httpContext); 104ArgumentNullException.ThrowIfNull(method); 105ArgumentNullException.ThrowIfNull(builder);
SignInHttpResult.cs (1)
58ArgumentNullException.ThrowIfNull(httpContext);
SignOutHttpResult.cs (2)
53ArgumentNullException.ThrowIfNull(authenticationSchemes); 72ArgumentNullException.ThrowIfNull(httpContext);
StatusCodeHttpResult.cs (1)
39ArgumentNullException.ThrowIfNull(httpContext);
TypedResults.cs (13)
74ArgumentNullException.ThrowIfNull(principal); 217ArgumentNullException.ThrowIfNull(jsonTypeInfo); 235ArgumentNullException.ThrowIfNull(context); 266ArgumentNullException.ThrowIfNull(fileContents); 301ArgumentNullException.ThrowIfNull(contents); 371ArgumentNullException.ThrowIfNull(fileStream); 412ArgumentNullException.ThrowIfNull(stream); 450ArgumentNullException.ThrowIfNull(pipeReader); 479ArgumentNullException.ThrowIfNull(streamWriterCallback); 810ArgumentNullException.ThrowIfNull(problemDetails); 856ArgumentNullException.ThrowIfNull(errors); 1007ArgumentNullException.ThrowIfNull(uri); 1021ArgumentNullException.ThrowIfNull(uri);
UnauthorizedHttpResult.cs (1)
32ArgumentNullException.ThrowIfNull(httpContext);
UnprocessableEntity.cs (3)
36ArgumentNullException.ThrowIfNull(httpContext); 51ArgumentNullException.ThrowIfNull(method); 52ArgumentNullException.ThrowIfNull(builder);
UnprocessableEntityOfT.cs (3)
47ArgumentNullException.ThrowIfNull(httpContext); 65ArgumentNullException.ThrowIfNull(method); 66ArgumentNullException.ThrowIfNull(builder);
Utf8ContentHttpResult.cs (1)
51ArgumentNullException.ThrowIfNull(httpContext);
ValidationProblem.cs (4)
20ArgumentNullException.ThrowIfNull(problemDetails); 54ArgumentNullException.ThrowIfNull(httpContext); 76ArgumentNullException.ThrowIfNull(method); 77ArgumentNullException.ThrowIfNull(builder);
VirtualFileHttpResult.cs (1)
104ArgumentNullException.ThrowIfNull(httpContext);
Microsoft.AspNetCore.Http.Results.Tests (129)
AcceptedAtRouteOfTResultTests.cs (3)
147await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 154Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<AcceptedAtRoute<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 155Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<AcceptedAtRoute<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
AcceptedAtRouteResultTests.cs (3)
100await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 107Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<AcceptedAtRoute>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 108Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<AcceptedAtRoute>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
AcceptedOfTResultTests.cs (3)
88await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 95Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Accepted<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 96Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Accepted<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
AcceptedResultTests.cs (3)
57await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 64Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Accepted>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 65Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Accepted>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
BadRequestOfTResultTests.cs (3)
131await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 138Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<BadRequest<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 139Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<BadRequest<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
BadRequestResultTests.cs (3)
70await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 77Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<BadRequest>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 78Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<BadRequest>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ChallengeResultTests.cs (1)
52await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
ConflictOfTResultTests.cs (3)
109await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 116Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Conflict<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 117Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Conflict<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ConflictResultTests.cs (3)
71await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 78Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Conflict>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 79Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Conflict>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ContentResultTests.cs (1)
134await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
CreatedAtRouteOfTResultTests.cs (3)
117await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 124Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<CreatedAtRoute<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 125Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<CreatedAtRoute<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
CreatedAtRouteResultTests.cs (3)
98await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 105Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<CreatedAtRoute>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 106Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<CreatedAtRoute>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
CreatedOfTResultTests.cs (3)
123await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 130Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Created<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 131Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Created<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
CreatedResultTests.cs (3)
88await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 95Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Created>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 96Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Created>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
EmptyResultTests.cs (1)
34await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
ForbidResultTests.cs (1)
119await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
HttpFileStreamResultTests.cs (1)
89await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
InternalServerErrorOfTResultTests.cs (3)
131await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 138Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<InternalServerError<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 139Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<InternalServerError<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
InternalServerErrorResultTests.cs (3)
70await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 77Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<InternalServerError>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 78Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<InternalServerError>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
JsonResultTests.cs (1)
251await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
NoContentResultTests.cs (3)
67await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 74Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NoContent>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 75Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<NoContent>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
NotFoundOfTResultTests.cs (3)
91await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 98Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NotFound<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 99Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<NotFound<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
NotFoundResultTests.cs (3)
66await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 73Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NotFound>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 74Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<NotFound>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
OkOfTResultTests.cs (3)
108await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 115Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Ok<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 116Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Ok<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
OkResultTests.cs (3)
69await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 76Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Ok>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 77Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Ok>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ProblemResultTests.cs (1)
199await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
PushStreamResultTests.cs (1)
78await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
RedirectResultTests.cs (1)
33await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
RedirectToRouteResultTests.cs (1)
95await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
ResultsOfTTests.Generated.cs (15)
75await Assert.ThrowsAsync<ArgumentNullException>(async () => 223Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 224Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null)); 290await Assert.ThrowsAsync<ArgumentNullException>(async () => 503Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 504Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null)); 574await Assert.ThrowsAsync<ArgumentNullException>(async () => 860Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 861Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null)); 935await Assert.ThrowsAsync<ArgumentNullException>(async () => 1302Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 1303Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null)); 1381await Assert.ThrowsAsync<ArgumentNullException>(async () => 1837Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5, ProvidesMetadataResult6>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 1838Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5, ProvidesMetadataResult6>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
ResultsTests.cs (15)
344Assert.Throws<ArgumentNullException>("contents", () => Results.Bytes(null)); 350Assert.Throws<ArgumentNullException>("fileContents", () => Results.File(default(byte[]))); 356Assert.Throws<ArgumentNullException>("fileStream", () => Results.File(default(Stream))); 362Assert.Throws<ArgumentNullException>("stream", () => Results.Stream(default(Stream))); 368Assert.Throws<ArgumentNullException>("pipeReader", () => Results.Stream(default(PipeReader))); 374Assert.Throws<ArgumentNullException>("streamWriterCallback", () => TypedResults.Stream(default(Func<Stream, Task>))); 478Assert.Throws<ArgumentNullException>("principal", () => Results.SignIn(null)); 1039Assert.Throws<ArgumentNullException>("context", () => Results.Json<object>(null, context: null)); 1045Assert.Throws<ArgumentNullException>("context", () => Results.Json(null, type: typeof(object), context: null)); 1065Assert.Throws<ArgumentNullException>("jsonTypeInfo", () => Results.Json(null, jsonTypeInfo: null)); 1071Assert.Throws<ArgumentNullException>("jsonTypeInfo", () => Results.Json<object>(null, jsonTypeInfo: null)); 1077Assert.Throws<ArgumentNullException>("localUrl", () => Results.LocalRedirect(default(string))); 1244Assert.Throws<ArgumentNullException>("problemDetails", () => Results.Problem(default(ProblemDetails))); 1392Assert.Throws<ArgumentNullException>("errors", () => Results.ValidationProblem(default(IDictionary<string, string[]>))); 1460Assert.Throws<ArgumentNullException>("url", () => Results.Redirect(default(string)));
ServerSentEventsResultTests.cs (1)
103await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
SignInResultTests.cs (1)
85await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
SignOutResultTests.cs (1)
84await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
StatusCodeResultTests.cs (1)
35await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
TypedResultsTests.cs (17)
99Assert.Throws<ArgumentNullException>("uri", () => TypedResults.Accepted(default(Uri))); 105Assert.Throws<ArgumentNullException>("uri", () => TypedResults.Accepted(default(Uri), default(object))); 318Assert.Throws<ArgumentNullException>("contents", () => TypedResults.Bytes(null)); 324Assert.Throws<ArgumentNullException>("fileContents", () => TypedResults.File(default(byte[]))); 330Assert.Throws<ArgumentNullException>("fileStream", () => TypedResults.File(default(Stream))); 336Assert.Throws<ArgumentNullException>("stream", () => TypedResults.Stream(default(Stream))); 342Assert.Throws<ArgumentNullException>("pipeReader", () => TypedResults.Stream(default(PipeReader))); 348Assert.Throws<ArgumentNullException>("streamWriterCallback", () => TypedResults.Stream(default(Func<Stream, Task>))); 354Assert.Throws<ArgumentNullException>("path", () => TypedResults.PhysicalFile(default(string))); 366Assert.Throws<ArgumentNullException>("path", () => TypedResults.VirtualFile(default(string))); 488Assert.Throws<ArgumentNullException>("principal", () => TypedResults.SignIn(null)); 899Assert.Throws<ArgumentNullException>("context", () => TypedResults.Json(data, context: null)); 915Assert.Throws<ArgumentNullException>("jsonTypeInfo", () => TypedResults.Json(data, jsonTypeInfo: null)); 921Assert.Throws<ArgumentNullException>("localUrl", () => TypedResults.LocalRedirect(default(string))); 1060Assert.Throws<ArgumentNullException>("problemDetails", () => TypedResults.Problem(default(ProblemDetails))); 1184Assert.Throws<ArgumentNullException>("errors", () => TypedResults.ValidationProblem(default(IDictionary<string, string[]>))); 1242Assert.Throws<ArgumentNullException>("url", () => TypedResults.Redirect(default(string)));
UnauthorizedResultTests.cs (1)
45await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext));
UnprocessableEntityOfTResultTests.cs (3)
108await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 115Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<UnprocessableEntity<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 116Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<UnprocessableEntity<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
UnprocessableEntityResultTests.cs (3)
70await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 77Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<UnprocessableEntity>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 78Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<UnprocessableEntity>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ValidationProblemResultTests.cs (4)
83Assert.Throws<ArgumentNullException>("problemDetails", () => new ValidationProblem(null)); 119await Assert.ThrowsAsync<ArgumentNullException>("httpContext", () => result.ExecuteAsync(httpContext)); 126Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<ValidationProblem>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 127Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<ValidationProblem>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
Microsoft.AspNetCore.Http.Tests (4)
HttpServiceCollectionExtensionsTests.cs (1)
28Assert.Throws<ArgumentNullException>("services", () => HttpServiceCollectionExtensions.AddHttpContextAccessor(null));
Timeouts\RequestTimeoutOptionsTests.cs (3)
50Assert.Throws<ArgumentNullException>(() => options.AddPolicy(null, TimeSpan.FromSeconds(47))); 53Assert.Throws<ArgumentNullException>(() => options.AddPolicy(null, new RequestTimeoutPolicy())); 55Assert.Throws<ArgumentNullException>(() => options.AddPolicy("policy1", null));
Microsoft.AspNetCore.HttpLogging (21)
HttpLoggingBuilderExtensions.cs (2)
23ArgumentNullException.ThrowIfNull(app); 38ArgumentNullException.ThrowIfNull(app);
HttpLoggingMiddleware.cs (6)
29ArgumentNullException.ThrowIfNull(next); 30ArgumentNullException.ThrowIfNull(options); 31ArgumentNullException.ThrowIfNull(logger); 32ArgumentNullException.ThrowIfNull(interceptors); 33ArgumentNullException.ThrowIfNull(contextPool); 34ArgumentNullException.ThrowIfNull(timeProvider);
HttpLoggingServicesExtensions.cs (5)
22ArgumentNullException.ThrowIfNull(services); 37ArgumentNullException.ThrowIfNull(services); 38ArgumentNullException.ThrowIfNull(configureOptions); 66ArgumentNullException.ThrowIfNull(services); 67ArgumentNullException.ThrowIfNull(configureOptions);
MediaTypeOptions.cs (4)
36ArgumentNullException.ThrowIfNull(mediaType); 52ArgumentNullException.ThrowIfNull(contentType); 64ArgumentNullException.ThrowIfNull(contentType); 65ArgumentNullException.ThrowIfNull(encoding);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
W3CLoggingMiddleware.cs (3)
55ArgumentNullException.ThrowIfNull(next); 56ArgumentNullException.ThrowIfNull(options); 57ArgumentNullException.ThrowIfNull(w3cLogger);
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (6)
41Assert.Throws<ArgumentNullException>(() => new HttpLoggingMiddleware( 49Assert.Throws<ArgumentNullException>(() => new HttpLoggingMiddleware(c => 59Assert.Throws<ArgumentNullException>(() => new HttpLoggingMiddleware(c => 69Assert.Throws<ArgumentNullException>(() => new HttpLoggingMiddleware(c => 79Assert.Throws<ArgumentNullException>(() => new HttpLoggingMiddleware(c => 89Assert.Throws<ArgumentNullException>(() => new HttpLoggingMiddleware(c =>
HttpLoggingServicesExtensionsTests.cs (2)
14Assert.Throws<ArgumentNullException>(() => 21Assert.Throws<ArgumentNullException>(() =>
W3CLoggingMiddlewareTests.cs (3)
18Assert.Throws<ArgumentNullException>(() => new W3CLoggingMiddleware( 23Assert.Throws<ArgumentNullException>(() => new W3CLoggingMiddleware(c => 30Assert.Throws<ArgumentNullException>(() => new W3CLoggingMiddleware(c =>
Microsoft.AspNetCore.HttpOverrides (17)
CertificateForwardingBuilderExtensions.cs (1)
21ArgumentNullException.ThrowIfNull(app);
CertificateForwardingMiddleware.cs (3)
32ArgumentNullException.ThrowIfNull(next); 33ArgumentNullException.ThrowIfNull(loggerFactory); 34ArgumentNullException.ThrowIfNull(options);
CertificateForwardingServiceExtensions.cs (2)
23ArgumentNullException.ThrowIfNull(services); 24ArgumentNullException.ThrowIfNull(configure);
ForwardedHeadersExtensions.cs (3)
27ArgumentNullException.ThrowIfNull(builder); 52ArgumentNullException.ThrowIfNull(builder); 53ArgumentNullException.ThrowIfNull(options);
ForwardedHeadersMiddleware.cs (3)
48ArgumentNullException.ThrowIfNull(next); 49ArgumentNullException.ThrowIfNull(loggerFactory); 50ArgumentNullException.ThrowIfNull(options);
HttpMethodOverrideExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(builder); 37ArgumentNullException.ThrowIfNull(builder); 38ArgumentNullException.ThrowIfNull(options);
HttpMethodOverrideMiddleware.cs (2)
26ArgumentNullException.ThrowIfNull(next); 27ArgumentNullException.ThrowIfNull(options);
Microsoft.AspNetCore.HttpsPolicy (10)
HstsBuilderExtensions.cs (1)
19ArgumentNullException.ThrowIfNull(app);
HstsMiddleware.cs (1)
35ArgumentNullException.ThrowIfNull(options);
HstsServicesExtensions.cs (2)
22ArgumentNullException.ThrowIfNull(services); 23ArgumentNullException.ThrowIfNull(configureOptions);
HttpsRedirectionBuilderExtensions.cs (1)
21ArgumentNullException.ThrowIfNull(app);
HttpsRedirectionMiddleware.cs (3)
38ArgumentNullException.ThrowIfNull(next); 39ArgumentNullException.ThrowIfNull(options); 40ArgumentNullException.ThrowIfNull(config);
HttpsRedirectionServicesExtensions.cs (2)
22ArgumentNullException.ThrowIfNull(services); 23ArgumentNullException.ThrowIfNull(configureOptions);
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
HstsMiddlewareTests.cs (2)
24Assert.Throws<ArgumentNullException>(() => 33Assert.Throws<ArgumentNullException>(() =>
Microsoft.AspNetCore.Identity (28)
DataProtectorTokenProvider.cs (2)
28ArgumentNullException.ThrowIfNull(dataProtectionProvider); 78ArgumentNullException.ThrowIfNull(user);
IdentityApiEndpointRouteBuilderExtensions.cs (1)
43ArgumentNullException.ThrowIfNull(endpoints);
IdentityBuilderExtensions.cs (1)
97ArgumentNullException.ThrowIfNull(builder);
IdentityServiceCollectionExtensions.cs (2)
138ArgumentNullException.ThrowIfNull(services); 139ArgumentNullException.ThrowIfNull(configure);
PasskeyAssertionResult.cs (2)
65ArgumentNullException.ThrowIfNull(passkey); 66ArgumentNullException.ThrowIfNull(user);
PasskeyAttestationResult.cs (1)
49ArgumentNullException.ThrowIfNull(passkey);
SecurityStampValidator.cs (4)
29ArgumentNullException.ThrowIfNull(options); 30ArgumentNullException.ThrowIfNull(signInManager); 46ArgumentNullException.ThrowIfNull(options); 47ArgumentNullException.ThrowIfNull(signInManager);
SignInManager.cs (14)
55ArgumentNullException.ThrowIfNull(userManager); 56ArgumentNullException.ThrowIfNull(contextAccessor); 57ArgumentNullException.ThrowIfNull(claimsFactory); 89ArgumentNullException.ThrowIfNull(passkeyHandler); 156ArgumentNullException.ThrowIfNull(principal); 381ArgumentNullException.ThrowIfNull(user); 421ArgumentNullException.ThrowIfNull(user); 479ArgumentNullException.ThrowIfNull(options); 509ArgumentNullException.ThrowIfNull(options); 582ArgumentNullException.ThrowIfNull(creationArgs); 611ArgumentNullException.ThrowIfNull(creationArgs); 676ArgumentNullException.ThrowIfNull(requestArgs); 707ArgumentNullException.ThrowIfNull(requestArgs); 1120ArgumentNullException.ThrowIfNull(externalLogin);
TimeProviderClock.cs (1)
19ArgumentNullException.ThrowIfNull(timeProvider);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (64)
RoleStore.cs (14)
88ArgumentNullException.ThrowIfNull(context); 134ArgumentNullException.ThrowIfNull(role); 150ArgumentNullException.ThrowIfNull(role); 175ArgumentNullException.ThrowIfNull(role); 198ArgumentNullException.ThrowIfNull(role); 212ArgumentNullException.ThrowIfNull(role); 227ArgumentNullException.ThrowIfNull(role); 297ArgumentNullException.ThrowIfNull(role); 312ArgumentNullException.ThrowIfNull(role); 339ArgumentNullException.ThrowIfNull(role); 354ArgumentNullException.ThrowIfNull(role); 355ArgumentNullException.ThrowIfNull(claim); 371ArgumentNullException.ThrowIfNull(role); 372ArgumentNullException.ThrowIfNull(claim);
UserOnlyStore.cs (23)
129ArgumentNullException.ThrowIfNull(context); 196ArgumentNullException.ThrowIfNull(user); 212ArgumentNullException.ThrowIfNull(user); 238ArgumentNullException.ThrowIfNull(user); 337ArgumentNullException.ThrowIfNull(user); 352ArgumentNullException.ThrowIfNull(user); 353ArgumentNullException.ThrowIfNull(claims); 372ArgumentNullException.ThrowIfNull(user); 373ArgumentNullException.ThrowIfNull(claim); 374ArgumentNullException.ThrowIfNull(newClaim); 394ArgumentNullException.ThrowIfNull(user); 395ArgumentNullException.ThrowIfNull(claims); 418ArgumentNullException.ThrowIfNull(user); 419ArgumentNullException.ThrowIfNull(login); 437ArgumentNullException.ThrowIfNull(user); 457ArgumentNullException.ThrowIfNull(user); 513ArgumentNullException.ThrowIfNull(claim); 619ArgumentNullException.ThrowIfNull(user); 620ArgumentNullException.ThrowIfNull(passkey); 650ArgumentNullException.ThrowIfNull(user); 705ArgumentNullException.ThrowIfNull(user); 737ArgumentNullException.ThrowIfNull(user); 738ArgumentNullException.ThrowIfNull(credentialId);
UserStore.cs (27)
148ArgumentNullException.ThrowIfNull(context); 191ArgumentNullException.ThrowIfNull(user); 207ArgumentNullException.ThrowIfNull(user); 233ArgumentNullException.ThrowIfNull(user); 357ArgumentNullException.ThrowIfNull(user); 379ArgumentNullException.ThrowIfNull(user); 403ArgumentNullException.ThrowIfNull(user); 424ArgumentNullException.ThrowIfNull(user); 445ArgumentNullException.ThrowIfNull(user); 460ArgumentNullException.ThrowIfNull(user); 461ArgumentNullException.ThrowIfNull(claims); 480ArgumentNullException.ThrowIfNull(user); 481ArgumentNullException.ThrowIfNull(claim); 482ArgumentNullException.ThrowIfNull(newClaim); 502ArgumentNullException.ThrowIfNull(user); 503ArgumentNullException.ThrowIfNull(claims); 526ArgumentNullException.ThrowIfNull(user); 527ArgumentNullException.ThrowIfNull(login); 545ArgumentNullException.ThrowIfNull(user); 565ArgumentNullException.ThrowIfNull(user); 621ArgumentNullException.ThrowIfNull(claim); 755ArgumentNullException.ThrowIfNull(user); 756ArgumentNullException.ThrowIfNull(passkey); 785ArgumentNullException.ThrowIfNull(user); 840ArgumentNullException.ThrowIfNull(credentialId); 872ArgumentNullException.ThrowIfNull(user); 873ArgumentNullException.ThrowIfNull(credentialId);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (47)
UserStoreTest.cs (47)
99Assert.Throws<ArgumentNullException>("context", () => new UserStore(null)); 101await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetUserIdAsync(null)); 102await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetUserNameAsync(null)); 103await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetUserNameAsync(null, null)); 104await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.CreateAsync(null)); 105await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.UpdateAsync(null)); 106await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.DeleteAsync(null)); 107await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.AddClaimsAsync(null, null)); 108await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.ReplaceClaimAsync(null, null, null)); 109await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RemoveClaimsAsync(null, null)); 110await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetClaimsAsync(null)); 111await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLoginsAsync(null)); 112await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetRolesAsync(null)); 113await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.AddLoginAsync(null, null)); 115Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RemoveLoginAsync(null, null, null)); 116await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.AddToRoleAsync(null, null)); 118Assert.ThrowsAsync<ArgumentNullException>("user", 120await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.IsInRoleAsync(null, null)); 121await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetPasswordHashAsync(null)); 123Assert.ThrowsAsync<ArgumentNullException>("user", 125await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetSecurityStampAsync(null)); 126await Assert.ThrowsAsync<ArgumentNullException>("user", 128await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await store.AddLoginAsync(new IdentityUser("fake"), null)); 129await Assert.ThrowsAsync<ArgumentNullException>("claims", 131await Assert.ThrowsAsync<ArgumentNullException>("claims", 133await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetEmailConfirmedAsync(null)); 134await Assert.ThrowsAsync<ArgumentNullException>("user", 136await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetEmailAsync(null)); 137await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetEmailAsync(null, null)); 138await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetPhoneNumberAsync(null)); 139await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetPhoneNumberAsync(null, null)); 140await Assert.ThrowsAsync<ArgumentNullException>("user", 142await Assert.ThrowsAsync<ArgumentNullException>("user", 144await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetTwoFactorEnabledAsync(null)); 145await Assert.ThrowsAsync<ArgumentNullException>("user", 147await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RedeemCodeAsync(user: null, code: "fake", default)); 148await Assert.ThrowsAsync<ArgumentNullException>("code", async () => await store.RedeemCodeAsync(new IdentityUser("fake"), code: null, default)); 150await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetAccessFailedCountAsync(null)); 151await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEnabledAsync(null)); 152await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEnabledAsync(null, false)); 153await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEndDateAsync(null)); 154await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEndDateAsync(null, new DateTimeOffset())); 155await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.ResetAccessFailedCountAsync(null)); 156await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.IncrementAccessFailedCountAsync(null)); 157await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.AddToRoleAsync(new IdentityUser("fake"), null)); 158await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.RemoveFromRoleAsync(new IdentityUser("fake"), null)); 159await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.IsInRoleAsync(new IdentityUser("fake"), null));
Microsoft.AspNetCore.Identity.FunctionalTests (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryUserStore.cs (1)
336ArgumentNullException.ThrowIfNull(claim);
Microsoft.AspNetCore.Identity.Test (87)
PasswordValidatorTest.cs (1)
27await Assert.ThrowsAsync<ArgumentNullException>("manager", () => validator.ValidateAsync(null, null, "foo"));
RoleManagerTest.cs (6)
123Assert.Throws<ArgumentNullException>("store", 126await Assert.ThrowsAsync<ArgumentNullException>("role", async () => await manager.CreateAsync(null)); 127await Assert.ThrowsAsync<ArgumentNullException>("role", async () => await manager.UpdateAsync(null)); 128await Assert.ThrowsAsync<ArgumentNullException>("role", async () => await manager.DeleteAsync(null)); 129await Assert.ThrowsAsync<ArgumentNullException>("roleName", async () => await manager.FindByNameAsync(null)); 130await Assert.ThrowsAsync<ArgumentNullException>("roleName", async () => await manager.RoleExistsAsync(null));
RoleValidatorTest.cs (2)
17await Assert.ThrowsAsync<ArgumentNullException>("manager", async () => await validator.ValidateAsync(null, null)); 18await Assert.ThrowsAsync<ArgumentNullException>("role", async () => await validator.ValidateAsync(manager, null));
SignInManagerTest.cs (3)
24Assert.Throws<ArgumentNullException>("userManager", () => new SignInManager<PocoUser>(null, null, null, null, null, null, null)); 26Assert.Throws<ArgumentNullException>("contextAccessor", () => new SignInManager<PocoUser>(userManager, null, null, null, null, null, null)); 30Assert.Throws<ArgumentNullException>("claimsFactory", () => new SignInManager<PocoUser>(userManager, contextAccessor.Object, null, null, null, null, null));
UserClaimsPrincipalFactoryTest.cs (1)
23await Assert.ThrowsAsync<ArgumentNullException>("user",
UserManagerTest.cs (72)
1093Assert.Throws<ArgumentNullException>("store", 1098await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null)); 1099await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null, null)); 1101Assert.ThrowsAsync<ArgumentNullException>("password", 1103await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.UpdateAsync(null)); 1104await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.DeleteAsync(null)); 1105await Assert.ThrowsAsync<ArgumentNullException>("claim", async () => await manager.AddClaimAsync(null, null)); 1106await Assert.ThrowsAsync<ArgumentNullException>("claim", async () => await manager.ReplaceClaimAsync(null, null, null)); 1107await Assert.ThrowsAsync<ArgumentNullException>("claims", async () => await manager.AddClaimsAsync(null, null)); 1108await Assert.ThrowsAsync<ArgumentNullException>("userName", async () => await manager.FindByNameAsync(null)); 1109await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await manager.AddLoginAsync(null, null)); 1110await Assert.ThrowsAsync<ArgumentNullException>("loginProvider", 1112await Assert.ThrowsAsync<ArgumentNullException>("providerKey", 1114await Assert.ThrowsAsync<ArgumentNullException>("email", async () => await manager.FindByEmailAsync(null)); 1115Assert.Throws<ArgumentNullException>("provider", () => manager.RegisterTokenProvider("whatever", null)); 1116await Assert.ThrowsAsync<ArgumentNullException>("roles", async () => await manager.AddToRolesAsync(new PocoUser(), null)); 1117await Assert.ThrowsAsync<ArgumentNullException>("roles", async () => await manager.RemoveFromRolesAsync(new PocoUser(), null)); 1118await Assert.ThrowsAsync<ArgumentNullException>("passkey", async () => await manager.SetPasskeyAsync(new PocoUser(), null)); 1119await Assert.ThrowsAsync<ArgumentNullException>("credentialId", async () => await manager.GetPasskeyAsync(new PocoUser(), null)); 1120await Assert.ThrowsAsync<ArgumentNullException>("credentialId", async () => await manager.FindByPasskeyIdAsync(null)); 1121await Assert.ThrowsAsync<ArgumentNullException>("credentialId", async () => await manager.RemovePasskeyAsync(new PocoUser(), null)); 1129await Assert.ThrowsAsync<ArgumentNullException>("user", 1131await Assert.ThrowsAsync<ArgumentNullException>("user", 1133await Assert.ThrowsAsync<ArgumentNullException>("user", 1135await Assert.ThrowsAsync<ArgumentNullException>("user", 1137await Assert.ThrowsAsync<ArgumentNullException>("user", 1139await Assert.ThrowsAsync<ArgumentNullException>("user", 1141await Assert.ThrowsAsync<ArgumentNullException>("user", 1143await Assert.ThrowsAsync<ArgumentNullException>("user", 1145await Assert.ThrowsAsync<ArgumentNullException>("user", 1147await Assert.ThrowsAsync<ArgumentNullException>("user", 1149await Assert.ThrowsAsync<ArgumentNullException>("user", 1151await Assert.ThrowsAsync<ArgumentNullException>("user", 1153await Assert.ThrowsAsync<ArgumentNullException>("user", 1155await Assert.ThrowsAsync<ArgumentNullException>("user", 1157await Assert.ThrowsAsync<ArgumentNullException>("user", 1159await Assert.ThrowsAsync<ArgumentNullException>("user", 1161await Assert.ThrowsAsync<ArgumentNullException>("user", 1163await Assert.ThrowsAsync<ArgumentNullException>("user", 1165await Assert.ThrowsAsync<ArgumentNullException>("user", 1167await Assert.ThrowsAsync<ArgumentNullException>("user", 1169await Assert.ThrowsAsync<ArgumentNullException>("user", 1171await Assert.ThrowsAsync<ArgumentNullException>("user", 1173await Assert.ThrowsAsync<ArgumentNullException>("user", 1175await Assert.ThrowsAsync<ArgumentNullException>("user", 1177await Assert.ThrowsAsync<ArgumentNullException>("user", 1179await Assert.ThrowsAsync<ArgumentNullException>("user", 1181await Assert.ThrowsAsync<ArgumentNullException>("user", 1183await Assert.ThrowsAsync<ArgumentNullException>("user", 1185await Assert.ThrowsAsync<ArgumentNullException>("user", 1187await Assert.ThrowsAsync<ArgumentNullException>("user", 1189await Assert.ThrowsAsync<ArgumentNullException>("user", 1191await Assert.ThrowsAsync<ArgumentNullException>("user", 1193await Assert.ThrowsAsync<ArgumentNullException>("user", 1195await Assert.ThrowsAsync<ArgumentNullException>("user", 1197await Assert.ThrowsAsync<ArgumentNullException>("user", 1199await Assert.ThrowsAsync<ArgumentNullException>("user", 1201await Assert.ThrowsAsync<ArgumentNullException>("user", 1203await Assert.ThrowsAsync<ArgumentNullException>("user", 1205await Assert.ThrowsAsync<ArgumentNullException>("user", 1207await Assert.ThrowsAsync<ArgumentNullException>("user", 1209await Assert.ThrowsAsync<ArgumentNullException>("user", 1211await Assert.ThrowsAsync<ArgumentNullException>("user", 1213await Assert.ThrowsAsync<ArgumentNullException>("user", 1215await Assert.ThrowsAsync<ArgumentNullException>("user", 1217await Assert.ThrowsAsync<ArgumentNullException>("user", 1219await Assert.ThrowsAsync<ArgumentNullException>("user", 1221await Assert.ThrowsAsync<ArgumentNullException>("user", 1223await Assert.ThrowsAsync<ArgumentNullException>("user", 1225await Assert.ThrowsAsync<ArgumentNullException>("user", 1227await Assert.ThrowsAsync<ArgumentNullException>("user", 1229await Assert.ThrowsAsync<ArgumentNullException>("user",
UserValidatorTest.cs (2)
17await Assert.ThrowsAsync<ArgumentNullException>("manager", () => validator.ValidateAsync(null, null)); 18await Assert.ThrowsAsync<ArgumentNullException>("user", () => validator.ValidateAsync(manager, null));
Microsoft.AspNetCore.InternalTesting (7)
ExceptionAssertions.cs (4)
130/// Verifies that the code throws an <see cref="ArgumentNullException"/>. 135public static ArgumentNullException ThrowsArgumentNull(Action testCode, string paramName) 137var ex = Throws<ArgumentNullException>(testCode);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.AspNetCore.JsonPatch (4)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.Localization (25)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
25ArgumentNullException.ThrowIfNull(httpContext);
ApplicationBuilderExtensions.cs (7)
22ArgumentNullException.ThrowIfNull(app); 38ArgumentNullException.ThrowIfNull(app); 39ArgumentNullException.ThrowIfNull(options); 58ArgumentNullException.ThrowIfNull(app); 59ArgumentNullException.ThrowIfNull(optionsAction); 81ArgumentNullException.ThrowIfNull(app); 82ArgumentNullException.ThrowIfNull(cultures);
CookieRequestCultureProvider.cs (2)
31ArgumentNullException.ThrowIfNull(httpContext); 52ArgumentNullException.ThrowIfNull(requestCulture);
CustomRequestCultureProvider.cs (2)
21ArgumentNullException.ThrowIfNull(provider); 29ArgumentNullException.ThrowIfNull(httpContext);
QueryStringRequestCultureProvider.cs (1)
29ArgumentNullException.ThrowIfNull(httpContext);
RequestCulture.cs (2)
52ArgumentNullException.ThrowIfNull(culture); 53ArgumentNullException.ThrowIfNull(uiCulture);
RequestCultureFeature.cs (1)
18ArgumentNullException.ThrowIfNull(requestCulture);
RequestLocalizationMiddleware.cs (2)
35ArgumentNullException.ThrowIfNull(options); 49ArgumentNullException.ThrowIfNull(context);
RequestLocalizationOptions.cs (1)
48ArgumentNullException.ThrowIfNull(value);
RequestLocalizationOptionsExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(requestLocalizationOptions); 25ArgumentNullException.ThrowIfNull(requestCultureProvider);
RequestLocalizationServiceCollectionExtensions.cs (4)
21ArgumentNullException.ThrowIfNull(services); 22ArgumentNullException.ThrowIfNull(configureOptions); 35ArgumentNullException.ThrowIfNull(services); 36ArgumentNullException.ThrowIfNull(configureOptions);
Microsoft.AspNetCore.Localization.Routing (1)
RouteDataRequestCultureProvider.cs (1)
30ArgumentNullException.ThrowIfNull(httpContext);
Microsoft.AspNetCore.Localization.Tests (1)
RequestLocalizationOptionsTest.cs (1)
55Assert.Throws<ArgumentNullException>(() => options.DefaultRequestCulture = null);
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisServiceCollectionExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(services);
Microsoft.AspNetCore.Mvc (9)
MvcServiceCollectionExtensions.cs (9)
33ArgumentNullException.ThrowIfNull(services); 48ArgumentNullException.ThrowIfNull(services); 49ArgumentNullException.ThrowIfNull(setupAction); 85ArgumentNullException.ThrowIfNull(services); 120ArgumentNullException.ThrowIfNull(services); 178ArgumentNullException.ThrowIfNull(services); 211ArgumentNullException.ThrowIfNull(services); 259ArgumentNullException.ThrowIfNull(services); 290ArgumentNullException.ThrowIfNull(services);
Microsoft.AspNetCore.Mvc.Abstractions (100)
Abstractions\ActionDescriptorExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(actionDescriptor); 41ArgumentNullException.ThrowIfNull(actionDescriptor);
Abstractions\ActionInvokerProviderContext.cs (1)
17ArgumentNullException.ThrowIfNull(actionContext);
ActionConstraints\ActionConstraintItem.cs (1)
18ArgumentNullException.ThrowIfNull(metadata);
ActionConstraints\ActionConstraintProviderContext.cs (3)
25ArgumentNullException.ThrowIfNull(context); 26ArgumentNullException.ThrowIfNull(action); 27ArgumentNullException.ThrowIfNull(items);
ActionConstraints\ActionSelectorCandidate.cs (1)
22ArgumentNullException.ThrowIfNull(action);
ActionContext.cs (4)
67ArgumentNullException.ThrowIfNull(httpContext); 68ArgumentNullException.ThrowIfNull(routeData); 69ArgumentNullException.ThrowIfNull(actionDescriptor); 70ArgumentNullException.ThrowIfNull(modelState);
ApiExplorer\ApiDescriptionProviderContext.cs (1)
19ArgumentNullException.ThrowIfNull(actions);
Filters\ActionExecutingContext.cs (1)
30ArgumentNullException.ThrowIfNull(actionArguments);
Filters\FilterContext.cs (1)
23ArgumentNullException.ThrowIfNull(filters);
Filters\FilterDescriptor.cs (1)
39ArgumentNullException.ThrowIfNull(filter);
Filters\FilterItem.cs (2)
23ArgumentNullException.ThrowIfNull(descriptor); 36ArgumentNullException.ThrowIfNull(filter);
Filters\FilterProviderContext.cs (2)
20ArgumentNullException.ThrowIfNull(actionContext); 21ArgumentNullException.ThrowIfNull(items);
Filters\ResourceExecutingContext.cs (1)
26ArgumentNullException.ThrowIfNull(valueProviderFactories);
Filters\ResultExecutedContext.cs (1)
32ArgumentNullException.ThrowIfNull(result);
Formatters\InputFormatterContext.cs (5)
68ArgumentNullException.ThrowIfNull(httpContext); 69ArgumentNullException.ThrowIfNull(modelName); 70ArgumentNullException.ThrowIfNull(modelState); 71ArgumentNullException.ThrowIfNull(metadata); 72ArgumentNullException.ThrowIfNull(readerFactory);
Formatters\OutputFormatterCanWriteContext.cs (1)
20ArgumentNullException.ThrowIfNull(httpContext);
Formatters\OutputFormatterWriteContext.cs (1)
24ArgumentNullException.ThrowIfNull(writerFactory);
ModelBinding\BindingInfo.cs (4)
31ArgumentNullException.ThrowIfNull(other); 203ArgumentNullException.ThrowIfNull(attributes); 204ArgumentNullException.ThrowIfNull(modelMetadata); 230ArgumentNullException.ThrowIfNull(modelMetadata);
ModelBinding\BindingSource.cs (2)
118ArgumentNullException.ThrowIfNull(id); 182ArgumentNullException.ThrowIfNull(bindingSource);
ModelBinding\CompositeBindingSource.cs (4)
27ArgumentNullException.ThrowIfNull(bindingSources); 66ArgumentNullException.ThrowIfNull(id); 67ArgumentNullException.ThrowIfNull(bindingSources); 80ArgumentNullException.ThrowIfNull(bindingSource);
ModelBinding\EnumGroupAndName.cs (4)
21ArgumentNullException.ThrowIfNull(group); 22ArgumentNullException.ThrowIfNull(name); 37ArgumentNullException.ThrowIfNull(group); 38ArgumentNullException.ThrowIfNull(name);
ModelBinding\Metadata\ModelMetadataIdentity.cs (10)
34ArgumentNullException.ThrowIfNull(modelType); 52ArgumentNullException.ThrowIfNull(modelType); 53ArgumentNullException.ThrowIfNull(containerType); 71ArgumentNullException.ThrowIfNull(propertyInfo); 72ArgumentNullException.ThrowIfNull(modelType); 73ArgumentNullException.ThrowIfNull(containerType); 95ArgumentNullException.ThrowIfNull(parameter); 96ArgumentNullException.ThrowIfNull(modelType); 110ArgumentNullException.ThrowIfNull(constructor); 111ArgumentNullException.ThrowIfNull(modelType);
ModelBinding\ModelErrorCollection.cs (2)
19ArgumentNullException.ThrowIfNull(exception); 30ArgumentNullException.ThrowIfNull(errorMessage);
ModelBinding\ModelPropertyCollection.cs (1)
37ArgumentNullException.ThrowIfNull(propertyName);
ModelBinding\ModelStateDictionary.cs (30)
80ArgumentNullException.ThrowIfNull(dictionary); 175ArgumentNullException.ThrowIfNull(key); 209ArgumentNullException.ThrowIfNull(key); 210ArgumentNullException.ThrowIfNull(exception); 241ArgumentNullException.ThrowIfNull(key); 242ArgumentNullException.ThrowIfNull(exception); 243ArgumentNullException.ThrowIfNull(metadata); 264ArgumentNullException.ThrowIfNull(key); 265ArgumentNullException.ThrowIfNull(exception); 266ArgumentNullException.ThrowIfNull(metadata); 326ArgumentNullException.ThrowIfNull(key); 327ArgumentNullException.ThrowIfNull(errorMessage); 346ArgumentNullException.ThrowIfNull(key); 347ArgumentNullException.ThrowIfNull(errorMessage); 375ArgumentNullException.ThrowIfNull(key); 390ArgumentNullException.ThrowIfNull(key); 407ArgumentNullException.ThrowIfNull(key); 427ArgumentNullException.ThrowIfNull(key); 473ArgumentNullException.ThrowIfNull(key); 491ArgumentNullException.ThrowIfNull(key); 703ArgumentNullException.ThrowIfNull(key); 716ArgumentNullException.ThrowIfNull(key); 733ArgumentNullException.ThrowIfNull(key); 767ArgumentNullException.ThrowIfNull(prefix); 768ArgumentNullException.ThrowIfNull(key); 809ArgumentNullException.ThrowIfNull(prefix); 984ArgumentNullException.ThrowIfNull(dictionary); 985ArgumentNullException.ThrowIfNull(prefix); 1018ArgumentNullException.ThrowIfNull(dictionary); 1019ArgumentNullException.ThrowIfNull(prefix);
ModelBinding\TooManyModelErrorsException.cs (1)
19ArgumentNullException.ThrowIfNull(message);
ModelBinding\Validation\ModelValidationContextBase.cs (3)
22ArgumentNullException.ThrowIfNull(actionContext); 23ArgumentNullException.ThrowIfNull(modelMetadata); 24ArgumentNullException.ThrowIfNull(metadataProvider);
ModelBinding\Validation\ValidationEntry.cs (5)
22ArgumentNullException.ThrowIfNull(metadata); 23ArgumentNullException.ThrowIfNull(key); 39ArgumentNullException.ThrowIfNull(metadata); 40ArgumentNullException.ThrowIfNull(key); 41ArgumentNullException.ThrowIfNull(modelAccessor);
ModelBinding\ValueProviderFactoryContext.cs (1)
17ArgumentNullException.ThrowIfNull(context);
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
ApiDescriptionExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(apiDescription); 41ArgumentNullException.ThrowIfNull(apiDescription);
ApiDescriptionGroupCollection.cs (1)
18ArgumentNullException.ThrowIfNull(items);
DefaultApiDescriptionProvider.cs (1)
64ArgumentNullException.ThrowIfNull(context);
DependencyInjection\MvcApiExplorerMvcCoreBuilderExtensions.cs (1)
25ArgumentNullException.ThrowIfNull(builder);
src\Shared\PropertyAsParameterInfo.cs (2)
66ArgumentNullException.ThrowIfNull(parameters); 67ArgumentNullException.ThrowIfNull(cache);
Microsoft.AspNetCore.Mvc.Core (736)
AcceptedAtActionResult.cs (1)
65ArgumentNullException.ThrowIfNull(context);
AcceptedAtRouteResult.cs (1)
68ArgumentNullException.ThrowIfNull(context);
AcceptedResult.cs (2)
49ArgumentNullException.ThrowIfNull(locationUri); 71ArgumentNullException.ThrowIfNull(context);
AcceptVerbsAttribute.cs (1)
27ArgumentNullException.ThrowIfNull(method);
ActionConstraints\DefaultActionConstraintProvider.cs (1)
22ArgumentNullException.ThrowIfNull(context);
ActionConstraints\HttpMethodActionConstraint.cs (2)
33ArgumentNullException.ThrowIfNull(httpMethods); 61ArgumentNullException.ThrowIfNull(context);
ApplicationModels\ActionModel.cs (3)
29ArgumentNullException.ThrowIfNull(actionMethod); 30ArgumentNullException.ThrowIfNull(attributes); 49ArgumentNullException.ThrowIfNull(other);
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
39ArgumentNullException.ThrowIfNull(action);
ApplicationModels\ApiExplorerModel.cs (1)
24ArgumentNullException.ThrowIfNull(other);
ApplicationModels\ApplicationModelConventions.cs (2)
22ArgumentNullException.ThrowIfNull(applicationModel); 23ArgumentNullException.ThrowIfNull(conventions);
ApplicationModels\ApplicationModelFactory.cs (3)
26ArgumentNullException.ThrowIfNull(applicationModelProviders); 27ArgumentNullException.ThrowIfNull(options); 35ArgumentNullException.ThrowIfNull(controllerTypes);
ApplicationModels\ApplicationModelProviderContext.cs (1)
19ArgumentNullException.ThrowIfNull(controllerTypes);
ApplicationModels\AttributeRouteModel.cs (2)
33ArgumentNullException.ThrowIfNull(templateProvider); 47ArgumentNullException.ThrowIfNull(other);
ApplicationModels\AuthorizationApplicationModelProvider.cs (1)
33ArgumentNullException.ThrowIfNull(context);
ApplicationModels\ClientErrorResultFilterConvention.cs (1)
20ArgumentNullException.ThrowIfNull(action);
ApplicationModels\ConsumesConstraintForFormFileParameterConvention.cs (1)
19ArgumentNullException.ThrowIfNull(action);
ApplicationModels\ControllerActionDescriptorProvider.cs (3)
20ArgumentNullException.ThrowIfNull(partManager); 21ArgumentNullException.ThrowIfNull(applicationModelFactory); 32ArgumentNullException.ThrowIfNull(context);
ApplicationModels\ControllerModel.cs (3)
28ArgumentNullException.ThrowIfNull(controllerType); 29ArgumentNullException.ThrowIfNull(attributes); 49ArgumentNullException.ThrowIfNull(other);
ApplicationModels\DefaultApplicationModelProvider.cs (8)
45ArgumentNullException.ThrowIfNull(context); 111ArgumentNullException.ThrowIfNull(typeInfo); 213ArgumentNullException.ThrowIfNull(propertyInfo); 260ArgumentNullException.ThrowIfNull(typeInfo); 261ArgumentNullException.ThrowIfNull(methodInfo); 412ArgumentNullException.ThrowIfNull(typeInfo); 413ArgumentNullException.ThrowIfNull(methodInfo); 469ArgumentNullException.ThrowIfNull(parameterInfo);
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
69ArgumentNullException.ThrowIfNull(action);
ApplicationModels\InvalidModelStateFilterConvention.cs (1)
20ArgumentNullException.ThrowIfNull(action);
ApplicationModels\ParameterModel.cs (1)
36ArgumentNullException.ThrowIfNull(other);
ApplicationModels\ParameterModelBase.cs (1)
37ArgumentNullException.ThrowIfNull(other);
ApplicationModels\PropertyModel.cs (1)
36ArgumentNullException.ThrowIfNull(other);
ApplicationModels\RouteTokenTransformerConvention.cs (1)
23ArgumentNullException.ThrowIfNull(parameterTransformer);
ApplicationModels\SelectorModel.cs (1)
28ArgumentNullException.ThrowIfNull(other);
ApplicationParts\ApplicationPartFactory.cs (1)
37ArgumentNullException.ThrowIfNull(assembly);
ApplicationParts\DefaultApplicationPartFactory.cs (1)
28ArgumentNullException.ThrowIfNull(assembly);
ApplicationParts\RelatedAssemblyAttribute.cs (2)
41ArgumentNullException.ThrowIfNull(assembly); 53ArgumentNullException.ThrowIfNull(assembly);
Authorization\AuthorizeFilter.cs (4)
41ArgumentNullException.ThrowIfNull(policy); 54ArgumentNullException.ThrowIfNull(policyProvider); 65ArgumentNullException.ThrowIfNull(authorizeData); 161ArgumentNullException.ThrowIfNull(context);
BadRequestObjectResult.cs (1)
35ArgumentNullException.ThrowIfNull(modelState);
Builder\ControllerActionEndpointConventionBuilder.cs (2)
34ArgumentNullException.ThrowIfNull(convention); 47ArgumentNullException.ThrowIfNull(finalConvention);
Builder\ControllerEndpointRouteBuilderExtensions.cs (21)
29ArgumentNullException.ThrowIfNull(endpoints); 52ArgumentNullException.ThrowIfNull(endpoints); 101ArgumentNullException.ThrowIfNull(endpoints); 152ArgumentNullException.ThrowIfNull(endpoints); 199ArgumentNullException.ThrowIfNull(endpoints); 200ArgumentNullException.ThrowIfNull(action); 201ArgumentNullException.ThrowIfNull(controller); 262ArgumentNullException.ThrowIfNull(endpoints); 263ArgumentNullException.ThrowIfNull(pattern); 264ArgumentNullException.ThrowIfNull(action); 265ArgumentNullException.ThrowIfNull(controller); 323ArgumentNullException.ThrowIfNull(endpoints); 324ArgumentNullException.ThrowIfNull(action); 325ArgumentNullException.ThrowIfNull(controller); 388ArgumentNullException.ThrowIfNull(endpoints); 389ArgumentNullException.ThrowIfNull(pattern); 390ArgumentNullException.ThrowIfNull(action); 391ArgumentNullException.ThrowIfNull(controller); 432ArgumentNullException.ThrowIfNull(endpoints); 459ArgumentNullException.ThrowIfNull(endpoints); 494ArgumentNullException.ThrowIfNull(endpoints);
Builder\MvcApplicationBuilderExtensions.cs (4)
27ArgumentNullException.ThrowIfNull(app); 43ArgumentNullException.ThrowIfNull(app); 63ArgumentNullException.ThrowIfNull(app); 64ArgumentNullException.ThrowIfNull(configureRoutes);
Builder\MvcAreaRouteBuilderExtensions.cs (1)
120ArgumentNullException.ThrowIfNull(routeBuilder);
ChallengeResult.cs (1)
93ArgumentNullException.ThrowIfNull(context);
ConflictObjectResult.cs (1)
35ArgumentNullException.ThrowIfNull(modelState);
ConsumesAttribute.cs (4)
41ArgumentNullException.ThrowIfNull(contentType); 64ArgumentNullException.ThrowIfNull(contentType); 108ArgumentNullException.ThrowIfNull(context); 145ArgumentNullException.ThrowIfNull(context);
ContentResult.cs (1)
33ArgumentNullException.ThrowIfNull(context);
ControllerBase.cs (37)
81ArgumentNullException.ThrowIfNull(value); 104ArgumentNullException.ThrowIfNull(value); 127ArgumentNullException.ThrowIfNull(value); 151ArgumentNullException.ThrowIfNull(value); 174ArgumentNullException.ThrowIfNull(value); 197ArgumentNullException.ThrowIfNull(value); 1023ArgumentNullException.ThrowIfNull(pageName); 1051ArgumentNullException.ThrowIfNull(pageName); 1767ArgumentNullException.ThrowIfNull(modelState); 1797ArgumentNullException.ThrowIfNull(modelState); 1912ArgumentNullException.ThrowIfNull(descriptor); 2161ArgumentNullException.ThrowIfNull(uri); 2195ArgumentNullException.ThrowIfNull(uri); 2529ArgumentNullException.ThrowIfNull(model); 2549ArgumentNullException.ThrowIfNull(model); 2550ArgumentNullException.ThrowIfNull(prefix); 2578ArgumentNullException.ThrowIfNull(model); 2579ArgumentNullException.ThrowIfNull(prefix); 2580ArgumentNullException.ThrowIfNull(valueProvider); 2610ArgumentNullException.ThrowIfNull(model); 2611ArgumentNullException.ThrowIfNull(includeExpressions); 2647ArgumentNullException.ThrowIfNull(model); 2648ArgumentNullException.ThrowIfNull(propertyFilter); 2687ArgumentNullException.ThrowIfNull(model); 2688ArgumentNullException.ThrowIfNull(valueProvider); 2689ArgumentNullException.ThrowIfNull(includeExpressions); 2721ArgumentNullException.ThrowIfNull(model); 2722ArgumentNullException.ThrowIfNull(valueProvider); 2723ArgumentNullException.ThrowIfNull(propertyFilter); 2751ArgumentNullException.ThrowIfNull(model); 2752ArgumentNullException.ThrowIfNull(modelType); 2790ArgumentNullException.ThrowIfNull(model); 2791ArgumentNullException.ThrowIfNull(modelType); 2792ArgumentNullException.ThrowIfNull(valueProvider); 2793ArgumentNullException.ThrowIfNull(propertyFilter); 2816ArgumentNullException.ThrowIfNull(model); 2833ArgumentNullException.ThrowIfNull(model);
ControllerContext.cs (1)
85ArgumentNullException.ThrowIfNull(value);
Controllers\ControllerActionDescriptor.cs (1)
65ArgumentNullException.ThrowIfNull(value);
Controllers\ControllerActivatorProvider.cs (6)
28ArgumentNullException.ThrowIfNull(controllerActivator); 42ArgumentNullException.ThrowIfNull(descriptor); 65ArgumentNullException.ThrowIfNull(descriptor); 83ArgumentNullException.ThrowIfNull(descriptor); 105ArgumentNullException.ThrowIfNull(controller); 112ArgumentNullException.ThrowIfNull(controller);
Controllers\ControllerBinderDelegateProvider.cs (5)
21ArgumentNullException.ThrowIfNull(parameterBinder); 22ArgumentNullException.ThrowIfNull(modelBinderFactory); 23ArgumentNullException.ThrowIfNull(modelMetadataProvider); 24ArgumentNullException.ThrowIfNull(actionDescriptor); 25ArgumentNullException.ThrowIfNull(mvcOptions);
Controllers\ControllerFactoryProvider.cs (5)
22ArgumentNullException.ThrowIfNull(activatorProvider); 23ArgumentNullException.ThrowIfNull(controllerFactory); 40ArgumentNullException.ThrowIfNull(descriptor); 75ArgumentNullException.ThrowIfNull(descriptor); 96ArgumentNullException.ThrowIfNull(descriptor);
Controllers\DefaultControllerActivator.cs (6)
22ArgumentNullException.ThrowIfNull(typeActivatorCache); 30ArgumentNullException.ThrowIfNull(controllerContext); 55ArgumentNullException.ThrowIfNull(context); 56ArgumentNullException.ThrowIfNull(controller); 66ArgumentNullException.ThrowIfNull(context); 67ArgumentNullException.ThrowIfNull(controller);
Controllers\DefaultControllerFactory.cs (7)
31ArgumentNullException.ThrowIfNull(controllerActivator); 32ArgumentNullException.ThrowIfNull(propertyActivators); 41ArgumentNullException.ThrowIfNull(context); 62ArgumentNullException.ThrowIfNull(context); 63ArgumentNullException.ThrowIfNull(controller); 70ArgumentNullException.ThrowIfNull(context); 71ArgumentNullException.ThrowIfNull(controller);
Controllers\DefaultControllerPropertyActivator.cs (1)
35ArgumentNullException.ThrowIfNull(actionDescriptor);
Controllers\ServiceBasedControllerActivator.cs (1)
17ArgumentNullException.ThrowIfNull(actionContext);
CreatedAtActionResult.cs (1)
65ArgumentNullException.ThrowIfNull(context);
CreatedAtRouteResult.cs (1)
68ArgumentNullException.ThrowIfNull(context);
CreatedResult.cs (1)
81ArgumentNullException.ThrowIfNull(context);
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
17ArgumentNullException.ThrowIfNull(options);
DependencyInjection\ApplicationModelConventionExtensions.cs (18)
22ArgumentNullException.ThrowIfNull(list); 34ArgumentNullException.ThrowIfNull(list); 35ArgumentNullException.ThrowIfNull(type); 58ArgumentNullException.ThrowIfNull(conventions); 59ArgumentNullException.ThrowIfNull(controllerModelConvention); 75ArgumentNullException.ThrowIfNull(conventions); 76ArgumentNullException.ThrowIfNull(actionModelConvention); 92ArgumentNullException.ThrowIfNull(conventions); 93ArgumentNullException.ThrowIfNull(parameterModelConvention); 109ArgumentNullException.ThrowIfNull(conventions); 110ArgumentNullException.ThrowIfNull(parameterModelConvention); 127ArgumentNullException.ThrowIfNull(application); 160ArgumentNullException.ThrowIfNull(application); 165ArgumentNullException.ThrowIfNull(parameterModel); 177ArgumentNullException.ThrowIfNull(actionModelConvention); 185ArgumentNullException.ThrowIfNull(application); 207ArgumentNullException.ThrowIfNull(controllerConvention); 215ArgumentNullException.ThrowIfNull(application);
DependencyInjection\MvcBuilder.cs (2)
20ArgumentNullException.ThrowIfNull(services); 21ArgumentNullException.ThrowIfNull(manager);
DependencyInjection\MvcCoreBuilder.cs (2)
22ArgumentNullException.ThrowIfNull(services); 23ArgumentNullException.ThrowIfNull(manager);
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (14)
30ArgumentNullException.ThrowIfNull(builder); 31ArgumentNullException.ThrowIfNull(setupAction); 48ArgumentNullException.ThrowIfNull(builder); 49ArgumentNullException.ThrowIfNull(configure); 65ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(setupAction); 81ArgumentNullException.ThrowIfNull(builder); 82ArgumentNullException.ThrowIfNull(assembly); 107ArgumentNullException.ThrowIfNull(builder); 108ArgumentNullException.ThrowIfNull(setupAction); 122ArgumentNullException.ThrowIfNull(builder); 148ArgumentNullException.ThrowIfNull(builder); 164ArgumentNullException.ThrowIfNull(builder); 165ArgumentNullException.ThrowIfNull(setupAction);
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (11)
32ArgumentNullException.ThrowIfNull(builder); 33ArgumentNullException.ThrowIfNull(setupAction); 49ArgumentNullException.ThrowIfNull(builder); 50ArgumentNullException.ThrowIfNull(configure); 163ArgumentNullException.ThrowIfNull(builder); 164ArgumentNullException.ThrowIfNull(assembly); 189ArgumentNullException.ThrowIfNull(builder); 190ArgumentNullException.ThrowIfNull(setupAction); 207ArgumentNullException.ThrowIfNull(builder); 208ArgumentNullException.ThrowIfNull(setupAction); 226ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\MvcCoreRouteOptionsSetup.cs (1)
21ArgumentNullException.ThrowIfNull(options);
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (3)
49ArgumentNullException.ThrowIfNull(services); 119ArgumentNullException.ThrowIfNull(services); 120ArgumentNullException.ThrowIfNull(setupAction);
FileContentResult.cs (3)
41ArgumentNullException.ThrowIfNull(fileContents); 55ArgumentNullException.ThrowIfNull(value); 64ArgumentNullException.ThrowIfNull(context);
FileResult.cs (1)
24ArgumentNullException.ThrowIfNull(contentType);
FileStreamResult.cs (3)
41ArgumentNullException.ThrowIfNull(fileStream); 56ArgumentNullException.ThrowIfNull(value); 65ArgumentNullException.ThrowIfNull(context);
Filters\ActionFilterAttribute.cs (4)
35ArgumentNullException.ThrowIfNull(context); 36ArgumentNullException.ThrowIfNull(next); 60ArgumentNullException.ThrowIfNull(context); 61ArgumentNullException.ThrowIfNull(next);
Filters\ControllerActionFilter.cs (2)
22ArgumentNullException.ThrowIfNull(context); 23ArgumentNullException.ThrowIfNull(next);
Filters\ControllerResultFilter.cs (2)
22ArgumentNullException.ThrowIfNull(context); 23ArgumentNullException.ThrowIfNull(next);
Filters\DefaultFilterProvider.cs (1)
16ArgumentNullException.ThrowIfNull(context);
Filters\DisableRequestSizeLimitFilter.cs (1)
34ArgumentNullException.ThrowIfNull(context);
Filters\ExceptionFilterAttribute.cs (1)
19ArgumentNullException.ThrowIfNull(context);
Filters\FilterCollection.cs (4)
43ArgumentNullException.ThrowIfNull(filterType); 77ArgumentNullException.ThrowIfNull(filterType); 121ArgumentNullException.ThrowIfNull(filterType); 155ArgumentNullException.ThrowIfNull(filterType);
Filters\FilterDescriptorOrderComparer.cs (2)
12ArgumentNullException.ThrowIfNull(x); 13ArgumentNullException.ThrowIfNull(y);
Filters\FilterFactory.cs (5)
14ArgumentNullException.ThrowIfNull(filterProviders); 15ArgumentNullException.ThrowIfNull(actionContext); 66ArgumentNullException.ThrowIfNull(filterProviders); 67ArgumentNullException.ThrowIfNull(actionContext); 68ArgumentNullException.ThrowIfNull(cachedFilterItems);
Filters\MiddlewareFilter.cs (1)
17ArgumentNullException.ThrowIfNull(middlewarePipeline);
Filters\MiddlewareFilterAttribute.cs (2)
22ArgumentNullException.ThrowIfNull(configurationType); 41ArgumentNullException.ThrowIfNull(serviceProvider);
Filters\MiddlewareFilterConfigurationProvider.cs (1)
20ArgumentNullException.ThrowIfNull(configurationType);
Filters\OutputCacheFilter.cs (1)
28ArgumentNullException.ThrowIfNull(context);
Filters\RequestFormLimitsFilter.cs (1)
25ArgumentNullException.ThrowIfNull(context);
Filters\RequestSizeLimitFilter.cs (1)
36ArgumentNullException.ThrowIfNull(context);
Filters\ResponseCacheFilter.cs (1)
84ArgumentNullException.ThrowIfNull(context);
Filters\ResponseCacheFilterExecutor.cs (1)
57ArgumentNullException.ThrowIfNull(context);
Filters\ResultFilterAttribute.cs (2)
32ArgumentNullException.ThrowIfNull(context); 33ArgumentNullException.ThrowIfNull(next);
ForbidResult.cs (1)
93ArgumentNullException.ThrowIfNull(context);
FormatFilterAttribute.cs (1)
27ArgumentNullException.ThrowIfNull(serviceProvider);
Formatters\AcceptHeaderParser.cs (2)
21ArgumentNullException.ThrowIfNull(acceptHeaders); 22ArgumentNullException.ThrowIfNull(parsedValues);
Formatters\FormatFilter.cs (4)
29ArgumentNullException.ThrowIfNull(options); 30ArgumentNullException.ThrowIfNull(loggerFactory); 63ArgumentNullException.ThrowIfNull(context); 134ArgumentNullException.ThrowIfNull(context);
Formatters\FormatterMappings.cs (5)
26ArgumentNullException.ThrowIfNull(format); 27ArgumentNullException.ThrowIfNull(contentType); 40ArgumentNullException.ThrowIfNull(format); 41ArgumentNullException.ThrowIfNull(contentType); 77ArgumentNullException.ThrowIfNull(format);
Formatters\InputFormatter.cs (2)
28ArgumentNullException.ThrowIfNull(modelType); 94ArgumentNullException.ThrowIfNull(context);
Formatters\MediaType.cs (1)
48ArgumentNullException.ThrowIfNull(mediaType);
Formatters\MediaTypeCollection.cs (3)
20ArgumentNullException.ThrowIfNull(item); 37ArgumentNullException.ThrowIfNull(item); 51ArgumentNullException.ThrowIfNull(item);
Formatters\OutputFormatter.cs (3)
95ArgumentNullException.ThrowIfNull(context); 159ArgumentNullException.ThrowIfNull(context); 171ArgumentNullException.ThrowIfNull(context);
Formatters\StreamOutputFormatter.cs (2)
15ArgumentNullException.ThrowIfNull(context); 29ArgumentNullException.ThrowIfNull(context);
Formatters\StringOutputFormatter.cs (3)
31ArgumentNullException.ThrowIfNull(context); 45ArgumentNullException.ThrowIfNull(context); 46ArgumentNullException.ThrowIfNull(encoding);
Formatters\SystemTextJsonInputFormatter.cs (2)
57ArgumentNullException.ThrowIfNull(context); 58ArgumentNullException.ThrowIfNull(encoding);
Formatters\SystemTextJsonOutputFormatter.cs (2)
63ArgumentNullException.ThrowIfNull(context); 64ArgumentNullException.ThrowIfNull(selectedEncoding);
Formatters\TextInputFormatter.cs (2)
37ArgumentNullException.ThrowIfNull(context); 75ArgumentNullException.ThrowIfNull(context);
Formatters\TextOutputFormatter.cs (2)
65ArgumentNullException.ThrowIfNull(context); 105ArgumentNullException.ThrowIfNull(context);
HttpDeleteAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
HttpGetAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
HttpHeadAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
HttpOptionsAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
HttpPatchAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
HttpPostAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
HttpPutAttribute.cs (1)
31ArgumentNullException.ThrowIfNull(template);
Infrastructure\ActionDescriptorCollection.cs (1)
22ArgumentNullException.ThrowIfNull(items);
Infrastructure\ActionResultTypeMapper.cs (2)
14ArgumentNullException.ThrowIfNull(returnType); 27ArgumentNullException.ThrowIfNull(returnType);
Infrastructure\ActionSelector.cs (3)
65ArgumentNullException.ThrowIfNull(context); 81ArgumentNullException.ThrowIfNull(context); 82ArgumentNullException.ThrowIfNull(candidates);
Infrastructure\ClientErrorResultFilter.cs (1)
34ArgumentNullException.ThrowIfNull(context);
Infrastructure\CompatibilitySwitch.cs (1)
80ArgumentNullException.ThrowIfNull(name);
Infrastructure\ConfigureCompatibilityOptions.cs (3)
32ArgumentNullException.ThrowIfNull(loggerFactory); 52ArgumentNullException.ThrowIfNull(name); 53ArgumentNullException.ThrowIfNull(options);
Infrastructure\ContentResultExecutor.cs (2)
36ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(result);
Infrastructure\ControllerActionInvoker.cs (1)
40ArgumentNullException.ThrowIfNull(cacheEntry);
Infrastructure\ControllerActionInvokerProvider.cs (1)
62ArgumentNullException.ThrowIfNull(context);
Infrastructure\DefaultOutputFormatterSelector.cs (5)
39ArgumentNullException.ThrowIfNull(options); 40ArgumentNullException.ThrowIfNull(loggerFactory); 52ArgumentNullException.ThrowIfNull(context); 53ArgumentNullException.ThrowIfNull(formatters); 54ArgumentNullException.ThrowIfNull(contentTypes);
Infrastructure\DefaultProblemDetailsFactory.cs (1)
72ArgumentNullException.ThrowIfNull(modelStateDictionary);
Infrastructure\FileContentResultExecutor.cs (4)
28ArgumentNullException.ThrowIfNull(context); 29ArgumentNullException.ThrowIfNull(result); 58ArgumentNullException.ThrowIfNull(context); 59ArgumentNullException.ThrowIfNull(result);
Infrastructure\FileResultExecutorBase.cs (1)
81ArgumentNullException.ThrowIfNull(factory);
Infrastructure\FileStreamResultExecutor.cs (4)
28ArgumentNullException.ThrowIfNull(context); 29ArgumentNullException.ThrowIfNull(result); 71ArgumentNullException.ThrowIfNull(context); 72ArgumentNullException.ThrowIfNull(result);
Infrastructure\LocalRedirectResultExecutor.cs (4)
28ArgumentNullException.ThrowIfNull(loggerFactory); 29ArgumentNullException.ThrowIfNull(urlHelperFactory); 38ArgumentNullException.ThrowIfNull(context); 39ArgumentNullException.ThrowIfNull(result);
Infrastructure\MemoryPoolHttpRequestStreamReaderFactory.cs (4)
38ArgumentNullException.ThrowIfNull(bytePool); 39ArgumentNullException.ThrowIfNull(charPool); 48ArgumentNullException.ThrowIfNull(stream); 49ArgumentNullException.ThrowIfNull(encoding);
Infrastructure\MemoryPoolHttpResponseStreamWriterFactory.cs (4)
46ArgumentNullException.ThrowIfNull(bytePool); 47ArgumentNullException.ThrowIfNull(charPool); 56ArgumentNullException.ThrowIfNull(stream); 57ArgumentNullException.ThrowIfNull(encoding);
Infrastructure\MvcCoreMvcOptionsSetup.cs (3)
36ArgumentNullException.ThrowIfNull(readerFactory); 37ArgumentNullException.ThrowIfNull(loggerFactory); 38ArgumentNullException.ThrowIfNull(jsonOptions);
Infrastructure\NonDisposableStream.cs (1)
23ArgumentNullException.ThrowIfNull(innerStream);
Infrastructure\ObjectResultExecutor.cs (5)
33ArgumentNullException.ThrowIfNull(formatterSelector); 34ArgumentNullException.ThrowIfNull(writerFactory); 35ArgumentNullException.ThrowIfNull(loggerFactory); 67ArgumentNullException.ThrowIfNull(context); 68ArgumentNullException.ThrowIfNull(result);
Infrastructure\ParameterDefaultValues.cs (1)
14ArgumentNullException.ThrowIfNull(methodInfo);
Infrastructure\PhysicalFileResultExecutor.cs (5)
28ArgumentNullException.ThrowIfNull(context); 29ArgumentNullException.ThrowIfNull(result); 70ArgumentNullException.ThrowIfNull(httpContext); 71ArgumentNullException.ThrowIfNull(result); 107ArgumentNullException.ThrowIfNull(path);
Infrastructure\RedirectResultExecutor.cs (4)
25ArgumentNullException.ThrowIfNull(loggerFactory); 26ArgumentNullException.ThrowIfNull(urlHelperFactory); 35ArgumentNullException.ThrowIfNull(context); 36ArgumentNullException.ThrowIfNull(result);
Infrastructure\RedirectToActionResultExecutor.cs (4)
26ArgumentNullException.ThrowIfNull(loggerFactory); 27ArgumentNullException.ThrowIfNull(urlHelperFactory); 36ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(result);
Infrastructure\RedirectToPageResultExecutor.cs (4)
26ArgumentNullException.ThrowIfNull(loggerFactory); 27ArgumentNullException.ThrowIfNull(urlHelperFactory); 36ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(result);
Infrastructure\RedirectToRouteResultExecutor.cs (2)
26ArgumentNullException.ThrowIfNull(loggerFactory); 27ArgumentNullException.ThrowIfNull(urlHelperFactory);
Infrastructure\SystemTextJsonResultExecutor.cs (2)
36ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(result);
Infrastructure\TypeActivatorCache.cs (2)
25ArgumentNullException.ThrowIfNull(serviceProvider); 26ArgumentNullException.ThrowIfNull(implementationType);
Infrastructure\VirtualFileResultExecutor.cs (5)
28ArgumentNullException.ThrowIfNull(hostingEnvironment); 36ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(result); 68ArgumentNullException.ThrowIfNull(context); 69ArgumentNullException.ThrowIfNull(result);
JsonResult.cs (1)
72ArgumentNullException.ThrowIfNull(context);
LocalRedirectResult.cs (1)
89ArgumentNullException.ThrowIfNull(context);
ModelBinderAttribute.cs (1)
49ArgumentNullException.ThrowIfNull(binderType);
ModelBinding\Binders\ArrayModelBinder.cs (1)
111ArgumentNullException.ThrowIfNull(target);
ModelBinding\Binders\ArrayModelBinderProvider.cs (1)
20ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\BinderTypeModelBinder.cs (2)
25ArgumentNullException.ThrowIfNull(binderType); 42ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\BinderTypeModelBinderProvider.cs (1)
17ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\BodyModelBinder.cs (3)
73ArgumentNullException.ThrowIfNull(formatters); 74ArgumentNullException.ThrowIfNull(readerFactory); 89ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\BodyModelBinderProvider.cs (3)
58ArgumentNullException.ThrowIfNull(formatters); 59ArgumentNullException.ThrowIfNull(readerFactory); 70ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\ByteArrayModelBinder.cs (2)
23ArgumentNullException.ThrowIfNull(loggerFactory); 31ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\ByteArrayModelBinderProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
18ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\CancellationTokenModelBinderProvider.cs (1)
20ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\CollectionModelBinder.cs (5)
57ArgumentNullException.ThrowIfNull(elementBinder); 58ArgumentNullException.ThrowIfNull(loggerFactory); 86ArgumentNullException.ThrowIfNull(mvcOptions); 107ArgumentNullException.ThrowIfNull(bindingContext); 469ArgumentNullException.ThrowIfNull(target);
ModelBinding\Binders\CollectionModelBinderProvider.cs (1)
21ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\ComplexObjectModelBinder.cs (2)
51ArgumentNullException.ThrowIfNull(bindingContext); 180ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\ComplexTypeModelBinder.cs (7)
70ArgumentNullException.ThrowIfNull(propertyBinders); 71ArgumentNullException.ThrowIfNull(loggerFactory); 80ArgumentNullException.ThrowIfNull(bindingContext); 461ArgumentNullException.ThrowIfNull(bindingContext); 524ArgumentNullException.ThrowIfNull(bindingContext); 525ArgumentNullException.ThrowIfNull(modelName); 526ArgumentNullException.ThrowIfNull(propertyMetadata);
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
20ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\DateTimeModelBinder.cs (2)
26ArgumentNullException.ThrowIfNull(loggerFactory); 35ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\DateTimeModelBinderProvider.cs (1)
22ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\DecimalModelBinder.cs (2)
28ArgumentNullException.ThrowIfNull(loggerFactory); 37ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\DictionaryModelBinder.cs (4)
31ArgumentNullException.ThrowIfNull(valueBinder); 65ArgumentNullException.ThrowIfNull(valueBinder); 104ArgumentNullException.ThrowIfNull(valueBinder); 112ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\DictionaryModelBinderProvider.cs (1)
21ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\DoubleModelBinder.cs (2)
28ArgumentNullException.ThrowIfNull(loggerFactory); 37ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\EnumTypeModelBinderProvider.cs (1)
28ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\FloatingPointTypeModelBinderProvider.cs (1)
25ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\FloatModelBinder.cs (2)
28ArgumentNullException.ThrowIfNull(loggerFactory); 37ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\FormCollectionModelBinder.cs (2)
27ArgumentNullException.ThrowIfNull(loggerFactory); 35ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
21ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\FormFileModelBinder.cs (2)
28ArgumentNullException.ThrowIfNull(loggerFactory); 36ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\FormFileModelBinderProvider.cs (1)
21ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\HeaderModelBinder.cs (3)
38ArgumentNullException.ThrowIfNull(loggerFactory); 39ArgumentNullException.ThrowIfNull(innerModelBinder); 51ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\KeyValuePairModelBinder.cs (4)
29ArgumentNullException.ThrowIfNull(keyBinder); 30ArgumentNullException.ThrowIfNull(valueBinder); 31ArgumentNullException.ThrowIfNull(loggerFactory); 41ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\KeyValuePairModelBinderProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\ServicesModelBinder.cs (1)
22ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\ServicesModelBinderProvider.cs (1)
21ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\SimpleTypeModelBinder.cs (3)
27ArgumentNullException.ThrowIfNull(type); 28ArgumentNullException.ThrowIfNull(loggerFactory); 37ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\SimpleTypeModelBinderProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Binders\TryParseModelBinder.cs (3)
35ArgumentNullException.ThrowIfNull(modelType); 36ArgumentNullException.ThrowIfNull(loggerFactory); 45ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\Binders\TryParseModelBinderProvider.cs (1)
17ArgumentNullException.ThrowIfNull(context);
ModelBinding\BindingSourceValueProvider.cs (2)
37ArgumentNullException.ThrowIfNull(bindingSource); 72ArgumentNullException.ThrowIfNull(bindingSource);
ModelBinding\CompositeValueProvider.cs (4)
47ArgumentNullException.ThrowIfNull(controllerContext); 147ArgumentNullException.ThrowIfNull(item); 155ArgumentNullException.ThrowIfNull(item); 163ArgumentNullException.ThrowIfNull(bindingSource);
ModelBinding\DefaultModelBindingContext.cs (15)
35ArgumentNullException.ThrowIfNull(value); 46ArgumentNullException.ThrowIfNull(value); 64ArgumentNullException.ThrowIfNull(value); 75ArgumentNullException.ThrowIfNull(value); 86ArgumentNullException.ThrowIfNull(value); 120ArgumentNullException.ThrowIfNull(value); 131ArgumentNullException.ThrowIfNull(value); 149ArgumentNullException.ThrowIfNull(value); 204ArgumentNullException.ThrowIfNull(actionContext); 205ArgumentNullException.ThrowIfNull(valueProvider); 206ArgumentNullException.ThrowIfNull(metadata); 207ArgumentNullException.ThrowIfNull(modelName); 251ArgumentNullException.ThrowIfNull(modelMetadata); 252ArgumentNullException.ThrowIfNull(fieldName); 253ArgumentNullException.ThrowIfNull(modelName);
ModelBinding\FormFileValueProviderFactory.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\FormValueProvider.cs (4)
32ArgumentNullException.ThrowIfNull(bindingSource); 33ArgumentNullException.ThrowIfNull(values); 75ArgumentNullException.ThrowIfNull(prefix); 83ArgumentNullException.ThrowIfNull(key);
ModelBinding\FormValueProviderFactory.cs (1)
20ArgumentNullException.ThrowIfNull(context);
ModelBinding\JQueryFormValueProviderFactory.cs (1)
20ArgumentNullException.ThrowIfNull(context);
ModelBinding\JQueryQueryStringValueProviderFactory.cs (1)
18ArgumentNullException.ThrowIfNull(context);
ModelBinding\JQueryValueProvider.cs (3)
34ArgumentNullException.ThrowIfNull(bindingSource); 35ArgumentNullException.ThrowIfNull(values); 75ArgumentNullException.ThrowIfNull(key);
ModelBinding\Metadata\BindingMetadata.cs (1)
90ArgumentNullException.ThrowIfNull(value);
ModelBinding\Metadata\BindingMetadataProviderContext.cs (1)
22ArgumentNullException.ThrowIfNull(attributes);
ModelBinding\Metadata\BindingSourceMetadataProvider.cs (2)
25ArgumentNullException.ThrowIfNull(type); 45ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\DefaultCompositeMetadataDetailsProvider.cs (3)
31ArgumentNullException.ThrowIfNull(context); 42ArgumentNullException.ThrowIfNull(context); 53ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\DefaultMetadataDetails.cs (1)
23ArgumentNullException.ThrowIfNull(attributes);
ModelBinding\Metadata\DefaultModelBindingMessageProvider.cs (12)
53ArgumentNullException.ThrowIfNull(originalProvider); 78ArgumentNullException.ThrowIfNull(missingBindRequiredValueAccessor); 93ArgumentNullException.ThrowIfNull(missingKeyOrValueAccessor); 108ArgumentNullException.ThrowIfNull(missingRequestBodyRequiredValueAccessor); 123ArgumentNullException.ThrowIfNull(valueMustNotBeNullAccessor); 138ArgumentNullException.ThrowIfNull(attemptedValueIsInvalidAccessor); 154ArgumentNullException.ThrowIfNull(nonPropertyAttemptedValueIsInvalidAccessor); 169ArgumentNullException.ThrowIfNull(unknownValueIsInvalidAccessor); 184ArgumentNullException.ThrowIfNull(nonPropertyUnknownValueIsInvalidAccessor); 199ArgumentNullException.ThrowIfNull(valueIsInvalidAccessor); 214ArgumentNullException.ThrowIfNull(valueMustBeANumberAccessor); 229ArgumentNullException.ThrowIfNull(nonPropertyValueMustBeANumberAccessor);
ModelBinding\Metadata\DefaultModelMetadata.cs (4)
65ArgumentNullException.ThrowIfNull(provider); 66ArgumentNullException.ThrowIfNull(detailsProvider); 67ArgumentNullException.ThrowIfNull(details); 68ArgumentNullException.ThrowIfNull(modelBindingMessageProvider);
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (9)
49ArgumentNullException.ThrowIfNull(detailsProvider); 74ArgumentNullException.ThrowIfNull(modelType); 105ArgumentNullException.ThrowIfNull(parameter); 106ArgumentNullException.ThrowIfNull(modelType); 116ArgumentNullException.ThrowIfNull(modelType); 126ArgumentNullException.ThrowIfNull(propertyInfo); 127ArgumentNullException.ThrowIfNull(modelType); 137ArgumentNullException.ThrowIfNull(constructorInfo); 145ArgumentNullException.ThrowIfNull(optionsAccessor);
ModelBinding\Metadata\DefaultValidationMetadataProvider.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\DisplayMetadata.cs (3)
75ArgumentNullException.ThrowIfNull(value); 134ArgumentNullException.ThrowIfNull(value); 221ArgumentNullException.ThrowIfNull(value);
ModelBinding\Metadata\DisplayMetadataProviderContext.cs (1)
22ArgumentNullException.ThrowIfNull(attributes);
ModelBinding\Metadata\ExcludeBindingMetadataProvider.cs (2)
25ArgumentNullException.ThrowIfNull(type); 33ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
27ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\MetadataDetailsProviderExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(list); 32ArgumentNullException.ThrowIfNull(list); 33ArgumentNullException.ThrowIfNull(type);
ModelBinding\Metadata\ModelAttributes.cs (7)
50ArgumentNullException.ThrowIfNull(typeAttributes); 59ArgumentNullException.ThrowIfNull(typeAttributes); 131ArgumentNullException.ThrowIfNull(containerType); 132ArgumentNullException.ThrowIfNull(property); 158ArgumentNullException.ThrowIfNull(type); 203ArgumentNullException.ThrowIfNull(parameterInfo); 204ArgumentNullException.ThrowIfNull(modelType);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (3)
33ArgumentNullException.ThrowIfNull(namingPolicy); 41ArgumentNullException.ThrowIfNull(context); 54ArgumentNullException.ThrowIfNull(context);
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (1)
22ArgumentNullException.ThrowIfNull(attributes);
ModelBinding\ModelBinderFactory.cs (3)
53ArgumentNullException.ThrowIfNull(context); 260ArgumentNullException.ThrowIfNull(metadata); 261ArgumentNullException.ThrowIfNull(bindingInfo);
ModelBinding\ModelBinderProviderExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(list); 32ArgumentNullException.ThrowIfNull(list); 33ArgumentNullException.ThrowIfNull(type);
ModelBinding\ModelBindingHelper.cs (16)
88ArgumentNullException.ThrowIfNull(includeExpressions); 214ArgumentNullException.ThrowIfNull(model); 215ArgumentNullException.ThrowIfNull(modelType); 216ArgumentNullException.ThrowIfNull(prefix); 217ArgumentNullException.ThrowIfNull(actionContext); 218ArgumentNullException.ThrowIfNull(metadataProvider); 219ArgumentNullException.ThrowIfNull(modelBinderFactory); 220ArgumentNullException.ThrowIfNull(valueProvider); 221ArgumentNullException.ThrowIfNull(objectModelValidator); 222ArgumentNullException.ThrowIfNull(propertyFilter); 370ArgumentNullException.ThrowIfNull(modelType); 371ArgumentNullException.ThrowIfNull(modelState); 372ArgumentNullException.ThrowIfNull(metadataProvider); 388ArgumentNullException.ThrowIfNull(modelMetadata); 389ArgumentNullException.ThrowIfNull(modelState); 613ArgumentNullException.ThrowIfNull(type);
ModelBinding\ModelMetadataProviderExtensions.cs (3)
28ArgumentNullException.ThrowIfNull(provider); 29ArgumentNullException.ThrowIfNull(containerType); 30ArgumentNullException.ThrowIfNull(propertyName);
ModelBinding\ObjectModelValidator.cs (2)
28ArgumentNullException.ThrowIfNull(modelMetadataProvider); 29ArgumentNullException.ThrowIfNull(validatorProviders);
ModelBinding\ParameterBinder.cs (10)
37ArgumentNullException.ThrowIfNull(modelMetadataProvider); 38ArgumentNullException.ThrowIfNull(modelBinderFactory); 39ArgumentNullException.ThrowIfNull(validator); 40ArgumentNullException.ThrowIfNull(mvcOptions); 41ArgumentNullException.ThrowIfNull(loggerFactory); 93ArgumentNullException.ThrowIfNull(actionContext); 94ArgumentNullException.ThrowIfNull(modelBinder); 95ArgumentNullException.ThrowIfNull(valueProvider); 96ArgumentNullException.ThrowIfNull(parameter); 97ArgumentNullException.ThrowIfNull(metadata);
ModelBinding\PrefixContainer.cs (2)
26ArgumentNullException.ThrowIfNull(values); 49ArgumentNullException.ThrowIfNull(prefix);
ModelBinding\QueryStringValueProvider.cs (4)
31ArgumentNullException.ThrowIfNull(bindingSource); 32ArgumentNullException.ThrowIfNull(values); 68ArgumentNullException.ThrowIfNull(prefix); 76ArgumentNullException.ThrowIfNull(key);
ModelBinding\QueryStringValueProviderFactory.cs (1)
19ArgumentNullException.ThrowIfNull(context);
ModelBinding\RouteValueProvider.cs (4)
41ArgumentNullException.ThrowIfNull(bindingSource); 42ArgumentNullException.ThrowIfNull(values); 43ArgumentNullException.ThrowIfNull(culture); 79ArgumentNullException.ThrowIfNull(key);
ModelBinding\RouteValueProviderFactory.cs (1)
16ArgumentNullException.ThrowIfNull(context);
ModelBinding\SuppressChildValidationMetadataProvider.cs (3)
26ArgumentNullException.ThrowIfNull(type); 40ArgumentNullException.ThrowIfNull(fullTypeName); 58ArgumentNullException.ThrowIfNull(context);
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (2)
21ArgumentNullException.ThrowIfNull(providers); 34ArgumentNullException.ThrowIfNull(context);
ModelBinding\Validation\CompositeModelValidatorProvider.cs (1)
21ArgumentNullException.ThrowIfNull(providers);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (1)
38ArgumentNullException.ThrowIfNull(elementKeys);
ModelBinding\Validation\ModelValidatorProviderExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(list); 32ArgumentNullException.ThrowIfNull(list); 33ArgumentNullException.ThrowIfNull(type);
ModelBinding\Validation\ValidationVisitor.cs (3)
37ArgumentNullException.ThrowIfNull(actionContext); 38ArgumentNullException.ThrowIfNull(validatorProvider); 39ArgumentNullException.ThrowIfNull(validatorCache);
ModelBinding\ValueProviderFactoryExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(list); 32ArgumentNullException.ThrowIfNull(list); 33ArgumentNullException.ThrowIfNull(type);
ModelMetadataTypeAttribute.cs (1)
18ArgumentNullException.ThrowIfNull(type);
MvcCoreLoggerExtensions.cs (1)
286ArgumentNullException.ThrowIfNull(action);
ObjectResult.cs (1)
71ArgumentNullException.ThrowIfNull(context);
PhysicalFileResult.cs (2)
28ArgumentNullException.ThrowIfNull(fileName); 56ArgumentNullException.ThrowIfNull(context);
ProducesAttribute.cs (2)
38ArgumentNullException.ThrowIfNull(contentType); 72ArgumentNullException.ThrowIfNull(context);
ProducesResponseTypeAttribute.cs (1)
50ArgumentNullException.ThrowIfNull(contentType);
RedirectResult.cs (3)
27ArgumentNullException.ThrowIfNull(url); 50ArgumentNullException.ThrowIfNull(url); 91ArgumentNullException.ThrowIfNull(context);
RedirectToActionResult.cs (1)
169ArgumentNullException.ThrowIfNull(context);
RedirectToPageResult.cs (1)
207ArgumentNullException.ThrowIfNull(context);
RedirectToRouteResult.cs (1)
161ArgumentNullException.ThrowIfNull(context);
RequireHttpsAttribute.cs (1)
43ArgumentNullException.ThrowIfNull(filterContext);
ResponseCacheAttribute.cs (1)
120ArgumentNullException.ThrowIfNull(serviceProvider);
Routing\ActionConstraintMatcherPolicy.cs (1)
33ArgumentNullException.ThrowIfNull(endpoints);
Routing\ActionEndpointFactory.cs (12)
30ArgumentNullException.ThrowIfNull(routePatternTransformer); 50ArgumentNullException.ThrowIfNull(endpoints); 51ArgumentNullException.ThrowIfNull(routeNames); 52ArgumentNullException.ThrowIfNull(action); 53ArgumentNullException.ThrowIfNull(routes); 54ArgumentNullException.ThrowIfNull(conventions); 55ArgumentNullException.ThrowIfNull(groupConventions); 56ArgumentNullException.ThrowIfNull(finallyConventions); 57ArgumentNullException.ThrowIfNull(groupFinallyConventions); 185ArgumentNullException.ThrowIfNull(endpoints); 186ArgumentNullException.ThrowIfNull(keys); 187ArgumentNullException.ThrowIfNull(conventions);
Routing\AttributeRoute.cs (3)
28ArgumentNullException.ThrowIfNull(actionDescriptorCollectionProvider); 29ArgumentNullException.ThrowIfNull(services); 30ArgumentNullException.ThrowIfNull(handlerFactory);
Routing\AttributeRouting.cs (1)
19ArgumentNullException.ThrowIfNull(services);
Routing\ControllerLinkGeneratorExtensions.cs (10)
50ArgumentNullException.ThrowIfNull(generator); 51ArgumentNullException.ThrowIfNull(httpContext); 88ArgumentNullException.ThrowIfNull(generator); 89ArgumentNullException.ThrowIfNull(action); 90ArgumentNullException.ThrowIfNull(controller); 146ArgumentNullException.ThrowIfNull(generator); 147ArgumentNullException.ThrowIfNull(httpContext); 198ArgumentNullException.ThrowIfNull(generator); 199ArgumentNullException.ThrowIfNull(action); 200ArgumentNullException.ThrowIfNull(controller);
Routing\DynamicControllerEndpointMatcherPolicy.cs (5)
21ArgumentNullException.ThrowIfNull(selectorCache); 22ArgumentNullException.ThrowIfNull(comparer); 32ArgumentNullException.ThrowIfNull(endpoints); 60ArgumentNullException.ThrowIfNull(httpContext); 61ArgumentNullException.ThrowIfNull(candidates);
Routing\DynamicControllerEndpointSelector.cs (2)
16ArgumentNullException.ThrowIfNull(dataSource); 25ArgumentNullException.ThrowIfNull(values);
Routing\DynamicControllerMetadata.cs (1)
12ArgumentNullException.ThrowIfNull(values);
Routing\DynamicControllerRouteValueTransformerMetadata.cs (1)
12ArgumentNullException.ThrowIfNull(selectorType);
Routing\EndpointRoutingUrlHelper.cs (4)
28ArgumentNullException.ThrowIfNull(linkGenerator); 29ArgumentNullException.ThrowIfNull(endpointDataSource); 38ArgumentNullException.ThrowIfNull(urlActionContext); 79ArgumentNullException.ThrowIfNull(routeContext);
Routing\HttpMethodAttribute.cs (1)
37ArgumentNullException.ThrowIfNull(httpMethods);
Routing\KnownRouteValueConstraint.cs (4)
28ArgumentNullException.ThrowIfNull(actionDescriptorCollectionProvider); 41ArgumentNullException.ThrowIfNull(routeKey); 42ArgumentNullException.ThrowIfNull(values); 72ArgumentNullException.ThrowIfNull(httpContext);
Routing\MvcAttributeRouteHandler.cs (2)
36ArgumentNullException.ThrowIfNull(context); 44ArgumentNullException.ThrowIfNull(context);
Routing\MvcRouteHandler.cs (2)
33ArgumentNullException.ThrowIfNull(context); 41ArgumentNullException.ThrowIfNull(context);
Routing\NormalizedRouteValue.cs (2)
24ArgumentNullException.ThrowIfNull(context); 25ArgumentNullException.ThrowIfNull(key);
Routing\PageLinkGeneratorExtensions.cs (8)
49ArgumentNullException.ThrowIfNull(generator); 50ArgumentNullException.ThrowIfNull(httpContext); 91ArgumentNullException.ThrowIfNull(generator); 92ArgumentNullException.ThrowIfNull(page); 147ArgumentNullException.ThrowIfNull(generator); 148ArgumentNullException.ThrowIfNull(httpContext); 199ArgumentNullException.ThrowIfNull(generator); 200ArgumentNullException.ThrowIfNull(page);
Routing\RouteValueAttribute.cs (2)
33ArgumentNullException.ThrowIfNull(routeKey); 34ArgumentNullException.ThrowIfNull(routeValue);
Routing\UrlHelper.cs (2)
53ArgumentNullException.ThrowIfNull(actionContext); 66ArgumentNullException.ThrowIfNull(routeContext);
Routing\UrlHelperBase.cs (1)
31ArgumentNullException.ThrowIfNull(actionContext);
Routing\UrlHelperFactory.cs (1)
19ArgumentNullException.ThrowIfNull(context);
SerializableError.cs (1)
31ArgumentNullException.ThrowIfNull(modelState);
ServiceFilterAttribute.cs (1)
49ArgumentNullException.ThrowIfNull(serviceProvider);
SignInResult.cs (1)
80ArgumentNullException.ThrowIfNull(context);
SignOutResult.cs (1)
92ArgumentNullException.ThrowIfNull(context);
src\Http\Routing\src\DataSourceDependentCache.cs (2)
29ArgumentNullException.ThrowIfNull(dataSource); 30ArgumentNullException.ThrowIfNull(initialize);
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (8)
92ArgumentNullException.ThrowIfNull(context); 93ArgumentNullException.ThrowIfNull(key); 147ArgumentNullException.ThrowIfNull(context); 148ArgumentNullException.ThrowIfNull(key); 149ArgumentNullException.ThrowIfNull(options); 227ArgumentNullException.ThrowIfNull(context); 228ArgumentNullException.ThrowIfNull(key); 229ArgumentNullException.ThrowIfNull(options);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (2)
26ArgumentNullException.ThrowIfNull(sourceDictionary); 27ArgumentNullException.ThrowIfNull(comparer);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
19ArgumentNullException.ThrowIfNull(source);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
32ArgumentNullException.ThrowIfNull(methodInfo); 114ArgumentNullException.ThrowIfNull(parameterDefaultValues);
src\Shared\PropertyActivator\PropertyActivator.cs (9)
30ArgumentNullException.ThrowIfNull(instance); 42ArgumentNullException.ThrowIfNull(type); 43ArgumentNullException.ThrowIfNull(activateAttributeType); 44ArgumentNullException.ThrowIfNull(createActivateInfo); 55ArgumentNullException.ThrowIfNull(type); 56ArgumentNullException.ThrowIfNull(activateAttributeType); 57ArgumentNullException.ThrowIfNull(createActivateInfo); 69ArgumentNullException.ThrowIfNull(type); 70ArgumentNullException.ThrowIfNull(createActivateInfo);
StatusCodeResult.cs (1)
36ArgumentNullException.ThrowIfNull(context);
TypeFilterAttribute.cs (1)
62ArgumentNullException.ThrowIfNull(serviceProvider);
UrlHelperExtensions.cs (17)
22ArgumentNullException.ThrowIfNull(helper); 42ArgumentNullException.ThrowIfNull(helper); 57ArgumentNullException.ThrowIfNull(helper); 72ArgumentNullException.ThrowIfNull(helper); 88ArgumentNullException.ThrowIfNull(helper); 119ArgumentNullException.ThrowIfNull(helper); 154ArgumentNullException.ThrowIfNull(helper); 191ArgumentNullException.ThrowIfNull(helper); 212ArgumentNullException.ThrowIfNull(helper); 225ArgumentNullException.ThrowIfNull(helper); 240ArgumentNullException.ThrowIfNull(helper); 269ArgumentNullException.ThrowIfNull(helper); 302ArgumentNullException.ThrowIfNull(helper); 337ArgumentNullException.ThrowIfNull(helper); 476ArgumentNullException.ThrowIfNull(urlHelper); 523ArgumentNullException.ThrowIfNull(helper); 572ArgumentNullException.ThrowIfNull(urlHelper);
ValidationProblemDetails.cs (1)
35ArgumentNullException.ThrowIfNull(modelState);
VirtualFileResult.cs (1)
62ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Mvc.Core.Test (12)
AcceptedAtActionResultTests.cs (2)
224Assert.Throws<ArgumentNullException>("provider", () => result.OnFormatting(context)); 234Assert.Throws<ArgumentNullException>("context", () => result.OnFormatting(null));
Filters\MiddlewareFilterConfigurationProviderTest.cs (4)
121ArgumentNullException.ThrowIfNull(hostingEnvironment); 122ArgumentNullException.ThrowIfNull(loggerFactory); 138ArgumentNullException.ThrowIfNull(hostingEnvironment); 139ArgumentNullException.ThrowIfNull(loggerFactory);
Formatters\MediaTypeTest.cs (1)
108Assert.Throws<ArgumentNullException>("mediaType", () => new MediaType(null, 0, 2));
ModelBinding\DefaultModelBindingContextTest.cs (1)
188ArgumentNullException.ThrowIfNull(bindingContext);
ModelBinding\StubModelBinder.cs (1)
62ArgumentNullException.ThrowIfNull(bindingContext);
Routing\ControllerLinkGeneratorExtensionsTest.cs (3)
29exception = Assert.Throws<ArgumentNullException>(() => 33exception = Assert.Throws<ArgumentNullException>(() => 37exception = Assert.Throws<ArgumentNullException>(() =>
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProviderFactory.cs (1)
17ArgumentNullException.ThrowIfNull(valueProvider);
Microsoft.AspNetCore.Mvc.Cors (14)
CorsApplicationModelProvider.cs (2)
25ArgumentNullException.ThrowIfNull(context); 32ArgumentNullException.ThrowIfNull(context);
CorsAuthorizationFilter.cs (4)
43ArgumentNullException.ThrowIfNull(corsService); 44ArgumentNullException.ThrowIfNull(policyProvider); 45ArgumentNullException.ThrowIfNull(loggerFactory); 65ArgumentNullException.ThrowIfNull(context);
CorsAuthorizationFilterFactory.cs (1)
36ArgumentNullException.ThrowIfNull(serviceProvider);
CorsHttpMethodActionConstraint.cs (1)
22ArgumentNullException.ThrowIfNull(context);
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (5)
23ArgumentNullException.ThrowIfNull(builder); 39ArgumentNullException.ThrowIfNull(builder); 40ArgumentNullException.ThrowIfNull(setupAction); 58ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(setupAction);
DisableCorsAuthorizationFilter.cs (1)
24ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Mvc.DataAnnotations (46)
CompareAttributeAdapter.cs (2)
24ArgumentNullException.ThrowIfNull(context); 34ArgumentNullException.ThrowIfNull(validationContext);
DataAnnotationsClientModelValidatorProvider.cs (3)
36ArgumentNullException.ThrowIfNull(validationAttributeAdapterProvider); 37ArgumentNullException.ThrowIfNull(options); 47ArgumentNullException.ThrowIfNull(context);
DataAnnotationsMetadataProvider.cs (5)
33ArgumentNullException.ThrowIfNull(options); 34ArgumentNullException.ThrowIfNull(localizationOptions); 44ArgumentNullException.ThrowIfNull(context); 56ArgumentNullException.ThrowIfNull(context); 300ArgumentNullException.ThrowIfNull(context);
DataAnnotationsModelValidator.cs (3)
32ArgumentNullException.ThrowIfNull(validationAttributeAdapterProvider); 33ArgumentNullException.ThrowIfNull(attribute); 52ArgumentNullException.ThrowIfNull(validationContext);
DataAnnotationsModelValidatorProvider.cs (2)
36ArgumentNullException.ThrowIfNull(validationAttributeAdapterProvider); 37ArgumentNullException.ThrowIfNull(options);
DataTypeAttributeAdapter.cs (2)
28ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(validationContext);
DefaultClientModelValidatorProvider.cs (1)
20ArgumentNullException.ThrowIfNull(context);
DependencyInjection\MvcDataAnnotationsLocalizationOptionsSetup.cs (1)
17ArgumentNullException.ThrowIfNull(options);
DependencyInjection\MvcDataAnnotationsMvcBuilderExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(builder); 36ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\MvcDataAnnotationsMvcCoreBuilderExtensions.cs (3)
23ArgumentNullException.ThrowIfNull(builder); 36ArgumentNullException.ThrowIfNull(builder); 52ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\MvcDataAnnotationsMvcOptionsSetup.cs (3)
24ArgumentNullException.ThrowIfNull(validationAttributeAdapterProvider); 25ArgumentNullException.ThrowIfNull(dataAnnotationLocalizationOptions); 42ArgumentNullException.ThrowIfNull(options);
FileExtensionsAttributeAdapter.cs (2)
32ArgumentNullException.ThrowIfNull(context); 42ArgumentNullException.ThrowIfNull(validationContext);
MaxLengthAttributeAdapter.cs (2)
23ArgumentNullException.ThrowIfNull(context); 33ArgumentNullException.ThrowIfNull(validationContext);
MinLengthAttributeAdapter.cs (2)
23ArgumentNullException.ThrowIfNull(context); 33ArgumentNullException.ThrowIfNull(validationContext);
NumericClientModelValidator.cs (2)
18ArgumentNullException.ThrowIfNull(context); 34ArgumentNullException.ThrowIfNull(modelMetadata);
NumericClientModelValidatorProvider.cs (1)
17ArgumentNullException.ThrowIfNull(context);
RangeAttributeAdapter.cs (2)
32ArgumentNullException.ThrowIfNull(context); 43ArgumentNullException.ThrowIfNull(validationContext);
RegularExpressionAttributeAdapter.cs (2)
19ArgumentNullException.ThrowIfNull(context); 29ArgumentNullException.ThrowIfNull(validationContext);
RequiredAttributeAdapter.cs (2)
28ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(validationContext);
StringLengthAttributeAdapter.cs (2)
26ArgumentNullException.ThrowIfNull(context); 45ArgumentNullException.ThrowIfNull(validationContext);
ValidationAttributeAdapterOfTAttribute.cs (1)
67ArgumentNullException.ThrowIfNull(modelMetadata);
ValidationAttributeAdapterProvider.cs (1)
22ArgumentNullException.ThrowIfNull(attribute);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelValidationResultComparer.cs (1)
29ArgumentNullException.ThrowIfNull(obj);
Microsoft.AspNetCore.Mvc.Formatters.Xml (64)
DelegatingEnumerable.cs (1)
41ArgumentNullException.ThrowIfNull(source);
DelegatingEnumerator.cs (1)
28ArgumentNullException.ThrowIfNull(inner);
DependencyInjection\MvcXmlMvcBuilderExtensions.cs (7)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(setupAction); 39ArgumentNullException.ThrowIfNull(builder); 55ArgumentNullException.ThrowIfNull(builder); 56ArgumentNullException.ThrowIfNull(setupAction); 70ArgumentNullException.ThrowIfNull(builder); 86ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\MvcXmlMvcCoreBuilderExtensions.cs (7)
26ArgumentNullException.ThrowIfNull(builder); 27ArgumentNullException.ThrowIfNull(setupAction); 40ArgumentNullException.ThrowIfNull(builder); 56ArgumentNullException.ThrowIfNull(builder); 57ArgumentNullException.ThrowIfNull(setupAction); 71ArgumentNullException.ThrowIfNull(builder); 87ArgumentNullException.ThrowIfNull(builder);
EnumerableWrapperProvider.cs (1)
29ArgumentNullException.ThrowIfNull(sourceEnumerableOfT);
EnumerableWrapperProviderFactory.cs (2)
23ArgumentNullException.ThrowIfNull(wrapperProviderFactories); 36ArgumentNullException.ThrowIfNull(context);
ModelBinding\DataMemberRequiredBindingMetadataProvider.cs (1)
18ArgumentNullException.ThrowIfNull(context);
ProblemDetailsWrapper.cs (3)
48ArgumentNullException.ThrowIfNull(reader); 75ArgumentNullException.ThrowIfNull(reader); 174ArgumentNullException.ThrowIfNull(declaredType);
SerializableErrorWrapper.cs (2)
35ArgumentNullException.ThrowIfNull(error); 109ArgumentNullException.ThrowIfNull(declaredType);
SerializableErrorWrapperProvider.cs (1)
17ArgumentNullException.ThrowIfNull(original);
SerializableErrorWrapperProviderFactory.cs (1)
24ArgumentNullException.ThrowIfNull(context);
ValidationProblemDetailsWrapper.cs (3)
41ArgumentNullException.ThrowIfNull(reader); 78ArgumentNullException.ThrowIfNull(writer); 111ArgumentNullException.ThrowIfNull(declaredType);
WrapperProviderContext.cs (1)
19ArgumentNullException.ThrowIfNull(declaredType);
WrapperProviderFactoriesExtensions.cs (2)
23ArgumentNullException.ThrowIfNull(wrapperProviderFactories); 24ArgumentNullException.ThrowIfNull(wrapperProviderContext);
XmlDataContractSerializerInputFormatter.cs (9)
79ArgumentNullException.ThrowIfNull(value); 101ArgumentNullException.ThrowIfNull(context); 102ArgumentNullException.ThrowIfNull(encoding); 175ArgumentNullException.ThrowIfNull(type); 188ArgumentNullException.ThrowIfNull(readStream); 189ArgumentNullException.ThrowIfNull(encoding); 201ArgumentNullException.ThrowIfNull(declaredType); 216ArgumentNullException.ThrowIfNull(type); 237ArgumentNullException.ThrowIfNull(type);
XmlDataContractSerializerOutputFormatter.cs (8)
66ArgumentNullException.ThrowIfNull(writerSettings); 108ArgumentNullException.ThrowIfNull(value); 121ArgumentNullException.ThrowIfNull(type); 148ArgumentNullException.ThrowIfNull(type); 183ArgumentNullException.ThrowIfNull(writer); 184ArgumentNullException.ThrowIfNull(xmlWriterSettings); 215ArgumentNullException.ThrowIfNull(context); 216ArgumentNullException.ThrowIfNull(selectedEncoding);
XmlSerializerInputFormatter.cs (7)
85ArgumentNullException.ThrowIfNull(context); 86ArgumentNullException.ThrowIfNull(encoding); 171ArgumentNullException.ThrowIfNull(type); 183ArgumentNullException.ThrowIfNull(declaredType); 211ArgumentNullException.ThrowIfNull(readStream); 212ArgumentNullException.ThrowIfNull(encoding); 242ArgumentNullException.ThrowIfNull(type);
XmlSerializerOutputFormatter.cs (7)
65ArgumentNullException.ThrowIfNull(writerSettings); 103ArgumentNullException.ThrowIfNull(type); 130ArgumentNullException.ThrowIfNull(type); 162ArgumentNullException.ThrowIfNull(writer); 163ArgumentNullException.ThrowIfNull(xmlWriterSettings); 194ArgumentNullException.ThrowIfNull(context); 195ArgumentNullException.ThrowIfNull(selectedEncoding);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Infrastructure\MvcWebApplicationBuilderExtensions.cs (2)
24ArgumentNullException.ThrowIfNull(culture); 25ArgumentNullException.ThrowIfNull(uiCulture);
src\Shared\SizeLimitedStream.cs (1)
15ArgumentNullException.ThrowIfNull(innerStream);
Microsoft.AspNetCore.Mvc.IntegrationTests (7)
BinderTypeBasedModelBinderIntegrationTest.cs (5)
320ArgumentNullException.ThrowIfNull(bindingContext); 345ArgumentNullException.ThrowIfNull(bindingContext); 370ArgumentNullException.ThrowIfNull(bindingContext); 388ArgumentNullException.ThrowIfNull(bindingContext); 400ArgumentNullException.ThrowIfNull(bindingContext);
ExcludeBindingMetadataProviderIntegrationTest.cs (1)
133ArgumentNullException.ThrowIfNull(context);
GenericModelBinderIntegrationTest.cs (1)
168ArgumentNullException.ThrowIfNull(bindingContext);
Microsoft.AspNetCore.Mvc.Localization (52)
DependencyInjection\MvcLocalizationMvcBuilderExtensions.cs (12)
23ArgumentNullException.ThrowIfNull(builder); 38ArgumentNullException.ThrowIfNull(builder); 54ArgumentNullException.ThrowIfNull(builder); 72ArgumentNullException.ThrowIfNull(builder); 90ArgumentNullException.ThrowIfNull(builder); 114ArgumentNullException.ThrowIfNull(builder); 138ArgumentNullException.ThrowIfNull(builder); 165ArgumentNullException.ThrowIfNull(builder); 190ArgumentNullException.ThrowIfNull(builder); 218ArgumentNullException.ThrowIfNull(builder); 245ArgumentNullException.ThrowIfNull(builder); 275ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\MvcLocalizationMvcCoreBuilderExtensions.cs (12)
28ArgumentNullException.ThrowIfNull(builder); 48ArgumentNullException.ThrowIfNull(builder); 72ArgumentNullException.ThrowIfNull(builder); 94ArgumentNullException.ThrowIfNull(builder); 115ArgumentNullException.ThrowIfNull(builder); 139ArgumentNullException.ThrowIfNull(builder); 163ArgumentNullException.ThrowIfNull(builder); 190ArgumentNullException.ThrowIfNull(builder); 215ArgumentNullException.ThrowIfNull(builder); 243ArgumentNullException.ThrowIfNull(builder); 270ArgumentNullException.ThrowIfNull(builder); 300ArgumentNullException.ThrowIfNull(builder);
HtmlLocalizer.cs (5)
22ArgumentNullException.ThrowIfNull(localizer); 32ArgumentNullException.ThrowIfNull(name); 43ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(name); 60ArgumentNullException.ThrowIfNull(name);
HtmlLocalizerExtensions.cs (5)
21ArgumentNullException.ThrowIfNull(htmlLocalizer); 22ArgumentNullException.ThrowIfNull(name); 36ArgumentNullException.ThrowIfNull(htmlLocalizer); 37ArgumentNullException.ThrowIfNull(name); 49ArgumentNullException.ThrowIfNull(htmlLocalizer);
HtmlLocalizerFactory.cs (4)
22ArgumentNullException.ThrowIfNull(localizerFactory); 34ArgumentNullException.ThrowIfNull(resourceSource); 47ArgumentNullException.ThrowIfNull(baseName); 48ArgumentNullException.ThrowIfNull(location);
HtmlLocalizerOfT.cs (4)
31ArgumentNullException.ThrowIfNull(name); 42ArgumentNullException.ThrowIfNull(name); 51ArgumentNullException.ThrowIfNull(name); 59ArgumentNullException.ThrowIfNull(name);
LocalizedHtmlString.cs (5)
46ArgumentNullException.ThrowIfNull(name); 47ArgumentNullException.ThrowIfNull(value); 48ArgumentNullException.ThrowIfNull(arguments); 74ArgumentNullException.ThrowIfNull(writer); 75ArgumentNullException.ThrowIfNull(encoder);
ViewLocalizer.cs (5)
30ArgumentNullException.ThrowIfNull(localizerFactory); 31ArgumentNullException.ThrowIfNull(hostingEnvironment); 47ArgumentNullException.ThrowIfNull(key); 58ArgumentNullException.ThrowIfNull(key); 80ArgumentNullException.ThrowIfNull(viewContext);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (54)
DependencyInjection\MvcNewtonsoftJsonOptionsExtensions.cs (2)
28ArgumentNullException.ThrowIfNull(options); 63ArgumentNullException.ThrowIfNull(options);
DependencyInjection\NewtonsoftJsonMvcBuilderExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(builder); 36ArgumentNullException.ThrowIfNull(builder); 37ArgumentNullException.ThrowIfNull(setupAction);
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (3)
29ArgumentNullException.ThrowIfNull(builder); 45ArgumentNullException.ThrowIfNull(builder); 46ArgumentNullException.ThrowIfNull(setupAction);
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (4)
33ArgumentNullException.ThrowIfNull(loggerFactory); 34ArgumentNullException.ThrowIfNull(jsonOptions); 35ArgumentNullException.ThrowIfNull(charPool); 36ArgumentNullException.ThrowIfNull(objectPoolProvider);
JsonArrayPool.cs (2)
15ArgumentNullException.ThrowIfNull(inner); 27ArgumentNullException.ThrowIfNull(array);
JsonHelperExtensions.cs (3)
34ArgumentNullException.ThrowIfNull(jsonHelper); 47ArgumentNullException.ThrowIfNull(value); 48ArgumentNullException.ThrowIfNull(serializerSettings);
JsonPatchExtensions.cs (6)
25ArgumentNullException.ThrowIfNull(patchDoc); 26ArgumentNullException.ThrowIfNull(objectToApplyTo); 27ArgumentNullException.ThrowIfNull(modelState); 45ArgumentNullException.ThrowIfNull(patchDoc); 46ArgumentNullException.ThrowIfNull(objectToApplyTo); 47ArgumentNullException.ThrowIfNull(modelState);
JsonPatchOperationsArrayProvider.cs (1)
38ArgumentNullException.ThrowIfNull(context);
NewtonsoftJsonHelper.cs (3)
32ArgumentNullException.ThrowIfNull(options); 33ArgumentNullException.ThrowIfNull(charPool); 46ArgumentNullException.ThrowIfNull(serializerSettings);
NewtonsoftJsonInputFormatter.cs (6)
51ArgumentNullException.ThrowIfNull(logger); 52ArgumentNullException.ThrowIfNull(serializerSettings); 53ArgumentNullException.ThrowIfNull(charPool); 54ArgumentNullException.ThrowIfNull(objectPoolProvider); 98ArgumentNullException.ThrowIfNull(context); 99ArgumentNullException.ThrowIfNull(encoding);
NewtonsoftJsonOutputFormatter.cs (5)
61ArgumentNullException.ThrowIfNull(serializerSettings); 62ArgumentNullException.ThrowIfNull(charPool); 94ArgumentNullException.ThrowIfNull(writer); 136ArgumentNullException.ThrowIfNull(context); 137ArgumentNullException.ThrowIfNull(selectedEncoding);
NewtonsoftJsonPatchInputFormatter.cs (3)
65ArgumentNullException.ThrowIfNull(context); 66ArgumentNullException.ThrowIfNull(encoding); 83ArgumentNullException.ThrowIfNull(context);
NewtonsoftJsonResultExecutor.cs (6)
49ArgumentNullException.ThrowIfNull(writerFactory); 50ArgumentNullException.ThrowIfNull(logger); 51ArgumentNullException.ThrowIfNull(jsonOptions); 52ArgumentNullException.ThrowIfNull(charPool); 70ArgumentNullException.ThrowIfNull(context); 71ArgumentNullException.ThrowIfNull(result);
NewtonsoftJsonValidationMetadataProvider.cs (3)
32ArgumentNullException.ThrowIfNull(namingStrategy); 40ArgumentNullException.ThrowIfNull(context); 53ArgumentNullException.ThrowIfNull(context);
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.Mvc.Razor (77)
ApplicationParts\CompiledRazorAssemblyApplicationPartFactory.cs (1)
23ArgumentNullException.ThrowIfNull(assembly);
Compilation\CompiledViewDescriptor.cs (1)
27ArgumentNullException.ThrowIfNull(item);
Compilation\DefaultRazorPageFactoryProvider.cs (1)
30ArgumentNullException.ThrowIfNull(relativePath);
Compilation\DefaultViewCompiler.cs (1)
90ArgumentNullException.ThrowIfNull(relativePath);
DefaultTagHelperFactory.cs (2)
32ArgumentNullException.ThrowIfNull(activator); 52ArgumentNullException.ThrowIfNull(context);
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (5)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(setupAction); 40ArgumentNullException.ThrowIfNull(builder); 62ArgumentNullException.ThrowIfNull(builder); 63ArgumentNullException.ThrowIfNull(initialize);
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (6)
33ArgumentNullException.ThrowIfNull(builder); 51ArgumentNullException.ThrowIfNull(builder); 52ArgumentNullException.ThrowIfNull(setupAction); 85ArgumentNullException.ThrowIfNull(builder); 107ArgumentNullException.ThrowIfNull(builder); 108ArgumentNullException.ThrowIfNull(initialize);
DependencyInjection\MvcRazorMvcViewOptionsSetup.cs (2)
23ArgumentNullException.ThrowIfNull(razorViewEngine); 34ArgumentNullException.ThrowIfNull(options);
DependencyInjection\TagHelpersAsServices.cs (2)
16ArgumentNullException.ThrowIfNull(manager); 17ArgumentNullException.ThrowIfNull(services);
HelperResult.cs (3)
25ArgumentNullException.ThrowIfNull(asyncAction); 42ArgumentNullException.ThrowIfNull(writer); 43ArgumentNullException.ThrowIfNull(encoder);
Infrastructure\DefaultFileVersionProvider.cs (3)
25ArgumentNullException.ThrowIfNull(hostingEnvironment); 26ArgumentNullException.ThrowIfNull(cacheProvider); 38ArgumentNullException.ThrowIfNull(path);
Infrastructure\DefaultTagHelperActivator.cs (1)
19ArgumentNullException.ThrowIfNull(context);
LanguageViewLocationExpander.cs (3)
45ArgumentNullException.ThrowIfNull(context); 56ArgumentNullException.ThrowIfNull(context); 57ArgumentNullException.ThrowIfNull(viewLocations);
RazorPage.cs (8)
57ArgumentNullException.ThrowIfNull(name); 58ArgumentNullException.ThrowIfNull(section); 74ArgumentNullException.ThrowIfNull(name); 90ArgumentNullException.ThrowIfNull(name); 106ArgumentNullException.ThrowIfNull(name); 126ArgumentNullException.ThrowIfNull(name); 147ArgumentNullException.ThrowIfNull(name); 194ArgumentNullException.ThrowIfNull(sectionName);
RazorPageActivator.cs (2)
60ArgumentNullException.ThrowIfNull(page); 61ArgumentNullException.ThrowIfNull(context);
RazorPageBase.cs (6)
323ArgumentNullException.ThrowIfNull(writer); 350ArgumentNullException.ThrowIfNull(contentPath); 382ArgumentNullException.ThrowIfNull(name); 383ArgumentNullException.ThrowIfNull(section); 492ArgumentNullException.ThrowIfNull(prefix); 493ArgumentNullException.ThrowIfNull(suffix);
RazorPagePropertyActivator.cs (1)
46ArgumentNullException.ThrowIfNull(context);
RazorPageResult.cs (4)
18ArgumentNullException.ThrowIfNull(name); 19ArgumentNullException.ThrowIfNull(page); 33ArgumentNullException.ThrowIfNull(name); 34ArgumentNullException.ThrowIfNull(searchedLocations);
RazorView.cs (7)
45ArgumentNullException.ThrowIfNull(viewEngine); 46ArgumentNullException.ThrowIfNull(pageActivator); 47ArgumentNullException.ThrowIfNull(viewStartPages); 48ArgumentNullException.ThrowIfNull(razorPage); 49ArgumentNullException.ThrowIfNull(htmlEncoder); 50ArgumentNullException.ThrowIfNull(diagnosticListener); 78ArgumentNullException.ThrowIfNull(context);
RazorViewEngine.cs (2)
109ArgumentNullException.ThrowIfNull(context); 156ArgumentNullException.ThrowIfNull(context);
RazorViewEngineOptionsSetup.cs (1)
12ArgumentNullException.ThrowIfNull(options);
ServiceBasedTagHelperActivator.cs (1)
19ArgumentNullException.ThrowIfNull(context);
TagHelperComponentManager.cs (1)
20ArgumentNullException.ThrowIfNull(tagHelperComponents);
TagHelperInitializerOfT.cs (2)
21ArgumentNullException.ThrowIfNull(action); 34ArgumentNullException.ThrowIfNull(context);
TagHelpers\TagHelperComponentPropertyActivator.cs (1)
30ArgumentNullException.ThrowIfNull(context);
TagHelpers\TagHelperComponentTagHelper.cs (2)
36ArgumentNullException.ThrowIfNull(manager); 37ArgumentNullException.ThrowIfNull(loggerFactory);
TagHelpers\UrlResolutionTagHelper.cs (4)
119ArgumentNullException.ThrowIfNull(context); 120ArgumentNullException.ThrowIfNull(output); 148ArgumentNullException.ThrowIfNull(attributeName); 149ArgumentNullException.ThrowIfNull(output);
ViewLocationCacheResult.cs (2)
21ArgumentNullException.ThrowIfNull(viewStarts); 35ArgumentNullException.ThrowIfNull(searchedLocations);
ViewLocationExpanderContext.cs (2)
28ArgumentNullException.ThrowIfNull(actionContext); 29ArgumentNullException.ThrowIfNull(viewName);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (28)
ChecksumValidator.cs (4)
16ArgumentNullException.ThrowIfNull(item); 30ArgumentNullException.ThrowIfNull(fileSystem); 31ArgumentNullException.ThrowIfNull(item); 96ArgumentNullException.ThrowIfNull(projectItem);
CompilationFailedException.cs (1)
15ArgumentNullException.ThrowIfNull(compilationFailures);
DependencyInjection\MvcRazorRuntimeCompilationOptionsSetup.cs (1)
20ArgumentNullException.ThrowIfNull(options);
DependencyInjection\RazorRuntimeCompilationMvcBuilderExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(builder); 34ArgumentNullException.ThrowIfNull(builder); 35ArgumentNullException.ThrowIfNull(setupAction);
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (3)
32ArgumentNullException.ThrowIfNull(builder); 46ArgumentNullException.ThrowIfNull(builder); 47ArgumentNullException.ThrowIfNull(setupAction);
FileProviderRazorProjectFileSystem.cs (2)
18ArgumentNullException.ThrowIfNull(fileProvider); 19ArgumentNullException.ThrowIfNull(hostingEnvironment);
PageActionDescriptorChangeProvider.cs (3)
25ArgumentNullException.ThrowIfNull(projectEngine); 26ArgumentNullException.ThrowIfNull(fileProvider); 27ArgumentNullException.ThrowIfNull(razorPagesOptions);
PageDirectiveFeature.cs (1)
34ArgumentNullException.ThrowIfNull(projectItem);
PageLoaderMatcherPolicy.cs (3)
35ArgumentNullException.ThrowIfNull(endpoints); 57ArgumentNullException.ThrowIfNull(httpContext); 58ArgumentNullException.ThrowIfNull(candidates);
RuntimeCompilationFileProvider.cs (1)
16ArgumentNullException.ThrowIfNull(options);
RuntimeViewCompiler.cs (6)
42ArgumentNullException.ThrowIfNull(fileProvider); 43ArgumentNullException.ThrowIfNull(projectEngine); 44ArgumentNullException.ThrowIfNull(csharpCompiler); 45ArgumentNullException.ThrowIfNull(precompiledViews); 46ArgumentNullException.ThrowIfNull(logger); 87ArgumentNullException.ThrowIfNull(relativePath);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
TestInfrastructure\VirtualRazorProjectFileSystem.cs (1)
33ArgumentNullException.ThrowIfNull(projectItem);
Microsoft.AspNetCore.Mvc.RazorPages (190)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (1)
29ArgumentNullException.ThrowIfNull(context);
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (1)
20ArgumentNullException.ThrowIfNull(context);
ApplicationModels\CompiledPageRouteModelProvider.cs (3)
38ArgumentNullException.ThrowIfNull(context); 45ArgumentNullException.ThrowIfNull(context); 50ArgumentNullException.ThrowIfNull(applicationManager);
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (3)
35ArgumentNullException.ThrowIfNull(method); 77ArgumentNullException.ThrowIfNull(parameter); 106ArgumentNullException.ThrowIfNull(property);
ApplicationModels\DefaultPageApplicationModelProvider.cs (3)
44ArgumentNullException.ThrowIfNull(context); 64ArgumentNullException.ThrowIfNull(actionDescriptor); 65ArgumentNullException.ThrowIfNull(pageTypeInfo);
ApplicationModels\PageApplicationModel.cs (1)
57ArgumentNullException.ThrowIfNull(other);
ApplicationModels\PageConventionCollection.cs (8)
65ArgumentNullException.ThrowIfNull(action); 93ArgumentNullException.ThrowIfNull(action); 109ArgumentNullException.ThrowIfNull(action); 137ArgumentNullException.ThrowIfNull(action); 153ArgumentNullException.ThrowIfNull(action); 178ArgumentNullException.ThrowIfNull(action); 194ArgumentNullException.ThrowIfNull(action); 219ArgumentNullException.ThrowIfNull(action);
ApplicationModels\PageHandlerModel.cs (1)
38ArgumentNullException.ThrowIfNull(other);
ApplicationModels\PageParameterModel.cs (3)
25ArgumentNullException.ThrowIfNull(parameterInfo); 26ArgumentNullException.ThrowIfNull(attributes); 38ArgumentNullException.ThrowIfNull(other);
ApplicationModels\PagePropertyModel.cs (1)
36ArgumentNullException.ThrowIfNull(other);
ApplicationModels\PageRouteModel.cs (1)
48ArgumentNullException.ThrowIfNull(other);
ApplicationModels\PageRouteTransformerConvention.cs (1)
23ArgumentNullException.ThrowIfNull(parameterTransformer);
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (2)
18ArgumentNullException.ThrowIfNull(mvcOptionsAccessor); 29ArgumentNullException.ThrowIfNull(context);
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (1)
28ArgumentNullException.ThrowIfNull(context);
ApplicationModels\ViewDataAttributePageApplicationModelProvider.cs (1)
23ArgumentNullException.ThrowIfNull(context);
Builder\PageActionEndpointConventionBuilder.cs (2)
34ArgumentNullException.ThrowIfNull(convention); 47ArgumentNullException.ThrowIfNull(finalConvention);
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
28ArgumentNullException.ThrowIfNull(builder);
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (15)
29ArgumentNullException.ThrowIfNull(endpoints); 67ArgumentNullException.ThrowIfNull(endpoints); 68ArgumentNullException.ThrowIfNull(page); 124ArgumentNullException.ThrowIfNull(endpoints); 125ArgumentNullException.ThrowIfNull(pattern); 126ArgumentNullException.ThrowIfNull(page); 179ArgumentNullException.ThrowIfNull(endpoints); 180ArgumentNullException.ThrowIfNull(page); 238ArgumentNullException.ThrowIfNull(endpoints); 239ArgumentNullException.ThrowIfNull(pattern); 240ArgumentNullException.ThrowIfNull(page); 307ArgumentNullException.ThrowIfNull(endpoints); 308ArgumentNullException.ThrowIfNull(pattern); 341ArgumentNullException.ThrowIfNull(endpoints); 342ArgumentNullException.ThrowIfNull(pattern);
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (4)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(setupAction); 40ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (4)
32ArgumentNullException.ThrowIfNull(builder); 51ArgumentNullException.ThrowIfNull(builder); 52ArgumentNullException.ThrowIfNull(setupAction); 71ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\PageConventionCollectionExtensions.cs (18)
27ArgumentNullException.ThrowIfNull(conventions); 28ArgumentNullException.ThrowIfNull(factory); 41ArgumentNullException.ThrowIfNull(conventions); 42ArgumentNullException.ThrowIfNull(filter); 57ArgumentNullException.ThrowIfNull(conventions); 58ArgumentNullException.ThrowIfNull(convention); 73ArgumentNullException.ThrowIfNull(conventions); 108ArgumentNullException.ThrowIfNull(conventions); 134ArgumentNullException.ThrowIfNull(conventions); 169ArgumentNullException.ThrowIfNull(conventions); 196ArgumentNullException.ThrowIfNull(conventions); 258ArgumentNullException.ThrowIfNull(conventions); 285ArgumentNullException.ThrowIfNull(conventions); 347ArgumentNullException.ThrowIfNull(conventions); 378ArgumentNullException.ThrowIfNull(conventions); 380ArgumentNullException.ThrowIfNull(route); 412ArgumentNullException.ThrowIfNull(conventions); 415ArgumentNullException.ThrowIfNull(route);
DependencyInjection\RazorPagesOptionsSetup.cs (1)
21ArgumentNullException.ThrowIfNull(options);
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (1)
23ArgumentNullException.ThrowIfNull(options);
Filters\PageHandlerExecutedContext.cs (1)
34ArgumentNullException.ThrowIfNull(handlerInstance);
Filters\PageHandlerExecutingContext.cs (2)
32ArgumentNullException.ThrowIfNull(handlerArguments); 33ArgumentNullException.ThrowIfNull(handlerInstance);
Filters\PageHandlerPageFilter.cs (3)
17ArgumentNullException.ThrowIfNull(context); 18ArgumentNullException.ThrowIfNull(next); 44ArgumentNullException.ThrowIfNull(context);
Filters\PageHandlerResultFIlter.cs (2)
17ArgumentNullException.ThrowIfNull(context); 18ArgumentNullException.ThrowIfNull(next);
Filters\PageHandlerSelectedContext.cs (1)
28ArgumentNullException.ThrowIfNull(handlerInstance);
Filters\PageResponseCacheFilter.cs (1)
88ArgumentNullException.ThrowIfNull(context);
Filters\PageSaveTempDataPropertyFilterFactory.cs (1)
22ArgumentNullException.ThrowIfNull(serviceProvider);
Infrastructure\DefaultPageActivatorProvider.cs (9)
22ArgumentNullException.ThrowIfNull(actionDescriptor); 38ArgumentNullException.ThrowIfNull(actionDescriptor); 50ArgumentNullException.ThrowIfNull(actionDescriptor); 82ArgumentNullException.ThrowIfNull(context); 83ArgumentNullException.ThrowIfNull(viewContext); 84ArgumentNullException.ThrowIfNull(page); 97ArgumentNullException.ThrowIfNull(context); 98ArgumentNullException.ThrowIfNull(viewContext); 99ArgumentNullException.ThrowIfNull(page);
Infrastructure\DefaultPageFactoryProvider.cs (2)
72ArgumentNullException.ThrowIfNull(descriptor); 79ArgumentNullException.ThrowIfNull(descriptor);
Infrastructure\DefaultPageLoader.cs (1)
40ArgumentNullException.ThrowIfNull(actionDescriptor);
Infrastructure\DefaultPageModelActivatorProvider.cs (7)
21ArgumentNullException.ThrowIfNull(actionDescriptor); 38ArgumentNullException.ThrowIfNull(actionDescriptor); 50ArgumentNullException.ThrowIfNull(actionDescriptor); 67ArgumentNullException.ThrowIfNull(context); 68ArgumentNullException.ThrowIfNull(page); 75ArgumentNullException.ThrowIfNull(context); 76ArgumentNullException.ThrowIfNull(page);
Infrastructure\DefaultPageModelFactoryProvider.cs (3)
22ArgumentNullException.ThrowIfNull(descriptor); 50ArgumentNullException.ThrowIfNull(descriptor); 62ArgumentNullException.ThrowIfNull(descriptor);
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (6)
22ArgumentNullException.ThrowIfNull(selectorCache); 23ArgumentNullException.ThrowIfNull(loader); 24ArgumentNullException.ThrowIfNull(comparer); 35ArgumentNullException.ThrowIfNull(endpoints); 63ArgumentNullException.ThrowIfNull(httpContext); 64ArgumentNullException.ThrowIfNull(candidates);
Infrastructure\DynamicPageEndpointSelector.cs (2)
17ArgumentNullException.ThrowIfNull(dataSource); 27ArgumentNullException.ThrowIfNull(values);
Infrastructure\DynamicPageMetadata.cs (1)
12ArgumentNullException.ThrowIfNull(values);
Infrastructure\DynamicPageRouteValueTransformerMetadata.cs (1)
13ArgumentNullException.ThrowIfNull(selectorType);
Infrastructure\ExecutorFactory.cs (1)
15ArgumentNullException.ThrowIfNull(handlerDescriptor);
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
37ArgumentNullException.ThrowIfNull(context);
Infrastructure\PageActionInvokerProvider.cs (1)
63ArgumentNullException.ThrowIfNull(context);
Infrastructure\PageBinderFactory.cs (2)
19ArgumentNullException.ThrowIfNull(parameterBinder); 20ArgumentNullException.ThrowIfNull(actionDescriptor);
Infrastructure\PageResultExecutor.cs (2)
53ArgumentNullException.ThrowIfNull(pageContext); 54ArgumentNullException.ThrowIfNull(result);
Infrastructure\ServiceBasedPageModelActivatorProvider.cs (1)
16ArgumentNullException.ThrowIfNull(descriptor);
PageActionDescriptor.cs (2)
28ArgumentNullException.ThrowIfNull(other); 79ArgumentNullException.ThrowIfNull(value);
PageBase.cs (25)
145ArgumentNullException.ThrowIfNull(modelState); 1280ArgumentNullException.ThrowIfNull(model); 1299ArgumentNullException.ThrowIfNull(model); 1300ArgumentNullException.ThrowIfNull(prefix); 1327ArgumentNullException.ThrowIfNull(model); 1328ArgumentNullException.ThrowIfNull(prefix); 1329ArgumentNullException.ThrowIfNull(valueProvider); 1358ArgumentNullException.ThrowIfNull(model); 1359ArgumentNullException.ThrowIfNull(includeExpressions); 1394ArgumentNullException.ThrowIfNull(model); 1395ArgumentNullException.ThrowIfNull(propertyFilter); 1433ArgumentNullException.ThrowIfNull(model); 1434ArgumentNullException.ThrowIfNull(valueProvider); 1435ArgumentNullException.ThrowIfNull(includeExpressions); 1466ArgumentNullException.ThrowIfNull(model); 1467ArgumentNullException.ThrowIfNull(valueProvider); 1468ArgumentNullException.ThrowIfNull(propertyFilter); 1495ArgumentNullException.ThrowIfNull(model); 1496ArgumentNullException.ThrowIfNull(modelType); 1533ArgumentNullException.ThrowIfNull(model); 1534ArgumentNullException.ThrowIfNull(modelType); 1535ArgumentNullException.ThrowIfNull(valueProvider); 1536ArgumentNullException.ThrowIfNull(propertyFilter); 1558ArgumentNullException.ThrowIfNull(model); 1574ArgumentNullException.ThrowIfNull(model);
PageContext.cs (4)
66ArgumentNullException.ThrowIfNull(value); 89ArgumentNullException.ThrowIfNull(value); 103ArgumentNullException.ThrowIfNull(value); 117ArgumentNullException.ThrowIfNull(value);
PageModel.cs (31)
52ArgumentNullException.ThrowIfNull(value); 105ArgumentNullException.ThrowIfNull(value); 128ArgumentNullException.ThrowIfNull(value); 188ArgumentNullException.ThrowIfNull(model); 204ArgumentNullException.ThrowIfNull(model); 205ArgumentNullException.ThrowIfNull(name); 232ArgumentNullException.ThrowIfNull(model); 233ArgumentNullException.ThrowIfNull(name); 234ArgumentNullException.ThrowIfNull(valueProvider); 263ArgumentNullException.ThrowIfNull(model); 264ArgumentNullException.ThrowIfNull(includeExpressions); 299ArgumentNullException.ThrowIfNull(model); 300ArgumentNullException.ThrowIfNull(propertyFilter); 338ArgumentNullException.ThrowIfNull(model); 339ArgumentNullException.ThrowIfNull(valueProvider); 340ArgumentNullException.ThrowIfNull(includeExpressions); 371ArgumentNullException.ThrowIfNull(model); 372ArgumentNullException.ThrowIfNull(valueProvider); 373ArgumentNullException.ThrowIfNull(propertyFilter); 400ArgumentNullException.ThrowIfNull(model); 401ArgumentNullException.ThrowIfNull(modelType); 438ArgumentNullException.ThrowIfNull(model); 439ArgumentNullException.ThrowIfNull(modelType); 440ArgumentNullException.ThrowIfNull(valueProvider); 441ArgumentNullException.ThrowIfNull(propertyFilter); 477ArgumentNullException.ThrowIfNull(modelState); 1635ArgumentNullException.ThrowIfNull(model); 1651ArgumentNullException.ThrowIfNull(model); 1693ArgumentNullException.ThrowIfNull(context); 1709ArgumentNullException.ThrowIfNull(context); 1710ArgumentNullException.ThrowIfNull(next);
Microsoft.AspNetCore.Mvc.TagHelpers (75)
AnchorTagHelper.cs (2)
165ArgumentNullException.ThrowIfNull(context); 166ArgumentNullException.ThrowIfNull(output);
AttributeMatcher.cs (3)
29ArgumentNullException.ThrowIfNull(context); 30ArgumentNullException.ThrowIfNull(modeInfos); 31ArgumentNullException.ThrowIfNull(compare);
Cache\DistributedCacheTagHelperFormatter.cs (2)
18ArgumentNullException.ThrowIfNull(context); 35ArgumentNullException.ThrowIfNull(value);
Cache\DistributedCacheTagHelperService.cs (4)
52ArgumentNullException.ThrowIfNull(storage); 53ArgumentNullException.ThrowIfNull(formatter); 54ArgumentNullException.ThrowIfNull(HtmlEncoder); 55ArgumentNullException.ThrowIfNull(loggerFactory);
Cache\DistributedCacheTagHelperStorage.cs (3)
28ArgumentNullException.ThrowIfNull(key); 36ArgumentNullException.ThrowIfNull(key); 37ArgumentNullException.ThrowIfNull(value);
CacheTagHelper.cs (2)
63ArgumentNullException.ThrowIfNull(context); 64ArgumentNullException.ThrowIfNull(output);
ComponentTagHelper.cs (2)
88ArgumentNullException.ThrowIfNull(context); 89ArgumentNullException.ThrowIfNull(output);
DependencyInjection\TagHelperExtensions.cs (5)
22ArgumentNullException.ThrowIfNull(builder); 37ArgumentNullException.ThrowIfNull(builder); 38ArgumentNullException.ThrowIfNull(configure); 53ArgumentNullException.ThrowIfNull(builder); 54ArgumentNullException.ThrowIfNull(configure);
DistributedCacheTagHelper.cs (2)
55ArgumentNullException.ThrowIfNull(context); 56ArgumentNullException.ThrowIfNull(output);
EnvironmentTagHelper.cs (2)
69ArgumentNullException.ThrowIfNull(context); 70ArgumentNullException.ThrowIfNull(output);
FileProviderGlobbingDirectory.cs (1)
22ArgumentNullException.ThrowIfNull(fileProvider);
FileProviderGlobbingFile.cs (2)
15ArgumentNullException.ThrowIfNull(fileInfo); 16ArgumentNullException.ThrowIfNull(parent);
FormActionTagHelper.cs (2)
180ArgumentNullException.ThrowIfNull(context); 181ArgumentNullException.ThrowIfNull(output);
FormTagHelper.cs (2)
150ArgumentNullException.ThrowIfNull(context); 151ArgumentNullException.ThrowIfNull(output);
GlobbingUrlBuilder.cs (2)
35ArgumentNullException.ThrowIfNull(fileProvider); 36ArgumentNullException.ThrowIfNull(cache);
ImageTagHelper.cs (2)
112ArgumentNullException.ThrowIfNull(context); 113ArgumentNullException.ThrowIfNull(output);
InputTagHelper.cs (2)
153ArgumentNullException.ThrowIfNull(context); 154ArgumentNullException.ThrowIfNull(output);
LabelTagHelper.cs (2)
52ArgumentNullException.ThrowIfNull(context); 53ArgumentNullException.ThrowIfNull(output);
LinkTagHelper.cs (2)
250ArgumentNullException.ThrowIfNull(context); 251ArgumentNullException.ThrowIfNull(output);
OptionTagHelper.cs (2)
61ArgumentNullException.ThrowIfNull(context); 62ArgumentNullException.ThrowIfNull(output);
PartialTagHelper.cs (2)
106ArgumentNullException.ThrowIfNull(context); 107ArgumentNullException.ThrowIfNull(output);
PersistComponentStateTagHelper.cs (2)
43ArgumentNullException.ThrowIfNull(context); 44ArgumentNullException.ThrowIfNull(output);
RenderAtEndOfFormTagHelper.cs (3)
34ArgumentNullException.ThrowIfNull(context); 46ArgumentNullException.ThrowIfNull(context); 47ArgumentNullException.ThrowIfNull(output);
ScriptTagHelper.cs (2)
240ArgumentNullException.ThrowIfNull(context); 241ArgumentNullException.ThrowIfNull(output);
SelectTagHelper.cs (3)
75ArgumentNullException.ThrowIfNull(context); 113ArgumentNullException.ThrowIfNull(context); 114ArgumentNullException.ThrowIfNull(output);
TagHelperOutputExtensions.cs (11)
44ArgumentNullException.ThrowIfNull(tagHelperOutput); 45ArgumentNullException.ThrowIfNull(attributeName); 46ArgumentNullException.ThrowIfNull(context); 87ArgumentNullException.ThrowIfNull(tagHelperOutput); 88ArgumentNullException.ThrowIfNull(tagBuilder); 121ArgumentNullException.ThrowIfNull(tagHelperOutput); 122ArgumentNullException.ThrowIfNull(attributes); 142ArgumentNullException.ThrowIfNull(tagHelperOutput); 201ArgumentNullException.ThrowIfNull(tagHelperOutput); 353ArgumentNullException.ThrowIfNull(writer); 354ArgumentNullException.ThrowIfNull(encoder);
TextAreaTagHelper.cs (2)
61ArgumentNullException.ThrowIfNull(context); 62ArgumentNullException.ThrowIfNull(output);
ValidationMessageTagHelper.cs (2)
54ArgumentNullException.ThrowIfNull(context); 55ArgumentNullException.ThrowIfNull(output);
ValidationSummaryTagHelper.cs (2)
82ArgumentNullException.ThrowIfNull(context); 83ArgumentNullException.ThrowIfNull(output);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
694ArgumentNullException.ThrowIfNull(client);
Microsoft.AspNetCore.Mvc.ViewFeatures (566)
AntiforgeryExtensions.cs (2)
33ArgumentNullException.ThrowIfNull(antiforgery); 34ArgumentNullException.ThrowIfNull(httpContext);
AttributeDictionary.cs (10)
26ArgumentNullException.ThrowIfNull(key); 41ArgumentNullException.ThrowIfNull(key); 183ArgumentNullException.ThrowIfNull(key); 214ArgumentNullException.ThrowIfNull(key); 227ArgumentNullException.ThrowIfNull(array); 277ArgumentNullException.ThrowIfNull(key); 294ArgumentNullException.ThrowIfNull(key); 391ArgumentNullException.ThrowIfNull(item); 406ArgumentNullException.ThrowIfNull(array); 511ArgumentNullException.ThrowIfNull(array);
Buffers\MemoryPoolViewBufferScope.cs (2)
73ArgumentNullException.ThrowIfNull(segment); 88ArgumentNullException.ThrowIfNull(writer);
Buffers\PagedBufferedTextWriter.cs (1)
87ArgumentNullException.ThrowIfNull(buffer);
Buffers\ViewBuffer.cs (7)
36ArgumentNullException.ThrowIfNull(bufferScope); 180ArgumentNullException.ThrowIfNull(writer); 181ArgumentNullException.ThrowIfNull(encoder); 213ArgumentNullException.ThrowIfNull(writer); 214ArgumentNullException.ThrowIfNull(encoder); 256ArgumentNullException.ThrowIfNull(destination); 285ArgumentNullException.ThrowIfNull(destination);
Buffers\ViewBufferTextWriter.cs (8)
32ArgumentNullException.ThrowIfNull(buffer); 33ArgumentNullException.ThrowIfNull(encoding); 50ArgumentNullException.ThrowIfNull(buffer); 51ArgumentNullException.ThrowIfNull(encoding); 52ArgumentNullException.ThrowIfNull(htmlEncoder); 53ArgumentNullException.ThrowIfNull(inner); 83ArgumentNullException.ThrowIfNull(buffer); 187ArgumentNullException.ThrowIfNull(buffer);
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
30ArgumentNullException.ThrowIfNull(builder);
CachedExpressionCompiler.cs (1)
25ArgumentNullException.ThrowIfNull(expression);
Controller.cs (3)
79ArgumentNullException.ThrowIfNull(value); 347ArgumentNullException.ThrowIfNull(context); 348ArgumentNullException.ThrowIfNull(next);
CookieTempDataProvider.cs (2)
58ArgumentNullException.ThrowIfNull(context); 104ArgumentNullException.ThrowIfNull(context);
DefaultEditorTemplates.cs (5)
398ArgumentNullException.ThrowIfNull(htmlHelper); 405ArgumentNullException.ThrowIfNull(htmlHelper); 503ArgumentNullException.ThrowIfNull(output); 515ArgumentNullException.ThrowIfNull(output); 516ArgumentNullException.ThrowIfNull(value);
DefaultHtmlGenerator.cs (35)
63ArgumentNullException.ThrowIfNull(antiforgery); 64ArgumentNullException.ThrowIfNull(optionsAccessor); 65ArgumentNullException.ThrowIfNull(metadataProvider); 66ArgumentNullException.ThrowIfNull(urlHelperFactory); 67ArgumentNullException.ThrowIfNull(htmlEncoder); 68ArgumentNullException.ThrowIfNull(validationAttributeProvider); 136ArgumentNullException.ThrowIfNull(viewContext); 137ArgumentNullException.ThrowIfNull(linkText); 156ArgumentNullException.ThrowIfNull(viewContext); 157ArgumentNullException.ThrowIfNull(linkText); 167ArgumentNullException.ThrowIfNull(viewContext); 194ArgumentNullException.ThrowIfNull(viewContext); 238ArgumentNullException.ThrowIfNull(viewContext); 263ArgumentNullException.ThrowIfNull(viewContext); 303ArgumentNullException.ThrowIfNull(viewContext); 319ArgumentNullException.ThrowIfNull(viewContext); 336ArgumentNullException.ThrowIfNull(viewContext); 367ArgumentNullException.ThrowIfNull(viewContext); 368ArgumentNullException.ThrowIfNull(modelExplorer); 405ArgumentNullException.ThrowIfNull(viewContext); 431ArgumentNullException.ThrowIfNull(viewContext); 441ArgumentNullException.ThrowIfNull(value); 496ArgumentNullException.ThrowIfNull(viewContext); 497ArgumentNullException.ThrowIfNull(linkText); 514ArgumentNullException.ThrowIfNull(viewContext); 539ArgumentNullException.ThrowIfNull(viewContext); 604ArgumentNullException.ThrowIfNull(viewContext); 692ArgumentNullException.ThrowIfNull(viewContext); 718ArgumentNullException.ThrowIfNull(viewContext); 808ArgumentNullException.ThrowIfNull(viewContext); 906ArgumentNullException.ThrowIfNull(viewContext); 1093ArgumentNullException.ThrowIfNull(viewContext); 1142ArgumentNullException.ThrowIfNull(viewContext); 1284ArgumentNullException.ThrowIfNull(linkText); 1489ArgumentNullException.ThrowIfNull(viewContext);
DefaultValidationHtmlAttributeProvider.cs (6)
32ArgumentNullException.ThrowIfNull(optionsAccessor); 33ArgumentNullException.ThrowIfNull(metadataProvider); 34ArgumentNullException.ThrowIfNull(clientValidatorCache); 49ArgumentNullException.ThrowIfNull(viewContext); 50ArgumentNullException.ThrowIfNull(modelExplorer); 51ArgumentNullException.ThrowIfNull(attributes);
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (7)
29ArgumentNullException.ThrowIfNull(builder); 30ArgumentNullException.ThrowIfNull(setupAction); 43ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(builder); 85ArgumentNullException.ThrowIfNull(builder); 110ArgumentNullException.ThrowIfNull(builder); 111ArgumentNullException.ThrowIfNull(setupAction);
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (8)
35ArgumentNullException.ThrowIfNull(builder); 51ArgumentNullException.ThrowIfNull(builder); 80ArgumentNullException.ThrowIfNull(builder); 81ArgumentNullException.ThrowIfNull(setupAction); 103ArgumentNullException.ThrowIfNull(builder); 104ArgumentNullException.ThrowIfNull(setupAction); 122ArgumentNullException.ThrowIfNull(builder); 123ArgumentNullException.ThrowIfNull(setupAction);
DependencyInjection\MvcViewOptionsSetup.cs (3)
24ArgumentNullException.ThrowIfNull(dataAnnotationLocalizationOptions); 25ArgumentNullException.ThrowIfNull(validationAttributeAdapterProvider); 37ArgumentNullException.ThrowIfNull(stringLocalizerFactory);
DynamicViewData.cs (3)
19ArgumentNullException.ThrowIfNull(viewDataFunc); 48ArgumentNullException.ThrowIfNull(binder); 59ArgumentNullException.ThrowIfNull(binder);
ExpressionHelper.cs (4)
21ArgumentNullException.ThrowIfNull(expression); 202ArgumentNullException.ThrowIfNull(builder); 203ArgumentNullException.ThrowIfNull(indexExpression); 204ArgumentNullException.ThrowIfNull(parentExpression);
ExpressionMetadataProvider.cs (4)
19ArgumentNullException.ThrowIfNull(expression); 20ArgumentNullException.ThrowIfNull(viewData); 141ArgumentNullException.ThrowIfNull(viewData); 199ArgumentNullException.ThrowIfNull(viewData);
Filters\AntiforgeryApplicationModelProvider.cs (1)
21ArgumentNullException.ThrowIfNull(context);
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
17ArgumentNullException.ThrowIfNull(context);
Filters\AutoValidateAntiforgeryTokenAuthorizationFilter.cs (1)
20ArgumentNullException.ThrowIfNull(context);
Filters\ControllerSaveTempDataPropertyFilterFactory.cs (1)
22ArgumentNullException.ThrowIfNull(serviceProvider);
Filters\TempDataApplicationModelProvider.cs (1)
30ArgumentNullException.ThrowIfNull(context);
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (3)
17ArgumentNullException.ThrowIfNull(antiforgery); 25ArgumentNullException.ThrowIfNull(context); 49ArgumentNullException.ThrowIfNull(context);
Filters\ViewDataAttributeApplicationModelProvider.cs (1)
22ArgumentNullException.ThrowIfNull(context);
FormContext.cs (4)
137ArgumentNullException.ThrowIfNull(fieldName); 153ArgumentNullException.ThrowIfNull(fieldName); 160ArgumentNullException.ThrowIfNull(fieldName); 169ArgumentNullException.ThrowIfNull(fieldName);
HtmlHelper.cs (17)
69ArgumentNullException.ThrowIfNull(htmlGenerator); 70ArgumentNullException.ThrowIfNull(viewEngine); 71ArgumentNullException.ThrowIfNull(metadataProvider); 72ArgumentNullException.ThrowIfNull(bufferScope); 73ArgumentNullException.ThrowIfNull(htmlEncoder); 74ArgumentNullException.ThrowIfNull(urlEncoder); 183ArgumentNullException.ThrowIfNull(viewContext); 199ArgumentNullException.ThrowIfNull(linkText); 299ArgumentNullException.ThrowIfNull(fullName); 385ArgumentNullException.ThrowIfNull(enumType); 450ArgumentNullException.ThrowIfNull(partialViewName); 463ArgumentNullException.ThrowIfNull(partialViewName); 510ArgumentNullException.ThrowIfNull(partialViewName); 596ArgumentNullException.ThrowIfNull(linkText); 771ArgumentNullException.ThrowIfNull(modelExplorer); 1045ArgumentNullException.ThrowIfNull(modelExplorer); 1370ArgumentNullException.ThrowIfNull(metadata);
HtmlHelperOfT.cs (22)
50ArgumentNullException.ThrowIfNull(viewContext); 95ArgumentNullException.ThrowIfNull(expression); 112ArgumentNullException.ThrowIfNull(expression); 130ArgumentNullException.ThrowIfNull(expression); 143ArgumentNullException.ThrowIfNull(expression); 153ArgumentNullException.ThrowIfNull(expression); 165ArgumentNullException.ThrowIfNull(expression); 177ArgumentNullException.ThrowIfNull(expression); 192ArgumentNullException.ThrowIfNull(expression); 206ArgumentNullException.ThrowIfNull(expression); 217ArgumentNullException.ThrowIfNull(expression); 229ArgumentNullException.ThrowIfNull(expression); 240ArgumentNullException.ThrowIfNull(expression); 251ArgumentNullException.ThrowIfNull(expression); 267ArgumentNullException.ThrowIfNull(expression); 268ArgumentNullException.ThrowIfNull(value); 286ArgumentNullException.ThrowIfNull(expression); 298ArgumentNullException.ThrowIfNull(expression); 321ArgumentNullException.ThrowIfNull(expression); 334ArgumentNullException.ThrowIfNull(expression); 347ArgumentNullException.ThrowIfNull(expression); 361ArgumentNullException.ThrowIfNull(expression);
HtmlHelperOptions.cs (1)
33ArgumentNullException.ThrowIfNull(value);
Infrastructure\DefaultTempDataSerializer.cs (2)
13ArgumentNullException.ThrowIfNull(value); 219ArgumentNullException.ThrowIfNull(type);
ModelExplorer.cs (14)
33ArgumentNullException.ThrowIfNull(metadataProvider); 34ArgumentNullException.ThrowIfNull(metadata); 54ArgumentNullException.ThrowIfNull(metadataProvider); 55ArgumentNullException.ThrowIfNull(container); 56ArgumentNullException.ThrowIfNull(metadata); 77ArgumentNullException.ThrowIfNull(metadataProvider); 78ArgumentNullException.ThrowIfNull(metadata); 236ArgumentNullException.ThrowIfNull(name); 262ArgumentNullException.ThrowIfNull(name); 287ArgumentNullException.ThrowIfNull(name); 318ArgumentNullException.ThrowIfNull(modelType); 343ArgumentNullException.ThrowIfNull(metadata); 367ArgumentNullException.ThrowIfNull(modelType); 392ArgumentNullException.ThrowIfNull(metadata);
ModelExplorerExtensions.cs (1)
31ArgumentNullException.ThrowIfNull(modelExplorer);
ModelExpression.cs (2)
24ArgumentNullException.ThrowIfNull(name); 25ArgumentNullException.ThrowIfNull(modelExplorer);
ModelExpressionProvider.cs (6)
24ArgumentNullException.ThrowIfNull(modelMetadataProvider); 39ArgumentNullException.ThrowIfNull(expression); 49ArgumentNullException.ThrowIfNull(viewData); 50ArgumentNullException.ThrowIfNull(expression); 75ArgumentNullException.ThrowIfNull(viewData); 76ArgumentNullException.ThrowIfNull(expression);
ModelMetadataProviderExtensions.cs (2)
28ArgumentNullException.ThrowIfNull(provider); 29ArgumentNullException.ThrowIfNull(modelType);
ModelStateDictionaryExtensions.cs (12)
30ArgumentNullException.ThrowIfNull(modelState); 31ArgumentNullException.ThrowIfNull(expression); 32ArgumentNullException.ThrowIfNull(errorMessage); 57ArgumentNullException.ThrowIfNull(modelState); 58ArgumentNullException.ThrowIfNull(expression); 80ArgumentNullException.ThrowIfNull(modelState); 81ArgumentNullException.ThrowIfNull(expression); 82ArgumentNullException.ThrowIfNull(metadata); 101ArgumentNullException.ThrowIfNull(modelState); 102ArgumentNullException.ThrowIfNull(expression); 118ArgumentNullException.ThrowIfNull(modelState); 119ArgumentNullException.ThrowIfNull(expression);
MvcViewOptions.cs (1)
30ArgumentNullException.ThrowIfNull(value);
NameAndIdProvider.cs (5)
34ArgumentNullException.ThrowIfNull(viewContext); 35ArgumentNullException.ThrowIfNull(invalidCharReplacement); 97ArgumentNullException.ThrowIfNull(viewContext); 98ArgumentNullException.ThrowIfNull(tagBuilder); 99ArgumentNullException.ThrowIfNull(invalidCharReplacement);
NullView.cs (1)
17ArgumentNullException.ThrowIfNull(context);
PageRemoteAttribute.cs (1)
41ArgumentNullException.ThrowIfNull(context);
PartialViewResult.cs (1)
62ArgumentNullException.ThrowIfNull(context);
PartialViewResultExecutor.cs (9)
45ArgumentNullException.ThrowIfNull(loggerFactory); 63ArgumentNullException.ThrowIfNull(actionContext); 64ArgumentNullException.ThrowIfNull(viewResult); 131ArgumentNullException.ThrowIfNull(actionContext); 132ArgumentNullException.ThrowIfNull(view); 133ArgumentNullException.ThrowIfNull(viewResult); 147ArgumentNullException.ThrowIfNull(context); 148ArgumentNullException.ThrowIfNull(result); 166ArgumentNullException.ThrowIfNull(context);
RemoteAttribute.cs (1)
109ArgumentNullException.ThrowIfNull(context);
RemoteAttributeBase.cs (1)
143ArgumentNullException.ThrowIfNull(context);
Rendering\HtmlHelperComponentExtensions.cs (2)
55ArgumentNullException.ThrowIfNull(htmlHelper); 56ArgumentNullException.ThrowIfNull(componentType);
Rendering\HtmlHelperDisplayExtensions.cs (21)
40ArgumentNullException.ThrowIfNull(htmlHelper); 80ArgumentNullException.ThrowIfNull(htmlHelper); 120ArgumentNullException.ThrowIfNull(htmlHelper); 162ArgumentNullException.ThrowIfNull(htmlHelper); 207ArgumentNullException.ThrowIfNull(htmlHelper); 235ArgumentNullException.ThrowIfNull(htmlHelper); 236ArgumentNullException.ThrowIfNull(expression); 275ArgumentNullException.ThrowIfNull(htmlHelper); 276ArgumentNullException.ThrowIfNull(expression); 311ArgumentNullException.ThrowIfNull(htmlHelper); 312ArgumentNullException.ThrowIfNull(expression); 353ArgumentNullException.ThrowIfNull(htmlHelper); 354ArgumentNullException.ThrowIfNull(expression); 394ArgumentNullException.ThrowIfNull(htmlHelper); 395ArgumentNullException.ThrowIfNull(expression); 422ArgumentNullException.ThrowIfNull(htmlHelper); 454ArgumentNullException.ThrowIfNull(htmlHelper); 482ArgumentNullException.ThrowIfNull(htmlHelper); 519ArgumentNullException.ThrowIfNull(htmlHelper); 555ArgumentNullException.ThrowIfNull(htmlHelper); 597ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\HtmlHelperDisplayNameExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(htmlHelper); 40ArgumentNullException.ThrowIfNull(htmlHelper); 41ArgumentNullException.ThrowIfNull(expression);
Rendering\HtmlHelperEditorExtensions.cs (21)
40ArgumentNullException.ThrowIfNull(htmlHelper); 80ArgumentNullException.ThrowIfNull(htmlHelper); 117ArgumentNullException.ThrowIfNull(htmlHelper); 159ArgumentNullException.ThrowIfNull(htmlHelper); 204ArgumentNullException.ThrowIfNull(htmlHelper); 232ArgumentNullException.ThrowIfNull(htmlHelper); 233ArgumentNullException.ThrowIfNull(expression); 268ArgumentNullException.ThrowIfNull(htmlHelper); 269ArgumentNullException.ThrowIfNull(expression); 304ArgumentNullException.ThrowIfNull(htmlHelper); 305ArgumentNullException.ThrowIfNull(expression); 342ArgumentNullException.ThrowIfNull(htmlHelper); 343ArgumentNullException.ThrowIfNull(expression); 383ArgumentNullException.ThrowIfNull(htmlHelper); 384ArgumentNullException.ThrowIfNull(expression); 407ArgumentNullException.ThrowIfNull(htmlHelper); 439ArgumentNullException.ThrowIfNull(htmlHelper); 467ArgumentNullException.ThrowIfNull(htmlHelper); 504ArgumentNullException.ThrowIfNull(htmlHelper); 540ArgumentNullException.ThrowIfNull(htmlHelper); 582ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\HtmlHelperFormExtensions.cs (19)
24ArgumentNullException.ThrowIfNull(htmlHelper); 54ArgumentNullException.ThrowIfNull(htmlHelper); 80ArgumentNullException.ThrowIfNull(htmlHelper); 113ArgumentNullException.ThrowIfNull(htmlHelper); 153ArgumentNullException.ThrowIfNull(htmlHelper); 184ArgumentNullException.ThrowIfNull(htmlHelper); 213ArgumentNullException.ThrowIfNull(htmlHelper); 250ArgumentNullException.ThrowIfNull(htmlHelper); 281ArgumentNullException.ThrowIfNull(htmlHelper); 320ArgumentNullException.ThrowIfNull(htmlHelper); 357ArgumentNullException.ThrowIfNull(htmlHelper); 388ArgumentNullException.ThrowIfNull(htmlHelper); 423ArgumentNullException.ThrowIfNull(htmlHelper); 447ArgumentNullException.ThrowIfNull(htmlHelper); 476ArgumentNullException.ThrowIfNull(htmlHelper); 510ArgumentNullException.ThrowIfNull(htmlHelper); 538ArgumentNullException.ThrowIfNull(htmlHelper); 574ArgumentNullException.ThrowIfNull(htmlHelper); 608ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\HtmlHelperInputExtensions.cs (37)
33ArgumentNullException.ThrowIfNull(htmlHelper); 62ArgumentNullException.ThrowIfNull(htmlHelper); 95ArgumentNullException.ThrowIfNull(htmlHelper); 120ArgumentNullException.ThrowIfNull(htmlHelper); 121ArgumentNullException.ThrowIfNull(expression); 144ArgumentNullException.ThrowIfNull(htmlHelper); 172ArgumentNullException.ThrowIfNull(htmlHelper); 198ArgumentNullException.ThrowIfNull(htmlHelper); 199ArgumentNullException.ThrowIfNull(expression); 218ArgumentNullException.ThrowIfNull(htmlHelper); 241ArgumentNullException.ThrowIfNull(htmlHelper); 264ArgumentNullException.ThrowIfNull(htmlHelper); 265ArgumentNullException.ThrowIfNull(expression); 295ArgumentNullException.ThrowIfNull(htmlHelper); 336ArgumentNullException.ThrowIfNull(htmlHelper); 375ArgumentNullException.ThrowIfNull(htmlHelper); 406ArgumentNullException.ThrowIfNull(htmlHelper); 407ArgumentNullException.ThrowIfNull(expression); 408ArgumentNullException.ThrowIfNull(value); 431ArgumentNullException.ThrowIfNull(htmlHelper); 459ArgumentNullException.ThrowIfNull(htmlHelper); 492ArgumentNullException.ThrowIfNull(htmlHelper); 527ArgumentNullException.ThrowIfNull(htmlHelper); 553ArgumentNullException.ThrowIfNull(htmlHelper); 554ArgumentNullException.ThrowIfNull(expression); 585ArgumentNullException.ThrowIfNull(htmlHelper); 586ArgumentNullException.ThrowIfNull(expression); 619ArgumentNullException.ThrowIfNull(htmlHelper); 620ArgumentNullException.ThrowIfNull(expression); 645ArgumentNullException.ThrowIfNull(htmlHelper); 676ArgumentNullException.ThrowIfNull(htmlHelper); 704ArgumentNullException.ThrowIfNull(htmlHelper); 738ArgumentNullException.ThrowIfNull(htmlHelper); 764ArgumentNullException.ThrowIfNull(htmlHelper); 765ArgumentNullException.ThrowIfNull(expression); 797ArgumentNullException.ThrowIfNull(htmlHelper); 798ArgumentNullException.ThrowIfNull(expression);
Rendering\HtmlHelperLabelExtensions.cs (12)
22ArgumentNullException.ThrowIfNull(htmlHelper); 36ArgumentNullException.ThrowIfNull(htmlHelper); 53ArgumentNullException.ThrowIfNull(htmlHelper); 54ArgumentNullException.ThrowIfNull(expression); 73ArgumentNullException.ThrowIfNull(htmlHelper); 74ArgumentNullException.ThrowIfNull(expression); 97ArgumentNullException.ThrowIfNull(htmlHelper); 98ArgumentNullException.ThrowIfNull(expression); 110ArgumentNullException.ThrowIfNull(htmlHelper); 123ArgumentNullException.ThrowIfNull(htmlHelper); 140ArgumentNullException.ThrowIfNull(htmlHelper); 161ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\HtmlHelperLinkExtensions.cs (22)
25ArgumentNullException.ThrowIfNull(helper); 26ArgumentNullException.ThrowIfNull(linkText); 59ArgumentNullException.ThrowIfNull(helper); 60ArgumentNullException.ThrowIfNull(linkText); 99ArgumentNullException.ThrowIfNull(helper); 100ArgumentNullException.ThrowIfNull(linkText); 127ArgumentNullException.ThrowIfNull(helper); 128ArgumentNullException.ThrowIfNull(linkText); 163ArgumentNullException.ThrowIfNull(helper); 164ArgumentNullException.ThrowIfNull(linkText); 205ArgumentNullException.ThrowIfNull(helper); 206ArgumentNullException.ThrowIfNull(linkText); 237ArgumentNullException.ThrowIfNull(htmlHelper); 238ArgumentNullException.ThrowIfNull(linkText); 262ArgumentNullException.ThrowIfNull(htmlHelper); 263ArgumentNullException.ThrowIfNull(linkText); 295ArgumentNullException.ThrowIfNull(htmlHelper); 296ArgumentNullException.ThrowIfNull(linkText); 332ArgumentNullException.ThrowIfNull(htmlHelper); 333ArgumentNullException.ThrowIfNull(linkText); 371ArgumentNullException.ThrowIfNull(htmlHelper); 372ArgumentNullException.ThrowIfNull(linkText);
Rendering\HtmlHelperNameExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(htmlHelper); 32ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\HtmlHelperPartialExtensions.cs (16)
29ArgumentNullException.ThrowIfNull(htmlHelper); 30ArgumentNullException.ThrowIfNull(partialViewName); 52ArgumentNullException.ThrowIfNull(htmlHelper); 53ArgumentNullException.ThrowIfNull(partialViewName); 75ArgumentNullException.ThrowIfNull(htmlHelper); 76ArgumentNullException.ThrowIfNull(partialViewName); 165ArgumentNullException.ThrowIfNull(htmlHelper); 166ArgumentNullException.ThrowIfNull(partialViewName); 240ArgumentNullException.ThrowIfNull(htmlHelper); 241ArgumentNullException.ThrowIfNull(partialViewName); 262ArgumentNullException.ThrowIfNull(htmlHelper); 263ArgumentNullException.ThrowIfNull(partialViewName); 285ArgumentNullException.ThrowIfNull(htmlHelper); 286ArgumentNullException.ThrowIfNull(partialViewName); 308ArgumentNullException.ThrowIfNull(htmlHelper); 309ArgumentNullException.ThrowIfNull(partialViewName);
Rendering\HtmlHelperSelectExtensions.cs (15)
39ArgumentNullException.ThrowIfNull(htmlHelper); 76ArgumentNullException.ThrowIfNull(htmlHelper); 114ArgumentNullException.ThrowIfNull(htmlHelper); 153ArgumentNullException.ThrowIfNull(htmlHelper); 191ArgumentNullException.ThrowIfNull(htmlHelper); 225ArgumentNullException.ThrowIfNull(htmlHelper); 226ArgumentNullException.ThrowIfNull(expression); 265ArgumentNullException.ThrowIfNull(htmlHelper); 266ArgumentNullException.ThrowIfNull(expression); 308ArgumentNullException.ThrowIfNull(htmlHelper); 309ArgumentNullException.ThrowIfNull(expression); 339ArgumentNullException.ThrowIfNull(htmlHelper); 373ArgumentNullException.ThrowIfNull(htmlHelper); 407ArgumentNullException.ThrowIfNull(htmlHelper); 408ArgumentNullException.ThrowIfNull(expression);
Rendering\HtmlHelperValidationExtensions.cs (22)
33ArgumentNullException.ThrowIfNull(htmlHelper); 59ArgumentNullException.ThrowIfNull(htmlHelper); 90ArgumentNullException.ThrowIfNull(htmlHelper); 121ArgumentNullException.ThrowIfNull(htmlHelper); 154ArgumentNullException.ThrowIfNull(htmlHelper); 180ArgumentNullException.ThrowIfNull(htmlHelper); 181ArgumentNullException.ThrowIfNull(expression); 209ArgumentNullException.ThrowIfNull(htmlHelper); 210ArgumentNullException.ThrowIfNull(expression); 245ArgumentNullException.ThrowIfNull(htmlHelper); 246ArgumentNullException.ThrowIfNull(expression); 279ArgumentNullException.ThrowIfNull(htmlHelper); 280ArgumentNullException.ThrowIfNull(expression); 296ArgumentNullException.ThrowIfNull(htmlHelper); 319ArgumentNullException.ThrowIfNull(htmlHelper); 342ArgumentNullException.ThrowIfNull(htmlHelper); 368ArgumentNullException.ThrowIfNull(htmlHelper); 397ArgumentNullException.ThrowIfNull(htmlHelper); 428ArgumentNullException.ThrowIfNull(htmlHelper); 463ArgumentNullException.ThrowIfNull(htmlHelper); 496ArgumentNullException.ThrowIfNull(htmlHelper); 531ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\HtmlHelperValueExtensions.cs (5)
29ArgumentNullException.ThrowIfNull(htmlHelper); 53ArgumentNullException.ThrowIfNull(htmlHelper); 54ArgumentNullException.ThrowIfNull(expression); 74ArgumentNullException.ThrowIfNull(htmlHelper); 99ArgumentNullException.ThrowIfNull(htmlHelper);
Rendering\MultiSelectList.cs (5)
28ArgumentNullException.ThrowIfNull(items); 39ArgumentNullException.ThrowIfNull(items); 51ArgumentNullException.ThrowIfNull(items); 68ArgumentNullException.ThrowIfNull(items); 91ArgumentNullException.ThrowIfNull(items);
Rendering\MvcForm.cs (2)
27ArgumentNullException.ThrowIfNull(viewContext); 28ArgumentNullException.ThrowIfNull(htmlEncoder);
Rendering\SelectList.cs (5)
22ArgumentNullException.ThrowIfNull(items); 33ArgumentNullException.ThrowIfNull(items); 45ArgumentNullException.ThrowIfNull(items); 62ArgumentNullException.ThrowIfNull(items); 88ArgumentNullException.ThrowIfNull(items);
Rendering\TagBuilder.cs (4)
155ArgumentNullException.ThrowIfNull(invalidCharReplacement); 214ArgumentNullException.ThrowIfNull(invalidCharReplacement); 322ArgumentNullException.ThrowIfNull(writer); 323ArgumentNullException.ThrowIfNull(encoder);
Rendering\ViewComponentHelperExtensions.cs (4)
24ArgumentNullException.ThrowIfNull(helper); 38ArgumentNullException.ThrowIfNull(helper); 53ArgumentNullException.ThrowIfNull(helper); 67ArgumentNullException.ThrowIfNull(helper);
Rendering\ViewContext.cs (11)
56ArgumentNullException.ThrowIfNull(actionContext); 57ArgumentNullException.ThrowIfNull(view); 58ArgumentNullException.ThrowIfNull(viewData); 59ArgumentNullException.ThrowIfNull(tempData); 60ArgumentNullException.ThrowIfNull(writer); 61ArgumentNullException.ThrowIfNull(htmlHelperOptions); 91ArgumentNullException.ThrowIfNull(viewContext); 92ArgumentNullException.ThrowIfNull(view); 93ArgumentNullException.ThrowIfNull(viewData); 94ArgumentNullException.ThrowIfNull(writer); 124ArgumentNullException.ThrowIfNull(value);
SessionStateTempDataProvider.cs (2)
30ArgumentNullException.ThrowIfNull(context); 49ArgumentNullException.ThrowIfNull(context);
SkipStatusCodePagesAttribute.cs (1)
24ArgumentNullException.ThrowIfNull(context);
StringHtmlContent.cs (2)
32ArgumentNullException.ThrowIfNull(writer); 33ArgumentNullException.ThrowIfNull(encoder);
TempDataDictionary.cs (2)
36ArgumentNullException.ThrowIfNull(context); 37ArgumentNullException.ThrowIfNull(provider);
TempDataDictionaryFactory.cs (2)
23ArgumentNullException.ThrowIfNull(provider); 31ArgumentNullException.ThrowIfNull(context);
TemplateBuilder.cs (5)
39ArgumentNullException.ThrowIfNull(viewEngine); 40ArgumentNullException.ThrowIfNull(bufferScope); 41ArgumentNullException.ThrowIfNull(viewContext); 42ArgumentNullException.ThrowIfNull(viewData); 43ArgumentNullException.ThrowIfNull(modelExplorer);
TemplateRenderer.cs (4)
86ArgumentNullException.ThrowIfNull(viewEngine); 87ArgumentNullException.ThrowIfNull(bufferScope); 88ArgumentNullException.ThrowIfNull(viewContext); 89ArgumentNullException.ThrowIfNull(viewData);
TryGetValueProvider.cs (1)
30ArgumentNullException.ThrowIfNull(targetType);
ValidationHtmlAttributeProvider.cs (3)
56ArgumentNullException.ThrowIfNull(viewContext); 57ArgumentNullException.ThrowIfNull(modelExplorer); 58ArgumentNullException.ThrowIfNull(attributes);
ViewComponent.cs (4)
96ArgumentNullException.ThrowIfNull(value); 120ArgumentNullException.ThrowIfNull(value); 159ArgumentNullException.ThrowIfNull(value); 172ArgumentNullException.ThrowIfNull(content);
ViewComponentResult.cs (1)
61ArgumentNullException.ThrowIfNull(context);
ViewComponentResultExecutor.cs (7)
52ArgumentNullException.ThrowIfNull(mvcHelperOptions); 53ArgumentNullException.ThrowIfNull(loggerFactory); 54ArgumentNullException.ThrowIfNull(htmlEncoder); 55ArgumentNullException.ThrowIfNull(modelMetadataProvider); 56ArgumentNullException.ThrowIfNull(tempDataDictionaryFactory); 69ArgumentNullException.ThrowIfNull(context); 70ArgumentNullException.ThrowIfNull(result);
ViewComponents\ContentViewComponentResult.cs (2)
23ArgumentNullException.ThrowIfNull(content); 39ArgumentNullException.ThrowIfNull(context);
ViewComponents\DefaultViewComponentActivator.cs (2)
29ArgumentNullException.ThrowIfNull(typeActivatorCache); 37ArgumentNullException.ThrowIfNull(context);
ViewComponents\DefaultViewComponentDescriptorProvider.cs (1)
26ArgumentNullException.ThrowIfNull(partManager);
ViewComponents\DefaultViewComponentFactory.cs (6)
27ArgumentNullException.ThrowIfNull(activator); 42ArgumentNullException.ThrowIfNull(context); 72ArgumentNullException.ThrowIfNull(context); 73ArgumentNullException.ThrowIfNull(component); 81ArgumentNullException.ThrowIfNull(context); 82ArgumentNullException.ThrowIfNull(component);
ViewComponents\DefaultViewComponentHelper.cs (8)
45ArgumentNullException.ThrowIfNull(descriptorProvider); 46ArgumentNullException.ThrowIfNull(htmlEncoder); 47ArgumentNullException.ThrowIfNull(selector); 48ArgumentNullException.ThrowIfNull(invokerFactory); 49ArgumentNullException.ThrowIfNull(viewBufferScope); 61ArgumentNullException.ThrowIfNull(viewContext); 69ArgumentNullException.ThrowIfNull(name); 87ArgumentNullException.ThrowIfNull(componentType);
ViewComponents\DefaultViewComponentInvoker.cs (5)
39ArgumentNullException.ThrowIfNull(viewComponentFactory); 40ArgumentNullException.ThrowIfNull(viewComponentInvokerCache); 41ArgumentNullException.ThrowIfNull(diagnosticListener); 42ArgumentNullException.ThrowIfNull(logger); 53ArgumentNullException.ThrowIfNull(context);
ViewComponents\DefaultViewComponentInvokerFactory.cs (5)
22ArgumentNullException.ThrowIfNull(viewComponentFactory); 23ArgumentNullException.ThrowIfNull(viewComponentInvokerCache); 24ArgumentNullException.ThrowIfNull(diagnosticListener); 25ArgumentNullException.ThrowIfNull(loggerFactory); 40ArgumentNullException.ThrowIfNull(context);
ViewComponents\DefaultViewComponentSelector.cs (1)
30ArgumentNullException.ThrowIfNull(componentName);
ViewComponents\HtmlContentViewComponentResult.cs (2)
24ArgumentNullException.ThrowIfNull(encodedContent); 40ArgumentNullException.ThrowIfNull(context);
ViewComponents\ServiceBasedViewComponentActivator.cs (1)
17ArgumentNullException.ThrowIfNull(context);
ViewComponents\ViewComponentContext.cs (5)
46ArgumentNullException.ThrowIfNull(viewComponentDescriptor); 47ArgumentNullException.ThrowIfNull(arguments); 48ArgumentNullException.ThrowIfNull(htmlEncoder); 49ArgumentNullException.ThrowIfNull(viewContext); 50ArgumentNullException.ThrowIfNull(writer);
ViewComponents\ViewComponentConventions.cs (3)
25ArgumentNullException.ThrowIfNull(componentType); 52ArgumentNullException.ThrowIfNull(componentType); 94ArgumentNullException.ThrowIfNull(typeInfo);
ViewComponents\ViewComponentDescriptor.cs (1)
42ArgumentNullException.ThrowIfNull(value);
ViewComponents\ViewComponentDescriptorCollection.cs (1)
18ArgumentNullException.ThrowIfNull(items);
ViewComponents\ViewComponentFeatureProvider.cs (2)
17ArgumentNullException.ThrowIfNull(parts); 18ArgumentNullException.ThrowIfNull(feature);
ViewComponents\ViewViewComponentResult.cs (2)
56ArgumentNullException.ThrowIfNull(context); 70ArgumentNullException.ThrowIfNull(context);
ViewDataDictionary.cs (9)
122ArgumentNullException.ThrowIfNull(metadataProvider); 123ArgumentNullException.ThrowIfNull(modelState); 124ArgumentNullException.ThrowIfNull(declaredModelType); 184ArgumentNullException.ThrowIfNull(source); 524ArgumentNullException.ThrowIfNull(key); 532ArgumentNullException.ThrowIfNull(key); 540ArgumentNullException.ThrowIfNull(key); 548ArgumentNullException.ThrowIfNull(key); 574ArgumentNullException.ThrowIfNull(array);
ViewDataDictionaryFactory.cs (2)
14ArgumentNullException.ThrowIfNull(modelType); 35ArgumentNullException.ThrowIfNull(modelType);
ViewDataEvaluator.cs (1)
27ArgumentNullException.ThrowIfNull(viewData);
ViewEngines\CompositeViewEngine.cs (1)
30ArgumentNullException.ThrowIfNull(context);
ViewEngines\ViewEngineResult.cs (4)
53ArgumentNullException.ThrowIfNull(viewName); 54ArgumentNullException.ThrowIfNull(searchedLocations); 70ArgumentNullException.ThrowIfNull(viewName); 71ArgumentNullException.ThrowIfNull(view);
ViewExecutor.cs (9)
47ArgumentNullException.ThrowIfNull(viewOptions); 48ArgumentNullException.ThrowIfNull(tempDataFactory); 49ArgumentNullException.ThrowIfNull(diagnosticListener); 67ArgumentNullException.ThrowIfNull(writerFactory); 68ArgumentNullException.ThrowIfNull(viewEngine); 69ArgumentNullException.ThrowIfNull(diagnosticListener); 129ArgumentNullException.ThrowIfNull(actionContext); 130ArgumentNullException.ThrowIfNull(view); 185ArgumentNullException.ThrowIfNull(viewContext);
ViewResult.cs (1)
62ArgumentNullException.ThrowIfNull(context);
ViewResultExecutor.cs (6)
45ArgumentNullException.ThrowIfNull(loggerFactory); 63ArgumentNullException.ThrowIfNull(actionContext); 64ArgumentNullException.ThrowIfNull(viewResult); 141ArgumentNullException.ThrowIfNull(context); 142ArgumentNullException.ThrowIfNull(result); 166ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Buffers\PagedBufferedTextWriterTest.cs (1)
109Assert.Throws<ArgumentNullException>("buffer", () => writer.Write(null, 0, 0));
ControllerUnitTestabilityTests.cs (1)
557Assert.Throws<ArgumentNullException>(() => controller.Redirect_Action(null));
Microsoft.AspNetCore.OpenApi (13)
Extensions\OpenApiServiceCollectionExtensions.cs (3)
34ArgumentNullException.ThrowIfNull(services); 58ArgumentNullException.ThrowIfNull(services); 59ArgumentNullException.ThrowIfNull(configureOptions);
Services\OpenApiOptions.cs (6)
78ArgumentNullException.ThrowIfNull(transformer); 91ArgumentNullException.ThrowIfNull(transformer); 116ArgumentNullException.ThrowIfNull(transformer); 129ArgumentNullException.ThrowIfNull(transformer); 154ArgumentNullException.ThrowIfNull(transformer); 167ArgumentNullException.ThrowIfNull(transformer);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
32ArgumentNullException.ThrowIfNull(methodInfo); 114ArgumentNullException.ThrowIfNull(parameterDefaultValues);
src\Shared\PropertyAsParameterInfo.cs (2)
66ArgumentNullException.ThrowIfNull(parameters); 67ArgumentNullException.ThrowIfNull(cache);
Microsoft.AspNetCore.OutputCaching (52)
DispatcherExtensions.cs (2)
14ArgumentNullException.ThrowIfNull(key); 53ArgumentNullException.ThrowIfNull(key);
FormatterBinaryWriter.cs (2)
26ArgumentNullException.ThrowIfNull(target); 81ArgumentNullException.ThrowIfNull(value);
Memory\MemoryOutputCacheStore.cs (5)
18ArgumentNullException.ThrowIfNull(cache); 28ArgumentNullException.ThrowIfNull(tag); 66ArgumentNullException.ThrowIfNull(key); 75ArgumentNullException.ThrowIfNull(key); 76ArgumentNullException.ThrowIfNull(value);
OutputCacheApplicationBuilderExtensions.cs (1)
19ArgumentNullException.ThrowIfNull(app);
OutputCacheEntryFormatter.cs (2)
26ArgumentNullException.ThrowIfNull(key); 40ArgumentNullException.ThrowIfNull(value);
OutputCacheKeyProvider.cs (3)
25ArgumentNullException.ThrowIfNull(poolProvider); 26ArgumentNullException.ThrowIfNull(options); 40ArgumentNullException.ThrowIfNull(_builderPool);
OutputCacheMiddleware.cs (5)
61ArgumentNullException.ThrowIfNull(next); 62ArgumentNullException.ThrowIfNull(options); 63ArgumentNullException.ThrowIfNull(loggerFactory); 64ArgumentNullException.ThrowIfNull(cache); 65ArgumentNullException.ThrowIfNull(keyProvider);
OutputCachePolicyBuilder.cs (16)
66ArgumentNullException.ThrowIfNull(predicate); 80ArgumentNullException.ThrowIfNull(predicate); 98ArgumentNullException.ThrowIfNull(queryKey); 112ArgumentNullException.ThrowIfNull(queryKeys); 124ArgumentNullException.ThrowIfNull(headerName); 134ArgumentNullException.ThrowIfNull(headerNames); 146ArgumentNullException.ThrowIfNull(routeValueName); 157ArgumentNullException.ThrowIfNull(routeValueNames); 168ArgumentNullException.ThrowIfNull(keyPrefix); 184ArgumentNullException.ThrowIfNull(keyPrefix); 200ArgumentNullException.ThrowIfNull(keyPrefix); 212ArgumentNullException.ThrowIfNull(key); 213ArgumentNullException.ThrowIfNull(value); 229ArgumentNullException.ThrowIfNull(varyBy); 245ArgumentNullException.ThrowIfNull(varyBy); 256ArgumentNullException.ThrowIfNull(tags);
OutputCacheServiceCollectionExtensions.cs (3)
25ArgumentNullException.ThrowIfNull(services); 50ArgumentNullException.ThrowIfNull(services); 51ArgumentNullException.ThrowIfNull(configureOptions);
Policies\OutputCacheConventionBuilderExtensions.cs (4)
19ArgumentNullException.ThrowIfNull(builder); 35ArgumentNullException.ThrowIfNull(builder); 63ArgumentNullException.ThrowIfNull(builder); 82ArgumentNullException.ThrowIfNull(builder);
Policies\PredicatePolicy.cs (1)
47ArgumentNullException.ThrowIfNull(action);
Policies\TypedPolicy.cs (1)
26ArgumentNullException.ThrowIfNull(policyType);
Policies\VaryByHeaderPolicy.cs (2)
21ArgumentNullException.ThrowIfNull(header); 33ArgumentNullException.ThrowIfNull(headerNames);
Policies\VaryByQueryPolicy.cs (2)
22ArgumentNullException.ThrowIfNull(queryKey); 34ArgumentNullException.ThrowIfNull(queryKeys);
Policies\VaryByRouteValuePolicy.cs (2)
21ArgumentNullException.ThrowIfNull(routeValue); 33ArgumentNullException.ThrowIfNull(routeValueNames);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
191ArgumentNullException.ThrowIfNull(value);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (3)
RedisOutputCacheStore.cs (1)
239ArgumentNullException.ThrowIfNull(value);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.OutputCaching.Tests (5)
MemoryOutputCacheStoreTests.cs (2)
48_ = await Assert.ThrowsAsync<ArgumentNullException>("key", () => store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default).AsTask()); 58_ = await Assert.ThrowsAsync<ArgumentNullException>("value", () => store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default).AsTask());
TestUtils.cs (3)
279ArgumentNullException.ThrowIfNull(response); 280ArgumentNullException.ThrowIfNull(text); 340ArgumentNullException.ThrowIfNull(key);
Microsoft.AspNetCore.Owin (7)
OwinEnvironment.cs (1)
179ArgumentNullException.ThrowIfNull(array);
OwinExtensions.cs (6)
32ArgumentNullException.ThrowIfNull(builder); 75ArgumentNullException.ThrowIfNull(builder); 76ArgumentNullException.ThrowIfNull(pipeline); 100ArgumentNullException.ThrowIfNull(app); 175ArgumentNullException.ThrowIfNull(app); 176ArgumentNullException.ThrowIfNull(pipeline);
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
149Assert.Throws<ArgumentNullException>(() => collection.CopyTo(null, 0)); // array is null
Microsoft.AspNetCore.RateLimiting (25)
EnableRateLimitingAttribute.cs (1)
22ArgumentNullException.ThrowIfNull(policyName);
RateLimiterApplicationBuilderExtensions.cs (3)
23ArgumentNullException.ThrowIfNull(app); 38ArgumentNullException.ThrowIfNull(app); 39ArgumentNullException.ThrowIfNull(options);
RateLimiterEndpointConventionBuilderExtensions.cs (5)
21ArgumentNullException.ThrowIfNull(builder); 22ArgumentNullException.ThrowIfNull(policyName); 40ArgumentNullException.ThrowIfNull(builder); 41ArgumentNullException.ThrowIfNull(policy); 58ArgumentNullException.ThrowIfNull(builder);
RateLimiterOptions.cs (5)
50ArgumentNullException.ThrowIfNull(policyName); 51ArgumentNullException.ThrowIfNull(partitioner); 69ArgumentNullException.ThrowIfNull(policyName); 94ArgumentNullException.ThrowIfNull(policyName); 101ArgumentNullException.ThrowIfNull(policy);
RateLimiterOptionsExtensions.cs (4)
29ArgumentNullException.ThrowIfNull(configureOptions); 58ArgumentNullException.ThrowIfNull(configureOptions); 87ArgumentNullException.ThrowIfNull(configureOptions); 112ArgumentNullException.ThrowIfNull(configureOptions);
RateLimiterServiceCollectionExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(services); 23ArgumentNullException.ThrowIfNull(configureOptions); 37ArgumentNullException.ThrowIfNull(services);
RateLimitingMiddleware.cs (4)
37ArgumentNullException.ThrowIfNull(next); 38ArgumentNullException.ThrowIfNull(logger); 39ArgumentNullException.ThrowIfNull(serviceProvider); 40ArgumentNullException.ThrowIfNull(metrics);
Microsoft.AspNetCore.RateLimiting.Tests (9)
RateLimitingApplicationBuilderExtensionsTests.cs (2)
16Assert.Throws<ArgumentNullException>(() => RateLimiterApplicationBuilderExtensions.UseRateLimiter(null)); 23Assert.Throws<ArgumentNullException>(() => appBuilder.UseRateLimiter(null));
RateLimitingMiddlewareTests.cs (4)
24Assert.Throws<ArgumentNullException>(() => new RateLimitingMiddleware( 31Assert.Throws<ArgumentNullException>(() => new RateLimitingMiddleware(c => 40Assert.Throws<ArgumentNullException>(() => new RateLimitingMiddleware(c => 49Assert.Throws<ArgumentNullException>(() => new RateLimitingMiddleware(c =>
RateLimitingOptionsTests.cs (3)
16Assert.Throws<ArgumentNullException>(() => options.AddPolicy<string>(null, context => RateLimitPartition.GetNoLimiter<string>("myKey"))); 23Assert.Throws<ArgumentNullException>(() => options.AddPolicy<string>("myKey", partitioner: null)); 30Assert.Throws<ArgumentNullException>(() => options.AddPolicy<string>("myKey", policy: null));
Microsoft.AspNetCore.Razor (39)
TagHelpers\DefaultTagHelperContent.cs (4)
98ArgumentNullException.ThrowIfNull(destination); 121ArgumentNullException.ThrowIfNull(destination); 181ArgumentNullException.ThrowIfNull(writer); 182ArgumentNullException.ThrowIfNull(encoder);
TagHelpers\NullHtmlEncoder.cs (5)
34ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(output); 43ArgumentNullException.ThrowIfNull(value); 56ArgumentNullException.ThrowIfNull(output); 57ArgumentNullException.ThrowIfNull(value);
TagHelpers\OutputElementHintAttribute.cs (1)
20ArgumentNullException.ThrowIfNull(outputElement);
TagHelpers\ReadOnlyTagHelperAttributeList.cs (5)
47ArgumentNullException.ThrowIfNull(name); 96ArgumentNullException.ThrowIfNull(name); 116ArgumentNullException.ThrowIfNull(name); 151ArgumentNullException.ThrowIfNull(name); 177ArgumentNullException.ThrowIfNull(attribute);
TagHelpers\TagHelperAttribute.cs (5)
47ArgumentNullException.ThrowIfNull(name); 83ArgumentNullException.ThrowIfNull(writer); 84ArgumentNullException.ThrowIfNull(encoder); 119ArgumentNullException.ThrowIfNull(destination); 164ArgumentNullException.ThrowIfNull(destination);
TagHelpers\TagHelperAttributeList.cs (8)
27ArgumentNullException.ThrowIfNull(attributes); 38ArgumentNullException.ThrowIfNull(attributes); 53ArgumentNullException.ThrowIfNull(value); 90ArgumentNullException.ThrowIfNull(attribute); 138ArgumentNullException.ThrowIfNull(attribute); 146ArgumentNullException.ThrowIfNull(attribute); 157ArgumentNullException.ThrowIfNull(attribute); 181ArgumentNullException.ThrowIfNull(name);
TagHelpers\TagHelperContext.cs (4)
27ArgumentNullException.ThrowIfNull(tagName); 44ArgumentNullException.ThrowIfNull(items); 45ArgumentNullException.ThrowIfNull(uniqueId); 46ArgumentNullException.ThrowIfNull(allAttributes);
TagHelpers\TagHelperOutput.cs (7)
45ArgumentNullException.ThrowIfNull(getChildContentAsync); 46ArgumentNullException.ThrowIfNull(attributes); 113ArgumentNullException.ThrowIfNull(value); 281ArgumentNullException.ThrowIfNull(destination); 330ArgumentNullException.ThrowIfNull(destination); 384ArgumentNullException.ThrowIfNull(writer); 385ArgumentNullException.ThrowIfNull(encoder);
Microsoft.AspNetCore.Razor.Runtime (36)
Hosting\DefaultRazorCompiledItem.cs (3)
12ArgumentNullException.ThrowIfNull(type); 13ArgumentNullException.ThrowIfNull(kind); 14ArgumentNullException.ThrowIfNull(identifier);
Hosting\RazorCompiledItemAttribute.cs (2)
25ArgumentNullException.ThrowIfNull(type); 26ArgumentNullException.ThrowIfNull(kind);
Hosting\RazorCompiledItemExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(item);
Hosting\RazorCompiledItemLoader.cs (3)
36ArgumentNullException.ThrowIfNull(assembly); 54ArgumentNullException.ThrowIfNull(attribute); 67ArgumentNullException.ThrowIfNull(assembly);
Hosting\RazorConfigurationNameAttribute.cs (1)
23ArgumentNullException.ThrowIfNull(configurationName);
Hosting\RazorExtensionAssemblyNameAttribute.cs (2)
24ArgumentNullException.ThrowIfNull(extensionName); 25ArgumentNullException.ThrowIfNull(assemblyName);
Hosting\RazorLanguageVersionAttribute.cs (1)
23ArgumentNullException.ThrowIfNull(languageVersion);
Hosting\RazorSourceChecksumAttribute.cs (3)
30ArgumentNullException.ThrowIfNull(checksumAlgorithm); 31ArgumentNullException.ThrowIfNull(checksum); 32ArgumentNullException.ThrowIfNull(identifier);
Runtime\TagHelpers\TagHelperExecutionContext.cs (11)
60ArgumentNullException.ThrowIfNull(startTagHelperWritingScope); 61ArgumentNullException.ThrowIfNull(endTagHelperWritingScope); 112ArgumentNullException.ThrowIfNull(tagHelper); 125ArgumentNullException.ThrowIfNull(name); 137ArgumentNullException.ThrowIfNull(attribute); 151ArgumentNullException.ThrowIfNull(name); 163ArgumentNullException.ThrowIfNull(attribute); 183ArgumentNullException.ThrowIfNull(tagName); 184ArgumentNullException.ThrowIfNull(items); 185ArgumentNullException.ThrowIfNull(uniqueId); 186ArgumentNullException.ThrowIfNull(executeChildContentAsync);
Runtime\TagHelpers\TagHelperRunner.cs (1)
23ArgumentNullException.ThrowIfNull(executionContext);
Runtime\TagHelpers\TagHelperScopeManager.cs (5)
29ArgumentNullException.ThrowIfNull(startTagHelperWritingScope); 30ArgumentNullException.ThrowIfNull(endTagHelperWritingScope); 49ArgumentNullException.ThrowIfNull(tagName); 50ArgumentNullException.ThrowIfNull(uniqueId); 51ArgumentNullException.ThrowIfNull(executeChildContentAsync);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (2)
26ArgumentNullException.ThrowIfNull(sourceDictionary); 27ArgumentNullException.ThrowIfNull(comparer);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
19ArgumentNullException.ThrowIfNull(source);
Microsoft.AspNetCore.RequestDecompression (10)
DefaultRequestDecompressionProvider.cs (2)
22ArgumentNullException.ThrowIfNull(logger); 23ArgumentNullException.ThrowIfNull(options);
RequestDecompressionBuilderExtensions.cs (1)
19ArgumentNullException.ThrowIfNull(builder);
RequestDecompressionMiddleware.cs (3)
31ArgumentNullException.ThrowIfNull(next); 32ArgumentNullException.ThrowIfNull(logger); 33ArgumentNullException.ThrowIfNull(provider);
RequestDecompressionServiceExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(services); 35ArgumentNullException.ThrowIfNull(services); 36ArgumentNullException.ThrowIfNull(configureOptions);
src\Shared\SizeLimitedStream.cs (1)
15ArgumentNullException.ThrowIfNull(innerStream);
Microsoft.AspNetCore.RequestDecompression.Tests (9)
DefaultRequestDecompressionProviderTests.cs (2)
139Assert.Throws<ArgumentNullException>(() => 153Assert.Throws<ArgumentNullException>(() =>
RequestDecompressionBuilderExtensionsTests.cs (1)
17Assert.Throws<ArgumentNullException>(() =>
RequestDecompressionMiddlewareTests.cs (3)
606Assert.Throws<ArgumentNullException>(() => 621Assert.Throws<ArgumentNullException>(() => 637Assert.Throws<ArgumentNullException>(() =>
RequestDecompressionServiceExtensionsTests.cs (2)
18Assert.Throws<ArgumentNullException>(() => 32Assert.Throws<ArgumentNullException>(() =>
SizeLimitedStreamTests.cs (1)
15Assert.Throws<ArgumentNullException>(() =>
Microsoft.AspNetCore.ResponseCaching (16)
CacheEntry\CachedResponseBody.cs (1)
22ArgumentNullException.ThrowIfNull(destination);
ResponseCachingExtensions.cs (1)
19ArgumentNullException.ThrowIfNull(app);
ResponseCachingKeyProvider.cs (4)
24ArgumentNullException.ThrowIfNull(poolProvider); 25ArgumentNullException.ThrowIfNull(options); 39ArgumentNullException.ThrowIfNull(context); 77ArgumentNullException.ThrowIfNull(context);
ResponseCachingMiddleware.cs (6)
65ArgumentNullException.ThrowIfNull(next); 66ArgumentNullException.ThrowIfNull(options); 67ArgumentNullException.ThrowIfNull(loggerFactory); 68ArgumentNullException.ThrowIfNull(policyProvider); 69ArgumentNullException.ThrowIfNull(cache); 70ArgumentNullException.ThrowIfNull(keyProvider);
ResponseCachingServicesExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(services); 37ArgumentNullException.ThrowIfNull(services); 38ArgumentNullException.ThrowIfNull(configureOptions);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Microsoft.AspNetCore.ResponseCaching.Tests (2)
TestUtils.cs (2)
265ArgumentNullException.ThrowIfNull(response); 266ArgumentNullException.ThrowIfNull(text);
Microsoft.AspNetCore.ResponseCompression (13)
BrotliCompressionProvider.cs (1)
20ArgumentNullException.ThrowIfNull(options);
CompressionProviderCollection.cs (1)
35ArgumentNullException.ThrowIfNull(providerType);
CompressionProviderFactory.cs (1)
25ArgumentNullException.ThrowIfNull(serviceProvider);
GzipCompressionProvider.cs (1)
20ArgumentNullException.ThrowIfNull(options);
ResponseCompressionBuilderExtensions.cs (1)
19ArgumentNullException.ThrowIfNull(builder);
ResponseCompressionMiddleware.cs (2)
25ArgumentNullException.ThrowIfNull(next); 26ArgumentNullException.ThrowIfNull(provider);
ResponseCompressionProvider.cs (2)
32ArgumentNullException.ThrowIfNull(services); 33ArgumentNullException.ThrowIfNull(options);
ResponseCompressionServicesExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(services); 36ArgumentNullException.ThrowIfNull(services); 37ArgumentNullException.ThrowIfNull(configureOptions);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Microsoft.AspNetCore.Rewrite (18)
ApacheModRewriteOptionsExtensions.cs (4)
22ArgumentNullException.ThrowIfNull(options); 23ArgumentNullException.ThrowIfNull(fileProvider); 39ArgumentNullException.ThrowIfNull(options); 40ArgumentNullException.ThrowIfNull(reader);
IISUrlRewrite\RewriteMapParser.cs (1)
13ArgumentNullException.ThrowIfNull(xmlRoot);
IISUrlRewrite\UrlRewriteRuleBuilder.cs (1)
78ArgumentNullException.ThrowIfNull(condition);
IISUrlRewriteOptionsExtensions.cs (4)
26ArgumentNullException.ThrowIfNull(options); 27ArgumentNullException.ThrowIfNull(fileProvider); 46ArgumentNullException.ThrowIfNull(options); 47ArgumentNullException.ThrowIfNull(reader);
RedirectToNonWwwRule.cs (1)
23ArgumentNullException.ThrowIfNull(domains);
RedirectToWwwRule.cs (1)
23ArgumentNullException.ThrowIfNull(domains);
RewriteBuilderExtensions.cs (3)
25ArgumentNullException.ThrowIfNull(app); 38ArgumentNullException.ThrowIfNull(app); 39ArgumentNullException.ThrowIfNull(options);
RewriteMiddleware.cs (3)
38ArgumentNullException.ThrowIfNull(next); 39ArgumentNullException.ThrowIfNull(options); 54ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Rewrite.Tests (1)
ApacheModRewrite\FlagParserTest.cs (1)
61Assert.Throws<ArgumentNullException>(() => FlagParser.Parse(null));
Microsoft.AspNetCore.Routing (274)
Builder\EndpointRouteBuilderExtensions.cs (10)
51ArgumentNullException.ThrowIfNull(endpoints); 52ArgumentNullException.ThrowIfNull(prefix); 152ArgumentNullException.ThrowIfNull(httpMethods); 195ArgumentNullException.ThrowIfNull(endpoints); 196ArgumentNullException.ThrowIfNull(pattern); 197ArgumentNullException.ThrowIfNull(requestDelegate); 327ArgumentNullException.ThrowIfNull(httpMethods); 433ArgumentNullException.ThrowIfNull(endpoints); 434ArgumentNullException.ThrowIfNull(pattern); 435ArgumentNullException.ThrowIfNull(handler);
Builder\EndpointRoutingApplicationBuilderExtensions.cs (3)
41ArgumentNullException.ThrowIfNull(builder); 90ArgumentNullException.ThrowIfNull(builder); 91ArgumentNullException.ThrowIfNull(configure);
Builder\FallbackEndpointRouteBuilderExtensions.cs (5)
41ArgumentNullException.ThrowIfNull(endpoints); 42ArgumentNullException.ThrowIfNull(requestDelegate); 73ArgumentNullException.ThrowIfNull(endpoints); 74ArgumentNullException.ThrowIfNull(pattern); 75ArgumentNullException.ThrowIfNull(requestDelegate);
Builder\RouteHandlerServices.cs (10)
42ArgumentNullException.ThrowIfNull(endpoints); 43ArgumentNullException.ThrowIfNull(pattern); 44ArgumentNullException.ThrowIfNull(handler); 45ArgumentNullException.ThrowIfNull(populateMetadata); 46ArgumentNullException.ThrowIfNull(createRequestDelegate); 73ArgumentNullException.ThrowIfNull(endpoints); 74ArgumentNullException.ThrowIfNull(pattern); 75ArgumentNullException.ThrowIfNull(handler); 76ArgumentNullException.ThrowIfNull(populateMetadata); 77ArgumentNullException.ThrowIfNull(createRequestDelegate);
Builder\RoutingBuilderExtensions.cs (4)
22ArgumentNullException.ThrowIfNull(builder); 23ArgumentNullException.ThrowIfNull(router); 45ArgumentNullException.ThrowIfNull(builder); 46ArgumentNullException.ThrowIfNull(action);
Builder\RoutingEndpointConventionBuilderExtensions.cs (10)
27ArgumentNullException.ThrowIfNull(builder); 28ArgumentNullException.ThrowIfNull(hosts); 46ArgumentNullException.ThrowIfNull(builder); 65ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(func); 85ArgumentNullException.ThrowIfNull(builder); 86ArgumentNullException.ThrowIfNull(items); 159ArgumentNullException.ThrowIfNull(builder); 180ArgumentNullException.ThrowIfNull(builder); 215ArgumentNullException.ThrowIfNull(builder);
ConfigureRouteOptions.cs (2)
15ArgumentNullException.ThrowIfNull(dataSources); 22ArgumentNullException.ThrowIfNull(options);
Constraints\BoolRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
Constraints\CompositeRouteConstraint.cs (3)
27ArgumentNullException.ThrowIfNull(constraints); 50ArgumentNullException.ThrowIfNull(routeKey); 51ArgumentNullException.ThrowIfNull(values);
Constraints\DateTimeRouteConstraint.cs (2)
42ArgumentNullException.ThrowIfNull(routeKey); 43ArgumentNullException.ThrowIfNull(values);
Constraints\DecimalRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
Constraints\DoubleRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
Constraints\FileNameRouteConstraint.cs (2)
107ArgumentNullException.ThrowIfNull(routeKey); 108ArgumentNullException.ThrowIfNull(values);
Constraints\FloatRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
Constraints\GuidRouteConstraint.cs (2)
38ArgumentNullException.ThrowIfNull(routeKey); 39ArgumentNullException.ThrowIfNull(values);
Constraints\HttpMethodRouteConstraint.cs (4)
22ArgumentNullException.ThrowIfNull(allowedMethods); 40ArgumentNullException.ThrowIfNull(routeKey); 41ArgumentNullException.ThrowIfNull(values); 47ArgumentNullException.ThrowIfNull(httpContext);
Constraints\IntRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
Constraints\LengthRouteConstraint.cs (2)
92ArgumentNullException.ThrowIfNull(routeKey); 93ArgumentNullException.ThrowIfNull(values);
Constraints\LongRouteConstraint.cs (2)
36ArgumentNullException.ThrowIfNull(routeKey); 37ArgumentNullException.ThrowIfNull(values);
Constraints\MaxLengthRouteConstraint.cs (2)
56ArgumentNullException.ThrowIfNull(routeKey); 57ArgumentNullException.ThrowIfNull(values);
Constraints\MaxRouteConstraint.cs (2)
51ArgumentNullException.ThrowIfNull(routeKey); 53ArgumentNullException.ThrowIfNull(values);
Constraints\MinLengthRouteConstraint.cs (2)
56ArgumentNullException.ThrowIfNull(routeKey); 57ArgumentNullException.ThrowIfNull(values);
Constraints\MinRouteConstraint.cs (2)
50ArgumentNullException.ThrowIfNull(routeKey); 51ArgumentNullException.ThrowIfNull(values);
Constraints\NonFileNameRouteConstraint.cs (2)
103ArgumentNullException.ThrowIfNull(routeKey); 104ArgumentNullException.ThrowIfNull(values);
Constraints\OptionalRouteConstraint.cs (3)
27ArgumentNullException.ThrowIfNull(innerConstraint); 50ArgumentNullException.ThrowIfNull(routeKey); 51ArgumentNullException.ThrowIfNull(values);
Constraints\RangeRouteConstraint.cs (2)
64ArgumentNullException.ThrowIfNull(routeKey); 65ArgumentNullException.ThrowIfNull(values);
Constraints\RegexRouteConstraint.cs (4)
36ArgumentNullException.ThrowIfNull(regex); 49ArgumentNullException.ThrowIfNull(regexPattern); 91ArgumentNullException.ThrowIfNull(routeKey); 92ArgumentNullException.ThrowIfNull(values);
Constraints\RequiredRouteConstraint.cs (2)
26ArgumentNullException.ThrowIfNull(routeKey); 27ArgumentNullException.ThrowIfNull(values);
Constraints\StringRouteConstraint.cs (3)
23ArgumentNullException.ThrowIfNull(value); 31ArgumentNullException.ThrowIfNull(routeKey); 32ArgumentNullException.ThrowIfNull(values);
DataSourceDependentCache.cs (2)
29ArgumentNullException.ThrowIfNull(dataSource); 30ArgumentNullException.ThrowIfNull(initialize);
DefaultEndpointDataSource.cs (2)
25ArgumentNullException.ThrowIfNull(endpoints); 36ArgumentNullException.ThrowIfNull(endpoints);
DefaultInlineConstraintResolver.cs (3)
33ArgumentNullException.ThrowIfNull(routeOptions); 34ArgumentNullException.ThrowIfNull(serviceProvider); 50ArgumentNullException.ThrowIfNull(inlineConstraint);
DefaultLinkGenerator.cs (2)
78ArgumentNullException.ThrowIfNull(httpContext); 130ArgumentNullException.ThrowIfNull(httpContext);
DefaultParameterPolicyFactory.cs (2)
25ArgumentNullException.ThrowIfNull(parameterPolicy); 37ArgumentNullException.ThrowIfNull(inlineText);
DependencyInjection\RoutingServiceCollectionExtensions.cs (3)
44ArgumentNullException.ThrowIfNull(services); 133ArgumentNullException.ThrowIfNull(services); 134ArgumentNullException.ThrowIfNull(configureOptions);
EndpointGroupNameAttribute.cs (1)
18ArgumentNullException.ThrowIfNull(endpointGroupName);
EndpointNameAddressScheme.cs (1)
24ArgumentNullException.ThrowIfNull(address);
EndpointNameAttribute.cs (1)
24ArgumentNullException.ThrowIfNull(endpointName);
EndpointNameMetadata.cs (1)
26ArgumentNullException.ThrowIfNull(endpointName);
EndpointRoutingMiddleware.cs (1)
44ArgumentNullException.ThrowIfNull(endpointRouteBuilder);
HostAttribute.cs (2)
26ArgumentNullException.ThrowIfNull(host); 39ArgumentNullException.ThrowIfNull(hosts);
HttpMethodMetadata.cs (1)
39ArgumentNullException.ThrowIfNull(httpMethods);
InlineRouteParameterParser.cs (1)
20ArgumentNullException.ThrowIfNull(routeParameter);
LinkGeneratorEndpointNameAddressExtensions.cs (20)
41ArgumentNullException.ThrowIfNull(generator); 42ArgumentNullException.ThrowIfNull(httpContext); 43ArgumentNullException.ThrowIfNull(endpointName); 81ArgumentNullException.ThrowIfNull(generator); 82ArgumentNullException.ThrowIfNull(httpContext); 83ArgumentNullException.ThrowIfNull(endpointName); 117ArgumentNullException.ThrowIfNull(generator); 118ArgumentNullException.ThrowIfNull(endpointName); 145ArgumentNullException.ThrowIfNull(generator); 146ArgumentNullException.ThrowIfNull(endpointName); 194ArgumentNullException.ThrowIfNull(generator); 195ArgumentNullException.ThrowIfNull(httpContext); 196ArgumentNullException.ThrowIfNull(endpointName); 253ArgumentNullException.ThrowIfNull(generator); 254ArgumentNullException.ThrowIfNull(httpContext); 255ArgumentNullException.ThrowIfNull(endpointName); 306ArgumentNullException.ThrowIfNull(generator); 307ArgumentNullException.ThrowIfNull(endpointName); 355ArgumentNullException.ThrowIfNull(generator); 356ArgumentNullException.ThrowIfNull(endpointName);
LinkGeneratorRouteValuesAddressExtensions.cs (12)
41ArgumentNullException.ThrowIfNull(generator); 42ArgumentNullException.ThrowIfNull(httpContext); 81ArgumentNullException.ThrowIfNull(generator); 82ArgumentNullException.ThrowIfNull(httpContext); 117ArgumentNullException.ThrowIfNull(generator); 145ArgumentNullException.ThrowIfNull(generator); 194ArgumentNullException.ThrowIfNull(generator); 195ArgumentNullException.ThrowIfNull(httpContext); 253ArgumentNullException.ThrowIfNull(generator); 254ArgumentNullException.ThrowIfNull(httpContext); 306ArgumentNullException.ThrowIfNull(generator); 349ArgumentNullException.ThrowIfNull(generator);
LinkParserEndpointNameAddressExtensions.cs (2)
40ArgumentNullException.ThrowIfNull(parser); 41ArgumentNullException.ThrowIfNull(endpointName);
Matching\AcceptsMatcherPolicy.cs (6)
24ArgumentNullException.ThrowIfNull(endpoints); 36ArgumentNullException.ThrowIfNull(endpoints); 49ArgumentNullException.ThrowIfNull(httpContext); 50ArgumentNullException.ThrowIfNull(candidates); 140ArgumentNullException.ThrowIfNull(endpoints); 262ArgumentNullException.ThrowIfNull(edges);
Matching\CandidateSet.cs (3)
37ArgumentNullException.ThrowIfNull(endpoints); 38ArgumentNullException.ThrowIfNull(values); 39ArgumentNullException.ThrowIfNull(scores);
Matching\DefaultEndpointSelector.cs (2)
15ArgumentNullException.ThrowIfNull(httpContext); 16ArgumentNullException.ThrowIfNull(candidateSet);
Matching\DfaMatcher.cs (1)
34ArgumentNullException.ThrowIfNull(httpContext);
Matching\DfaMatcherFactory.cs (2)
16ArgumentNullException.ThrowIfNull(services); 23ArgumentNullException.ThrowIfNull(dataSource);
Matching\EndpointMetadataComparer.cs (5)
26ArgumentNullException.ThrowIfNull(services); 50ArgumentNullException.ThrowIfNull(x); 51ArgumentNullException.ThrowIfNull(y); 96ArgumentNullException.ThrowIfNull(x); 97ArgumentNullException.ThrowIfNull(y);
Matching\HostMatcherPolicy.cs (5)
28ArgumentNullException.ThrowIfNull(endpoints); 73ArgumentNullException.ThrowIfNull(httpContext); 74ArgumentNullException.ThrowIfNull(candidates); 188ArgumentNullException.ThrowIfNull(endpoints); 289ArgumentNullException.ThrowIfNull(edges);
Matching\HttpMethodMatcherPolicy.cs (4)
41ArgumentNullException.ThrowIfNull(endpoints); 53ArgumentNullException.ThrowIfNull(endpoints); 80ArgumentNullException.ThrowIfNull(httpContext); 81ArgumentNullException.ThrowIfNull(candidates);
Matching\MatcherPolicy.cs (1)
49ArgumentNullException.ThrowIfNull(endpoints);
Matching\NegotiationMatcherPolicy.cs (2)
223ArgumentNullException.ThrowIfNull(endpoints); 331ArgumentNullException.ThrowIfNull(edges);
ParameterPolicyActivator.cs (1)
76ArgumentNullException.ThrowIfNull(inlineParameterPolicy);
ParameterPolicyFactory.cs (1)
38ArgumentNullException.ThrowIfNull(reference);
Patterns\DefaultRoutePatternTransformer.cs (3)
16ArgumentNullException.ThrowIfNull(policyFactory); 25ArgumentNullException.ThrowIfNull(original); 32ArgumentNullException.ThrowIfNull(original);
Patterns\RouteParameterParser.cs (1)
18ArgumentNullException.ThrowIfNull(parameter);
Patterns\RoutePattern.cs (1)
140ArgumentNullException.ThrowIfNull(name);
Patterns\RoutePatternException.cs (2)
34ArgumentNullException.ThrowIfNull(pattern); 35ArgumentNullException.ThrowIfNull(message);
Patterns\RoutePatternFactory.cs (23)
47ArgumentNullException.ThrowIfNull(pattern); 72ArgumentNullException.ThrowIfNull(pattern); 97ArgumentNullException.ThrowIfNull(pattern); 126ArgumentNullException.ThrowIfNull(pattern); 154ArgumentNullException.ThrowIfNull(pattern); 167ArgumentNullException.ThrowIfNull(segments); 180ArgumentNullException.ThrowIfNull(segments); 209ArgumentNullException.ThrowIfNull(segments); 236ArgumentNullException.ThrowIfNull(segments); 266ArgumentNullException.ThrowIfNull(segments); 295ArgumentNullException.ThrowIfNull(segments); 307ArgumentNullException.ThrowIfNull(segments); 320ArgumentNullException.ThrowIfNull(segments); 348ArgumentNullException.ThrowIfNull(segments); 375ArgumentNullException.ThrowIfNull(segments); 405ArgumentNullException.ThrowIfNull(segments); 434ArgumentNullException.ThrowIfNull(segments); 698ArgumentNullException.ThrowIfNull(parts); 711ArgumentNullException.ThrowIfNull(parts); 867ArgumentNullException.ThrowIfNull(parameterPolicies); 903ArgumentNullException.ThrowIfNull(parameterPolicies); 974ArgumentNullException.ThrowIfNull(constraint); 1004ArgumentNullException.ThrowIfNull(parameterPolicy);
Patterns\RoutePatternMatcher.cs (2)
27ArgumentNullException.ThrowIfNull(pattern); 65ArgumentNullException.ThrowIfNull(values);
Patterns\RoutePatternParser.cs (1)
27ArgumentNullException.ThrowIfNull(pattern);
Route.cs (1)
81ArgumentNullException.ThrowIfNull(target);
RouteBase.cs (2)
42ArgumentNullException.ThrowIfNull(constraintResolver); 108ArgumentNullException.ThrowIfNull(context);
RouteBuilder.cs (1)
33ArgumentNullException.ThrowIfNull(applicationBuilder);
RouteCollection.cs (1)
46ArgumentNullException.ThrowIfNull(router);
RouteConstraintBuilder.cs (7)
38ArgumentNullException.ThrowIfNull(inlineConstraintResolver); 39ArgumentNullException.ThrowIfNull(displayName); 97ArgumentNullException.ThrowIfNull(key); 98ArgumentNullException.ThrowIfNull(value); 134ArgumentNullException.ThrowIfNull(key); 135ArgumentNullException.ThrowIfNull(constraintText); 162ArgumentNullException.ThrowIfNull(key);
RouteConstraintMatcher.cs (4)
49ArgumentNullException.ThrowIfNull(routeValues); 51ArgumentNullException.ThrowIfNull(httpContext); 52ArgumentNullException.ThrowIfNull(route); 53ArgumentNullException.ThrowIfNull(logger);
RouteEndpoint.cs (2)
32ArgumentNullException.ThrowIfNull(requestDelegate); 33ArgumentNullException.ThrowIfNull(routePattern);
RouteEndpointBuilder.cs (1)
40ArgumentNullException.ThrowIfNull(routePattern);
RouteOptions.cs (1)
90ArgumentNullException.ThrowIfNull(value);
RouteValuesAddressScheme.cs (1)
25ArgumentNullException.ThrowIfNull(address);
Template\DefaultTemplateBinderFactory.cs (5)
19ArgumentNullException.ThrowIfNull(policyFactory); 20ArgumentNullException.ThrowIfNull(pool); 28ArgumentNullException.ThrowIfNull(template); 29ArgumentNullException.ThrowIfNull(defaults); 36ArgumentNullException.ThrowIfNull(pattern);
Template\InlineConstraint.cs (2)
23ArgumentNullException.ThrowIfNull(constraint); 34ArgumentNullException.ThrowIfNull(other);
Template\RouteTemplate.cs (2)
26ArgumentNullException.ThrowIfNull(other); 61ArgumentNullException.ThrowIfNull(segments);
Template\TemplateBinder.cs (6)
71ArgumentNullException.ThrowIfNull(urlEncoder); 72ArgumentNullException.ThrowIfNull(pool); 73ArgumentNullException.ThrowIfNull(pattern); 101ArgumentNullException.ThrowIfNull(urlEncoder); 102ArgumentNullException.ThrowIfNull(pool); 103ArgumentNullException.ThrowIfNull(pattern);
Template\TemplateMatcher.cs (2)
30ArgumentNullException.ThrowIfNull(template); 83ArgumentNullException.ThrowIfNull(values);
Template\TemplateParser.cs (1)
20ArgumentNullException.ThrowIfNull(routeTemplate);
Template\TemplatePart.cs (1)
88ArgumentNullException.ThrowIfNull(name);
Template\TemplateSegment.cs (1)
30ArgumentNullException.ThrowIfNull(other);
Tree\TreeRouteBuilder.cs (8)
53ArgumentNullException.ThrowIfNull(loggerFactory); 55ArgumentNullException.ThrowIfNull(objectPool); 57ArgumentNullException.ThrowIfNull(constraintResolver); 91ArgumentNullException.ThrowIfNull(handler); 92ArgumentNullException.ThrowIfNull(routeTemplate); 186ArgumentNullException.ThrowIfNull(handler); 187ArgumentNullException.ThrowIfNull(routeTemplate); 188ArgumentNullException.ThrowIfNull(requiredLinkValues);
Tree\TreeRouter.cs (7)
71ArgumentNullException.ThrowIfNull(trees); 73ArgumentNullException.ThrowIfNull(linkGenerationEntries); 75ArgumentNullException.ThrowIfNull(urlEncoder); 77ArgumentNullException.ThrowIfNull(objectPool); 79ArgumentNullException.ThrowIfNull(routeLogger); 81ArgumentNullException.ThrowIfNull(constraintLogger); 140ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Routing.Abstractions (8)
RouteContext.cs (1)
48ArgumentNullException.ThrowIfNull(value);
RouteData.cs (3)
35ArgumentNullException.ThrowIfNull(other); 60ArgumentNullException.ThrowIfNull(values); 219ArgumentNullException.ThrowIfNull(routeData);
RoutingHttpContextExtensions.cs (3)
23ArgumentNullException.ThrowIfNull(httpContext); 38ArgumentNullException.ThrowIfNull(httpContext); 39ArgumentNullException.ThrowIfNull(key);
VirtualPathData.cs (1)
36ArgumentNullException.ThrowIfNull(router);
Microsoft.AspNetCore.Routing.FunctionalTests (1)
src\Shared\SizeLimitedStream.cs (1)
15ArgumentNullException.ThrowIfNull(innerStream);
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Matching\TrivialMatcher.cs (1)
25ArgumentNullException.ThrowIfNull(httpContext);
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (1)
22ArgumentNullException.ThrowIfNull(httpContext);
src\Http\Routing\test\UnitTests\Matching\RouteMatcher.cs (1)
20ArgumentNullException.ThrowIfNull(httpContext);
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcher.cs (1)
21ArgumentNullException.ThrowIfNull(httpContext);
Microsoft.AspNetCore.Routing.Tests (23)
Builder\GroupTest.cs (5)
138var ex = Assert.Throws<ArgumentNullException>(() => builder.MapGroup((string)null!)); 140ex = Assert.Throws<ArgumentNullException>(() => builder.MapGroup((RoutePattern)null!)); 145ex = Assert.Throws<ArgumentNullException>(() => builder!.MapGroup(RoutePatternFactory.Parse("/"))); 147ex = Assert.Throws<ArgumentNullException>(() => builder!.MapGroup("/"));
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
1108ArgumentNullException.ThrowIfNull(contentType);
DefaultEndpointDataSourceTests.cs (4)
49var actual = Assert.Throws<ArgumentNullException>(() => new DefaultEndpointDataSource(endpoints)); 93var actual = Assert.Throws<ArgumentNullException>(() => new DefaultEndpointDataSource(endpoints));
Matching\BarebonesMatcher.cs (1)
22ArgumentNullException.ThrowIfNull(httpContext);
Matching\RouteMatcher.cs (1)
20ArgumentNullException.ThrowIfNull(httpContext);
Matching\TreeRouterMatcher.cs (1)
21ArgumentNullException.ThrowIfNull(httpContext);
RouteEndpointBuilderTest.cs (2)
23var ex = Assert.Throws<ArgumentNullException>(() => new RouteEndpointBuilder(context => Task.CompletedTask, routePattern: null, order: 0));
RoutingServiceCollectionExtensionsTests.cs (6)
24Assert.IsType<ArgumentNullException>(ex); 25Assert.Equal("services", (ex as ArgumentNullException).ParamName); 38Assert.IsType<ArgumentNullException>(ex); 39Assert.Equal("configureOptions", (ex as ArgumentNullException).ParamName); 50Assert.IsType<ArgumentNullException>(ex); 51Assert.Equal("services", (ex as ArgumentNullException).ParamName);
Template\TemplateSegmentTest.cs (2)
15var actual = Assert.ThrowsAny<ArgumentNullException>(() => new TemplateSegment(other));
Microsoft.AspNetCore.Server.HttpSys (10)
HttpSysListener.cs (2)
50ArgumentNullException.ThrowIfNull(options); 51ArgumentNullException.ThrowIfNull(loggerFactory);
MessagePump.cs (3)
34ArgumentNullException.ThrowIfNull(options); 35ArgumentNullException.ThrowIfNull(loggerFactory); 67ArgumentNullException.ThrowIfNull(application);
RequestProcessing\RequestContext.cs (1)
344ArgumentNullException.ThrowIfNull(destination);
RequestProcessing\RequestContext.FeatureCollection.cs (2)
456ArgumentNullException.ThrowIfNull(callback); 467ArgumentNullException.ThrowIfNull(callback);
RequestProcessing\ResponseBody.cs (1)
571ArgumentNullException.ThrowIfNull(asyncResult);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestBodyTests.cs (1)
129Assert.Throws<ArgumentNullException>("buffer", () => httpContext.Request.Body.Read(null, 0, 1));
Microsoft.AspNetCore.Server.IIS (7)
Core\IISHttpContext.FeatureCollection.cs (1)
301ArgumentNullException.ThrowIfNull(value);
src\Shared\RazorViews\BaseView.cs (4)
101ArgumentNullException.ThrowIfNull(writer); 182ArgumentNullException.ThrowIfNull(name); 183ArgumentNullException.ThrowIfNull(leader); 184ArgumentNullException.ThrowIfNull(trailer);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
WebHostBuilderIISExtensions.cs (1)
27ArgumentNullException.ThrowIfNull(hostBuilder);
Microsoft.AspNetCore.Server.IISIntegration (5)
IISMiddleware.cs (4)
76ArgumentNullException.ThrowIfNull(next); 77ArgumentNullException.ThrowIfNull(loggerFactory); 78ArgumentNullException.ThrowIfNull(options); 79ArgumentNullException.ThrowIfNull(applicationLifetime);
WebHostBuilderIISExtensions.cs (1)
33ArgumentNullException.ThrowIfNull(hostBuilder);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\ApplicationDeployerFactory.cs (2)
22ArgumentNullException.ThrowIfNull(deploymentParameters); 23ArgumentNullException.ThrowIfNull(loggerFactory);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
ApplicationDeployerFactory.cs (2)
22ArgumentNullException.ThrowIfNull(deploymentParameters); 23ArgumentNullException.ThrowIfNull(loggerFactory);
Microsoft.AspNetCore.Server.Kestrel (1)
WebHostBuilderKestrelExtensions.cs (1)
167ArgumentNullException.ThrowIfNull(configureOptions);
Microsoft.AspNetCore.Server.Kestrel.Core (35)
Internal\Http\HttpRequestStream.cs (1)
157ArgumentNullException.ThrowIfNull(destination);
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
40ArgumentNullException.ThrowIfNull(value);
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
35ArgumentNullException.ThrowIfNull(value);
Internal\KestrelServerImpl.cs (3)
57ArgumentNullException.ThrowIfNull(transportFactories); 80ArgumentNullException.ThrowIfNull(options); 81ArgumentNullException.ThrowIfNull(loggerFactory);
Internal\TlsConnectionFeature.cs (2)
24ArgumentNullException.ThrowIfNull(sslStream); 25ArgumentNullException.ThrowIfNull(context);
KestrelConfigurationLoader.cs (10)
103ArgumentNullException.ThrowIfNull(address); 118ArgumentNullException.ThrowIfNull(endPoint); 119ArgumentNullException.ThrowIfNull(configure); 141ArgumentNullException.ThrowIfNull(configure); 161ArgumentNullException.ThrowIfNull(configure); 181ArgumentNullException.ThrowIfNull(socketPath); 186ArgumentNullException.ThrowIfNull(configure); 206ArgumentNullException.ThrowIfNull(pipeName); 207ArgumentNullException.ThrowIfNull(configure); 227ArgumentNullException.ThrowIfNull(configure);
KestrelServerOptions.cs (10)
487ArgumentNullException.ThrowIfNull(address); 524ArgumentNullException.ThrowIfNull(endPoint); 525ArgumentNullException.ThrowIfNull(configure); 545ArgumentNullException.ThrowIfNull(configure); 563ArgumentNullException.ThrowIfNull(configure); 585ArgumentNullException.ThrowIfNull(socketPath); 591ArgumentNullException.ThrowIfNull(configure); 613ArgumentNullException.ThrowIfNull(configure); 635ArgumentNullException.ThrowIfNull(pipeName); 636ArgumentNullException.ThrowIfNull(configure);
ListenOptionsHttpsExtensions.cs (5)
128ArgumentNullException.ThrowIfNull(serverCertificate); 146ArgumentNullException.ThrowIfNull(serverCertificate); 147ArgumentNullException.ThrowIfNull(configureOptions); 164ArgumentNullException.ThrowIfNull(configureOptions); 250ArgumentNullException.ThrowIfNull(callbackOptions);
Middleware\HttpsConnectionMiddleware.cs (1)
64ArgumentNullException.ThrowIfNull(options);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
HttpRequestStreamTests.cs (1)
205await Assert.ThrowsAsync<ArgumentNullException>(async () => { await stream.CopyToAsync(null); });
KestrelServerOptionsTests.cs (2)
102var ex = Assert.Throws<ArgumentNullException>(() => options.RequestHeaderEncodingSelector = null);
KestrelServerTests.cs (2)
281var exception = Assert.Throws<ArgumentNullException>(() =>
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (4)
Internal\NamedPipeTransportFactory.cs (3)
26ArgumentNullException.ThrowIfNull(loggerFactory); 37ArgumentNullException.ThrowIfNull(endpoint); 70ArgumentNullException.ThrowIfNull(endpoint);
NamedPipeTransportOptions.cs (1)
93ArgumentNullException.ThrowIfNull(context);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
QuicTransportFactory.cs (3)
23ArgumentNullException.ThrowIfNull(options); 24ArgumentNullException.ThrowIfNull(loggerFactory); 40ArgumentNullException.ThrowIfNull(endpoint);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (6)
Client\SocketConnectionFactory.cs (2)
26ArgumentNullException.ThrowIfNull(options); 27ArgumentNullException.ThrowIfNull(loggerFactory);
SocketConnectionContextFactory.cs (2)
33ArgumentNullException.ThrowIfNull(options); 34ArgumentNullException.ThrowIfNull(logger);
SocketTransportFactory.cs (2)
29ArgumentNullException.ThrowIfNull(options); 30ArgumentNullException.ThrowIfNull(loggerFactory);
Microsoft.AspNetCore.Session (19)
CookieProtection.cs (1)
14ArgumentNullException.ThrowIfNull(protector);
DistributedSession.cs (4)
66ArgumentNullException.ThrowIfNull(cache); 68ArgumentNullException.ThrowIfNull(tryEstablishSession); 69ArgumentNullException.ThrowIfNull(loggerFactory); 141ArgumentNullException.ThrowIfNull(value);
DistributedSessionStore.cs (3)
25ArgumentNullException.ThrowIfNull(cache); 26ArgumentNullException.ThrowIfNull(loggerFactory); 36ArgumentNullException.ThrowIfNull(tryEstablishSession);
SessionMiddleware.cs (5)
42ArgumentNullException.ThrowIfNull(next); 43ArgumentNullException.ThrowIfNull(loggerFactory); 44ArgumentNullException.ThrowIfNull(dataProtectionProvider); 45ArgumentNullException.ThrowIfNull(sessionStore); 46ArgumentNullException.ThrowIfNull(options);
SessionMiddlewareExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(app); 34ArgumentNullException.ThrowIfNull(app); 35ArgumentNullException.ThrowIfNull(options);
SessionServiceCollectionExtensions.cs (3)
24ArgumentNullException.ThrowIfNull(services); 40ArgumentNullException.ThrowIfNull(services); 41ArgumentNullException.ThrowIfNull(configure);
Microsoft.AspNetCore.Shared.Tests (23)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (2)
26ArgumentNullException.ThrowIfNull(sourceDictionary); 27ArgumentNullException.ThrowIfNull(comparer);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
19ArgumentNullException.ThrowIfNull(source);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
295ArgumentNullException.ThrowIfNull(array); 612ArgumentNullException.ThrowIfNull(dictionary);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
32ArgumentNullException.ThrowIfNull(methodInfo); 114ArgumentNullException.ThrowIfNull(parameterDefaultValues);
src\Shared\PropertyActivator\PropertyActivator.cs (9)
30ArgumentNullException.ThrowIfNull(instance); 42ArgumentNullException.ThrowIfNull(type); 43ArgumentNullException.ThrowIfNull(activateAttributeType); 44ArgumentNullException.ThrowIfNull(createActivateInfo); 55ArgumentNullException.ThrowIfNull(type); 56ArgumentNullException.ThrowIfNull(activateAttributeType); 57ArgumentNullException.ThrowIfNull(createActivateInfo); 69ArgumentNullException.ThrowIfNull(type); 70ArgumentNullException.ThrowIfNull(createActivateInfo);
src\Shared\TaskToApm.cs (1)
45ArgumentNullException.ThrowIfNull(asyncResult, nameof(asyncResult));
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.AspNetCore.SignalR (5)
GetHttpContextExtensions.cs (2)
21ArgumentNullException.ThrowIfNull(connection); 32ArgumentNullException.ThrowIfNull(connection);
SignalRDependencyInjectionExtensions.cs (3)
25ArgumentNullException.ThrowIfNull(signalrBuilder); 39ArgumentNullException.ThrowIfNull(services); 58ArgumentNullException.ThrowIfNull(services);
Microsoft.AspNetCore.SignalR.Client (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.AspNetCore.SignalR.Client.Core (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.SignalR.Client.Tests (3)
HttpConnectionTests.cs (3)
52var exception = Assert.Throws<ArgumentNullException>(() => new HttpConnection(null)); 122Assert.Throws<ArgumentNullException>(() => httpOptions.Cookies = null);
Microsoft.AspNetCore.SignalR.Common (5)
HubException.cs (1)
50/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.AspNetCore.SignalR.Core (19)
DefaultHubLifetimeManager.cs (8)
36ArgumentNullException.ThrowIfNull(connectionId); 37ArgumentNullException.ThrowIfNull(groupName); 69ArgumentNullException.ThrowIfNull(connectionId); 70ArgumentNullException.ThrowIfNull(groupName); 185ArgumentNullException.ThrowIfNull(connectionId); 204ArgumentNullException.ThrowIfNull(groupName); 256ArgumentNullException.ThrowIfNull(groupName); 336ArgumentNullException.ThrowIfNull(connectionId);
Internal\DefaultHubActivator.cs (1)
39ArgumentNullException.ThrowIfNull(hub);
Internal\Proxies.cs (4)
13ArgumentNullException.ThrowIfNull(userId); 49ArgumentNullException.ThrowIfNull(groupName); 86ArgumentNullException.ThrowIfNull(groupName); 156ArgumentNullException.ThrowIfNull(connectionId);
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (2)
40ArgumentNullException.ThrowIfNull(queryType); 41ArgumentNullException.ThrowIfNull(interfaceType);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
32ArgumentNullException.ThrowIfNull(methodInfo); 114ArgumentNullException.ThrowIfNull(parameterDefaultValues);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (12)
RedisHubLifetimeManager.cs (10)
169ArgumentNullException.ThrowIfNull(connectionId); 186ArgumentNullException.ThrowIfNull(groupName); 195ArgumentNullException.ThrowIfNull(groupName); 211ArgumentNullException.ThrowIfNull(connectionId); 212ArgumentNullException.ThrowIfNull(groupName); 227ArgumentNullException.ThrowIfNull(connectionId); 228ArgumentNullException.ThrowIfNull(groupName); 243ArgumentNullException.ThrowIfNull(connectionIds); 259ArgumentNullException.ThrowIfNull(groupNames); 383ArgumentNullException.ThrowIfNull(connectionId);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
30ArgumentNullException.ThrowIfNull(serverFixture);
Microsoft.AspNetCore.SignalR.Tests (3)
DefaultHubActivatorTests.cs (1)
61Assert.Throws<ArgumentNullException>(
Internal\DefaultHubProtocolResolverTests.cs (2)
59var exception = Assert.Throws<ArgumentNullException>(
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
HubConnectionBuilderTestExtensions.cs (1)
15ArgumentNullException.ThrowIfNull(loggerFactory);
Microsoft.AspNetCore.SpaServices.Extensions (11)
AngularCli\AngularCliMiddlewareExtensions.cs (1)
27ArgumentNullException.ThrowIfNull(spaBuilder);
Proxying\SpaProxy.cs (3)
194ArgumentNullException.ThrowIfNull(uri); 211ArgumentNullException.ThrowIfNull(context); 212ArgumentNullException.ThrowIfNull(destinationUri);
ReactDevelopmentServer\ReactDevelopmentServerMiddlewareExtensions.cs (1)
27ArgumentNullException.ThrowIfNull(spaBuilder);
SpaApplicationBuilderExtensions.cs (1)
30ArgumentNullException.ThrowIfNull(configuration);
SpaDefaultPageMiddleware.cs (1)
16ArgumentNullException.ThrowIfNull(spaBuilder);
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
22ArgumentNullException.ThrowIfNull(options);
StaticFiles\SpaStaticFilesExtensions.cs (3)
64ArgumentNullException.ThrowIfNull(applicationBuilder); 65ArgumentNullException.ThrowIfNull(options); 77ArgumentNullException.ThrowIfNull(staticFileOptions);
Microsoft.AspNetCore.StaticAssets (5)
StaticAssetsEndpointConventionBuilder.cs (2)
35ArgumentNullException.ThrowIfNull(convention); 45ArgumentNullException.ThrowIfNull(convention);
StaticAssetsEndpointRouteBuilderExtensions.cs (2)
28ArgumentNullException.ThrowIfNull(endpoints); 89ArgumentNullException.ThrowIfNull(endpoints);
StaticAssetsManifest.cs (1)
26ArgumentNullException.ThrowIfNull(manifestPath);
Microsoft.AspNetCore.StaticFiles (45)
DefaultFilesExtensions.cs (4)
27ArgumentNullException.ThrowIfNull(app); 44ArgumentNullException.ThrowIfNull(app); 60ArgumentNullException.ThrowIfNull(app); 61ArgumentNullException.ThrowIfNull(options);
DefaultFilesMiddleware.cs (3)
32ArgumentNullException.ThrowIfNull(next); 33ArgumentNullException.ThrowIfNull(hostingEnv); 34ArgumentNullException.ThrowIfNull(options);
DirectoryBrowserExtensions.cs (4)
27ArgumentNullException.ThrowIfNull(app); 44ArgumentNullException.ThrowIfNull(app); 60ArgumentNullException.ThrowIfNull(app); 61ArgumentNullException.ThrowIfNull(options);
DirectoryBrowserMiddleware.cs (4)
44ArgumentNullException.ThrowIfNull(next); 45ArgumentNullException.ThrowIfNull(hostingEnv); 46ArgumentNullException.ThrowIfNull(encoder); 47ArgumentNullException.ThrowIfNull(options);
DirectoryBrowserServiceExtensions.cs (1)
18ArgumentNullException.ThrowIfNull(services);
FileExtensionContentTypeProvider.cs (1)
418ArgumentNullException.ThrowIfNull(mapping);
FileServerExtensions.cs (6)
26ArgumentNullException.ThrowIfNull(app); 43ArgumentNullException.ThrowIfNull(app); 63ArgumentNullException.ThrowIfNull(app); 64ArgumentNullException.ThrowIfNull(requestPath); 80ArgumentNullException.ThrowIfNull(app); 81ArgumentNullException.ThrowIfNull(options);
HtmlDirectoryFormatter.cs (3)
28ArgumentNullException.ThrowIfNull(encoder); 37ArgumentNullException.ThrowIfNull(context); 38ArgumentNullException.ThrowIfNull(contents);
Infrastructure\SharedOptionsBase.cs (1)
21ArgumentNullException.ThrowIfNull(sharedOptions);
StaticFileExtensions.cs (4)
27ArgumentNullException.ThrowIfNull(app); 44ArgumentNullException.ThrowIfNull(app); 60ArgumentNullException.ThrowIfNull(app); 61ArgumentNullException.ThrowIfNull(options);
StaticFileMiddleware.cs (4)
34ArgumentNullException.ThrowIfNull(next); 35ArgumentNullException.ThrowIfNull(hostingEnv); 36ArgumentNullException.ThrowIfNull(options); 37ArgumentNullException.ThrowIfNull(loggerFactory);
StaticFilesEndpointRouteBuilderExtensions.cs (10)
51ArgumentNullException.ThrowIfNull(endpoints); 52ArgumentNullException.ThrowIfNull(filePath); 87ArgumentNullException.ThrowIfNull(endpoints); 88ArgumentNullException.ThrowIfNull(filePath); 129ArgumentNullException.ThrowIfNull(endpoints); 130ArgumentNullException.ThrowIfNull(pattern); 131ArgumentNullException.ThrowIfNull(filePath); 171ArgumentNullException.ThrowIfNull(endpoints); 172ArgumentNullException.ThrowIfNull(pattern); 173ArgumentNullException.ThrowIfNull(filePath);
Microsoft.AspNetCore.TestHost (14)
ClientHandler.cs (1)
78ArgumentNullException.ThrowIfNull(request);
HttpContextBuilder.cs (2)
63ArgumentNullException.ThrowIfNull(configureContext); 70ArgumentNullException.ThrowIfNull(sendRequestStream);
RequestBuilder.cs (1)
38ArgumentNullException.ThrowIfNull(configure);
TestServer.cs (2)
93ArgumentNullException.ThrowIfNull(builder); 209ArgumentNullException.ThrowIfNull(configureContext);
WebHostBuilderExtensions.cs (8)
77ArgumentNullException.ThrowIfNull(webHostBuilder); 78ArgumentNullException.ThrowIfNull(servicesConfiguration); 106ArgumentNullException.ThrowIfNull(webHostBuilder); 107ArgumentNullException.ThrowIfNull(servicesConfiguration); 149ArgumentNullException.ThrowIfNull(solutionRelativePath); 150ArgumentNullException.ThrowIfNull(applicationBasePath); 177ArgumentNullException.ThrowIfNull(servicesConfiguration); 198ArgumentNullException.ThrowIfNull(containerConfiguration);
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
306Assert.Throws<ArgumentNullException>(() => new TestServer(builder, null));
Microsoft.AspNetCore.Testing (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.AspNetCore.Testing.Tests (2)
FakesExtensionsTests.cs (2)
130Assert.IsType<ArgumentNullException>(exception); 211Assert.IsType<ArgumentNullException>(exception);
Microsoft.AspNetCore.WebSockets (6)
WebSocketMiddleware.cs (2)
37ArgumentNullException.ThrowIfNull(next); 38ArgumentNullException.ThrowIfNull(options);
WebSocketMiddlewareExtensions.cs (3)
25ArgumentNullException.ThrowIfNull(app); 44ArgumentNullException.ThrowIfNull(app); 45ArgumentNullException.ThrowIfNull(options);
WebSocketsDependencyInjectionExtensions.cs (1)
22ArgumentNullException.ThrowIfNull(configure);
Microsoft.AspNetCore.WebUtilities (38)
BufferedReadStream.cs (1)
43ArgumentNullException.ThrowIfNull(inner);
FileBufferingReadStream.cs (4)
76ArgumentNullException.ThrowIfNull(inner); 77ArgumentNullException.ThrowIfNull(tempFileDirectoryAccessor); 128ArgumentNullException.ThrowIfNull(inner); 129ArgumentNullException.ThrowIfNull(tempFileDirectory);
FormReader.cs (3)
62ArgumentNullException.ThrowIfNull(data); 96ArgumentNullException.ThrowIfNull(stream); 97ArgumentNullException.ThrowIfNull(encoding);
HttpRequestStreamReader.cs (2)
155ArgumentNullException.ThrowIfNull(buffer); 216ArgumentNullException.ThrowIfNull(buffer);
MultipartBoundary.cs (1)
15ArgumentNullException.ThrowIfNull(boundary);
MultipartReader.cs (2)
50ArgumentNullException.ThrowIfNull(boundary); 51ArgumentNullException.ThrowIfNull(stream);
MultipartReaderStream.cs (2)
38ArgumentNullException.ThrowIfNull(stream); 39ArgumentNullException.ThrowIfNull(boundary);
MultipartSectionConverterExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(section); 39ArgumentNullException.ThrowIfNull(section);
MultipartSectionStreamExtensions.cs (1)
30ArgumentNullException.ThrowIfNull(section);
QueryHelpers.cs (18)
23/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <c>null</c>.</exception> 24/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> 25/// <exception cref="ArgumentNullException"><paramref name="value"/> is <c>null</c>.</exception> 28ArgumentNullException.ThrowIfNull(uri); 29ArgumentNullException.ThrowIfNull(name); 30ArgumentNullException.ThrowIfNull(value); 42/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <c>null</c>.</exception> 43/// <exception cref="ArgumentNullException"><paramref name="queryString"/> is <c>null</c>.</exception> 46ArgumentNullException.ThrowIfNull(uri); 47ArgumentNullException.ThrowIfNull(queryString); 58/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <c>null</c>.</exception> 59/// <exception cref="ArgumentNullException"><paramref name="queryString"/> is <c>null</c>.</exception> 62ArgumentNullException.ThrowIfNull(uri); 63ArgumentNullException.ThrowIfNull(queryString); 74/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <c>null</c>.</exception> 75/// <exception cref="ArgumentNullException"><paramref name="queryString"/> is <c>null</c>.</exception> 80ArgumentNullException.ThrowIfNull(uri); 81ArgumentNullException.ThrowIfNull(queryString);
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.AspNetCore.WebUtilities.Tests (3)
HttpRequestStreamReaderTest.cs (1)
346Assert.Throws<ArgumentNullException>(() =>
HttpResponseStreamWriterTest.cs (1)
734Assert.Throws<ArgumentNullException>(() =>
QueryHelpersTests.cs (1)
107Assert.Throws<ArgumentNullException>("value", () => QueryHelpers.AddQueryString("http://contoso.com/", "hello", null!));
Microsoft.Bcl.AsyncInterfaces (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Bcl.Cryptography (5)
System\Security\Cryptography\X509Certificates\X509CertificateKeyAccessors.cs (5)
29/// <exception cref="ArgumentNullException"> 97/// <exception cref="ArgumentNullException"> 123/// <exception cref="ArgumentNullException"> 174/// <exception cref="ArgumentNullException"> 177/// <exception cref="ArgumentNullException">
Microsoft.Bcl.Numerics (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Bcl.TimeProvider (3)
System\Threading\Tasks\TimeProviderTaskExtensions.cs (3)
47/// <exception cref="System.ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 128/// <exception cref="System.ArgumentNullException"><paramref name="task"/> or <paramref name="timeProvider"/> is <see langword="null" />.</exception> 218/// <exception cref="System.ArgumentNullException"><paramref name="task"/> or <paramref name="timeProvider"/> is <see langword="null" />.</exception>
Microsoft.Build (40)
BackEnd\Components\Logging\ILoggingService.cs (2)
328/// <exception cref="ArgumentNullException">When forwardingLoggerSink is null</exception> 329/// <exception cref="ArgumentNullException">When loggerDescriptions is null</exception>
ErrorUtilities.cs (1)
605/// <exception cref="ArgumentNullException">If <paramref name="array"/> is null.</exception>
ExceptionHandling.cs (2)
166|| (e is ArgumentException && !(e is ArgumentNullException)) 311|| e is ArgumentNullException
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
300catch (ArgumentNullException e) 451catch (ArgumentNullException e)
TaskLoggingHelper.cs (32)
180/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 202/// <exception cref="ArgumentNullException">Thrown when <c>resourceName</c> is null.</exception> 224/// <exception cref="ArgumentNullException">Thrown when <c>unformatted</c> is null.</exception> 270/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 292/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 351/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 414/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 462/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 487/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 637/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 657/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 688/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 745/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 765/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 825/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 850/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 899/// <exception cref="ArgumentNullException">Thrown when <c>e</c> is null.</exception> 911/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 926/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 959/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 979/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1010/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1086/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1106/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1164/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1189/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1237/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1249/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1277/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1291/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1318/// <exception cref="ArgumentNullException">Thrown when <c>stream</c> is null.</exception> 1346/// <exception cref="ArgumentNullException">Thrown when <c>lineOfText</c> is null.</exception>
TaskLoggingHelperExtension.cs (1)
88/// <exception cref="ArgumentNullException">Thrown when <c>resourceName</c> is null.</exception>
Microsoft.Build.Engine.OM.UnitTests (24)
Construction\ProjectExtensionsElement_Tests.cs (1)
98Assert.Throws<ArgumentNullException>(() =>
Construction\ProjectMetadataElement_Tests.cs (1)
360Assert.Throws<ArgumentNullException>(() =>
Construction\ProjectOnErrorElement_Tests.cs (1)
232Assert.Throws<ArgumentNullException>(() =>
Construction\ProjectPropertyElement_Tests.cs (1)
243Assert.Throws<ArgumentNullException>(() =>
Construction\ProjectTargetElement_Tests.cs (4)
105Assert.Throws<ArgumentNullException>(() => 117Assert.Throws<ArgumentNullException>(() => 129Assert.Throws<ArgumentNullException>(() => 141Assert.Throws<ArgumentNullException>(() =>
Construction\ProjectTaskElement_Tests.cs (2)
170Assert.Throws<ArgumentNullException>(() => 209Assert.Throws<ArgumentNullException>(() =>
Construction\UsingTaskBodyElement_Tests.cs (1)
105Assert.Throws<ArgumentNullException>(() =>
Definition\Project_Tests.cs (1)
2363Should.Throw<ArgumentNullException>(() =>
Definition\ProjectCollection_Tests.cs (2)
1017Assert.Throws<ArgumentNullException>(() => 1061Assert.Throws<ArgumentNullException>(() =>
ExceptionHandling.cs (2)
166|| (e is ArgumentException && !(e is ArgumentNullException)) 311|| e is ArgumentNullException
Instance\ProjectInstance_Tests.cs (5)
154Assert.Throws<ArgumentNullException>(() => 178Assert.Throws<ArgumentNullException>(() => 343Assert.Throws<ArgumentNullException>(() => 355Assert.Throws<ArgumentNullException>(() => 367Assert.Throws<ArgumentNullException>(() =>
Instance\ProjectItemInstance_Tests.cs (2)
233Assert.Throws<ArgumentNullException>(() => 295Assert.Throws<ArgumentNullException>(() =>
Instance\ProjectPropertyInstance_Tests.cs (1)
69Assert.Throws<ArgumentNullException>(() =>
Microsoft.Build.Engine.UnitTests (36)
BackEnd\AssemblyTaskFactory_Tests.cs (1)
56Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildManager_Tests.cs (1)
112Assert.Throws<ArgumentNullException>(() => { new BuildParameters(null); });
BackEnd\BuildRequest_Tests.cs (1)
29Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildRequestConfiguration_Tests.cs (4)
42Assert.Throws<ArgumentNullException>(() => 50Assert.Throws<ArgumentNullException>(() => 88Assert.Throws<ArgumentNullException>(() => 97Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildRequestEntry_Tests.cs (1)
34Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildResult_Tests.cs (4)
159Assert.Throws<ArgumentNullException>(() => 170Assert.Throws<ArgumentNullException>(() => 181Assert.Throws<ArgumentNullException>(() => 216Assert.Throws<ArgumentNullException>(() =>
BackEnd\ConfigurationMetadata_Tests.cs (2)
36Assert.Throws<ArgumentNullException>(() => 48Assert.Throws<ArgumentNullException>(() =>
BackEnd\FullyQualifiedBuildRequest_Tests.cs (2)
31Assert.Throws<ArgumentNullException>(() => 40Assert.Throws<ArgumentNullException>(() =>
BackEnd\NodeEndpointInProc_Tests.cs (2)
190Assert.Throws<ArgumentNullException>(() => 200Assert.Throws<ArgumentNullException>(() =>
BackEnd\TargetEntry_Tests.cs (3)
79Assert.Throws<ArgumentNullException>(() => 94Assert.Throws<ArgumentNullException>(() => 108Assert.Throws<ArgumentNullException>(() =>
BackEnd\TargetResult_Tests.cs (1)
53Assert.Throws<ArgumentNullException>(() =>
BackEnd\TaskHost_Tests.cs (4)
236Assert.Throws<ArgumentNullException>(() => 247Assert.Throws<ArgumentNullException>(() => 258Assert.Throws<ArgumentNullException>(() => 269Assert.Throws<ArgumentNullException>(() =>
Definition\Toolset_Tests.cs (2)
24Assert.Throws<ArgumentNullException>(() => 33Assert.Throws<ArgumentNullException>(() =>
Evaluation\SimpleVersion_Tests.cs (1)
235yield return new object[] { null, typeof(ArgumentNullException) }; // Input is null
FileUtilities_Tests.cs (1)
449Assert.Throws<ArgumentNullException>(() =>
Globbing\MSBuildGlob_Tests.cs (3)
57Assert.Throws<ArgumentNullException>(() => MSBuildGlob.Parse(null, "*")); 107Assert.Throws<ArgumentNullException>(() => MSBuildGlob.Parse(null)); 180Assert.Throws<ArgumentNullException>(() => glob.IsMatch(null));
Instance\HostServices_Tests.cs (3)
59Assert.Throws<ArgumentNullException>(() => 72Assert.Throws<ArgumentNullException>(() => 85Assert.Throws<ArgumentNullException>(() =>
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
139private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
Microsoft.Build.Tasks.CodeAnalysis (7)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
134(e is ArgumentException && !(e is ArgumentNullException)) ||
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.Build.Tasks.CodeAnalysis.Sdk (7)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
134(e is ArgumentException && !(e is ArgumentNullException)) ||
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.Build.Tasks.Core (5)
ErrorUtilities.cs (1)
605/// <exception cref="ArgumentNullException">If <paramref name="array"/> is null.</exception>
ExceptionHandling.cs (2)
166|| (e is ArgumentException && !(e is ArgumentNullException)) 311|| e is ArgumentNullException
ManifestUtil\Util.cs (1)
342catch (ArgumentNullException)
TaskLoggingHelperExtension.cs (1)
88/// <exception cref="ArgumentNullException">Thrown when <c>resourceName</c> is null.</exception>
Microsoft.Build.Tasks.UnitTests (5)
GetInstalledSDKLocations_Tests.cs (2)
169Assert.Throws<ArgumentNullException>(() => 183Assert.Throws<ArgumentNullException>(() =>
ResolveSDKReference_Tests.cs (2)
1434Assert.Throws<ArgumentNullException>(() => 1450Assert.Throws<ArgumentNullException>(() =>
XslTransformation_Tests.cs (1)
606Assert.Throws<System.ArgumentNullException>(() =>
Microsoft.Build.Utilities.Core (46)
ErrorUtilities.cs (1)
605/// <exception cref="ArgumentNullException">If <paramref name="array"/> is null.</exception>
ExceptionHandling.cs (2)
166|| (e is ArgumentException && !(e is ArgumentNullException)) 311|| e is ArgumentNullException
TaskLoggingHelper.cs (32)
180/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 202/// <exception cref="ArgumentNullException">Thrown when <c>resourceName</c> is null.</exception> 224/// <exception cref="ArgumentNullException">Thrown when <c>unformatted</c> is null.</exception> 270/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 292/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 351/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 414/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 462/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 487/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 637/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 657/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 688/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 745/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 765/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 825/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 850/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 899/// <exception cref="ArgumentNullException">Thrown when <c>e</c> is null.</exception> 911/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 926/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 959/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 979/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1010/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1086/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1106/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1164/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1189/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1237/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1249/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1277/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1291/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1318/// <exception cref="ArgumentNullException">Thrown when <c>stream</c> is null.</exception> 1346/// <exception cref="ArgumentNullException">Thrown when <c>lineOfText</c> is null.</exception>
ToolLocationHelper.cs (8)
1754/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1784/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1797/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1811/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1877/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1895/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1914/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1935/// <exception cref="ArgumentNullException">When the frameworkName is null</exception>
TrackedDependencies\FileTracker.cs (3)
754/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 774/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 787/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception>
Microsoft.Build.Utilities.UnitTests (14)
EventArgsFormatting_Tests.cs (2)
161Should.Throw<ArgumentNullException>(() => 174Should.Throw<ArgumentNullException>(() =>
StringExtensions_Tests.cs (2)
65[InlineData(null, "ab", "x", StringComparison.CurrentCulture, typeof(ArgumentNullException))] 66[InlineData("ab", null, "x", StringComparison.CurrentCulture, typeof(ArgumentNullException))]
TaskItem_Tests.cs (3)
76Should.Throw<ArgumentNullException>(() => 104Should.Throw<ArgumentNullException>(() => 282Should.Throw<ArgumentNullException>(() =>
ToolLocationHelper_Tests.cs (7)
1841Should.Throw<ArgumentNullException>(() => 1852Should.Throw<ArgumentNullException>(() => 1863Should.Throw<ArgumentNullException>(() => 1906Should.Throw<ArgumentNullException>(() => 3119Should.Throw<ArgumentNullException>(() => new SDKManifest(null)); 3977Should.Throw<ArgumentNullException>(() => ToolLocationHelper.GetPlatformsForSDK(null, new Version("1.0"))); 3987Should.Throw<ArgumentNullException>(() => ToolLocationHelper.GetPlatformsForSDK("AnySDK", null));
Microsoft.CodeAnalysis (69)
CommandLine\CommandLineArguments.cs (1)
381/// <exception cref="ArgumentNullException"><paramref name="metadataResolver"/> is null.</exception>
Compilation\Compilation.cs (1)
1124/// <exception cref="ArgumentNullException">
Compilation\SourceReferenceResolver.cs (1)
44/// <exception cref="ArgumentNullException"><paramref name="resolvedPath"/> is null.</exception>
Compilation\XmlReferenceResolver.cs (1)
34/// <exception cref="ArgumentNullException"><paramref name="resolvedPath"/> is null.</exception>
Desktop\DesktopAssemblyIdentityComparer.cs (1)
51/// <exception cref="ArgumentNullException"><paramref name="input"/> is null.</exception>
Diagnostic\FileLinePositionSpan.cs (2)
49/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
DiagnosticAnalyzer\IAnalyzerAssemblyLoader.cs (2)
38/// <exception cref="ArgumentNullException"><paramref name="fullPath" /> is null.</exception> 45/// <exception cref="ArgumentNullException"><paramref name="fullPath" /> is null.</exception>
DiaSymReader\Writer\SymUnmanagedWriter.cs (7)
111/// <exception cref="ArgumentNullException"><paramref name="name"/> is null</exception> 120/// <exception cref="ArgumentNullException"><paramref name="importString"/> is null</exception> 129/// <exception cref="ArgumentNullException"><paramref name="yieldOffsets"/> or <paramref name="resumeOffsets"/> is null</exception> 144/// <exception cref="ArgumentNullException"><paramref name="metadata"/> is null</exception> 176/// <exception cref="ArgumentNullException"><paramref name="data"/> is null</exception> 185/// <exception cref="ArgumentNullException"><paramref name="data"/> is null</exception> 224/// <exception cref="ArgumentNullException"><paramref name="name"/> is null.</exception>
DiaSymReader\Writer\SymUnmanagedWriterFactory.cs (1)
29/// <exception cref="ArgumentNullException"><paramref name="metadataProvider"/>is null.</exception>
DocumentationCommentId.cs (2)
48/// <exception cref="ArgumentNullException">If <paramref name="symbol"/> is <see langword="null"/>.</exception> 68/// <exception cref="ArgumentNullException">If <paramref name="symbol"/> is <see langword="null"/>.</exception>
EmbeddedText.cs (4)
89/// <exception cref="ArgumentNullException"> 125/// <exception cref="ArgumentNullException"> 165/// <exception cref="ArgumentNullException"> 193/// <exception cref="ArgumentNullException"><paramref name="filePath"/> is null.</exception>
Emit\EditAndContinue\EmitBaseline.cs (3)
132/// <exception cref="ArgumentNullException"><paramref name="module"/> is null.</exception> 133/// <exception cref="ArgumentNullException"><paramref name="debugInformationProvider"/> is null.</exception> 134/// <exception cref="ArgumentNullException"><paramref name="localSignatureProvider"/> is null.</exception>
Emit\SemanticEdit.cs (1)
98/// <exception cref="ArgumentNullException">
FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
FileSystemExtensions.cs (1)
29/// <exception cref="ArgumentNullException">Compilation or path is null.</exception>
Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
Hashing\XxHash128.cs (3)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 62ArgumentNullException.ThrowIfNull(source);
MetadataReference\AssemblyIdentity.cs (1)
521/// <exception cref="ArgumentNullException"><paramref name="assembly"/> is null.</exception>
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
194/// <exception cref="ArgumentNullException"><paramref name="displayName"/> is null.</exception>
MetadataReference\AssemblyMetadata.cs (6)
113/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 158/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 196/// <exception cref="ArgumentNullException"><paramref name="modules"/> contains null elements.</exception> 228/// <exception cref="ArgumentNullException"><paramref name="modules"/> contains null elements.</exception> 241/// <exception cref="ArgumentNullException"><paramref name="modules"/> contains null elements.</exception>
MetadataReference\MetadataReference.cs (6)
118/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 156/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 181/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 222/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 288/// <exception cref="ArgumentNullException"><paramref name="assembly"/> is null.</exception> 315/// <exception cref="ArgumentNullException"><paramref name="assembly"/> is null.</exception>
MetadataReference\ModuleMetadata.cs (8)
69/// <exception cref="ArgumentNullException"><paramref name="metadata"/> is null.</exception> 83/// <exception cref="ArgumentNullException"><paramref name="onDispose"/> is null.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 149/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 164/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 183/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 255/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
Operations\OperationExtensions.cs (1)
349/// <exception cref="ArgumentNullException"><paramref name="operation"/> is null</exception>
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
675/// <exception cref="ArgumentNullException"><paramref name="import"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
Symbols\IMethodSymbol.cs (1)
183/// <exception cref="System.ArgumentNullException">If <paramref name="reducedFromTypeParameter"/> is null.</exception>
Text\SourceText.cs (4)
103/// <exception cref="ArgumentNullException"><paramref name="text"/> is null.</exception> 129/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 171/// <exception cref="ArgumentNullException"><paramref name="stream"/> is null.</exception> 244/// <exception cref="ArgumentNullException">The <paramref name="buffer"/> is null.</exception>
Microsoft.CodeAnalysis.Analyzers (46)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.AnalyzerUtilities (45)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.BannedApiAnalyzers (46)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.CodeStyle (36)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.Collections.Package (11)
Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.CSharp (12)
Compilation\CSharpSemanticModel.cs (10)
2517/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="method"/> is null.</exception> 2544/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="accessor"/> is null.</exception> 2573/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="type"/> is null.</exception> 2599/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="statement"/> is null.</exception> 2626/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="initializer"/> is null.</exception> 2653/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="expressionBody"/> is null.</exception> 2683/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="constructorInitializer"/> is null.</exception> 2712/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="constructorInitializer"/> is null.</exception> 2742/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="crefSyntax"/> is null.</exception> 2768/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="attribute"/> is null.</exception>
CSharpFileSystemExtensions.cs (1)
28/// <exception cref="ArgumentNullException">Compilation or path is null.</exception>
Symbols\MethodSymbol.cs (1)
833/// <exception cref="System.ArgumentNullException">If <paramref name="reducedFromTypeParameter"/> is null.</exception>
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (7)
5791Assert.Throws<ArgumentNullException>(() => comp.CreateTupleTypeSymbol(null, default(ImmutableArray<string>))); 6216Assert.Throws<ArgumentNullException>(() => comp.CreateErrorTypeSymbol(null, null, 2)); 6220Assert.Throws<ArgumentNullException>(() => comp.CreateErrorNamespaceSymbol(null, "a")); 6221Assert.Throws<ArgumentNullException>(() => comp.CreateErrorNamespaceSymbol(vbComp.GlobalNamespace, null)); 6341Assert.Throws<ArgumentNullException>(() => comp.CreateTupleTypeSymbol(default(ImmutableArray<ITypeSymbol>), default(ImmutableArray<string>))); 6355Assert.Throws<ArgumentNullException>(() => comp.CreateTupleTypeSymbol(new[] { intType, null }.AsImmutable(), default(ImmutableArray<string>))); 10959Assert.Throws<ArgumentNullException>(() => Compilation.GetRequiredLanguageVersion(null));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
FlowAnalysis\RegionAnalysisTests.cs (6)
3103Assert.Throws<ArgumentNullException>(() => semanticModel.AnalyzeControlFlow(statement, null)); 3104Assert.Throws<ArgumentNullException>(() => semanticModel.AnalyzeControlFlow(null, statement)); 3105Assert.Throws<ArgumentNullException>(() => semanticModel.AnalyzeControlFlow(null)); 3106Assert.Throws<ArgumentNullException>(() => semanticModel.AnalyzeDataFlow(null, statement)); 3107Assert.Throws<ArgumentNullException>(() => semanticModel.AnalyzeDataFlow(statement, null)); 3108Assert.Throws<ArgumentNullException>(() => semanticModel.AnalyzeDataFlow((StatementSyntax)null));
Semantics\CollectionExpressionTests.cs (1)
27074Assert.Throws<ArgumentNullException>(() => spread.GetElementConversion());
Semantics\PrimaryConstructorTests.cs (2)
2196Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (PrimaryConstructorBaseTypeSyntax)null, out _)); 2335Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (PrimaryConstructorBaseTypeSyntax)null, out _));
Semantics\RecordTests.cs (2)
22412Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (PrimaryConstructorBaseTypeSyntax)null!, out _)); 22551Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (PrimaryConstructorBaseTypeSyntax)null!, out _));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (11)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (6)
854Assert.Throws<ArgumentNullException>(() => graphM.GetLocalFunctionControlFlowGraph(null)); 856Assert.Throws<ArgumentNullException>(() => graphM.GetLocalFunctionControlFlowGraphInScope(null)); 870Assert.Throws<ArgumentNullException>(() => graphM.GetAnonymousFunctionControlFlowGraph(null)); 872Assert.Throws<ArgumentNullException>(() => graphM.GetAnonymousFunctionControlFlowGraphInScope(null)); 912Assert.Throws<ArgumentNullException>(() => graphM.GetLocalFunctionControlFlowGraph(null)); 914Assert.Throws<ArgumentNullException>(() => graphM.GetLocalFunctionControlFlowGraphInScope(null));
IOperation\IOperationTests_IBranchOperation.Extensions.cs (1)
23Assert.ThrowsAny<ArgumentNullException>(() => OperationExtensions.GetCorrespondingOperation(null));
IOperation\IOperationTests_ICompoundAssignmentOperation.cs (2)
24Assert.Throws<ArgumentNullException>("compoundAssignment", () => nullAssignment.GetInConversion()); 25Assert.Throws<ArgumentNullException>("compoundAssignment", () => nullAssignment.GetOutConversion());
IOperation\IOperationTests_ILocalFunctionStatement.cs (2)
1816Assert.Throws<ArgumentNullException>(() => graphM.GetLocalFunctionControlFlowGraph(null)); 1818Assert.Throws<ArgumentNullException>(() => graphM.GetLocalFunctionControlFlowGraphInScope(null));
Microsoft.CodeAnalysis.CSharp.Scripting (4)
CSharpScript.cs (4)
32/// <exception cref="ArgumentNullException">Code is null.</exception> 48/// <exception cref="ArgumentNullException">Stream is null.</exception> 64/// <exception cref="ArgumentNullException">Code is null.</exception> 79/// <exception cref="ArgumentNullException">Stream is null.</exception>
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
PrintOptionsTests.cs (1)
21Assert.Throws<ArgumentNullException>(() => s_formatter.FormatObject("hello", options: null));
ScriptTests.cs (3)
42Assert.Throws<ArgumentNullException>(() => CSharpScript.Create((string)null)); 55Assert.Throws<ArgumentNullException>(() => CSharpScript.Create((Stream)null, ScriptOptions)); 331await Assert.ThrowsAsync<ArgumentNullException>("previousState", () => state.Script.RunFromAsync(null));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\AccessCheckTests.cs (2)
767Assert.Throws<ArgumentNullException>(() => { compilation.IsSymbolAccessibleWithin(classA, nullSymbol); }); 768Assert.Throws<ArgumentNullException>(() => { compilation.IsSymbolAccessibleWithin(nullSymbol, classA); });
Semantics\AccessibilityTests.cs (1)
42Assert.Throws<ArgumentNullException>(() =>
Semantics\SyntaxTreeRootTests.cs (2)
109Assert.Throws<ArgumentNullException>(() => { tree.GetDiagnostics((CSharpSyntaxNode)null); }); 111Assert.Throws<ArgumentNullException>(() => { tree.GetDiagnostics((SyntaxNode)null); });
SourceGeneration\GeneratorDriverTests.cs (3)
2666Assert.Throws<ArgumentNullException>(() => driver.WithUpdatedParseOptions(null!)); 2817Assert.Throws<ArgumentNullException>(() => driver.WithUpdatedAnalyzerConfigOptions(null!)); 3004Assert.Throws<ArgumentNullException>(() => driver.ReplaceAdditionalText(additionalText1, null!));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (43)
Compilation\CompilationAPITests.cs (20)
445Assert.Throws<ArgumentNullException>("peStream", () => comp.Emit(peStream: null)); 1340Assert.Throws<ArgumentNullException>(() => CSharpCompilation.Create("goo", syntaxTrees: new SyntaxTree[] { null })); 1341Assert.Throws<ArgumentNullException>(() => CSharpCompilation.Create("goo", references: new MetadataReference[] { null })); 1357Assert.Throws<ArgumentNullException>( 1364Assert.Throws<ArgumentNullException>( 1384Assert.Throws<ArgumentNullException>( 1460Assert.Throws<ArgumentNullException>( 1565Assert.Throws<ArgumentNullException>( 1572Assert.Throws<ArgumentNullException>( 1584Assert.Throws<ArgumentNullException>( 2553Assert.Throws<ArgumentNullException>(() => 2565Assert.Throws<ArgumentNullException>(() => 2575Assert.Throws<ArgumentNullException>(() => 2585Assert.Throws<ArgumentNullException>(() => 2595Assert.Throws<ArgumentNullException>(() => 2817Assert.Throws<ArgumentNullException>("returnType", () => compilation.CreateBuiltinOperator( 2819Assert.Throws<ArgumentNullException>("leftType", () => compilation.CreateBuiltinOperator( 2821Assert.Throws<ArgumentNullException>("rightType", () => compilation.CreateBuiltinOperator( 3015Assert.Throws<ArgumentNullException>("returnType", () => compilation.CreateBuiltinOperator( 3017Assert.Throws<ArgumentNullException>("operandType", () => compilation.CreateBuiltinOperator(
Compilation\GetSemanticInfoTests.cs (1)
4054Assert.Throws<ArgumentNullException>(() => method1.GetTypeInferredDuringReduction(null));
Compilation\SemanticModelAPITests.cs (3)
2181Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(statement.SpanStart, statement: null, speculativeModel: out speculativeModel)); 2182Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(statement.SpanStart, constructorInitializer: (ConstructorInitializerSyntax)null, speculativeModel: out speculativeModel)); 2183Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(statement.SpanStart, attribute: null, speculativeModel: out speculativeModel));
Compilation\SemanticModelGetSemanticInfoTests.cs (7)
1660Assert.Throws<ArgumentNullException>(() => model.GetSymbolInfo((ExpressionSyntax)null)); 1661Assert.Throws<ArgumentNullException>(() => model.GetTypeInfo((ExpressionSyntax)null)); 1662Assert.Throws<ArgumentNullException>(() => model.GetMemberGroup((ExpressionSyntax)null)); 1663Assert.Throws<ArgumentNullException>(() => model.GetConstantValue((ExpressionSyntax)null)); 1665Assert.Throws<ArgumentNullException>(() => model.GetSymbolInfo((ConstructorInitializerSyntax)null)); 1666Assert.Throws<ArgumentNullException>(() => model.GetTypeInfo((ConstructorInitializerSyntax)null)); 1667Assert.Throws<ArgumentNullException>(() => model.GetMemberGroup((ConstructorInitializerSyntax)null));
Compilation\SymbolSearchTests.cs (4)
48Assert.Throws<ArgumentNullException>(() => 54Assert.Throws<ArgumentNullException>(() => 64Assert.Throws<ArgumentNullException>(() => 70Assert.Throws<ArgumentNullException>(() =>
Symbols\ExtensionMethodTests.cs (2)
2699Assert.Throws<ArgumentNullException>(() => nonGenericExtension.ReduceExtensionMethod(receiverType: null, compilation: null!)); 2702Assert.Throws<ArgumentNullException>(() => genericExtension.ReduceExtensionMethod(receiverType: null, compilation: null!));
Symbols\FunctionPointerTypeSymbolTests.cs (5)
1534Assert.Throws<ArgumentNullException>("returnType", () => comp.CreateFunctionPointerTypeSymbol(returnType: null!, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1535Assert.Throws<ArgumentNullException>("parameterTypes", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: default, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1536Assert.Throws<ArgumentNullException>("parameterTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray.Create((ITypeSymbol?)null)!, parameterRefKinds: ImmutableArray.Create(RefKind.None))); 1537Assert.Throws<ArgumentNullException>("parameterRefKinds", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: default)); 1538Assert.Throws<ArgumentNullException>("callingConventionTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, ImmutableArray.Create((INamedTypeSymbol)null!)));
Symbols\InterfaceImplementationTests.cs (1)
83Assert.Throws<ArgumentNullException>(() => @base.FindImplementationForInterfaceMember(null)); //not a method/property/event
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Syntax\SeparatedSyntaxListTests.cs (7)
227Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxNode>)null)); 228Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null)); 229Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxNode>)null)); 272Assert.Throws<ArgumentNullException>(() => list.Add(null)); 273Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxNode>)null)); 274Assert.Throws<ArgumentNullException>(() => list.Insert(0, null)); 275Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
Syntax\SyntaxListTests.cs (7)
179Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxNode>)null)); 180Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null)); 181Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxNode>)null)); 226Assert.Throws<ArgumentNullException>(() => list.Add(null)); 227Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxNode>)null)); 228Assert.Throws<ArgumentNullException>(() => list.Insert(0, null)); 229Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
Syntax\SyntaxNodeOrTokenListTests.cs (5)
168Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxNodeOrToken>)null)); 169Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNodeOrToken>)null)); 170Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxNodeOrToken>)null)); 215Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxNodeOrToken>)null)); 216Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNodeOrToken>)null));
Syntax\SyntaxNodeTests.cs (3)
3624Assert.Throws<System.ArgumentNullException>(delegate 3711Assert.Throws<ArgumentNullException>(() => FirstUsingClause.SyntaxTree.GetChanges(BlankTree)); 3744Assert.Throws<ArgumentNullException>(() => FirstUsingClause.SyntaxTree.GetChangedSpans(BlankTree));
Syntax\SyntaxTests.cs (1)
33Assert.Throws<ArgumentNullException>(() => SyntaxFactory.IsCompleteSubmission(null));
Syntax\SyntaxTokenListTests.cs (5)
188Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxToken>)null)); 189Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null)); 190Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxToken>)null)); 237Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxToken>)null)); 238Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null));
Syntax\SyntaxTriviaListTests.cs (5)
177Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxTrivia>)null)); 178Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxTrivia>)null)); 179Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxTrivia>)null)); 225Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxTrivia>)null)); 226Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxTrivia>)null));
Microsoft.CodeAnalysis.Debugging.Package (7)
CustomDebugInfoReader.cs (1)
675/// <exception cref="ArgumentNullException"><paramref name="import"/> is null.</exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Attributes\AttributeTests.cs (3)
40Assert.Throws<ArgumentNullException>(() => 47Assert.Throws<ArgumentNullException>(() => 49Assert.Throws<ArgumentNullException>(() =>
Debugging\DebugInformationReaderProviderTests.cs (2)
20Assert.Throws<ArgumentNullException>(() => DebugInformationReaderProvider.CreateFromStream(null)); 21Assert.Throws<ArgumentNullException>(() => DebugInformationReaderProvider.CreateFromMetadataReader(null));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (6)
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (6)
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.Extensions.Package (12)
Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.Features (12)
Debugging\DebugInformationReaderProvider.cs (2)
121/// <exception cref="ArgumentNullException"><paramref name="stream"/> is null.</exception> 163/// <exception cref="ArgumentNullException"><paramref name="metadataProvider"/> is null.</exception>
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (2)
180/// <exception cref="ArgumentNullException"><paramref name="symReader"/> is null.</exception> 218/// <exception cref="ArgumentNullException"><paramref name="pdbReader"/> is null.</exception>
EditAndContinue\SourceFileSpan.cs (1)
21/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (1)
234var argumentNullExceptionType = typeof(ArgumentNullException).FullName;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
517return IsAnyThrowInvocation(statement, parameter, [nameof(ArgumentNullException), nameof(ArgumentException)], m => m is ThrowIfNullName or ThrowIfNullOrEmptyName or ThrowIfNullOrWhiteSpaceName); 955GetTypeNode(compilation, generator, typeof(ArgumentNullException)),
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
90var argumentNullExceptionType = typeof(ArgumentNullException).FullName;
PdbSourceDocument\SourceLinkMap.cs (2)
60/// <exception cref="ArgumentNullException"><paramref name="json"/> is null.</exception> 167/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
675/// <exception cref="ArgumentNullException"><paramref name="import"/> is null.</exception>
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (3)
35Assert.Throws<ArgumentNullException>(() => EditAndContinueMethodDebugInfoReader.Create((ISymUnmanagedReader5)null)); 36Assert.Throws<ArgumentNullException>(() => EditAndContinueMethodDebugInfoReader.Create((MetadataReader)null)); 37Assert.Throws<ArgumentNullException>(() => EditAndContinueMethodDebugInfoReader.Create(null, 1));
Microsoft.CodeAnalysis.InteractiveHost (13)
Interactive\Core\InteractiveHost.cs (1)
372/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (46)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.PooledObjects.Package (6)
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.PublicApiAnalyzers (45)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.ResxSourceGenerator (45)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.Scripting (29)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
152/// <exception cref="ArgumentNullException"><paramref name="dependency"/> is null.</exception> 176/// <exception cref="ArgumentNullException"><paramref name="dependency"/> is null.</exception>
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (4)
69/// <exception cref="ArgumentNullException"><paramref name="directory"/> is null.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="fullPath"/> is null.</exception> 285/// <exception cref="ArgumentNullException"><paramref name="fullPath"/> is null.</exception> 358/// <exception cref="ArgumentNullException"><paramref name="originalPath"/> is null.</exception>
Script.cs (4)
106/// <exception cref="ArgumentNullException">Stream is null.</exception> 123/// <exception cref="ArgumentNullException">Stream is null.</exception> 527/// <exception cref="ArgumentNullException"><paramref name="previousState"/> is null.</exception> 544/// <exception cref="ArgumentNullException"><paramref name="previousState"/> is null.</exception>
ScriptOptions.cs (16)
214/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 221/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 228/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 235/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 248/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 256/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 264/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 275/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 283/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 290/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 297/// <exception cref="ArgumentNullException"><paramref name="references"/> is null or contains a null reference.</exception> 322/// <exception cref="ArgumentNullException"><paramref name="imports"/> is null or contains a null reference.</exception> 329/// <exception cref="ArgumentNullException"><paramref name="imports"/> is null or contains a null reference.</exception> 336/// <exception cref="ArgumentNullException"><paramref name="imports"/> is null or contains a null reference.</exception> 343/// <exception cref="ArgumentNullException"><paramref name="imports"/> is null or contains a null reference.</exception> 350/// <exception cref="ArgumentNullException"><paramref name="imports"/> is null or contains a null reference.</exception>
ScriptState.cs (1)
82/// <exception cref="ArgumentNullException"><paramref name="name"/> is null.</exception>
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCache.cs (2)
71/// <exception cref="ArgumentNullException"><paramref name="displayName"/> is null.</exception> 88/// <exception cref="ArgumentNullException"><paramref name="displayName"/> is null.</exception>
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (4)
MetadataShadowCopyProviderTests.cs (4)
56Assert.Throws<ArgumentNullException>(() => _provider.NeedsShadowCopy(null)); 62Assert.Throws<ArgumentNullException>(() => _provider.SuppressShadowCopy(null)); 69Assert.Throws<ArgumentNullException>(() => _provider.GetMetadataShadowCopy(null, MetadataImageKind.Assembly)); 76Assert.Throws<ArgumentNullException>(() => _provider.GetMetadata(null, MetadataImageKind.Assembly));
Microsoft.CodeAnalysis.Scripting.UnitTests (39)
ScriptOptionsTests.cs (39)
41Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((MetadataReference[])null)); 42Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new MetadataReference[] { null })); 44Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<MetadataReference>)null)); 45Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<MetadataReference>)new MetadataReference[] { null })); 47Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((Assembly[])null)); 48Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new Assembly[] { null })); 50Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<Assembly>)null)); 51Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<Assembly>)new Assembly[] { null })); 53Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((string[])null)); 54Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new string[] { null })); 56Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<string>)null)); 57Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<string>)new string[] { null })); 83Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((MetadataReference[])null)); 84Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((IEnumerable<MetadataReference>)null)); 85Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<MetadataReference>))); 86Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(new MetadataReference[] { null })); 87Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((MetadataReference)null))); 89Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((Assembly[])null)); 90Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((IEnumerable<Assembly>)null)); 91Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<Assembly>))); 92Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(new Assembly[] { null })); 93Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((Assembly)null))); 95Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((string[])null)); 96Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((IEnumerable<string>)null)); 97Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<string>))); 98Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(new string[] { null })); 99Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((string)null))); 122Assert.Throws<ArgumentNullException>("imports", () => options.AddImports((string[])null)); 123Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports([null])); 125Assert.Throws<ArgumentNullException>("imports", () => options.AddImports((IEnumerable<string>)null)); 126Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports((IEnumerable<string>)new string[] { null })); 128Assert.Throws<ArgumentNullException>("imports", () => options.AddImports(default(ImmutableArray<string>))); 129Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports(ImmutableArray.Create((string)null))); 143Assert.Throws<ArgumentNullException>("imports", () => options.WithImports((string[])null)); 144Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports([null])); 146Assert.Throws<ArgumentNullException>("imports", () => options.WithImports((IEnumerable<string>)null)); 147Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports((IEnumerable<string>)new string[] { null })); 149Assert.Throws<ArgumentNullException>("imports", () => options.WithImports(default(ImmutableArray<string>))); 150Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports(ImmutableArray.Create((string)null)));
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1287catch (ArgumentNullException ex)
Microsoft.CodeAnalysis.Threading.Package (11)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CodeAnalysis.UnitTests (129)
AnalyzerAssemblyLoaderTests.cs (1)
267Assert.Throws<ArgumentNullException>("originalPath", () => loader.AddDependencyLocation(null!));
Analyzers\AnalyzerFileReferenceTests.cs (2)
47Assert.Throws<ArgumentNullException>("fullPath", () => new AnalyzerFileReference(null!, s_analyzerLoader)); 48Assert.Throws<ArgumentNullException>("assemblyLoader", () => new AnalyzerFileReference(TempRoot.Root, null!));
Collections\Extensions\ImmutableArrayExtensionsTests.cs (1)
28Assert.Throws<ArgumentNullException>(() => ImmutableArray.CreateRange<int>((IEnumerable<int>)null));
Collections\HashSet\ISet_Generic_Tests`1.cs (10)
315Assert.Throws<ArgumentNullException>(() => set.IsProperSubsetOf(null!)); 316Assert.Throws<ArgumentNullException>(() => set.IsProperSupersetOf(null!)); 317Assert.Throws<ArgumentNullException>(() => set.IsSubsetOf(null!)); 318Assert.Throws<ArgumentNullException>(() => set.IsSupersetOf(null!)); 319Assert.Throws<ArgumentNullException>(() => set.Overlaps(null!)); 320Assert.Throws<ArgumentNullException>(() => set.SetEquals(null!)); 323Assert.Throws<ArgumentNullException>(() => set.ExceptWith(null!)); 324Assert.Throws<ArgumentNullException>(() => set.IntersectWith(null!)); 325Assert.Throws<ArgumentNullException>(() => set.SymmetricExceptWith(null!)); 326Assert.Throws<ArgumentNullException>(() => set.UnionWith(null!));
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (3)
121Assert.Throws<ArgumentNullException>(() => new SegmentedHashSet<T>((IEnumerable<T>)null!)); 122Assert.Throws<ArgumentNullException>(() => new SegmentedHashSet<T>((IEnumerable<T>)null!, EqualityComparer<T>.Default)); 179Assert.Throws<ArgumentNullException>(() => set.RemoveWhere(null!));
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
116Assert.Throws<ArgumentNullException>("array", () => builder.CopyTo(null!, 0));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
299Assert.Throws<ArgumentNullException>("array", () => nonGeneric.CopyTo(null!, 0));
Collections\ImmutableListTestBase.cs (1)
396Assert.Throws<ArgumentNullException>("comparison", () => this.SortTestHelper(ImmutableSegmentedList<int>.Empty, (Comparison<int>)null!));
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (2)
263Assert.IsType<ArgumentNullException>(tie.InnerException); 288Assert.Throws<ArgumentNullException>("builder", () => nullBuilder!.ToImmutableSegmentedDictionary());
Collections\ImmutableSegmentedDictionaryTest.cs (4)
150Assert.Throws<ArgumentNullException>("keySelector", () => list.ToImmutableSegmentedDictionary<int, int>(null!)); 151Assert.Throws<ArgumentNullException>("keySelector", () => list.ToImmutableSegmentedDictionary<int, int, int>(null!, v => v)); 152Assert.Throws<ArgumentNullException>("elementSelector", () => list.ToImmutableSegmentedDictionary<int, int, int>(k => k, null!)); 263Assert.IsType<ArgumentNullException>(tie.InnerException);
Collections\ImmutableSegmentedHashSetBuilderTest.cs (11)
176Assert.Throws<ArgumentNullException>("other", () => builder.UnionWith(null!)); 185Assert.Throws<ArgumentNullException>("other", () => builder.ExceptWith(null!)); 194Assert.Throws<ArgumentNullException>("other", () => builder.SymmetricExceptWith(null!)); 203Assert.Throws<ArgumentNullException>("other", () => builder.IntersectWith(null!)); 212Assert.Throws<ArgumentNullException>("other", () => builder.IsProperSubsetOf(null!)); 221Assert.Throws<ArgumentNullException>("other", () => builder.IsProperSupersetOf(null!)); 230Assert.Throws<ArgumentNullException>("other", () => builder.IsSubsetOf(null!)); 240Assert.Throws<ArgumentNullException>("other", () => builder.IsSupersetOf(null!)); 250Assert.Throws<ArgumentNullException>("other", () => builder.Overlaps(null!)); 267Assert.Throws<ArgumentNullException>("other", () => builder.SetEquals(null!)); 340Assert.Throws<ArgumentNullException>("builder", () => nullBuilder!.ToImmutableSegmentedHashSet());
Collections\ImmutableSegmentedHashSetTest.cs (1)
199Assert.IsType<ArgumentNullException>(tie.InnerException);
Collections\ImmutableSegmentedListBuilderTest.cs (3)
169Assert.Throws<ArgumentNullException>("items", () => mutable.AddRange(null!)); 373Assert.IsType<ArgumentNullException>(tie.InnerException); 423Assert.Throws<ArgumentNullException>("builder", () => nullBuilder!.ToImmutableSegmentedList());
Collections\ImmutableSegmentedListTest.cs (4)
612Assert.Throws<ArgumentNullException>("match", () => ImmutableSegmentedList<int>.Empty.RemoveAll(null!)); 642Assert.Throws<ArgumentNullException>("items", () => list.RemoveRange(null!)); 660Assert.Throws<ArgumentNullException>("items", () => System.Collections.Immutable.ImmutableList.RemoveRange((System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.Create(1, 2, 3), null!)); 788Assert.IsType<ArgumentNullException>(tie.InnerException);
Collections\List\ICollection.Generic.Tests.cs (3)
468Assert.Throws<ArgumentNullException>("item", () => collection.Contains(default(T)!)); 483Assert.Throws<ArgumentNullException>(() => collection.CopyTo(null!, 0)); 690Assert.Throws<ArgumentNullException>(() => collection.Remove(default(T)!));
Collections\List\ICollection.NonGeneric.Tests.cs (1)
182Assert.Throws<ArgumentNullException>(() => collection.CopyTo(null!, 0));
Collections\List\IList.Generic.Tests.cs (3)
209Assert.Throws<ArgumentNullException>(() => list[0] = default(T)!); 244Assert.Throws<ArgumentNullException>(() => list[lastIndex] = default(T)!); 302Assert.Throws<ArgumentNullException>(() => list.IndexOf(default(T)!));
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
117Assert.Throws<ArgumentNullException>(() => list.AddRange(null!));
Collections\List\SegmentedList.Generic.Tests.Constructor.cs (1)
77Assert.Throws<ArgumentNullException>(() => { SegmentedList<T> _list = new SegmentedList<T>(null!); }); //"Expected ArgumentnUllException for null items"
Collections\List\SegmentedList.Generic.Tests.Find.cs (8)
35Assert.Throws<ArgumentNullException>(() => list.Find(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 38Assert.Throws<ArgumentNullException>(() => list.FindLast(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 41Assert.Throws<ArgumentNullException>(() => list.FindLastIndex(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 44Assert.Throws<ArgumentNullException>(() => list.FindAll(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 56Assert.Throws<ArgumentNullException>(() => list.FindLastIndex(0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 89Assert.Throws<ArgumentNullException>(() => list.FindIndex(0, 0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 146Assert.Throws<ArgumentNullException>(() => list.FindLastIndex(0, 0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 206Assert.Throws<ArgumentNullException>(() => list.FindIndex(0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException"
Collections\List\SegmentedList.Generic.Tests.ForEach.cs (1)
40Assert.Throws<ArgumentNullException>(() => list.ForEach(null!));
Collections\List\SegmentedList.Generic.Tests.Misc.cs (3)
190Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, null!)); //"ArgumentNullException expected." 360Assert.Throws<ArgumentNullException>(() => list.Exists(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 700Assert.Throws<ArgumentNullException>(() => list.TrueForAll(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException"
Collections\List\SegmentedList.Generic.Tests.Remove.cs (1)
63Assert.Throws<ArgumentNullException>("match", () => new SegmentedList<T>().RemoveAll(null!));
Collections\RopeTests.cs (3)
92Assert.Throws<ArgumentNullException>(() => { Rope.ForString(null); }); 100Assert.Throws<ArgumentNullException>(() => { Rope.Concat(r, null); }); 101Assert.Throws<ArgumentNullException>(() => { Rope.Concat(null, r); });
Diagnostics\CompilationWithAnalyzersTests.cs (3)
31Assert.Throws<ArgumentNullException>(() => CompilationWithAnalyzers.GetEffectiveDiagnostics(default(ImmutableArray<Diagnostic>), c)); 32Assert.Throws<ArgumentNullException>(() => CompilationWithAnalyzers.GetEffectiveDiagnostics(null, c)); 33Assert.Throws<ArgumentNullException>(() => CompilationWithAnalyzers.GetEffectiveDiagnostics(ds, null));
Diagnostics\OperationTests.cs (14)
77Assert.Throws<ArgumentNullException>(() => nullDynamicExpression.GetArgumentName(0)); 78Assert.Throws<ArgumentNullException>(() => nullDynamicExpression.GetArgumentRefKind(0)); 92Assert.Throws<ArgumentNullException>(() => nullDynamicExpression.GetArgumentName(0)); 93Assert.Throws<ArgumentNullException>(() => nullDynamicExpression.GetArgumentRefKind(0)); 107Assert.Throws<ArgumentNullException>(() => nullDynamicExpression.GetArgumentName(0)); 108Assert.Throws<ArgumentNullException>(() => nullDynamicExpression.GetArgumentRefKind(0)); 120Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IBlockOperation)null)); 121Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IFieldInitializerOperation)null)); 122Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IPropertyInitializerOperation)null)); 123Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IParameterInitializerOperation)null)); 124Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IConstructorBodyOperation)null)); 125Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IMethodBodyOperation)null)); 285catch (ArgumentNullException ex) 298catch (ArgumentNullException ex)
EmbeddedTextTests.cs (6)
25Assert.Throws<ArgumentNullException>("filePath", () => EmbeddedText.FromBytes(null, default(ArraySegment<byte>))); 27Assert.Throws<ArgumentNullException>("bytes", () => EmbeddedText.FromBytes("path", default(ArraySegment<byte>))); 34Assert.Throws<ArgumentNullException>("filePath", () => EmbeddedText.FromSource(null, null)); 36Assert.Throws<ArgumentNullException>("text", () => EmbeddedText.FromSource("path", null)); 49Assert.Throws<ArgumentNullException>("filePath", () => EmbeddedText.FromStream(null, null)); 51Assert.Throws<ArgumentNullException>("stream", () => EmbeddedText.FromStream("path", null));
Emit\EmitBaselineTests.cs (4)
33Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(null, peModule, debugInfoProvider, localSigProvider, true)); 34Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, null, debugInfoProvider, localSigProvider, true)); 35Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, peModule, null, localSigProvider, true)); 36Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, mdModule, debugInfoProvider, null, true));
Emit\SemanticEditTests.cs (5)
31Assert.Throws<ArgumentNullException>("oldSymbol", () => new SemanticEdit(SemanticEditKind.Update, oldSymbol: null, newSymbol: type)); 32Assert.Throws<ArgumentNullException>("oldSymbol", () => new SemanticEdit(SemanticEditKind.Delete, oldSymbol: null, newSymbol: type)); 34Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Update, oldSymbol: type, newSymbol: null)); 35Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Insert, oldSymbol: type, newSymbol: null)); 36Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Replace, oldSymbol: type, newSymbol: null));
FileLinePositionSpanTests.cs (1)
35Assert.Throws<ArgumentNullException>(
InternalUtilities\OneOrManyTests.cs (1)
218Assert.Throws<ArgumentNullException>(() => OneOrMany.Create(default(ImmutableArray<int>)));
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (1)
367Assert.Throws<ArgumentNullException>(() => AssemblyIdentity.TryParseDisplayName(null, out id));
MetadataReferences\AssemblyIdentityTests.cs (1)
81Assert.Throws<ArgumentNullException>(() => { AssemblyIdentity.FromAssemblyDefinition(asm); });
MetadataReferences\AssemblyMetadataTests.cs (7)
20Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.CreateFromImage(default(ImmutableArray<byte>))); 23Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.CreateFromImage(enumerableImage)); 26Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.CreateFromImage(arrayImage)); 28Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.Create((ModuleMetadata)null)); 38Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.Create(ImmutableArray.Create(m1, m2, null))); 39Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.Create(ImmutableArray.Create((ModuleMetadata)null))); 41Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.CreateFromFile((string)null));
MetadataReferences\ModuleMetadataTests.cs (7)
23Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromMetadata(IntPtr.Zero, 0)); 89Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromImage(IntPtr.Zero, 0)); 93Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromImage(default(ImmutableArray<byte>))); 96Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromImage(enumerableImage)); 99Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromImage(arrayImage)); 109Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromStream(peStream: null)); 117Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromFile((string)null));
ResourceDescriptionTests.cs (5)
28Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, "file", data, isPublic: true)); 29Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, data, isPublic: true)); 30Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", "file", null, isPublic: true)); 31Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, data, isPublic: true)); 32Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, isPublic: true));
Text\StringText_LineTest.cs (1)
128Assert.Throws<ArgumentNullException>(() => TextLine.FromSpan(null, new TextSpan(0, 2)));
Text\StringTextTest.cs (2)
69Assert.Throws<ArgumentNullException>(() => SourceText.From((string)null, Encoding.UTF8)); 75Assert.Throws<ArgumentNullException>(() => SourceText.From((Stream)null, Encoding.UTF8));
Text\TextChangeTests.cs (1)
246Assert.Throws<ArgumentNullException>(() => newText.CopyTo(0, null, 0, 2));
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
795''' <exception cref="System.ArgumentNullException">If <paramref name="reducedFromTypeParameter"/> is Nothing.</exception>
Microsoft.CodeAnalysis.Workspaces (73)
CodeFixes\CodeFixContext.cs (4)
79/// <exception cref="ArgumentNullException">Throws this exception if any of the arguments is null.</exception> 111/// <exception cref="ArgumentNullException">Throws this exception if any of the arguments is null.</exception> 142/// <exception cref="ArgumentNullException">Throws this exception if any of the arguments is null.</exception> 167/// <exception cref="ArgumentNullException">Throws this exception if any of the arguments is null.</exception>
Differencing\Match.cs (1)
368/// <exception cref="ArgumentNullException"><paramref name="oldNodes"/> or <paramref name="newNodes"/> is a null reference.</exception>
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Workspace\Solution\FileTextLoader.cs (1)
45/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
Workspace\Solution\Solution.cs (30)
562/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 563/// <exception cref="ArgumentNullException"><paramref name="documentIds"/> is <see langword="null"/>.</exception> 601/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 602/// <exception cref="ArgumentNullException"><paramref name="projectReference"/> is <see langword="null"/>.</exception> 615/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 616/// <exception cref="ArgumentNullException"><paramref name="projectReferences"/> contains <see langword="null"/>.</exception> 648/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 649/// <exception cref="ArgumentNullException"><paramref name="projectReference"/> is <see langword="null"/>.</exception> 678/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 679/// <exception cref="ArgumentNullException"><paramref name="projectReferences"/> contains <see langword="null"/>.</exception> 699/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 700/// <exception cref="ArgumentNullException"><paramref name="metadataReference"/> is <see langword="null"/>.</exception> 713/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 714/// <exception cref="ArgumentNullException"><paramref name="metadataReferences"/> contains <see langword="null"/>.</exception> 741/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 742/// <exception cref="ArgumentNullException"><paramref name="metadataReference"/> is <see langword="null"/>.</exception> 763/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 764/// <exception cref="ArgumentNullException"><paramref name="metadataReferences"/> contains <see langword="null"/>.</exception> 780/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 781/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 793/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 794/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception> 828/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 829/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 857/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 858/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception> 873/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 883/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception> 908/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 924/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
Microsoft.CodeAnalysis.Workspaces.UnitTests (149)
FindAllDeclarationsTests.cs (14)
102await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 111await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 268await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 277await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 373await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 382await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 440await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 449await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 507await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 516await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 571await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 580await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 635await Assert.ThrowsAnyAsync<ArgumentNullException>(async () => 644await Assert.ThrowsAnyAsync<ArgumentNullException>(async () =>
Options\OptionKeyTests.cs (12)
23Assert.Throws<ArgumentNullException>(() => new Option<bool>("Test Feature", null!, false)); 24Assert.Throws<ArgumentNullException>(() => new Option<bool>(null!, "Test Name", false)); 25Assert.Throws<ArgumentNullException>(() => new Option<bool>("X", "Test Name", false, storageLocations: null!)); 26Assert.Throws<ArgumentNullException>(() => new Option<bool>("X", "Test Name", false, storageLocations: [null!])); 32Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("Test Feature", null!, false)); 33Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>(null!, "Test Name", false)); 34Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("X", "Test Name", false, storageLocations: null!)); 35Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("X", "Test Name", false, storageLocations: [null!])); 70Assert.Throws<ArgumentNullException>(() => new OptionKey(null!)); 71Assert.Throws<ArgumentNullException>(() => new OptionKey(null!, null!)); 72Assert.Throws<ArgumentNullException>(() => new OptionKey(null!, "lang")); 73Assert.Throws<ArgumentNullException>(() => new OptionKey(new TestOption() { IsPerLanguage = true }));
Simplifier\SimplifierTests.cs (15)
38await Assert.ThrowsAsync<ArgumentNullException>("node", () => Simplifier.ExpandAsync<SyntaxNode>(node: null!, document: null!)); 39await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ExpandAsync(node: node, document: null!)); 40await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ExpandAsync(token: default, document: null!)); 49Assert.Throws<ArgumentNullException>("node", () => Simplifier.Expand<SyntaxNode>(node: null!, semanticModel: null!, services: null!)); 50Assert.Throws<ArgumentNullException>("semanticModel", () => Simplifier.Expand(node, semanticModel: null!, services: null!)); 51Assert.Throws<ArgumentNullException>("services", () => Simplifier.Expand(node, semanticModel, services: null!)); 52Assert.Throws<ArgumentNullException>("workspace", () => Simplifier.Expand(node, semanticModel, workspace: null!)); 53Assert.Throws<ArgumentNullException>("workspace", () => Simplifier.Expand(token: default, semanticModel: null!, workspace: null!)); 54Assert.Throws<ArgumentNullException>("workspace", () => Simplifier.Expand(token: default, semanticModel, workspace: null!)); 63await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!)); 64await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!, annotation: null!)); 65await Assert.ThrowsAsync<ArgumentNullException>("annotation", () => Simplifier.ReduceAsync(document, annotation: null!)); 66await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!, span: default)); 67await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!, spans: null!)); 68await Assert.ThrowsAsync<ArgumentNullException>("spans", () => Simplifier.ReduceAsync(document, spans: null!));
SolutionTests\DocumentInfoTests.cs (3)
24Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(id: null, "doc")); 25Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, name: null)); 27Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, "doc", folders: ["folder", null]));
SolutionTests\ProjectDependencyGraphTests.cs (2)
117Assert.Throws<ArgumentNullException>("projectId", 339Assert.Throws<ArgumentNullException>("projectId",
SolutionTests\ProjectInfoTests.cs (9)
24Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(id: null, version: VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#")); 25Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: null, assemblyName: "Bar", language: "C#")); 26Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: null, language: "C#")); 27Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: null)); 29Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 42Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 48Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 55Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 62Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#",
SolutionTests\SolutionInfoTests.cs (2)
23Assert.Throws<ArgumentNullException>(() => SolutionInfo.Create(null, version)); 24Assert.Throws<ArgumentNullException>(() => SolutionInfo.Create(solutionId, version, projects: [projectInfo, null]));
SolutionTests\SolutionTestHelpers.cs (2)
38Assert.Throws<ArgumentNullException>(() => factory(instance, default)); 71Assert.Throws<ArgumentNullException>(() => factory(instanceWithNoItem, new TValue[] { item, default }));
SolutionTests\SolutionTests.cs (83)
116Assert.Throws<ArgumentNullException>(() => solution.RemoveDocument(null!)); 125Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(default)); 127Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(ImmutableArray.Create((DocumentId)null!))); 135Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocument(null!)); 144Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(default)); 146Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create((DocumentId)null!))); 154Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocument(null!)); 163Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(default)); 165Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create((DocumentId)null!))); 182Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(documentId, name: null!)); 184Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(null!, name)); 212Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(documentId, folders: [null!])); 214Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(null!, folders)); 242Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(null!, path)); 260Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSourceCodeKind(null!, SourceCodeKind.Script)); 319Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSyntaxRoot(null!, root)); 359Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 362Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity)); 383Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 386Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity)); 409Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId[])null!, text, PreservationMode.PreserveIdentity)); 410Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText([documentId], null!, PreservationMode.PreserveIdentity)); 927Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 930Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity)); 951Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 954Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity)); 973Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 976Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity)); 997Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 1000Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity)); 1019Assert.Throws<ArgumentNullException>(() => solution.WithDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity)); 1022Assert.Throws<ArgumentNullException>(() => solution.WithDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity)); 1041Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity)); 1044Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity)); 1063Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity)); 1066Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity)); 1447Assert.Throws<ArgumentNullException>("assemblyName", () => solution.WithProjectAssemblyName(projectId, null!)); 1448Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAssemblyName(null!, "x.dll")); 1471Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputFilePath(null!, "x.dll")); 1472Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputFilePath(null!, "x.dll")); 1526Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputRefFilePath(null!, "x.dll")); 1549Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectCompilationOutputInfo(null!, info)); 1572Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectDefaultNamespace(null!, "x")); 1686Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectName(null!, "x")); 1709Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectFilePath(null!, "x")); 1724Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectCompilationOptions(null!, options)); 1725Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectCompilationOptions(projectId, options: null!)); 1773Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectParseOptions(null!, options)); 1774Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectParseOptions(projectId, options: null!)); 1932Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectReferences(null!, [projectRef])); 1984Assert.Throws<ArgumentNullException>("projectId", () => solution.AddProjectReferences(null!, [projectRef2])); 1985Assert.Throws<ArgumentNullException>("projectReferences", () => solution.AddProjectReferences(projectId, null!)); 1986Assert.Throws<ArgumentNullException>("projectReferences[0]", () => solution.AddProjectReferences(projectId, [null!])); 2023Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveProjectReference(null!, projectRef2)); 2024Assert.Throws<ArgumentNullException>("projectReference", () => solution.RemoveProjectReference(projectId, null!)); 2083Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectMetadataReferences(null!, [metadataRef])); 2103Assert.Throws<ArgumentNullException>("projectId", () => solution.AddMetadataReferences(null!, [metadataRef1])); 2104Assert.Throws<ArgumentNullException>("metadataReferences", () => solution.AddMetadataReferences(projectId, null!)); 2105Assert.Throws<ArgumentNullException>("metadataReferences[0]", () => solution.AddMetadataReferences(projectId, [null!])); 2129Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveMetadataReference(null!, metadataRef1)); 2130Assert.Throws<ArgumentNullException>("metadataReference", () => solution.RemoveMetadataReference(projectId, null!)); 2153Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAnalyzerReferences(null!, [analyzerRef])); 2176Assert.Throws<ArgumentNullException>("projectId", () => solution.AddAnalyzerReferences(null!, [analyzerRef1])); 2177Assert.Throws<ArgumentNullException>("analyzerReferences", () => solution.AddAnalyzerReferences(projectId, null!)); 2178Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => solution.AddAnalyzerReferences(projectId, [null!])); 2202Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveAnalyzerReference(null!, analyzerRef1)); 2203Assert.Throws<ArgumentNullException>("analyzerReference", () => solution.RemoveAnalyzerReference(projectId, null!)); 2244Assert.Throws<ArgumentNullException>("analyzerReferences", () => solution.AddAnalyzerReferences(null!)); 2245Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => solution.AddAnalyzerReferences([null!])); 2268Assert.Throws<ArgumentNullException>("analyzerReference", () => solution.RemoveAnalyzerReference(null!)); 2373Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", loader)); 2374Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, loader)); 2375Assert.Throws<ArgumentNullException>("loader", () => solution.AddDocument(documentId, "name", loader: null!)); 2404Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", "text")); 2405Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, "text")); 2406Assert.Throws<ArgumentNullException>("text", () => solution.AddDocument(documentId, "name", text: (string)null!)); 2432Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", sourceText)); 2433Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, sourceText)); 2434Assert.Throws<ArgumentNullException>("text", () => solution.AddDocument(documentId, "name", text: (SourceText)null!)); 2484Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", root)); 2485Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, root)); 2486Assert.Throws<ArgumentNullException>("syntaxRoot", () => solution.AddDocument(documentId, "name", syntaxRoot: null!)); 4703Assert.Throws<ArgumentNullException>(() => solution = solution.WithProjectDocumentsOrder(pid, null));
UtilityTest\SpecializedTasksTests.cs (3)
30Assert.Throws<ArgumentNullException>(() => SpecializedTasks.WhenAll<int>((IEnumerable<ValueTask<int>>)null!)); 82Assert.Throws<ArgumentNullException>("func", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(null!, transform, arg, cancellationToken)); 83Assert.Throws<ArgumentNullException>("transform", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync<StateType, IntermediateType, ResultType>(func, null!, arg, cancellationToken));
WorkspaceServiceTests\ReferenceCountedDisposableTests.cs (2)
20=> Assert.Throws<ArgumentNullException>("instance", () => new ReferenceCountedDisposable<IDisposable>(null)); 125=> Assert.Throws<ArgumentNullException>("reference", () => new ReferenceCountedDisposable<IDisposable>.WeakReference(null));
XxHash128Tests.cs (2)
22Assert.Throws<ArgumentNullException>("source", () => XxHash128.Hash(null)); 23Assert.Throws<ArgumentNullException>("source", () => XxHash128.Hash(null, 42));
Microsoft.CommonLanguageServerProtocol.Framework.Package (6)
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
150ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.DotNet.Build.Manifest.Tests (1)
BuildModelFactoryTests.cs (1)
83act.Should().Throw<ArgumentNullException>();
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PushToBuildStorage.cs (2)
541/// <exception cref="ArgumentNullException"></exception> 625|| (e is ArgumentException && !(e is ArgumentNullException))
Microsoft.DotNet.Build.Tasks.Workloads (1)
Wix\WixToolTaskBase.cs (1)
47/// <exception cref="ArgumentNullException"></exception>
Microsoft.DotNet.Internal.SymbolHelper (9)
SymbolUploadHelperFactory.cs (9)
35/// <exception cref="ArgumentNullException">If <paramref name="logger"/> or <paramref name="options"/> is null.</exception> 42ArgumentNullException.ThrowIfNull(logger); 43ArgumentNullException.ThrowIfNull(options); 66/// <exception cref="ArgumentNullException">If <paramref name="logger"/> or <paramref name="options"/> is null.</exception> 71ArgumentNullException.ThrowIfNull(logger); 72ArgumentNullException.ThrowIfNull(options); 86/// <exception cref="ArgumentNullException">If <paramref name="logger"/> or <paramref name="installDirectory"/> is null.</exception> 95ArgumentNullException.ThrowIfNull(logger); 96ArgumentNullException.ThrowIfNull(installDirectory);
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
349catch (ArgumentNullException e)
Microsoft.DotNet.XUnitAssert.Tests (84)
AsyncCollectionAssertsTests.cs (22)
21 Assert.Throws<ArgumentNullException>("collection", () => Assert.All(default(IAsyncEnumerable<object>)!, _ => { })); 22 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0].ToAsyncEnumerable(), (Action<object>)null!)); 23 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0].ToAsyncEnumerable(), (Action<object, int>)null!)); 73 await Assert.ThrowsAsync<ArgumentNullException>("collection", () => Assert.AllAsync(default(IAsyncEnumerable<object>)!, async _ => await Task.Yield())); 74 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0].ToAsyncEnumerable(), (Func<object, Task>)null!)); 75 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0].ToAsyncEnumerable(), (Func<object, int, Task>)null!)); 283 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IAsyncEnumerable<int>)!)); 334 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IAsyncEnumerable<int>)!, comparer)); 335 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Contains(14, new int[0].ToAsyncEnumerable(), null!)); 359 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(default(IAsyncEnumerable<int>)!, item => true)); 360 Assert.Throws<ArgumentNullException>("filter", () => Assert.Contains(new int[0].ToAsyncEnumerable(), (Predicate<int>)null!)); 392 Assert.Throws<ArgumentNullException>("collection", () => Assert.Distinct(default(IAsyncEnumerable<int>)!)); 393 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Distinct(new object[0].ToAsyncEnumerable(), null!)); 467 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IAsyncEnumerable<int>)!)); 519 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IAsyncEnumerable<int>)!, comparer)); 520 Assert.Throws<ArgumentNullException>("comparer", () => Assert.DoesNotContain(14, new int[0].ToAsyncEnumerable(), null!)); 544 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(default(IAsyncEnumerable<int>)!, item => true)); 545 Assert.Throws<ArgumentNullException>("filter", () => Assert.DoesNotContain(new int[0].ToAsyncEnumerable(), (Predicate<int>)null!)); 578 Assert.Throws<ArgumentNullException>("collection", () => Assert.Empty(default(IAsyncEnumerable<int>)!)); 1384 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!)); 1469 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!, _ => true)); 1470 Assert.Throws<ArgumentNullException>("predicate", () => Assert.Single(new object[0].ToAsyncEnumerable(), null!));
CollectionAssertsTests.cs (24)
19 Assert.Throws<ArgumentNullException>("collection", () => Assert.All(default(IEnumerable<object>)!, _ => { })); 20 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0], (Action<object>)null!)); 21 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0], (Action<object, int>)null!)); 71 await Assert.ThrowsAsync<ArgumentNullException>("collection", () => Assert.AllAsync(default(IEnumerable<object>)!, async _ => await Task.Yield())); 72 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0], (Func<object, Task>)null!)); 73 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0], (Func<object, int, Task>)null!)); 283 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IEnumerable<int>)!)); 352 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IEnumerable<int>)!, comparer)); 353 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Contains(14, new int[0], null!)); 393 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(default(IEnumerable<int>)!, item => true)); 394 Assert.Throws<ArgumentNullException>("filter", () => Assert.Contains(new int[0], (Predicate<int>)null!)); 426 Assert.Throws<ArgumentNullException>("collection", () => Assert.Distinct(default(IEnumerable<int>)!)); 427 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Distinct(new object[0], null!)); 501 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IEnumerable<int>)!)); 589 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IEnumerable<int>)!, comparer)); 590 Assert.Throws<ArgumentNullException>("comparer", () => Assert.DoesNotContain(14, new int[0], null!)); 622 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(default(IEnumerable<int>)!, item => true)); 623 Assert.Throws<ArgumentNullException>("filter", () => Assert.DoesNotContain(new int[0], (Predicate<int>)null!)); 656 Assert.Throws<ArgumentNullException>("collection", () => Assert.Empty(default(IEnumerable)!)); 2281 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(null!)); 2341 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(null!, null)); 2416 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IEnumerable<object>)!)); 2501 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IEnumerable<object>)!, _ => true)); 2502 Assert.Throws<ArgumentNullException>("predicate", () => Assert.Single(new object[0], null!));
EqualityAssertsTests.cs (4)
66 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Equal(1, 2, default(IEqualityComparer<int>)!)); 155 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Equal(1, 2, default(Func<int, int, bool>)!)); 2350 Assert.Throws<ArgumentNullException>("comparer", () => Assert.NotEqual(1, 2, default(IEqualityComparer<int>)!)); 2462 Assert.Throws<ArgumentNullException>("comparer", () => Assert.NotEqual(1, 2, default(Func<int, int, bool>)!));
ExceptionAssertsTests.cs (21)
18 Assert.Throws<ArgumentNullException>("exceptionType", () => Assert.Throws(null!, testCode)); 19 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws(typeof(Exception), default(Action)!)); 67 var thrown = new ArgumentNullException(); 90 Assert.Throws<ArgumentNullException>("exceptionType", () => Assert.Throws(null!, testCode)); 91 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws(typeof(Exception), default(Func<object>)!)); 150 var thrown = new ArgumentNullException(); 175 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Action)!)); 223 var thrown = new ArgumentNullException(); 244 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Func<object>)!)); 303 var thrown = new ArgumentNullException(); 327 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Action)!)); 392 var thrown = new ArgumentNullException(); 413 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Func<object>)!)); 478 var thrown = new ArgumentNullException(); 502 Assert.Throws<ArgumentNullException>("testCode", () => Assert.ThrowsAny<ArgumentException>(default(Action)!)); 561 Assert.Throws<ArgumentNullException>("testCode", () => Assert.ThrowsAny<ArgumentException>(default(Func<object>)!)); 632 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAnyAsync<ArgumentException>(default(Func<Task>)!)); 691 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAsync<ArgumentException>(default(Func<Task>)!)); 739 var thrown = new ArgumentNullException(); 760 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAsync<ArgumentException>("paramName", default(Func<Task>)!)); 825 var thrown = new ArgumentNullException();
PropertyAssertsTests.cs (4)
15 Assert.Throws<ArgumentNullException>("object", () => Assert.PropertyChanged(null!, "propertyName", delegate { })); 16 Assert.Throws<ArgumentNullException>("testCode", () => Assert.PropertyChanged(Substitute.For<INotifyPropertyChanged>(), "propertyName", (Action)null!)); 68 await Assert.ThrowsAsync<ArgumentNullException>("object", () => Assert.PropertyChangedAsync(null!, "propertyName", () => Task.FromResult(0))); 69 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.PropertyChangedAsync(Substitute.For<INotifyPropertyChanged>(), "propertyName", default(Func<Task>)!));
SetAssertsTests.cs (4)
117 Assert.Throws<ArgumentNullException>("expectedSubset", () => Assert.ProperSubset(null!, new HashSet<int>())); 183 Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.ProperSuperset(null!, new HashSet<int>())); 249 Assert.Throws<ArgumentNullException>("expectedSubset", () => Assert.Subset(null!, new HashSet<int>())); 307 Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.Superset(null!, new HashSet<int>()));
StringAssertsTests.cs (5)
343 Assert.Throws<ArgumentNullException>("expectedRegexPattern", () => Assert.DoesNotMatch((string?)null!, "Hello, world!")); 373 Assert.Throws<ArgumentNullException>("expectedRegex", () => Assert.DoesNotMatch((Regex?)null!, "Hello, world!")); 403 Assert.Throws<ArgumentNullException>("value", () => Assert.Empty(default(string)!)); 741 Assert.Throws<ArgumentNullException>("expectedRegexPattern", () => Assert.Matches((string?)null!, "Hello, world!")); 784 Assert.Throws<ArgumentNullException>("expectedRegex", () => Assert.Matches((Regex?)null!, "Hello, world!"));
Microsoft.Extensions.AI (60)
ChatCompletion\AnonymousDelegatingChatClient.cs (5)
49/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 50/// <exception cref="ArgumentNullException"><paramref name="sharedFunc"/> is <see langword="null"/>.</exception> 75/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 76/// <exception cref="ArgumentNullException">Both <paramref name="getResponseFunc"/> and <paramref name="getStreamingResponseFunc"/> are <see langword="null"/>.</exception> 201/// <exception cref="ArgumentNullException">Both <paramref name="getResponseFunc"/> and <paramref name="getStreamingResponseFunc"/> are <see langword="null"/>.</exception>
ChatCompletion\CachingChatClient.cs (6)
162/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 172/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 183/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 184/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 196/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
ChatCompletion\ChatClientBuilder.cs (5)
22/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 68/// <exception cref="ArgumentNullException"><paramref name="clientFactory"/> is <see langword="null"/>.</exception> 80/// <exception cref="ArgumentNullException"><paramref name="clientFactory"/> is <see langword="null"/>.</exception> 106/// <exception cref="ArgumentNullException"><paramref name="sharedFunc"/> is <see langword="null"/>.</exception> 140/// <exception cref="ArgumentNullException">Both <paramref name="getResponseFunc"/> and <paramref name="getStreamingResponseFunc"/> are <see langword="null"/>.</exception>
ChatCompletion\ChatClientBuilderChatClientExtensions.cs (1)
19/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception>
ChatCompletion\ChatClientBuilderServiceCollectionExtensions.cs (8)
19/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 38/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 39/// <exception cref="ArgumentNullException"><paramref name="innerClientFactory"/> is <see langword="null"/>.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 61/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 81/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 82/// <exception cref="ArgumentNullException"><paramref name="innerClientFactory"/> is <see langword="null"/>.</exception>
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
149/// <exception cref="ArgumentNullException"><paramref name="chatClient"/> or <paramref name="messages"/> or <paramref name="serializerOptions"/> is <see langword="null"/>.</exception>
ChatCompletion\ConfigureOptionsChatClientBuilderExtensions.cs (2)
28/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 29/// <exception cref="ArgumentNullException"><paramref name="configure"/> is <see langword="null"/>.</exception>
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
26/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
ChatCompletion\FunctionInvokingChatClient.cs (1)
801/// <exception cref="ArgumentNullException"><paramref name="context"/> is <see langword="null"/>.</exception>
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
24/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
23/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
Embeddings\AnonymousDelegatingEmbeddingGenerator.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="innerGenerator"/> is <see langword="null"/>.</exception> 25/// <exception cref="ArgumentNullException"><paramref name="generateFunc"/> is <see langword="null"/>.</exception>
Embeddings\ConfigureOptionsEmbeddingGeneratorBuilderExtensions.cs (2)
31/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="configure"/> is <see langword="null"/>.</exception>
Embeddings\DistributedCachingEmbeddingGenerator.cs (2)
46/// <exception cref="ArgumentNullException"><paramref name="storage"/> is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
Embeddings\DistributedCachingEmbeddingGeneratorBuilderExtensions.cs (1)
28/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
Embeddings\EmbeddingGeneratorBuilder.cs (4)
25/// <exception cref="ArgumentNullException"><paramref name="innerGenerator"/> is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="generatorFactory"/> is <see langword="null"/>.</exception> 84/// <exception cref="ArgumentNullException"><paramref name="generatorFactory"/> is <see langword="null"/>.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="generateFunc"/> is <see langword="null"/>.</exception>
Embeddings\EmbeddingGeneratorBuilderEmbeddingGeneratorExtensions.cs (1)
25/// <exception cref="ArgumentNullException"><paramref name="innerGenerator"/> is <see langword="null"/>.</exception>
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (8)
21/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="innerGenerator"/> is <see langword="null"/>.</exception> 43/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 44/// <exception cref="ArgumentNullException"><paramref name="innerGeneratorFactory"/> is <see langword="null"/>.</exception> 70/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 71/// <exception cref="ArgumentNullException"><paramref name="innerGenerator"/> is <see langword="null"/>.</exception> 94/// <exception cref="ArgumentNullException"><paramref name="serviceCollection"/> is <see langword="null"/>.</exception> 95/// <exception cref="ArgumentNullException"><paramref name="innerGeneratorFactory"/> is <see langword="null"/>.</exception>
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
25/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Abstractions (78)
ChatCompletion\ChatClientExtensions.cs (12)
20/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 40/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 41/// <exception cref="ArgumentNullException"><paramref name="serviceType"/> is <see langword="null"/>.</exception> 65/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 89/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 90/// <exception cref="ArgumentNullException"><paramref name="chatMessage"/> is <see langword="null"/>.</exception> 109/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 110/// <exception cref="ArgumentNullException"><paramref name="chatMessage"/> is <see langword="null"/>.</exception> 129/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 130/// <exception cref="ArgumentNullException"><paramref name="chatMessage"/> is <see langword="null"/>.</exception> 149/// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null"/>.</exception> 150/// <exception cref="ArgumentNullException"><paramref name="chatMessage"/> is <see langword="null"/>.</exception>
ChatCompletion\ChatFinishReason.cs (1)
22/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
ChatCompletion\ChatResponse.cs (1)
32/// <exception cref="ArgumentNullException"><paramref name="message"/> is <see langword="null"/>.</exception>
ChatCompletion\ChatResponseExtensions.cs (10)
25/// <exception cref="ArgumentNullException"><paramref name="list"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="response"/> is <see langword="null"/>.</exception> 48/// <exception cref="ArgumentNullException"><paramref name="list"/> is <see langword="null"/>.</exception> 49/// <exception cref="ArgumentNullException"><paramref name="updates"/> is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="list"/> is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException"><paramref name="update"/> is <see langword="null"/>.</exception> 101/// <exception cref="ArgumentNullException"><paramref name="list"/> is <see langword="null"/>.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="updates"/> is <see langword="null"/>.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="updates"/> is <see langword="null"/>.</exception> 153/// <exception cref="ArgumentNullException"><paramref name="updates"/> is <see langword="null"/>.</exception>
ChatCompletion\IChatClient.cs (3)
40/// <exception cref="ArgumentNullException"><paramref name="messages"/> is <see langword="null"/>.</exception> 52/// <exception cref="ArgumentNullException"><paramref name="messages"/> is <see langword="null"/>.</exception> 63/// <exception cref="ArgumentNullException"><paramref name="serviceType"/> is <see langword="null"/>.</exception>
Contents\DataContent.cs (3)
60/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <see langword="null"/>.</exception> 117/// <exception cref="ArgumentNullException"><paramref name="mediaType"/> is <see langword="null"/>.</exception>
Contents\FunctionCallContent.cs (4)
68/// <exception cref="ArgumentNullException"><paramref name="callId"/> is <see langword="null"/>.</exception> 69/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception> 70/// <exception cref="ArgumentNullException"><paramref name="encodedArguments"/> is <see langword="null"/>.</exception> 71/// <exception cref="ArgumentNullException"><paramref name="argumentParser"/> is <see langword="null"/>.</exception>
Contents\UriContent.cs (4)
30/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <see langword="null"/>.</exception> 31/// <exception cref="ArgumentNullException"><paramref name="mediaType"/> is <see langword="null"/>.</exception> 47/// <exception cref="ArgumentNullException"><paramref name="uri"/> is <see langword="null"/>.</exception> 48/// <exception cref="ArgumentNullException"><paramref name="mediaType"/> is <see langword="null"/>.</exception>
Embeddings\BinaryEmbedding.cs (1)
22/// <exception cref="ArgumentNullException"><paramref name="vector"/> is <see langword="null"/>.</exception>
Embeddings\EmbeddingGeneratorExtensions.cs (10)
24/// <exception cref="ArgumentNullException"><paramref name="generator"/> is <see langword="null"/>.</exception> 45/// <exception cref="ArgumentNullException"><paramref name="generator"/> is <see langword="null"/>.</exception> 46/// <exception cref="ArgumentNullException"><paramref name="serviceType"/> is <see langword="null"/>.</exception> 71/// <exception cref="ArgumentNullException"><paramref name="generator"/> is <see langword="null"/>.</exception> 98/// <exception cref="ArgumentNullException"><paramref name="generator"/> is <see langword="null"/>.</exception> 99/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="generator"/> is <see langword="null"/>.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 175/// <exception cref="ArgumentNullException"><paramref name="generator"/> is <see langword="null"/>.</exception> 176/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception>
Embeddings\IEmbeddingGenerator.cs (1)
20/// <exception cref="ArgumentNullException"><paramref name="serviceType"/> is <see langword="null"/>.</exception>
Embeddings\IEmbeddingGenerator{TInput,TEmbedding}.cs (1)
36/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception>
Functions\AIFunctionFactory.cs (8)
108/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception> 181/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception> 271/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception> 272/// <exception cref="ArgumentNullException"><paramref name="method"/> represents an instance method but <paramref name="target"/> is null.</exception> 354/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception> 355/// <exception cref="ArgumentNullException"><paramref name="method"/> represents an instance method but <paramref name="target"/> is null.</exception> 457/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception> 458/// <exception cref="ArgumentNullException"><paramref name="createInstanceFunc"/> is <see langword="null"/>.</exception>
Functions\DelegatingAIFunction.cs (1)
25/// <exception cref="ArgumentNullException"><paramref name="innerFunction"/> is <see langword="null"/>.</exception>
SpeechToText\ISpeechToTextClient.cs (1)
55/// <exception cref="ArgumentNullException"><paramref name="serviceType"/> is <see langword="null"/>.</exception>
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (2)
47/// <exception cref="ArgumentNullException">One of the specified parameters is <see langword="null" />.</exception> 67/// <exception cref="ArgumentNullException">One of the specified parameters is <see langword="null" />.</exception>
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (4)
72/// <exception cref="ArgumentNullException">If the parameterInfo parameter is null.</exception> 195/// <exception cref="ArgumentNullException">If the propertyInfo parameter is null.</exception> 244/// <exception cref="ArgumentNullException">If the eventInfo parameter is null.</exception> 257/// <exception cref="ArgumentNullException">If the fieldInfo parameter is null.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
UsageDetails.cs (1)
33/// <exception cref="ArgumentNullException"><paramref name="usage"/> is <see langword="null"/>.</exception>
Utilities\AIJsonUtilities.cs (2)
33/// <exception cref="ArgumentNullException"><paramref name="options"/> or <paramref name="typeDiscriminatorId"/> is <see langword="null"/>.</exception> 51/// <exception cref="ArgumentNullException"><paramref name="options"/>, <paramref name="contentType"/>, or <paramref name="typeDiscriminatorId"/> is <see langword="null"/>.</exception>
Utilities\AIJsonUtilities.Schema.Create.cs (1)
73/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception>
Microsoft.Extensions.AI.Abstractions.Tests (61)
ChatCompletion\ChatClientExtensionsTests.cs (8)
17Assert.Throws<ArgumentNullException>("client", () => ChatClientExtensions.GetService<object>(null!)); 23Assert.Throws<ArgumentNullException>("client", () => ChatClientExtensions.GetRequiredService(null!, typeof(string))); 24Assert.Throws<ArgumentNullException>("client", () => ChatClientExtensions.GetRequiredService<object>(null!)); 27Assert.Throws<ArgumentNullException>("serviceType", () => client.GetRequiredService(null!)); 75Assert.Throws<ArgumentNullException>("client", () => 80Assert.Throws<ArgumentNullException>("chatMessage", () => 89Assert.Throws<ArgumentNullException>("client", () => 94Assert.Throws<ArgumentNullException>("chatMessage", () =>
ChatCompletion\ChatFinishReasonTests.cs (1)
21Assert.Throws<ArgumentNullException>("value", () => new ChatFinishReason(null!));
ChatCompletion\ChatResponseTests.cs (1)
27Assert.Throws<ArgumentNullException>("message", () => new ChatResponse((ChatMessage)null!));
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (1)
21Assert.Throws<ArgumentNullException>("updates", () => ((List<ChatResponseUpdate>)null!).ToChatResponse());
ChatCompletion\ChatRoleTests.cs (1)
21Assert.Throws<ArgumentNullException>("value", () => new ChatRole(null!));
ChatCompletion\DelegatingChatClientTests.cs (2)
17Assert.Throws<ArgumentNullException>("innerClient", () => new NoOpDelegatingChatClient(null!)); 95Assert.Throws<ArgumentNullException>("serviceType", () => delegating.GetService(null!));
Contents\DataContentTests.cs (1)
129Assert.Throws<ArgumentNullException>("uri", () => JsonSerializer.Deserialize<DataContent>(json, TestJsonSerializerContext.Default.Options)!);
Contents\FunctionCallContentTests..cs (4)
320Assert.Throws<ArgumentNullException>("encodedArguments", () => FunctionCallContent.CreateFromParsedArguments((string)null!, "callId", "functionName", _ => null)); 321Assert.Throws<ArgumentNullException>("callId", () => FunctionCallContent.CreateFromParsedArguments("{}", null!, "functionName", _ => null)); 322Assert.Throws<ArgumentNullException>("name", () => FunctionCallContent.CreateFromParsedArguments("{}", "callId", null!, _ => null)); 323Assert.Throws<ArgumentNullException>("argumentParser", () => FunctionCallContent.CreateFromParsedArguments("{}", "callId", "functionName", null!));
Contents\UriContentTests.cs (6)
15Assert.Throws<ArgumentNullException>("uri", () => new UriContent((string)null!, "image/png")); 16Assert.Throws<ArgumentNullException>("uri", () => new UriContent((Uri)null!, "image/png")); 19Assert.Throws<ArgumentNullException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", null!)); 23Assert.Throws<ArgumentNullException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), null!)); 28Assert.Throws<ArgumentNullException>("value", () => c.Uri = null!); 44Assert.Throws<ArgumentNullException>("value", () => c.MediaType = null!);
Contents\UsageContentTests.cs (2)
14Assert.Throws<ArgumentNullException>("details", () => new UsageContent(null!)); 56Assert.Throws<ArgumentNullException>("value", () => c.Details = null!);
Embeddings\DelegatingEmbeddingGeneratorTests.cs (2)
17Assert.Throws<ArgumentNullException>("innerGenerator", () => new NoOpDelegatingEmbeddingGenerator(null!)); 56Assert.Throws<ArgumentNullException>("serviceType", () => delegating.GetService(null!));
Embeddings\EmbeddingGeneratorExtensionsTests.cs (6)
16Assert.Throws<ArgumentNullException>("generator", () => EmbeddingGeneratorExtensions.GetService<object>(null!)); 22Assert.Throws<ArgumentNullException>("generator", () => EmbeddingGeneratorExtensions.GetRequiredService<object>(null!)); 25Assert.Throws<ArgumentNullException>("serviceType", () => generator.GetRequiredService(null!)); 81await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateAsync("hello")); 82await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateVectorAsync("hello")); 83await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateAndZipAsync(["hello"]));
Embeddings\GeneratedEmbeddingsTests.cs (1)
20Assert.Throws<ArgumentNullException>("embeddings", () => new GeneratedEmbeddings<Embedding<float>>(null!));
Functions\DelegatingAIFunctionTests.cs (1)
17Assert.Throws<ArgumentNullException>("innerFunction", () => new DerivedFunction(null!));
SpeechToText\DelegatingSpeechToTextClientTests.cs (2)
18Assert.Throws<ArgumentNullException>("innerClient", () => new NoOpDelegatingSpeechToTextClient(null!)); 96Assert.Throws<ArgumentNullException>("serviceType", () => delegating.GetService(null!));
SpeechToText\SpeechToTextClientExtensionsTests.cs (9)
17Assert.Throws<ArgumentNullException>("client", () => 29var ex1 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetTextAsync(client!, content)); 34var ex2 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetTextAsync(testClient, nullContent!)); 43var ex1 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetStreamingTextAsync(client!, content).GetAsyncEnumerator().MoveNextAsync().AsTask()); 48var ex2 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetStreamingTextAsync(testClient, nullContent!).GetAsyncEnumerator().MoveNextAsync().AsTask());
SpeechToText\SpeechToTextResponseTests.cs (2)
17Assert.Throws<ArgumentNullException>("contents", () => new SpeechToTextResponse((IList<AIContent>)null!)); 64Assert.Throws<ArgumentNullException>("contents", () => new SpeechToTextResponse((IList<AIContent>)null!));
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (1)
38Assert.Throws<ArgumentNullException>("updates", () => ((List<SpeechToTextResponseUpdate>)null!).ToSpeechToTextResponse());
SpeechToText\SpeechToTextResponseUpdateKindTests.cs (1)
21Assert.Throws<ArgumentNullException>("value", () => new SpeechToTextResponseUpdateKind(null!));
Utilities\AIJsonSchemaTransformCacheTests.cs (3)
15Assert.Throws<ArgumentNullException>(() => new AIJsonSchemaTransformCache(transformOptions: null!)); 36Assert.Throws<ArgumentNullException>(() => cache.GetOrCreateTransformedSchema(function: null!)); 43Assert.Throws<ArgumentNullException>(() => cache.GetOrCreateTransformedSchema(responseFormat: null!));
Utilities\AIJsonUtilitiesTests.cs (6)
988Assert.Throws<ArgumentNullException>("options", () => ((JsonSerializerOptions)null!).AddAIContentType<DerivedAIContent>("discriminator")); 989Assert.Throws<ArgumentNullException>("options", () => ((JsonSerializerOptions)null!).AddAIContentType(typeof(DerivedAIContent), "discriminator")); 990Assert.Throws<ArgumentNullException>("typeDiscriminatorId", () => options.AddAIContentType<DerivedAIContent>(null!)); 991Assert.Throws<ArgumentNullException>("typeDiscriminatorId", () => options.AddAIContentType(typeof(DerivedAIContent), null!)); 992Assert.Throws<ArgumentNullException>("contentType", () => options.AddAIContentType(null!, "discriminator")); 1293Assert.Throws<ArgumentNullException>(() => AIJsonUtilities.TransformSchema(schema, transformOptions: null!));
Microsoft.Extensions.AI.AzureAIInference (11)
AzureAIInferenceChatClient.cs (2)
48/// <exception cref="ArgumentNullException"><paramref name="chatCompletionsClient"/> is <see langword="null"/>.</exception> 49/// <exception cref="ArgumentNullException"><paramref name="defaultModelId"/> is empty or composed entirely of whitespace.</exception>
AzureAIInferenceEmbeddingGenerator.cs (1)
44/// <exception cref="ArgumentNullException"><paramref name="embeddingsClient"/> is <see langword="null"/>.</exception>
AzureAIInferenceImageEmbeddingGenerator.cs (1)
40/// <exception cref="ArgumentNullException"><paramref name="imageEmbeddingsClient"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
AzureAIInferenceChatClientTests.cs (1)
30Assert.Throws<ArgumentNullException>("chatCompletionsClient", () => ((ChatCompletionsClient)null!).AsIChatClient("model"));
AzureAIInferenceEmbeddingGeneratorTests.cs (1)
23Assert.Throws<ArgumentNullException>("embeddingsClient", () => ((EmbeddingsClient)null!).AsIEmbeddingGenerator());
AzureAIInferenceImageEmbeddingGeneratorTests.cs (1)
23Assert.Throws<ArgumentNullException>("imageEmbeddingsClient", () => ((ImageEmbeddingsClient)null!).AsIEmbeddingGenerator());
Microsoft.Extensions.AI.Evaluation (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Evaluation.Console (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Evaluation.NLP (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Evaluation.Quality (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Evaluation.Reporting (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Evaluation.Safety (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Integration.Tests (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Ollama (9)
OllamaChatClient.cs (1)
64/// <exception cref="ArgumentNullException"><paramref name="endpoint"/> is <see langword="null"/>.</exception>
OllamaEmbeddingGenerator.cs (1)
48/// <exception cref="ArgumentNullException"><paramref name="endpoint"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Ollama.Tests (3)
OllamaChatClientTests.cs (2)
26Assert.Throws<ArgumentNullException>("endpoint", () => new OllamaChatClient((Uri)null!)); 36Assert.Throws<ArgumentNullException>("value", () => client.ToolCallJsonSerializerOptions = null!);
OllamaEmbeddingGeneratorTests.cs (1)
20Assert.Throws<ArgumentNullException>("endpoint", () => new OllamaEmbeddingGenerator((string)null!));
Microsoft.Extensions.AI.OpenAI (22)
OpenAIChatClient.cs (1)
35/// <exception cref="ArgumentNullException"><paramref name="chatClient"/> is <see langword="null"/>.</exception>
OpenAIClientExtensions.cs (10)
114/// <exception cref="ArgumentNullException"><paramref name="chatClient"/> is <see langword="null"/>.</exception> 121/// <exception cref="ArgumentNullException"><paramref name="responseClient"/> is <see langword="null"/>.</exception> 134/// <exception cref="ArgumentNullException"><paramref name="assistantClient"/> is <see langword="null"/>.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="assistantId"/> is <see langword="null"/>.</exception> 144/// <exception cref="ArgumentNullException"><paramref name="audioClient"/> is <see langword="null"/>.</exception> 153/// <exception cref="ArgumentNullException"><paramref name="embeddingClient"/> is <see langword="null"/>.</exception> 160/// <exception cref="ArgumentNullException"><paramref name="function"/> is <see langword="null"/>.</exception> 167/// <exception cref="ArgumentNullException"><paramref name="function"/> is <see langword="null"/>.</exception> 175/// <exception cref="ArgumentNullException"><paramref name="function"/> is <see langword="null"/>.</exception> 182/// <exception cref="ArgumentNullException"><paramref name="function"/> is <see langword="null"/>.</exception>
OpenAIEmbeddingGenerator.cs (1)
37/// <exception cref="ArgumentNullException"><paramref name="embeddingClient"/> is <see langword="null"/>.</exception>
OpenAIResponseChatClient.cs (1)
35/// <exception cref="ArgumentNullException"><paramref name="responseClient"/> is <see langword="null"/>.</exception>
src\Shared\ServerSentEvents\SseParser.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="sseStream"/> is null.</exception> 37/// <exception cref="ArgumentNullException"><paramref name="sseStream"/> or <paramref name="itemParser"/> is null.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIAssistantChatClientTests.cs (2)
23Assert.Throws<ArgumentNullException>("assistantClient", () => ((AssistantClient)null!).AsIChatClient("assistantId")); 24Assert.Throws<ArgumentNullException>("assistantId", () => new AssistantClient("ignored").AsIChatClient(null!));
OpenAIChatClientTests.cs (1)
30Assert.Throws<ArgumentNullException>("chatClient", () => ((ChatClient)null!).AsIChatClient());
OpenAIEmbeddingGeneratorTests.cs (1)
25Assert.Throws<ArgumentNullException>("embeddingClient", () => ((EmbeddingClient)null!).AsIEmbeddingGenerator());
OpenAIResponseClientTests.cs (1)
29Assert.Throws<ArgumentNullException>("responseClient", () => ((OpenAIResponseClient)null!).AsIChatClient());
OpenAISpeechToTextClientTests.cs (1)
26Assert.Throws<ArgumentNullException>("audioClient", () => ((AudioClient)null!).AsISpeechToTextClient());
Microsoft.Extensions.AI.Tests (34)
ChatCompletion\ChatClientBuilderTest.cs (3)
61Assert.Throws<ArgumentNullException>("innerClient", () => new ChatClientBuilder((IChatClient)null!)); 62Assert.Throws<ArgumentNullException>("innerClient", () => ((IChatClient)null!).AsBuilder()); 68Assert.Throws<ArgumentNullException>("innerClientFactory", () => new ChatClientBuilder((Func<IServiceProvider, IChatClient>)null!));
ChatCompletion\ConfigureOptionsChatClientTests.cs (3)
18Assert.Throws<ArgumentNullException>("innerClient", () => new ConfigureOptionsChatClient(null!, _ => { })); 19Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsChatClient(new TestChatClient(), null!)); 27Assert.Throws<ArgumentNullException>("configure", () => builder.ConfigureOptions(null!));
ChatCompletion\FunctionInvocationContextTests.cs (3)
37Assert.Throws<ArgumentNullException>("value", () => ctx.CallContent = null!); 38Assert.Throws<ArgumentNullException>("value", () => ctx.Messages = null!); 39Assert.Throws<ArgumentNullException>("value", () => ctx.Function = null!);
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
27Assert.Throws<ArgumentNullException>("innerClient", () => new FunctionInvokingChatClient(null!)); 28Assert.Throws<ArgumentNullException>("builder", () => ((ChatClientBuilder)null!).UseFunctionInvocation());
ChatCompletion\LoggingChatClientTests.cs (2)
20Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingChatClient(null!, NullLogger.Instance)); 21Assert.Throws<ArgumentNullException>("logger", () => new LoggingChatClient(new TestChatClient(), null!));
ChatCompletion\UseDelegateChatClientTests.cs (1)
22Assert.Throws<ArgumentNullException>("getResponseFunc", () => builder.Use(null!, null!));
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (3)
16Assert.Throws<ArgumentNullException>("innerGenerator", () => new ConfigureOptionsEmbeddingGenerator<string, Embedding<float>>(null!, _ => { })); 17Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsEmbeddingGenerator<string, Embedding<float>>(new TestEmbeddingGenerator(), null!)); 25Assert.Throws<ArgumentNullException>("configure", () => builder.ConfigureOptions(null!));
Embeddings\EmbeddingGeneratorBuilderTests.cs (3)
60Assert.Throws<ArgumentNullException>("innerGenerator", () => new EmbeddingGeneratorBuilder<string, Embedding<float>>((IEmbeddingGenerator<string, Embedding<float>>)null!)); 61Assert.Throws<ArgumentNullException>("innerGenerator", () => ((IEmbeddingGenerator<string, Embedding<float>>)null!).AsBuilder()); 67Assert.Throws<ArgumentNullException>("innerGeneratorFactory",
Embeddings\LoggingEmbeddingGeneratorTests.cs (2)
19Assert.Throws<ArgumentNullException>("innerGenerator", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(null!, NullLogger.Instance)); 20Assert.Throws<ArgumentNullException>("logger", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(new TestEmbeddingGenerator(), null!));
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (1)
20Assert.Throws<ArgumentNullException>("generateFunc", () =>
Functions\AIFunctionFactoryTest.cs (6)
28Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!)); 29Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!, target: new object())); 30Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!, target: new object(), name: "myAiFunk")); 31Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).GetMethod(nameof(InvalidArguments_Throw))!, (object?)null)); 32Assert.Throws<ArgumentNullException>("createInstanceFunc", () => 277await Assert.ThrowsAsync<ArgumentNullException>("arguments.Services", () => func.InvokeAsync(arguments).AsTask());
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (3)
19Assert.Throws<ArgumentNullException>("innerClient", () => new ConfigureOptionsSpeechToTextClient(null!, _ => { })); 20Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsSpeechToTextClient(new TestSpeechToTextClient(), null!)); 28Assert.Throws<ArgumentNullException>("configure", () => builder.ConfigureOptions(null!));
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
22Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingSpeechToTextClient(null!, NullLogger.Instance)); 23Assert.Throws<ArgumentNullException>("logger", () => new LoggingSpeechToTextClient(new TestSpeechToTextClient(), null!));
Microsoft.Extensions.AmbientMetadata.Application (12)
ApplicationMetadataConfigurationBuilderExtensions.cs (1)
25/// <exception cref="ArgumentNullException"><paramref name="builder"/> or <paramref name="hostEnvironment"/> is <see langword="null"/>.</exception>
ApplicationMetadataHostBuilderExtensions.cs (1)
24/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
ApplicationMetadataServiceCollectionExtensions.cs (2)
22/// <exception cref="ArgumentNullException"><paramref name="section"/> or <paramref name="section"/> is <see langword="null"/>.</exception> 39/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
ApplicationMetadataSource.cs (1)
24/// <exception cref="ArgumentNullException"><paramref name="hostEnvironment"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AmbientMetadata.Application.Tests (8)
ApplicationMetadataExtensionsTests.cs (7)
38Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(config.GetSection(string.Empty))); 39Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(_ => { })); 40Assert.Throws<ArgumentNullException>(() => serviceCollection.AddApplicationMetadata((Action<ApplicationMetadata>)null!)); 41Assert.Throws<ArgumentNullException>(() => serviceCollection.AddApplicationMetadata((IConfigurationSection)null!)); 42Assert.Throws<ArgumentNullException>(() => ((IHostBuilder)null!).UseApplicationMetadata(_fixture.Create<string>())); 43Assert.Throws<ArgumentNullException>(() => new ConfigurationBuilder().AddApplicationMetadata(null!)); 44Assert.Throws<ArgumentNullException>(() => ((IConfigurationBuilder)null!).AddApplicationMetadata(null!));
ApplicationMetadataSourceTests.cs (1)
36act.Should().Throw<ArgumentNullException>();
Microsoft.Extensions.AsyncState (8)
AsyncStateExtensions.cs (1)
22/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AsyncState.Tests (1)
AsyncContextServiceCollectionExtensionsTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => AsyncStateExtensions.AddAsyncState(null!));
Microsoft.Extensions.Caching.Abstractions (20)
CacheEntryExtensions.cs (3)
39ArgumentNullException.ThrowIfNull(expirationToken); 109ArgumentNullException.ThrowIfNull(callback); 160ArgumentNullException.ThrowIfNull(options);
DistributedCacheExtensions.cs (14)
24/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 27ArgumentNullException.ThrowIfNull(key); 28ArgumentNullException.ThrowIfNull(value); 41/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 44ArgumentNullException.ThrowIfNull(key); 45ArgumentNullException.ThrowIfNull(value); 56/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 69/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 72ArgumentNullException.ThrowIfNull(key); 73ArgumentNullException.ThrowIfNull(value); 86/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 101/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 104ArgumentNullException.ThrowIfNull(key); 105ArgumentNullException.ThrowIfNull(value);
MemoryCacheEntryExtensions.cs (3)
57ArgumentNullException.ThrowIfNull(expirationToken); 116ArgumentNullException.ThrowIfNull(callback); 133ArgumentNullException.ThrowIfNull(callback);
Microsoft.Extensions.Caching.Hybrid (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Caching.Memory (27)
CacheEntry.cs (2)
40ArgumentNullException.ThrowIfNull(key); 41ArgumentNullException.ThrowIfNull(memoryCache);
MemoryCache.cs (5)
52ArgumentNullException.ThrowIfNull(optionsAccessor); 53ArgumentNullException.ThrowIfNull(loggerFactory); 102ArgumentNullException.ThrowIfNull(key); 207ArgumentNullException.ThrowIfNull(key); 321ArgumentNullException.ThrowIfNull(key);
MemoryCacheServiceCollectionExtensions.cs (6)
24ArgumentNullException.ThrowIfNull(services); 43ArgumentNullException.ThrowIfNull(services); 44ArgumentNullException.ThrowIfNull(setupAction); 68ArgumentNullException.ThrowIfNull(services); 95ArgumentNullException.ThrowIfNull(services); 96ArgumentNullException.ThrowIfNull(setupAction);
MemoryDistributedCache.cs (14)
35ArgumentNullException.ThrowIfNull(optionsAccessor); 36ArgumentNullException.ThrowIfNull(loggerFactory); 48ArgumentNullException.ThrowIfNull(key); 62ArgumentNullException.ThrowIfNull(key); 75ArgumentNullException.ThrowIfNull(key); 76ArgumentNullException.ThrowIfNull(value); 77ArgumentNullException.ThrowIfNull(options); 97ArgumentNullException.ThrowIfNull(key); 98ArgumentNullException.ThrowIfNull(value); 99ArgumentNullException.ThrowIfNull(options); 111ArgumentNullException.ThrowIfNull(key); 124ArgumentNullException.ThrowIfNull(key); 136ArgumentNullException.ThrowIfNull(key); 149ArgumentNullException.ThrowIfNull(key);
Microsoft.Extensions.Caching.SqlServer (4)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.Extensions.Caching.StackExchangeRedis (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
RedisCacheSetAndRemoveTests.cs (1)
99Assert.Throws<ArgumentNullException>(() => cache.Set(key, value));
Microsoft.Extensions.Compliance.Abstractions (13)
Redaction\IRedactionBuilder.cs (1)
27/// <exception cref="ArgumentNullException"><paramref name="classifications" /> is <see langword="null" />.</exception>
Redaction\RedactionStringBuilderExtensions.cs (4)
31/// <exception cref="ArgumentNullException"><paramref name="stringBuilder"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="redactor"/> is <see langword="null"/>.</exception> 43/// <exception cref="ArgumentNullException"><paramref name="stringBuilder"/> is <see langword="null"/>.</exception> 44/// <exception cref="ArgumentNullException"><paramref name="redactor"/> is <see langword="null"/>.</exception>
Redaction\Redactor.cs (1)
93/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Redaction\RedactionAbstractionsExtensionsTest.cs (2)
17Assert.Throws<ArgumentNullException>(() => RedactionStringBuilderExtensions.AppendRedacted(null!, NullRedactor.Instance, s)); 18Assert.Throws<ArgumentNullException>(() => RedactionStringBuilderExtensions.AppendRedacted(new StringBuilder(), null!, ""));
Microsoft.Extensions.Compliance.Redaction (12)
RedactionExtensions.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="builder"/>, <paramref name="configure" />, or <paramref name="classifications" /> is <see langword="null"/>.</exception> 46/// <exception cref="ArgumentNullException"><paramref name="builder"/>, <paramref name="section" />, or <paramref name="classifications" /> is <see langword="null"/>.</exception>
RedactionServiceCollectionExtensions.cs (3)
21/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 31/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="configure"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Compliance.Redaction.Tests (2)
RedactionAcceptanceTests.cs (2)
56Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddRedaction(_ => { })); 57Assert.Throws<ArgumentNullException>(() => new ServiceCollection().AddRedaction(null!));
Microsoft.Extensions.Compliance.Testing (13)
FakeRedactionBuilderExtensions.cs (3)
27/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 44/// <exception cref="ArgumentNullException"><paramref name="builder"/> or <paramref name="configure"/> is <see langword="null"/>.</exception> 66/// <exception cref="ArgumentNullException"><paramref name="builder"/> or <paramref name="section"/> is <see langword="null"/>.</exception>
FakeRedactionServiceCollectionExtensions.cs (2)
23/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 48/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="configure"/>> are <see langword="null"/>.</exception>
FakeRedactionServiceProviderExtensions.cs (1)
21/// <exception cref="ArgumentNullException"><paramref name="serviceProvider"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Compliance.Testing.Tests (8)
RedactionFakesAcceptanceTests.cs (8)
231Assert.Throws<ArgumentNullException>(() => ((IRedactionBuilder)null!).SetFakeRedactor(dc)); 232Assert.Throws<ArgumentNullException>(() => ((IRedactionBuilder)null!).SetFakeRedactor(Setup.GetFakesConfiguration(), dc)); 233Assert.Throws<ArgumentNullException>(() => ((IRedactionBuilder)null!).SetFakeRedactor(x => x.RedactionFormat = "2", dc)); 234Assert.Throws<ArgumentNullException>(() => new ServiceCollection().AddRedaction(x => x.SetFakeRedactor((Action<FakeRedactorOptions>)null!, dc))); 236Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddRedaction(x => x.SetFakeRedactor((Action<FakeRedactorOptions>)null!, dc))); 237Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddFakeRedaction()); 238Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddFakeRedaction(_ => { })); 239Assert.Throws<ArgumentNullException>(() => new ServiceCollection().AddFakeRedaction(null!));
Microsoft.Extensions.Configuration (12)
ChainedBuilderExtensions.cs (2)
32ArgumentNullException.ThrowIfNull(configurationBuilder); 33ArgumentNullException.ThrowIfNull(config);
ChainedConfigurationProvider.cs (1)
24ArgumentNullException.ThrowIfNull(source);
ConfigurationBuilder.cs (1)
34ArgumentNullException.ThrowIfNull(source);
ConfigurationManager.cs (1)
92ArgumentNullException.ThrowIfNull(source);
ConfigurationRoot.cs (1)
29ArgumentNullException.ThrowIfNull(providers);
ConfigurationSection.cs (2)
29ArgumentNullException.ThrowIfNull(root); 30ArgumentNullException.ThrowIfNull(path);
MemoryConfigurationBuilderExtensions.cs (2)
22ArgumentNullException.ThrowIfNull(configurationBuilder); 38ArgumentNullException.ThrowIfNull(configurationBuilder);
MemoryConfigurationProvider.cs (1)
23ArgumentNullException.ThrowIfNull(source);
StreamConfigurationProvider.cs (1)
27ArgumentNullException.ThrowIfNull(source);
Microsoft.Extensions.Configuration.Abstractions (3)
ConfigurationExtensions.cs (1)
100ArgumentNullException.ThrowIfNull(configuration);
ConfigurationPath.cs (2)
27ArgumentNullException.ThrowIfNull(pathSegments); 39ArgumentNullException.ThrowIfNull(pathSegments);
Microsoft.Extensions.Configuration.Binder (8)
ConfigurationBinder.cs (8)
53ArgumentNullException.ThrowIfNull(configuration); 93ArgumentNullException.ThrowIfNull(configuration); 94ArgumentNullException.ThrowIfNull(type); 113ArgumentNullException.ThrowIfNull(configuration); 137ArgumentNullException.ThrowIfNull(configuration); 209ArgumentNullException.ThrowIfNull(configuration); 210ArgumentNullException.ThrowIfNull(type); 1164ArgumentNullException.ThrowIfNull(property);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
23ArgumentNullException.ThrowIfNull(args);
Microsoft.Extensions.Configuration.FileExtensions (8)
FileConfigurationExtensions.cs (7)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(fileProvider); 39ArgumentNullException.ThrowIfNull(builder); 57ArgumentNullException.ThrowIfNull(builder); 58ArgumentNullException.ThrowIfNull(basePath); 71ArgumentNullException.ThrowIfNull(builder); 84ArgumentNullException.ThrowIfNull(builder);
FileConfigurationProvider.cs (1)
28ArgumentNullException.ThrowIfNull(source);
Microsoft.Extensions.Configuration.Ini (2)
IniConfigurationExtensions.cs (2)
67ArgumentNullException.ThrowIfNull(builder); 101ArgumentNullException.ThrowIfNull(builder);
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationExtensions.cs (2)
67ArgumentNullException.ThrowIfNull(builder); 101ArgumentNullException.ThrowIfNull(builder);
Microsoft.Extensions.Configuration.UserSecrets (4)
UserSecretsConfigurationExtensions.cs (4)
121ArgumentNullException.ThrowIfNull(configuration); 122ArgumentNullException.ThrowIfNull(assembly); 169ArgumentNullException.ThrowIfNull(configuration); 170ArgumentNullException.ThrowIfNull(userSecretsId);
Microsoft.Extensions.Configuration.Xml (6)
XmlConfigurationElement.cs (1)
36ArgumentNullException.ThrowIfNull(elementName);
XmlConfigurationElementAttributeValue.cs (2)
12ArgumentNullException.ThrowIfNull(attribute); 13ArgumentNullException.ThrowIfNull(value);
XmlConfigurationElementTextContent.cs (1)
12ArgumentNullException.ThrowIfNull(textContent);
XmlConfigurationExtensions.cs (2)
76ArgumentNullException.ThrowIfNull(builder); 114ArgumentNullException.ThrowIfNull(builder);
Microsoft.Extensions.DependencyInjection (3)
ServiceCollectionContainerBuilderExtensions.cs (2)
48ArgumentNullException.ThrowIfNull(services); 49ArgumentNullException.ThrowIfNull(options);
ServiceLookup\CallSiteFactory.cs (1)
780ArgumentNullException.ThrowIfNull(serviceType);
Microsoft.Extensions.DependencyInjection.Abstractions (244)
ActivatorUtilities.cs (7)
52ArgumentNullException.ThrowIfNull(provider); 926ArgumentNullException.ThrowIfNull(serviceProvider); 962ArgumentNullException.ThrowIfNull(serviceProvider); 983ArgumentNullException.ThrowIfNull(serviceProvider); 1115ArgumentNullException.ThrowIfNull(serviceProvider); 1140ArgumentNullException.ThrowIfNull(serviceProvider); 1209ArgumentNullException.ThrowIfNull(provider);
AsyncServiceScope.cs (1)
25ArgumentNullException.ThrowIfNull(serviceScope);
Extensions\ServiceCollectionDescriptorExtensions.cs (47)
25ArgumentNullException.ThrowIfNull(collection); 26ArgumentNullException.ThrowIfNull(descriptor); 42ArgumentNullException.ThrowIfNull(collection); 43ArgumentNullException.ThrowIfNull(descriptors); 63ArgumentNullException.ThrowIfNull(collection); 64ArgumentNullException.ThrowIfNull(descriptor); 90ArgumentNullException.ThrowIfNull(collection); 91ArgumentNullException.ThrowIfNull(descriptors); 109ArgumentNullException.ThrowIfNull(collection); 110ArgumentNullException.ThrowIfNull(service); 129ArgumentNullException.ThrowIfNull(collection); 130ArgumentNullException.ThrowIfNull(service); 131ArgumentNullException.ThrowIfNull(implementationType); 150ArgumentNullException.ThrowIfNull(collection); 151ArgumentNullException.ThrowIfNull(service); 152ArgumentNullException.ThrowIfNull(implementationFactory); 167ArgumentNullException.ThrowIfNull(collection); 184ArgumentNullException.ThrowIfNull(collection); 215ArgumentNullException.ThrowIfNull(collection); 216ArgumentNullException.ThrowIfNull(service); 235ArgumentNullException.ThrowIfNull(collection); 236ArgumentNullException.ThrowIfNull(service); 237ArgumentNullException.ThrowIfNull(implementationType); 256ArgumentNullException.ThrowIfNull(collection); 257ArgumentNullException.ThrowIfNull(service); 258ArgumentNullException.ThrowIfNull(implementationFactory); 273ArgumentNullException.ThrowIfNull(collection); 290ArgumentNullException.ThrowIfNull(collection); 321ArgumentNullException.ThrowIfNull(collection); 322ArgumentNullException.ThrowIfNull(service); 341ArgumentNullException.ThrowIfNull(collection); 342ArgumentNullException.ThrowIfNull(service); 343ArgumentNullException.ThrowIfNull(implementationType); 362ArgumentNullException.ThrowIfNull(collection); 363ArgumentNullException.ThrowIfNull(service); 364ArgumentNullException.ThrowIfNull(implementationFactory); 379ArgumentNullException.ThrowIfNull(collection); 396ArgumentNullException.ThrowIfNull(collection); 412ArgumentNullException.ThrowIfNull(collection); 413ArgumentNullException.ThrowIfNull(instance); 456ArgumentNullException.ThrowIfNull(services); 457ArgumentNullException.ThrowIfNull(descriptor); 508ArgumentNullException.ThrowIfNull(services); 509ArgumentNullException.ThrowIfNull(descriptors); 528ArgumentNullException.ThrowIfNull(collection); 529ArgumentNullException.ThrowIfNull(descriptor); 564ArgumentNullException.ThrowIfNull(serviceType);
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (33)
24ArgumentNullException.ThrowIfNull(collection); 25ArgumentNullException.ThrowIfNull(service); 46ArgumentNullException.ThrowIfNull(collection); 47ArgumentNullException.ThrowIfNull(service); 48ArgumentNullException.ThrowIfNull(implementationType); 69ArgumentNullException.ThrowIfNull(collection); 70ArgumentNullException.ThrowIfNull(service); 71ArgumentNullException.ThrowIfNull(implementationFactory); 87ArgumentNullException.ThrowIfNull(collection); 105ArgumentNullException.ThrowIfNull(collection); 140ArgumentNullException.ThrowIfNull(collection); 141ArgumentNullException.ThrowIfNull(service); 162ArgumentNullException.ThrowIfNull(collection); 163ArgumentNullException.ThrowIfNull(service); 164ArgumentNullException.ThrowIfNull(implementationType); 185ArgumentNullException.ThrowIfNull(collection); 186ArgumentNullException.ThrowIfNull(service); 187ArgumentNullException.ThrowIfNull(implementationFactory); 203ArgumentNullException.ThrowIfNull(collection); 221ArgumentNullException.ThrowIfNull(collection); 256ArgumentNullException.ThrowIfNull(collection); 257ArgumentNullException.ThrowIfNull(service); 278ArgumentNullException.ThrowIfNull(collection); 279ArgumentNullException.ThrowIfNull(service); 280ArgumentNullException.ThrowIfNull(implementationType); 301ArgumentNullException.ThrowIfNull(collection); 302ArgumentNullException.ThrowIfNull(service); 303ArgumentNullException.ThrowIfNull(implementationFactory); 319ArgumentNullException.ThrowIfNull(collection); 337ArgumentNullException.ThrowIfNull(collection); 354ArgumentNullException.ThrowIfNull(collection); 355ArgumentNullException.ThrowIfNull(instance); 399ArgumentNullException.ThrowIfNull(serviceType);
ServiceCollectionServiceExtensions.cs (47)
29ArgumentNullException.ThrowIfNull(services); 30ArgumentNullException.ThrowIfNull(serviceType); 31ArgumentNullException.ThrowIfNull(implementationType); 51ArgumentNullException.ThrowIfNull(services); 52ArgumentNullException.ThrowIfNull(serviceType); 53ArgumentNullException.ThrowIfNull(implementationFactory); 72ArgumentNullException.ThrowIfNull(services); 89ArgumentNullException.ThrowIfNull(services); 90ArgumentNullException.ThrowIfNull(serviceType); 106ArgumentNullException.ThrowIfNull(services); 126ArgumentNullException.ThrowIfNull(services); 127ArgumentNullException.ThrowIfNull(implementationFactory); 150ArgumentNullException.ThrowIfNull(services); 151ArgumentNullException.ThrowIfNull(implementationFactory); 171ArgumentNullException.ThrowIfNull(services); 172ArgumentNullException.ThrowIfNull(serviceType); 173ArgumentNullException.ThrowIfNull(implementationType); 193ArgumentNullException.ThrowIfNull(services); 194ArgumentNullException.ThrowIfNull(serviceType); 195ArgumentNullException.ThrowIfNull(implementationFactory); 214ArgumentNullException.ThrowIfNull(services); 231ArgumentNullException.ThrowIfNull(services); 232ArgumentNullException.ThrowIfNull(serviceType); 248ArgumentNullException.ThrowIfNull(services); 268ArgumentNullException.ThrowIfNull(services); 269ArgumentNullException.ThrowIfNull(implementationFactory); 292ArgumentNullException.ThrowIfNull(services); 293ArgumentNullException.ThrowIfNull(implementationFactory); 314ArgumentNullException.ThrowIfNull(services); 315ArgumentNullException.ThrowIfNull(serviceType); 316ArgumentNullException.ThrowIfNull(implementationType); 336ArgumentNullException.ThrowIfNull(services); 337ArgumentNullException.ThrowIfNull(serviceType); 338ArgumentNullException.ThrowIfNull(implementationFactory); 357ArgumentNullException.ThrowIfNull(services); 374ArgumentNullException.ThrowIfNull(services); 375ArgumentNullException.ThrowIfNull(serviceType); 391ArgumentNullException.ThrowIfNull(services); 411ArgumentNullException.ThrowIfNull(services); 412ArgumentNullException.ThrowIfNull(implementationFactory); 435ArgumentNullException.ThrowIfNull(services); 436ArgumentNullException.ThrowIfNull(implementationFactory); 456ArgumentNullException.ThrowIfNull(services); 457ArgumentNullException.ThrowIfNull(serviceType); 458ArgumentNullException.ThrowIfNull(implementationInstance); 479ArgumentNullException.ThrowIfNull(services); 480ArgumentNullException.ThrowIfNull(implementationInstance);
ServiceCollectionServiceExtensions.Keyed.cs (47)
31ArgumentNullException.ThrowIfNull(services); 32ArgumentNullException.ThrowIfNull(serviceType); 33ArgumentNullException.ThrowIfNull(implementationType); 55ArgumentNullException.ThrowIfNull(services); 56ArgumentNullException.ThrowIfNull(serviceType); 57ArgumentNullException.ThrowIfNull(implementationFactory); 79ArgumentNullException.ThrowIfNull(services); 98ArgumentNullException.ThrowIfNull(services); 99ArgumentNullException.ThrowIfNull(serviceType); 118ArgumentNullException.ThrowIfNull(services); 140ArgumentNullException.ThrowIfNull(services); 141ArgumentNullException.ThrowIfNull(implementationFactory); 166ArgumentNullException.ThrowIfNull(services); 167ArgumentNullException.ThrowIfNull(implementationFactory); 189ArgumentNullException.ThrowIfNull(services); 190ArgumentNullException.ThrowIfNull(serviceType); 191ArgumentNullException.ThrowIfNull(implementationType); 213ArgumentNullException.ThrowIfNull(services); 214ArgumentNullException.ThrowIfNull(serviceType); 215ArgumentNullException.ThrowIfNull(implementationFactory); 237ArgumentNullException.ThrowIfNull(services); 256ArgumentNullException.ThrowIfNull(services); 257ArgumentNullException.ThrowIfNull(serviceType); 276ArgumentNullException.ThrowIfNull(services); 298ArgumentNullException.ThrowIfNull(services); 299ArgumentNullException.ThrowIfNull(implementationFactory); 324ArgumentNullException.ThrowIfNull(services); 325ArgumentNullException.ThrowIfNull(implementationFactory); 347ArgumentNullException.ThrowIfNull(services); 348ArgumentNullException.ThrowIfNull(serviceType); 349ArgumentNullException.ThrowIfNull(implementationType); 371ArgumentNullException.ThrowIfNull(services); 372ArgumentNullException.ThrowIfNull(serviceType); 373ArgumentNullException.ThrowIfNull(implementationFactory); 395ArgumentNullException.ThrowIfNull(services); 414ArgumentNullException.ThrowIfNull(services); 415ArgumentNullException.ThrowIfNull(serviceType); 434ArgumentNullException.ThrowIfNull(services); 456ArgumentNullException.ThrowIfNull(services); 457ArgumentNullException.ThrowIfNull(implementationFactory); 482ArgumentNullException.ThrowIfNull(services); 483ArgumentNullException.ThrowIfNull(implementationFactory); 505ArgumentNullException.ThrowIfNull(services); 506ArgumentNullException.ThrowIfNull(serviceType); 507ArgumentNullException.ThrowIfNull(implementationInstance); 530ArgumentNullException.ThrowIfNull(services); 531ArgumentNullException.ThrowIfNull(implementationInstance);
ServiceDescriptor.cs (46)
45ArgumentNullException.ThrowIfNull(serviceType); 46ArgumentNullException.ThrowIfNull(implementationType); 77ArgumentNullException.ThrowIfNull(serviceType); 78ArgumentNullException.ThrowIfNull(instance); 95ArgumentNullException.ThrowIfNull(serviceType); 96ArgumentNullException.ThrowIfNull(factory); 115ArgumentNullException.ThrowIfNull(serviceType); 116ArgumentNullException.ThrowIfNull(factory); 395ArgumentNullException.ThrowIfNull(service); 396ArgumentNullException.ThrowIfNull(implementationType); 415ArgumentNullException.ThrowIfNull(service); 416ArgumentNullException.ThrowIfNull(implementationType); 436ArgumentNullException.ThrowIfNull(implementationFactory); 458ArgumentNullException.ThrowIfNull(implementationFactory); 474ArgumentNullException.ThrowIfNull(implementationFactory); 491ArgumentNullException.ThrowIfNull(implementationFactory); 506ArgumentNullException.ThrowIfNull(service); 507ArgumentNullException.ThrowIfNull(implementationFactory); 523ArgumentNullException.ThrowIfNull(service); 524ArgumentNullException.ThrowIfNull(implementationFactory); 607ArgumentNullException.ThrowIfNull(implementationFactory); 629ArgumentNullException.ThrowIfNull(implementationFactory); 645ArgumentNullException.ThrowIfNull(implementationFactory); 662ArgumentNullException.ThrowIfNull(implementationFactory); 677ArgumentNullException.ThrowIfNull(service); 678ArgumentNullException.ThrowIfNull(implementationFactory); 694ArgumentNullException.ThrowIfNull(service); 695ArgumentNullException.ThrowIfNull(implementationFactory); 744ArgumentNullException.ThrowIfNull(service); 745ArgumentNullException.ThrowIfNull(implementationType); 764ArgumentNullException.ThrowIfNull(service); 765ArgumentNullException.ThrowIfNull(implementationType); 785ArgumentNullException.ThrowIfNull(implementationFactory); 807ArgumentNullException.ThrowIfNull(implementationFactory); 823ArgumentNullException.ThrowIfNull(implementationFactory); 842ArgumentNullException.ThrowIfNull(implementationFactory); 859ArgumentNullException.ThrowIfNull(serviceType); 860ArgumentNullException.ThrowIfNull(implementationFactory); 879ArgumentNullException.ThrowIfNull(serviceType); 880ArgumentNullException.ThrowIfNull(implementationFactory); 896ArgumentNullException.ThrowIfNull(implementationInstance); 915ArgumentNullException.ThrowIfNull(implementationInstance); 932ArgumentNullException.ThrowIfNull(serviceType); 933ArgumentNullException.ThrowIfNull(implementationInstance); 952ArgumentNullException.ThrowIfNull(serviceType); 953ArgumentNullException.ThrowIfNull(implementationInstance);
ServiceProviderKeyedServiceExtensions.cs (9)
24ArgumentNullException.ThrowIfNull(provider); 43ArgumentNullException.ThrowIfNull(provider); 44ArgumentNullException.ThrowIfNull(serviceType); 64ArgumentNullException.ThrowIfNull(provider); 65ArgumentNullException.ThrowIfNull(serviceType); 85ArgumentNullException.ThrowIfNull(provider); 99ArgumentNullException.ThrowIfNull(provider); 114ArgumentNullException.ThrowIfNull(provider); 115ArgumentNullException.ThrowIfNull(serviceType);
ServiceProviderServiceExtensions.cs (7)
23ArgumentNullException.ThrowIfNull(provider); 37ArgumentNullException.ThrowIfNull(provider); 38ArgumentNullException.ThrowIfNull(serviceType); 63ArgumentNullException.ThrowIfNull(provider); 76ArgumentNullException.ThrowIfNull(provider); 90ArgumentNullException.ThrowIfNull(provider); 91ArgumentNullException.ThrowIfNull(serviceType);
Microsoft.Extensions.DependencyInjection.AutoActivation (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.DependencyModel (51)
CompilationLibrary.cs (1)
35ArgumentNullException.ThrowIfNull(assemblies);
CompilationOptions.cs (1)
63ArgumentNullException.ThrowIfNull(defines);
DependencyContext.cs (6)
25ArgumentNullException.ThrowIfNull(target); 26ArgumentNullException.ThrowIfNull(compilationOptions); 27ArgumentNullException.ThrowIfNull(compileLibraries); 28ArgumentNullException.ThrowIfNull(runtimeLibraries); 29ArgumentNullException.ThrowIfNull(runtimeGraph); 53ArgumentNullException.ThrowIfNull(other);
DependencyContextExtensions.cs (22)
18ArgumentNullException.ThrowIfNull(self); 25ArgumentNullException.ThrowIfNull(self); 32ArgumentNullException.ThrowIfNull(self); 33ArgumentNullException.ThrowIfNull(runtimeIdentifier); 40ArgumentNullException.ThrowIfNull(self); 41ArgumentNullException.ThrowIfNull(runtimeIdentifier); 48ArgumentNullException.ThrowIfNull(self); 55ArgumentNullException.ThrowIfNull(self); 62ArgumentNullException.ThrowIfNull(self); 63ArgumentNullException.ThrowIfNull(context); 64ArgumentNullException.ThrowIfNull(runtimeIdentifier); 71ArgumentNullException.ThrowIfNull(self); 72ArgumentNullException.ThrowIfNull(context); 73ArgumentNullException.ThrowIfNull(runtimeIdentifier); 80ArgumentNullException.ThrowIfNull(self); 87ArgumentNullException.ThrowIfNull(self); 88ArgumentNullException.ThrowIfNull(runtimeIdentifier); 95ArgumentNullException.ThrowIfNull(self); 96ArgumentNullException.ThrowIfNull(context); 103ArgumentNullException.ThrowIfNull(self); 104ArgumentNullException.ThrowIfNull(context); 105ArgumentNullException.ThrowIfNull(runtimeIdentifier);
DependencyContextJsonReader.cs (1)
24ArgumentNullException.ThrowIfNull(stream);
DependencyContextLoader.cs (1)
57ArgumentNullException.ThrowIfNull(assembly);
DependencyContextWriter.cs (2)
18ArgumentNullException.ThrowIfNull(context); 19ArgumentNullException.ThrowIfNull(stream);
Library.cs (1)
55ArgumentNullException.ThrowIfNull(dependencies);
Resolution\AppBaseCompilationAssemblyResolver.cs (4)
35ArgumentNullException.ThrowIfNull(fileSystem); 36ArgumentNullException.ThrowIfNull(basePath); 37ArgumentNullException.ThrowIfNull(dependencyContextPaths); 46ArgumentNullException.ThrowIfNull(library);
Resolution\CompositeCompilationAssemblyResolver.cs (1)
15ArgumentNullException.ThrowIfNull(resolvers);
Resolution\PackageCompilationAssemblyResolver.cs (3)
34ArgumentNullException.ThrowIfNull(fileSystem); 35ArgumentNullException.ThrowIfNull(nugetPackageDirectories); 71ArgumentNullException.ThrowIfNull(library);
Resolution\ReferenceAssemblyPathResolver.cs (3)
36ArgumentNullException.ThrowIfNull(fileSystem); 37ArgumentNullException.ThrowIfNull(fallbackSearchPaths); 46ArgumentNullException.ThrowIfNull(library);
RuntimeFallbacks.cs (1)
22ArgumentNullException.ThrowIfNull(fallbacks);
RuntimeLibrary.cs (4)
77/// <exception cref="System.ArgumentNullException"> 108ArgumentNullException.ThrowIfNull(runtimeAssemblyGroups); 109ArgumentNullException.ThrowIfNull(nativeLibraryGroups); 110ArgumentNullException.ThrowIfNull(resourceAssemblies);
Microsoft.Extensions.Diagnostics (6)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
21ArgumentNullException.ThrowIfNull(listenerName);
Metrics\Configuration\MetricsBuilderConfigurationExtensions.cs (2)
27ArgumentNullException.ThrowIfNull(builder); 29ArgumentNullException.ThrowIfNull(configuration);
Metrics\DefaultMeterFactory.cs (1)
21ArgumentNullException.ThrowIfNull(options);
Metrics\MetricsServiceExtensions.cs (2)
25ArgumentNullException.ThrowIfNull(services); 50ArgumentNullException.ThrowIfNull(configure);
Microsoft.Extensions.Diagnostics.Abstractions (5)
Metrics\MetricsBuilderExtensions.Listeners.cs (3)
24ArgumentNullException.ThrowIfNull(builder); 37ArgumentNullException.ThrowIfNull(builder); 49ArgumentNullException.ThrowIfNull(builder);
Metrics\MetricsBuilderExtensions.Rules.cs (2)
105ArgumentNullException.ThrowIfNull(builder); 113ArgumentNullException.ThrowIfNull(options);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (10)
ExceptionSummarizationBuilderExtensions.cs (1)
21/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception>
ExceptionSummarizationServiceCollectionExtensions.cs (2)
22/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 37/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Diagnostics.HealthChecks (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (15)
CommonHealthChecksExtensions.ApplicationLifecycle.cs (1)
33/// <exception cref="ArgumentNullException"><paramref name="builder" /> or <paramref name="tags"/> is <see langword="null" />.</exception>
CommonHealthChecksExtensions.Manual.cs (4)
20/// <exception cref="ArgumentNullException"><paramref name="builder" /> or <paramref name="tags"/> is <see langword="null" />.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="builder" /> or <paramref name="tags"/> is <see langword="null" />.</exception> 42/// <exception cref="ArgumentNullException"><paramref name="manualHealthCheck" /> is <see langword="null" />.</exception> 51/// <exception cref="ArgumentNullException"><paramref name="manualHealthCheck" /> is <see langword="null" />.</exception>
CommonHealthChecksExtensions.TelemetryPublisher.cs (3)
19/// <exception cref="ArgumentNullException"><paramref name="services" /> is <see langword="null" />.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="services" /> or <paramref name="section"/> is <see langword="null" />.</exception> 46/// <exception cref="ArgumentNullException"><paramref name="services" /> or <paramref name="configure"/> is <see langword="null" />.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
ApplicationLifecycleHealthChecksExtensionsTests.cs (2)
49Assert.Throws<ArgumentNullException>(() => ((IHealthChecksBuilder)null!).AddApplicationLifecycleHealthCheck()); 50Assert.Throws<ArgumentNullException>(() => ((IHealthChecksBuilder)null!).AddApplicationLifecycleHealthCheck(null!));
ManualHealthCheckExtensionsTests.cs (2)
44Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddHealthChecks().AddManualHealthCheck()); 45Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddHealthChecks().AddManualHealthCheck(null!));
Microsoft.Extensions.Diagnostics.Probes (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Diagnostics.ResourceMonitoring (11)
ResourceMonitoringBuilderExtensions.cs (2)
27/// <exception cref="ArgumentNullException">Either <paramref name="builder"/> or <paramref name="configure"/> is <see langword="null" />.</exception> 44/// <exception cref="ArgumentNullException">Either <paramref name="builder"/> or <paramref name="section"/> is <see langword="null" />.</exception>
ResourceMonitoringServiceCollectionExtensions.cs (2)
34/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 49/// <exception cref="ArgumentNullException">Either <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
ResourceMonitoringExtensionsTests.cs (4)
27Assert.Throws<ArgumentNullException>(() => ((IResourceMonitorBuilder)null!).ConfigureMonitor(_ => { })); 28Assert.Throws<ArgumentNullException>(() => ((IResourceMonitorBuilder)null!).ConfigureMonitor((IConfigurationSection)null!)); 29Assert.Throws<ArgumentNullException>(() => services.AddResourceMonitoring((b) => b.ConfigureMonitor((IConfigurationSection)null!))); 30Assert.Throws<ArgumentNullException>(() => services.AddResourceMonitoring((b) => b.ConfigureMonitor((Action<ResourceMonitoringOptions>)null!)));
ResourceMonitoringServiceTests.cs (1)
86Assert.Throws<ArgumentNullException>(() =>
Microsoft.Extensions.Diagnostics.Testing (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLogCollectorTests.cs (1)
113Assert.Throws<ArgumentNullException>(() => new FakeLogCollector(null!));
Metrics\MetricCollectorTests.cs (5)
19Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>((Instrument<long>)null!)); 20Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>((ObservableInstrument<long>)null!)); 21Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), null!)); 22Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>(null!, "Hello")); 23Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>(null, null!, "Hello"));
Microsoft.Extensions.Features (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.FileProviders.Composite (2)
CompositeDirectoryContents.cs (1)
31ArgumentNullException.ThrowIfNull(fileProviders);
CompositeFileProvider.cs (1)
34ArgumentNullException.ThrowIfNull(fileProviders);
Microsoft.Extensions.FileProviders.Embedded (4)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
EmbeddedFileProviderTests.cs (1)
19Assert.Throws<ArgumentNullException>(() => new EmbeddedFileProvider(null));
Microsoft.Extensions.FileProviders.Physical (4)
Internal\PhysicalDirectoryContents.cs (1)
34ArgumentNullException.ThrowIfNull(directory);
PhysicalFilesWatcher.cs (2)
127/// <exception cref="ArgumentNullException"><paramref name="filter" /> is <see langword="null"/>.</exception> 130ArgumentNullException.ThrowIfNull(filter);
src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
16ArgumentNullException.ThrowIfNull(callback);
Microsoft.Extensions.FileSystemGlobbing (12)
Abstractions\FileInfoWrapper.cs (1)
22ArgumentNullException.ThrowIfNull(fileInfo);
FilePatternMatch.cs (1)
40ArgumentNullException.ThrowIfNull(path);
Internal\PathSegments\LiteralPathSegment.cs (1)
18ArgumentNullException.ThrowIfNull(value);
Internal\PathSegments\WildcardPathSegment.cs (3)
20ArgumentNullException.ThrowIfNull(beginsWith); 21ArgumentNullException.ThrowIfNull(contains); 22ArgumentNullException.ThrowIfNull(endsWith);
Internal\PatternContexts\PatternContextLinear.cs (1)
15ArgumentNullException.ThrowIfNull(pattern);
Internal\PatternContexts\PatternContextRagged.cs (1)
14ArgumentNullException.ThrowIfNull(pattern);
Internal\Patterns\PatternBuilder.cs (1)
30ArgumentNullException.ThrowIfNull(pattern);
Matcher.cs (1)
199ArgumentNullException.ThrowIfNull(directoryInfo);
MatcherExtensions.cs (1)
112ArgumentNullException.ThrowIfNull(matcher);
PatternMatchingResult.cs (1)
32ArgumentNullException.ThrowIfNull(files);
Microsoft.Extensions.Hosting (29)
HostApplicationBuilder.cs (6)
348ArgumentNullException.ThrowIfNull(configureDelegate); 356ArgumentNullException.ThrowIfNull(configureDelegate); 364ArgumentNullException.ThrowIfNull(configureDelegate); 372ArgumentNullException.ThrowIfNull(factory); 381ArgumentNullException.ThrowIfNull(factory); 389ArgumentNullException.ThrowIfNull(configureDelegate);
HostBuilder.cs (6)
65ArgumentNullException.ThrowIfNull(configureDelegate); 81ArgumentNullException.ThrowIfNull(configureDelegate); 95ArgumentNullException.ThrowIfNull(configureDelegate); 109ArgumentNullException.ThrowIfNull(factory); 124ArgumentNullException.ThrowIfNull(factory); 141ArgumentNullException.ThrowIfNull(configureDelegate);
HostingHostBuilderExtensions.cs (2)
38ArgumentNullException.ThrowIfNull(environment); 58ArgumentNullException.ThrowIfNull(contentRoot);
Internal\ConfigureContainerAdapter.cs (1)
14ArgumentNullException.ThrowIfNull(action);
Internal\ConsoleLifetime.cs (7)
33/// <exception cref="ArgumentNullException"><paramref name="options"/> or <paramref name="environment"/> or <paramref name="applicationLifetime"/> or <paramref name="hostOptions"/> is <see langword="null"/>.</exception> 45/// <exception cref="ArgumentNullException"><paramref name="options"/> or <paramref name="environment"/> or <paramref name="applicationLifetime"/> or <paramref name="hostOptions"/> or <paramref name="loggerFactory"/> is <see langword="null"/>.</exception> 48ArgumentNullException.ThrowIfNull(options?.Value, nameof(options)); 49ArgumentNullException.ThrowIfNull(applicationLifetime); 50ArgumentNullException.ThrowIfNull(environment); 51ArgumentNullException.ThrowIfNull(hostOptions?.Value, nameof(hostOptions)); 52ArgumentNullException.ThrowIfNull(loggerFactory);
Internal\Host.cs (4)
42ArgumentNullException.ThrowIfNull(services); 43ArgumentNullException.ThrowIfNull(applicationLifetime); 44ArgumentNullException.ThrowIfNull(logger); 45ArgumentNullException.ThrowIfNull(hostLifetime);
Internal\ServiceFactoryAdapter.cs (3)
18ArgumentNullException.ThrowIfNull(serviceProviderFactory); 25ArgumentNullException.ThrowIfNull(contextResolver); 26ArgumentNullException.ThrowIfNull(factoryResolver);
Microsoft.Extensions.Hosting.Abstractions (9)
HostBuilderContext.cs (1)
21ArgumentNullException.ThrowIfNull(properties);
HostEnvironmentEnvExtensions.cs (4)
20ArgumentNullException.ThrowIfNull(hostEnvironment); 32ArgumentNullException.ThrowIfNull(hostEnvironment); 44ArgumentNullException.ThrowIfNull(hostEnvironment); 59ArgumentNullException.ThrowIfNull(hostEnvironment);
HostingEnvironmentExtensions.cs (4)
21ArgumentNullException.ThrowIfNull(hostingEnvironment); 33ArgumentNullException.ThrowIfNull(hostingEnvironment); 45ArgumentNullException.ThrowIfNull(hostingEnvironment); 60ArgumentNullException.ThrowIfNull(hostingEnvironment);
Microsoft.Extensions.Hosting.Systemd (7)
ServiceState.cs (1)
32ArgumentNullException.ThrowIfNull(state);
SystemdHostBuilderExtensions.cs (2)
35ArgumentNullException.ThrowIfNull(hostBuilder); 70ArgumentNullException.ThrowIfNull(services);
SystemdLifetime.cs (4)
34ArgumentNullException.ThrowIfNull(environment); 35ArgumentNullException.ThrowIfNull(applicationLifetime); 36ArgumentNullException.ThrowIfNull(systemdNotifier); 37ArgumentNullException.ThrowIfNull(loggerFactory);
Microsoft.Extensions.Hosting.Testing (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Hosting.Testing.Tests (6)
HostingFakesExtensionsTests.cs (6)
22Assert.IsType<ArgumentNullException>(exception); 94Assert.IsType<ArgumentNullException>(exception); 101Assert.IsType<ArgumentNullException>(exception); 110Assert.IsType<ArgumentNullException>(exception); 301Assert.Throws<ArgumentNullException>(() => FakeHost.CreateBuilder().AddFakeLoggingOutputSink(null!)); 307Assert.Throws<ArgumentNullException>(() => ((IHostBuilder)null!).AddFakeLoggingOutputSink(_ => { }));
Microsoft.Extensions.Hosting.WindowsServices (7)
WindowsServiceLifetime.cs (5)
48ArgumentNullException.ThrowIfNull(environment); 49ArgumentNullException.ThrowIfNull(applicationLifetime); 50ArgumentNullException.ThrowIfNull(loggerFactory); 51ArgumentNullException.ThrowIfNull(optionsAccessor); 52ArgumentNullException.ThrowIfNull(windowsServiceOptionsAccessor);
WindowsServiceLifetimeHostBuilderExtensions.cs (2)
47ArgumentNullException.ThrowIfNull(hostBuilder); 97ArgumentNullException.ThrowIfNull(services);
Microsoft.Extensions.Http (125)
DefaultHttpClientFactory.cs (6)
68ArgumentNullException.ThrowIfNull(services); 69ArgumentNullException.ThrowIfNull(scopeFactory); 70ArgumentNullException.ThrowIfNull(optionsMonitor); 71ArgumentNullException.ThrowIfNull(filters); 105ArgumentNullException.ThrowIfNull(name); 121ArgumentNullException.ThrowIfNull(name);
DefaultHttpMessageHandlerBuilder.cs (1)
30ArgumentNullException.ThrowIfNull(value);
DefaultTypedHttpClientFactory.cs (2)
20ArgumentNullException.ThrowIfNull(cache); 28ArgumentNullException.ThrowIfNull(httpClient);
DependencyInjection\HttpClientBuilderExtensions.cs (37)
30ArgumentNullException.ThrowIfNull(builder); 31ArgumentNullException.ThrowIfNull(configureClient); 50ArgumentNullException.ThrowIfNull(builder); 51ArgumentNullException.ThrowIfNull(configureClient); 76ArgumentNullException.ThrowIfNull(builder); 77ArgumentNullException.ThrowIfNull(configureHandler); 105ArgumentNullException.ThrowIfNull(builder); 106ArgumentNullException.ThrowIfNull(configureHandler); 133ArgumentNullException.ThrowIfNull(builder); 156ArgumentNullException.ThrowIfNull(builder); 157ArgumentNullException.ThrowIfNull(configureHandler); 186ArgumentNullException.ThrowIfNull(builder); 187ArgumentNullException.ThrowIfNull(configureHandler); 215ArgumentNullException.ThrowIfNull(builder); 240ArgumentNullException.ThrowIfNull(builder); 241ArgumentNullException.ThrowIfNull(configureHandler); 261ArgumentNullException.ThrowIfNull(builder); 262ArgumentNullException.ThrowIfNull(configureBuilder); 288ArgumentNullException.ThrowIfNull(builder); 326ArgumentNullException.ThrowIfNull(builder); 364ArgumentNullException.ThrowIfNull(builder); 427ArgumentNullException.ThrowIfNull(builder); 479ArgumentNullException.ThrowIfNull(builder); 480ArgumentNullException.ThrowIfNull(factory); 525ArgumentNullException.ThrowIfNull(builder); 526ArgumentNullException.ThrowIfNull(factory); 534ArgumentNullException.ThrowIfNull(builder); 535ArgumentNullException.ThrowIfNull(factory); 560ArgumentNullException.ThrowIfNull(builder); 561ArgumentNullException.ThrowIfNull(shouldRedactHeaderValue); 579ArgumentNullException.ThrowIfNull(builder); 580ArgumentNullException.ThrowIfNull(redactedLoggedHeaderNames); 618ArgumentNullException.ThrowIfNull(builder); 638ArgumentNullException.ThrowIfNull(builder); 639ArgumentNullException.ThrowIfNull(configureAdditionalHandlers); 689ArgumentNullException.ThrowIfNull(builder); 731ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\HttpClientBuilderExtensions.Logging.cs (5)
48ArgumentNullException.ThrowIfNull(builder); 49ArgumentNullException.ThrowIfNull(httpClientLoggerFactory); 111ArgumentNullException.ThrowIfNull(builder); 123ArgumentNullException.ThrowIfNull(builder); 141ArgumentNullException.ThrowIfNull(builder);
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (47)
28ArgumentNullException.ThrowIfNull(services); 82ArgumentNullException.ThrowIfNull(services); 83ArgumentNullException.ThrowIfNull(configure); 110ArgumentNullException.ThrowIfNull(services); 111ArgumentNullException.ThrowIfNull(name); 137ArgumentNullException.ThrowIfNull(services); 138ArgumentNullException.ThrowIfNull(name); 139ArgumentNullException.ThrowIfNull(configureClient); 167ArgumentNullException.ThrowIfNull(services); 168ArgumentNullException.ThrowIfNull(name); 169ArgumentNullException.ThrowIfNull(configureClient); 204ArgumentNullException.ThrowIfNull(services); 245ArgumentNullException.ThrowIfNull(services); 284ArgumentNullException.ThrowIfNull(services); 285ArgumentNullException.ThrowIfNull(name); 328ArgumentNullException.ThrowIfNull(services); 329ArgumentNullException.ThrowIfNull(name); 365ArgumentNullException.ThrowIfNull(services); 366ArgumentNullException.ThrowIfNull(configureClient); 404ArgumentNullException.ThrowIfNull(services); 405ArgumentNullException.ThrowIfNull(configureClient); 448ArgumentNullException.ThrowIfNull(services); 449ArgumentNullException.ThrowIfNull(configureClient); 492ArgumentNullException.ThrowIfNull(services); 493ArgumentNullException.ThrowIfNull(configureClient); 534ArgumentNullException.ThrowIfNull(services); 535ArgumentNullException.ThrowIfNull(name); 536ArgumentNullException.ThrowIfNull(configureClient); 576ArgumentNullException.ThrowIfNull(services); 577ArgumentNullException.ThrowIfNull(name); 578ArgumentNullException.ThrowIfNull(configureClient); 623ArgumentNullException.ThrowIfNull(services); 624ArgumentNullException.ThrowIfNull(name); 625ArgumentNullException.ThrowIfNull(configureClient); 670ArgumentNullException.ThrowIfNull(services); 671ArgumentNullException.ThrowIfNull(name); 672ArgumentNullException.ThrowIfNull(configureClient); 711ArgumentNullException.ThrowIfNull(services); 712ArgumentNullException.ThrowIfNull(factory); 750ArgumentNullException.ThrowIfNull(services); 751ArgumentNullException.ThrowIfNull(name); 752ArgumentNullException.ThrowIfNull(factory); 790ArgumentNullException.ThrowIfNull(services); 791ArgumentNullException.ThrowIfNull(factory); 827ArgumentNullException.ThrowIfNull(services); 828ArgumentNullException.ThrowIfNull(name); 829ArgumentNullException.ThrowIfNull(factory);
DependencyInjection\HttpClientKeyedLifetime.cs (1)
29ArgumentNullException.ThrowIfNull(serviceKey);
HttpClientFactoryExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(factory);
HttpMessageHandlerBuilder.cs (3)
77/// <exception cref="ArgumentNullException"><paramref name="primaryHandler"/> or <paramref name="additionalHandlers"/> is <see langword="null"/>.</exception> 83ArgumentNullException.ThrowIfNull(primaryHandler); 84ArgumentNullException.ThrowIfNull(additionalHandlers);
HttpMessageHandlerFactoryExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(factory);
Logging\HttpClientLoggerHandler.cs (3)
19ArgumentNullException.ThrowIfNull(httpClientLogger); 27ArgumentNullException.ThrowIfNull(request); 67ArgumentNullException.ThrowIfNull(request);
Logging\LoggingHttpMessageHandler.cs (6)
26/// <exception cref="ArgumentNullException"><paramref name="logger"/> is <see langword="null"/>.</exception> 29ArgumentNullException.ThrowIfNull(logger); 39/// <exception cref="ArgumentNullException"><paramref name="logger"/> or <paramref name="options"/> is <see langword="null"/>.</exception> 42ArgumentNullException.ThrowIfNull(logger); 43ArgumentNullException.ThrowIfNull(options); 51ArgumentNullException.ThrowIfNull(request);
Logging\LoggingHttpMessageHandlerBuilderFilter.cs (3)
25ArgumentNullException.ThrowIfNull(serviceProvider); 26ArgumentNullException.ThrowIfNull(optionsMonitor); 34ArgumentNullException.ThrowIfNull(next);
Logging\LoggingScopeHttpMessageHandler.cs (6)
25/// <exception cref="ArgumentNullException"><paramref name="logger"/> is <see langword="null"/>.</exception> 28ArgumentNullException.ThrowIfNull(logger); 38/// <exception cref="ArgumentNullException"><paramref name="logger"/> or <paramref name="options"/> is <see langword="null"/>.</exception> 41ArgumentNullException.ThrowIfNull(logger); 42ArgumentNullException.ThrowIfNull(options); 50ArgumentNullException.ThrowIfNull(request);
MetricsFactoryHttpMessageHandlerFilter.cs (2)
17ArgumentNullException.ThrowIfNull(meterFactory); 24ArgumentNullException.ThrowIfNull(next);
src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
16ArgumentNullException.ThrowIfNull(callback);
Microsoft.Extensions.Http.Diagnostics (6)
Logging\HttpClientLoggingHttpClientBuilderExtensions.cs (3)
32/// <exception cref="ArgumentNullException">Argument <paramref name="builder"/> is <see langword="null"/>.</exception> 51/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception> 71/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception>
Logging\HttpClientLoggingServiceCollectionExtensions.cs (3)
30/// <exception cref="ArgumentNullException">Argument <paramref name="services"/> is <see langword="null"/>.</exception> 60/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception> 82/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception>
Microsoft.Extensions.Http.Diagnostics.Tests (18)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (3)
24act.Should().Throw<ArgumentNullException>(); 27act.Should().Throw<ArgumentNullException>(); 30act.Should().Throw<ArgumentNullException>();
Logging\HttpClientLoggerTest.cs (3)
75await Assert.ThrowsAsync<ArgumentNullException>(act); 749var exception = new ArgumentNullException(); 792var enrichmentException = new ArgumentNullException();
Logging\HttpClientLoggingExtensionsTest.cs (11)
38act.Should().Throw<ArgumentNullException>(); 41act.Should().Throw<ArgumentNullException>(); 44act.Should().Throw<ArgumentNullException>(); 47act.Should().Throw<ArgumentNullException>(); 50act.Should().Throw<ArgumentNullException>(); 57act.Should().Throw<ArgumentNullException>(); 60act.Should().Throw<ArgumentNullException>(); 63act.Should().Throw<ArgumentNullException>(); 66act.Should().Throw<ArgumentNullException>(); 69act.Should().Throw<ArgumentNullException>(); 76act.Should().Throw<ArgumentNullException>();
TelemetryCommonExtensionsTests.cs (1)
49Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddHttpHeadersRedactor());
Microsoft.Extensions.Http.Resilience (13)
Resilience\HttpResilienceContextExtensions.cs (2)
28/// <exception cref="ArgumentNullException"><paramref name="context"/> is <see langword="null"/>.</exception> 40/// <exception cref="ArgumentNullException"><paramref name="context"/> is <see langword="null"/>.</exception>
Resilience\ResilienceHandler.cs (4)
26/// <exception cref="ArgumentNullException">If <paramref name="pipelineProvider"/> is <see langword="null"/>.</exception> 36/// <exception cref="ArgumentNullException">If <paramref name="pipeline"/> is <see langword="null"/>.</exception> 49/// <exception cref="ArgumentNullException">If <paramref name="request"/> is <see langword="null"/>.</exception> 108/// <exception cref="ArgumentNullException">If <paramref name="request"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Http.Resilience.Tests (16)
Polly\HttpClientResiliencePredicatesTests.cs (2)
28Assert.Throws<ArgumentNullException>(() => 68Assert.Throws<ArgumentNullException>(() => HttpClientResiliencePredicates.IsTransientHttpFailure(null!));
Polly\HttpRetryStrategyOptionsExtensionsTests.cs (2)
18Assert.Throws<ArgumentNullException>(() => ((HttpRetryStrategyOptions)null!).DisableFor(HttpMethod.Get)); 24Assert.Throws<ArgumentNullException>(() => new HttpRetryStrategyOptions().DisableFor(null!));
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (7)
32Assert.Throws<ArgumentNullException>(() => builder.AddResilienceHandler(null!, _ => { })); 34Assert.Throws<ArgumentNullException>(() => builder.AddResilienceHandler(null!, (_, _) => { })); 36Assert.Throws<ArgumentNullException>(() => builder.AddResilienceHandler("dummy", (Action<ResiliencePipelineBuilder<HttpResponseMessage>>)null!)); 37Assert.Throws<ArgumentNullException>(() => builder.AddResilienceHandler("dummy", (Action<ResiliencePipelineBuilder<HttpResponseMessage>, ResilienceHandlerContext>)null!)); 40Assert.Throws<ArgumentNullException>(() => builder!.AddResilienceHandler("pipeline-name", _ => { })); 41Assert.Throws<ArgumentNullException>(() => builder!.AddResilienceHandler("pipeline-name", (_, _) => { })); 295Assert.Throws<ArgumentNullException>(() => builder!.RemoveAllResilienceHandlers());
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (3)
107Assert.Throws<ArgumentNullException>(() => AddStandardResilienceHandler(mode, builder, _validConfigurationSection, options => { })); 117Assert.Throws<ArgumentNullException>(() => AddStandardResilienceHandler(mode, builder, _validConfigurationSection, null!)); 128Assert.Throws<ArgumentNullException>(() => AddStandardResilienceHandler(mode, builder, null!, options => { }));
Resilience\HttpResilienceContextExtensionsTests.cs (2)
18Assert.Throws<ArgumentNullException>(context.GetRequestMessage); 54Assert.Throws<ArgumentNullException>(() => context.SetRequestMessage(request));
Microsoft.Extensions.Identity.Core (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.Identity.Stores (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.Localization (4)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.Extensions.Localization.Abstractions (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.Localization.Tests (7)
ResourceManagerStringLocalizerFactoryTest.cs (1)
297Assert.Throws<ArgumentNullException>(() => factory.Create("baseName", location: null!));
StringLocalizerOfTTest.cs (6)
16var exception = Assert.Throws<ArgumentNullException>( 47var exception = Assert.Throws<ArgumentNullException>(() => localizer[name: null!]); 82var exception = Assert.Throws<ArgumentNullException>(() => localizer[name: null!]);
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (1)
175ArgumentNullException.ThrowIfNull(provider);
LoggingServiceCollectionExtensions.cs (1)
34ArgumentNullException.ThrowIfNull(services);
Microsoft.Extensions.Logging.Abstractions (7)
LoggerExtensions.cs (2)
484ArgumentNullException.ThrowIfNull(logger); 508ArgumentNullException.ThrowIfNull(logger);
LoggerFactoryExtensions.cs (3)
22ArgumentNullException.ThrowIfNull(factory); 34ArgumentNullException.ThrowIfNull(factory); 35ArgumentNullException.ThrowIfNull(type);
LoggerT.cs (1)
27ArgumentNullException.ThrowIfNull(factory);
LogValuesFormatter.cs (1)
32ArgumentNullException.ThrowIfNull(format);
Microsoft.Extensions.Logging.AzureAppServices (3)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.Extensions.Logging.Configuration (1)
LoggerProviderConfigurationFactory.cs (1)
21ArgumentNullException.ThrowIfNull(providerType);
Microsoft.Extensions.Logging.Console (8)
AnsiParser.cs (1)
15ArgumentNullException.ThrowIfNull(onParseWrite);
ConsoleFormatter.cs (1)
21ArgumentNullException.ThrowIfNull(name);
ConsoleLogger.cs (3)
29ArgumentNullException.ThrowIfNull(name); 53ArgumentNullException.ThrowIfNull(formatter); 76ArgumentNullException.ThrowIfNull(records);
ConsoleLoggerExtensions.cs (3)
52ArgumentNullException.ThrowIfNull(configure); 114ArgumentNullException.ThrowIfNull(configure); 149ArgumentNullException.ThrowIfNull(configure);
Microsoft.Extensions.Logging.Debug (1)
DebugLogger.cs (1)
46ArgumentNullException.ThrowIfNull(formatter);
Microsoft.Extensions.Logging.EventLog (9)
EventLoggerFactoryExtensions.cs (6)
26ArgumentNullException.ThrowIfNull(factory); 27ArgumentNullException.ThrowIfNull(settings); 58ArgumentNullException.ThrowIfNull(builder); 73ArgumentNullException.ThrowIfNull(builder); 74ArgumentNullException.ThrowIfNull(settings); 89ArgumentNullException.ThrowIfNull(configure);
EventLogLogger.cs (3)
32ArgumentNullException.ThrowIfNull(name); 33ArgumentNullException.ThrowIfNull(settings); 82ArgumentNullException.ThrowIfNull(formatter);
Microsoft.Extensions.Logging.EventSource (3)
EventSourceLoggerFactoryExtensions.cs (2)
27ArgumentNullException.ThrowIfNull(factory); 41ArgumentNullException.ThrowIfNull(builder);
EventSourceLoggerProvider.cs (1)
29ArgumentNullException.ThrowIfNull(eventSource);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Extensions.Logging.TraceSource (21)
TraceSourceFactoryExtensions.cs (20)
28ArgumentNullException.ThrowIfNull(factory); 29ArgumentNullException.ThrowIfNull(sourceSwitch); 30ArgumentNullException.ThrowIfNull(listener); 47ArgumentNullException.ThrowIfNull(factory); 48ArgumentNullException.ThrowIfNull(sourceSwitch); 66ArgumentNullException.ThrowIfNull(factory); 67ArgumentNullException.ThrowIfNull(switchName); 68ArgumentNullException.ThrowIfNull(listener); 85ArgumentNullException.ThrowIfNull(factory); 86ArgumentNullException.ThrowIfNull(switchName); 103ArgumentNullException.ThrowIfNull(builder); 104ArgumentNullException.ThrowIfNull(switchName); 121ArgumentNullException.ThrowIfNull(builder); 122ArgumentNullException.ThrowIfNull(switchName); 123ArgumentNullException.ThrowIfNull(listener); 138ArgumentNullException.ThrowIfNull(builder); 139ArgumentNullException.ThrowIfNull(sourceSwitch); 158ArgumentNullException.ThrowIfNull(builder); 159ArgumentNullException.ThrowIfNull(sourceSwitch); 160ArgumentNullException.ThrowIfNull(listener);
TraceSourceLoggerProvider.cs (1)
40ArgumentNullException.ThrowIfNull(rootSourceSwitch);
Microsoft.Extensions.ObjectPool (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Extensions.ObjectPool.DependencyInjection (9)
ObjectPoolServiceCollectionExtensions.cs (2)
27/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 48/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
DependencyInjectionExtensionsTests.cs (3)
19Assert.Throws<ArgumentNullException>(() => ObjectPoolServiceCollectionExtensions.AddPooled<TestClass>(null!)); 20Assert.Throws<ArgumentNullException>(() => ObjectPoolServiceCollectionExtensions.AddPooled<ITestClass, TestClass>(null!)); 81Assert.Throws<ArgumentNullException>(() => new ServiceCollection().ConfigurePools(null!));
Microsoft.Extensions.Options (51)
ConfigureNamedOptions.cs (6)
42ArgumentNullException.ThrowIfNull(options); 102ArgumentNullException.ThrowIfNull(options); 171ArgumentNullException.ThrowIfNull(options); 249ArgumentNullException.ThrowIfNull(options); 336ArgumentNullException.ThrowIfNull(options); 432ArgumentNullException.ThrowIfNull(options);
ConfigureOptions.cs (1)
34ArgumentNullException.ThrowIfNull(options);
OptionsBuilder.cs (19)
34ArgumentNullException.ThrowIfNull(services); 50ArgumentNullException.ThrowIfNull(configureOptions); 68ArgumentNullException.ThrowIfNull(configureOptions); 89ArgumentNullException.ThrowIfNull(configureOptions); 112ArgumentNullException.ThrowIfNull(configureOptions); 142ArgumentNullException.ThrowIfNull(configureOptions); 175ArgumentNullException.ThrowIfNull(configureOptions); 199ArgumentNullException.ThrowIfNull(configureOptions); 217ArgumentNullException.ThrowIfNull(configureOptions); 238ArgumentNullException.ThrowIfNull(configureOptions); 261ArgumentNullException.ThrowIfNull(configureOptions); 291ArgumentNullException.ThrowIfNull(configureOptions); 324ArgumentNullException.ThrowIfNull(configureOptions); 354ArgumentNullException.ThrowIfNull(validation); 378ArgumentNullException.ThrowIfNull(validation); 409ArgumentNullException.ThrowIfNull(validation); 448ArgumentNullException.ThrowIfNull(validation); 492ArgumentNullException.ThrowIfNull(validation); 541ArgumentNullException.ThrowIfNull(validation);
OptionsBuilderExtensions.cs (1)
27ArgumentNullException.ThrowIfNull(optionsBuilder);
OptionsCache.cs (2)
33ArgumentNullException.ThrowIfNull(createOptions); 98ArgumentNullException.ThrowIfNull(options);
OptionsServiceCollectionExtensions.cs (6)
24ArgumentNullException.ThrowIfNull(services); 98ArgumentNullException.ThrowIfNull(services); 99ArgumentNullException.ThrowIfNull(configureOptions); 139ArgumentNullException.ThrowIfNull(services); 140ArgumentNullException.ThrowIfNull(configureOptions); 280ArgumentNullException.ThrowIfNull(services);
OptionsValidationException.cs (2)
22ArgumentNullException.ThrowIfNull(optionsName); 23ArgumentNullException.ThrowIfNull(optionsType);
PostConfigureOptions.cs (6)
42ArgumentNullException.ThrowIfNull(options); 96ArgumentNullException.ThrowIfNull(options); 165ArgumentNullException.ThrowIfNull(options); 243ArgumentNullException.ThrowIfNull(options); 330ArgumentNullException.ThrowIfNull(options); 426ArgumentNullException.ThrowIfNull(options);
ValidateOptions.cs (6)
22ArgumentNullException.ThrowIfNull(validation); 83ArgumentNullException.ThrowIfNull(validation); 152ArgumentNullException.ThrowIfNull(validation); 229ArgumentNullException.ThrowIfNull(validation); 314ArgumentNullException.ThrowIfNull(validation); 407ArgumentNullException.ThrowIfNull(validation);
ValidateOptionsResultBuilder.cs (2)
34ArgumentNullException.ThrowIfNull(error); 74ArgumentNullException.ThrowIfNull(result);
Microsoft.Extensions.Options.ConfigurationExtensions (9)
ConfigurationChangeTokenSource.cs (1)
34ArgumentNullException.ThrowIfNull(config);
ConfigureFromConfigurationOptions.cs (1)
30ArgumentNullException.ThrowIfNull(config);
NamedConfigureFromConfigurationOptions.cs (1)
40ArgumentNullException.ThrowIfNull(config);
OptionsBuilderConfigurationExtensions.cs (4)
43ArgumentNullException.ThrowIfNull(optionsBuilder); 58/// <exception cref="ArgumentNullException"> 70ArgumentNullException.ThrowIfNull(optionsBuilder); 71ArgumentNullException.ThrowIfNull(configSectionPath);
OptionsConfigurationServiceCollectionExtensions.cs (2)
69ArgumentNullException.ThrowIfNull(services); 70ArgumentNullException.ThrowIfNull(config);
Microsoft.Extensions.Options.Contextual (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Options.Contextual.Tests (1)
ContextualOptionsServiceCollectionExtensionsTests.cs (1)
20Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddContextualOptions());
Microsoft.Extensions.Options.DataAnnotations (1)
DataAnnotationValidateOptions.cs (1)
56ArgumentNullException.ThrowIfNull(options);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Extensions.Primitives (6)
StringSegment.cs (4)
41/// <exception cref="ArgumentNullException"> 327/// <exception cref="ArgumentNullException"> 353/// <exception cref="ArgumentNullException"> 509/// <exception cref="ArgumentNullException">
StringValues.cs (1)
349/// <exception cref="ArgumentNullException"><paramref name="array" /> is null.</exception>
ThrowHelper.cs (1)
44internal static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
Microsoft.Extensions.Resilience (10)
Resilience\ResilienceContextExtensions.cs (2)
22/// <exception cref="ArgumentNullException"><paramref name="context"/> or <paramref name="requestMetadata"/> is <see langword="null"/>.</exception> 36/// <exception cref="ArgumentNullException"><paramref name="context"/> is <see langword="null"/>.</exception>
Resilience\ResilienceServiceCollectionExtensions.cs (1)
37/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.ServiceDiscovery (9)
Http\HttpServiceEndpointResolver.cs (1)
34ArgumentNullException.ThrowIfNull(request);
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
24ArgumentNullException.ThrowIfNull(httpClientBuilder);
ServiceDiscoveryServiceCollectionExtensions.cs (5)
57ArgumentNullException.ThrowIfNull(services); 58ArgumentNullException.ThrowIfNull(configureOptions); 92ArgumentNullException.ThrowIfNull(services); 93ArgumentNullException.ThrowIfNull(configureOptions); 113ArgumentNullException.ThrowIfNull(services);
ServiceEndpointResolver.cs (1)
44ArgumentNullException.ThrowIfNull(serviceName);
ServiceEndpointWatcherFactory.cs (1)
31ArgumentNullException.ThrowIfNull(serviceName);
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
ServiceEndpoint.cs (1)
33ArgumentNullException.ThrowIfNull(endPoint);
ServiceEndpointSource.cs (2)
27ArgumentNullException.ThrowIfNull(changeToken); 28ArgumentNullException.ThrowIfNull(features);
Microsoft.Extensions.ServiceDiscovery.Dns (6)
ServiceDiscoveryDnsServiceCollectionExtensions.cs (6)
28ArgumentNullException.ThrowIfNull(services); 45ArgumentNullException.ThrowIfNull(services); 46ArgumentNullException.ThrowIfNull(configureOptions); 66ArgumentNullException.ThrowIfNull(services); 82ArgumentNullException.ThrowIfNull(services); 83ArgumentNullException.ThrowIfNull(configureOptions);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (14)
DnsServicePublicApiTests.cs (12)
19var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 43var exception = Assert.Throws<ArgumentNullException>(action); 54var exception = Assert.Throws<ArgumentNullException>(action); 66var exception = Assert.Throws<ArgumentNullException>(action); 78var exception = Assert.Throws<ArgumentNullException>(action);
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Microsoft.Extensions.ServiceDiscovery.Tests (32)
ExtensionsServicePublicApiTests.cs (31)
26var exception = Assert.Throws<ArgumentNullException>(action); 37var exception = Assert.Throws<ArgumentNullException>(action); 49var exception = Assert.Throws<ArgumentNullException>(action); 61var exception = Assert.Throws<ArgumentNullException>(action); 72var exception = Assert.Throws<ArgumentNullException>(action); 84var exception = Assert.Throws<ArgumentNullException>(action); 96var exception = Assert.Throws<ArgumentNullException>(action); 107var exception = Assert.Throws<ArgumentNullException>(action); 119var exception = Assert.Throws<ArgumentNullException>(action); 131var exception = Assert.Throws<ArgumentNullException>(action); 142var exception = Assert.Throws<ArgumentNullException>(action); 160var exception = await Assert.ThrowsAsync<ArgumentNullException>(action); 171var exception = Assert.Throws<ArgumentNullException>(action); 188? Assert.Throws<ArgumentNullException>(action) 202var exception = Assert.Throws<ArgumentNullException>(action); 215var exception = Assert.Throws<ArgumentNullException>(action);
ServiceEndpointResolverTests.cs (1)
53Assert.Throws<ArgumentNullException>(() => resolverFactory.CreateWatcher(null!));
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
ServiceDiscoveryReverseProxyServiceCollectionExtensions.cs (3)
20ArgumentNullException.ThrowIfNull(builder); 32ArgumentNullException.ThrowIfNull(services); 42ArgumentNullException.ThrowIfNull(services);
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (6)
YarpServiceDiscoveryPublicApiTests.cs (6)
20var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 42var exception = Assert.Throws<ArgumentNullException>(action);
Microsoft.Extensions.Telemetry (22)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (3)
21/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 36/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception> 53/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception>
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (3)
21/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null" />.</exception> 36/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception> 54/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception>
Latency\LatencyConsoleExtensions.cs (3)
23/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 40/// <exception cref="ArgumentNullException">Either <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception> 57/// <exception cref="ArgumentNullException">Either <paramref name="services"/> or <paramref name="section"/> is <see langword="null"/>.</exception>
Sampling\SamplingLoggerBuilderExtensions.cs (6)
25/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 41/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 72/// <exception cref="ArgumentNullException"><paramref name="builder"/> or <paramref name="configure"/> is <see langword="null"/>.</exception> 98/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 124/// <exception cref="ArgumentNullException"><paramref name="builder"/> is <see langword="null"/>.</exception> 142/// <exception cref="ArgumentNullException"><paramref name="builder"/> or <paramref name="sampler"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Telemetry.Abstractions (27)
Enrichment\EnrichmentServiceCollectionExtensions.cs (4)
22/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 33/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="enricher"/> is <see langword="null"/>.</exception> 43/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 54/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="enricher"/> is <see langword="null"/>.</exception>
Enrichment\IEnrichmentTagCollector.cs (1)
20/// <exception cref="ArgumentNullException">
Http\RequestMetadata.cs (1)
33/// <exception cref="ArgumentNullException">Any argument is <see langword="null"/>.</exception>
Latency\ILatencyContext.cs (1)
28/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
Latency\NullLatencyContextServiceCollectionExtensions.cs (1)
21/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception>
Latency\Registration\CheckpointToken.cs (1)
31/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception>
Latency\Registration\ILatencyContextTokenIssuer.cs (3)
18/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception> 35/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception>
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (3)
21/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="names"/> is <see langword="null"/>.</exception> 39/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="names"/> is <see langword="null"/>.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="services"/> or <paramref name="names"/> is <see langword="null"/>.</exception>
Latency\Registration\MeasureToken.cs (1)
31/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception>
Latency\Registration\TagToken.cs (1)
31/// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null"/>.</exception>
Logging\ITagCollector.cs (2)
22/// <exception cref="ArgumentNullException"><paramref name="tagName"/> is <see langword="null"/>.</exception> 34/// <exception cref="ArgumentNullException"><paramref name="tagName"/> is <see langword="null"/>.</exception>
Logging\TagProviderAttribute.cs (1)
23/// <exception cref="ArgumentNullException">
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Telemetry.Abstractions.Tests (13)
Enrichment\EnricherExtensionsTests.cs (3)
16Assert.Throws<ArgumentNullException>(() => new ServiceCollection().AddLogEnricher(null!)); 26Assert.Throws<ArgumentNullException>(() => 29Assert.Throws<ArgumentNullException>(() =>
Latency\LatencyRegistryExtensionsTests.cs (6)
16Assert.Throws<ArgumentNullException>( 18Assert.Throws<ArgumentNullException>( 20Assert.Throws<ArgumentNullException>( 22Assert.Throws<ArgumentNullException>( 24Assert.Throws<ArgumentNullException>( 26Assert.Throws<ArgumentNullException>(
Latency\NoopLatencyContextTests.cs (1)
15Assert.Throws<ArgumentNullException>(() =>
Logging\TagNameAttributeTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new TagNameAttribute(null!));
Logging\TagProviderAttributeTests.cs (2)
26Assert.Throws<ArgumentNullException>(() => new TagProviderAttribute(null!, "test")); 27Assert.Throws<ArgumentNullException>(() => new TagProviderAttribute(typeof(object), null!));
Microsoft.Extensions.Telemetry.Tests (22)
Enrichment\ApplicationEnricherExtensionsTests.cs (4)
20Assert.Throws<ArgumentNullException>(() => 23Assert.Throws<ArgumentNullException>(() => 26Assert.Throws<ArgumentNullException>(() => 29Assert.Throws<ArgumentNullException>(() =>
Enrichment\ProcessEnricherExtensionsTests.cs (5)
20Assert.Throws<ArgumentNullException>(() => 23Assert.Throws<ArgumentNullException>(() => 26Assert.Throws<ArgumentNullException>(() => 29Assert.Throws<ArgumentNullException>(() => 32Assert.Throws<ArgumentNullException>(() =>
Latency\Internal\RegistryTests.cs (3)
15Assert.Throws<ArgumentNullException>(() => new Registry(null!, true)); 16Assert.Throws<ArgumentNullException>(() => new Registry(null!, false)); 38Assert.Throws<ArgumentNullException>(() => r.GetRegisteredKeyIndex(null!));
Latency\LatencyConsoleExtensionsTests.cs (3)
20Assert.Throws<ArgumentNullException>(() => LatencyConsoleExtensions.AddConsoleLatencyDataExporter(null!)); 21Assert.Throws<ArgumentNullException>(() => LatencyConsoleExtensions.AddConsoleLatencyDataExporter(s, configure: null!)); 22Assert.Throws<ArgumentNullException>(() => LatencyConsoleExtensions.AddConsoleLatencyDataExporter(s, section: null!));
Latency\LatencyContextExtensionTests.cs (1)
20Assert.Throws<ArgumentNullException>(() =>
Logging\ExtendedLoggerFactoryTests.cs (1)
33Assert.Throws<ArgumentNullException>(() => factory.AddProvider(null!));
Logging\ExtendedLoggerTests.cs (1)
457catch (ArgumentNullException e)
Sampling\SamplingLoggerBuilderExtensionsTests.cs (4)
270Assert.Throws<ArgumentNullException>(action); 273Assert.Throws<ArgumentNullException>(action); 276Assert.Throws<ArgumentNullException>(action); 279Assert.Throws<ArgumentNullException>(action);
Microsoft.Extensions.TimeProvider.Testing (7)
src\Shared\Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Validation (3)
TypeExtensions.cs (3)
94ArgumentNullException.ThrowIfNull(type); 123ArgumentNullException.ThrowIfNull(type); 124ArgumentNullException.ThrowIfNull(interfaceType);
Microsoft.Extensions.WebEncoders (2)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 29ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.Gen.Metrics.Generated.Tests (8)
MetricTests.cs (4)
476var ex = Assert.Throws<ArgumentNullException>(() => recorder.Record(4L, null!)); 483var ex = Assert.Throws<ArgumentNullException>(() => counter.Add(4M, null!));
MetricTests.Ext.cs (4)
21var ex = Assert.Throws<ArgumentNullException>(() => recorder.Record(4L, null!)); 28var ex = Assert.Throws<ArgumentNullException>(() => counter.Add(4M, null!));
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
Microsoft.JSInterop (22)
DotNetObjectReference.cs (1)
21ArgumentNullException.ThrowIfNull(value);
JSInProcessObjectReferenceExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(jsObjectReference);
JSInProcessRuntimeExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(jsRuntime);
JSObjectReferenceExtensions.cs (9)
24ArgumentNullException.ThrowIfNull(jsObjectReference); 43ArgumentNullException.ThrowIfNull(jsObjectReference); 62ArgumentNullException.ThrowIfNull(jsObjectReference); 80ArgumentNullException.ThrowIfNull(jsObjectReference); 95ArgumentNullException.ThrowIfNull(jsObjectReference); 113ArgumentNullException.ThrowIfNull(jsObjectReference); 130ArgumentNullException.ThrowIfNull(jsObjectReference); 148ArgumentNullException.ThrowIfNull(jsObjectReference); 163ArgumentNullException.ThrowIfNull(jsObjectReference);
JSRuntime.cs (1)
341ArgumentNullException.ThrowIfNull(dotNetObjectReference);
JSRuntimeExtensions.cs (9)
24ArgumentNullException.ThrowIfNull(jsRuntime); 43ArgumentNullException.ThrowIfNull(jsRuntime); 62ArgumentNullException.ThrowIfNull(jsRuntime); 80ArgumentNullException.ThrowIfNull(jsRuntime); 95ArgumentNullException.ThrowIfNull(jsRuntime); 113ArgumentNullException.ThrowIfNull(jsRuntime); 130ArgumentNullException.ThrowIfNull(jsRuntime); 148ArgumentNullException.ThrowIfNull(jsRuntime); 163ArgumentNullException.ThrowIfNull(jsRuntime);
Microsoft.Maui (8)
Animations\Easing.cs (1)
112 /// <exception cref="ArgumentNullException">Thrown when <paramref name="easingFunc"/> is <see langword="null"/>.</exception>
Dispatching\DispatcherExtensions.cs (1)
107 /// <exception cref="ArgumentNullException">Thrown when <paramref name="callback"/> is <see langword="null"/>.</exception>
Extensions\EnumerableExtensions.cs (2)
62 /// <exception cref="ArgumentNullException">Throws when <paramref name="enumerable"/> is <see langword="null"/>.</exception> 100 /// <exception cref="ArgumentNullException">Throws when <paramref name="enumerable"/> is <see langword="null"/>.</exception>
Fonts\FileSystemEmbeddedFontLoader.cs (1)
22 /// <exception cref="ArgumentNullException">Thrown when <paramref name="rootPath"/> is null.</exception>
Fonts\FontFile.cs (1)
61 /// <exception cref="ArgumentNullException">Thrown if <paramref name="input"/> is <see langword="null"/></exception>
Hosting\Fonts\FontCollectionExtensions.cs (2)
16 /// <exception cref="ArgumentNullException">The <paramref name="filename"/> parameter is <c>null</c>.</exception> 36 /// <exception cref="ArgumentNullException">The <paramref name="filename"/> parameter is <c>null</c>. -or- The <paramref name="assembly"/> parameter is <c>null</c>.</exception>
Microsoft.Maui.Controls (37)
BindableObject.cs (9)
80 /// <exception cref="ArgumentNullException">Thrown when <paramref name="property"/> is <see langword="null"/>.</exception> 114 /// <exception cref="ArgumentNullException">Thrown when <paramref name="propertyKey"/> is <see langword="null"/>.</exception> 159 /// <exception cref="ArgumentNullException">Thrown when <paramref name="property"/> is <see langword="null"/>.</exception> 246 /// <exception cref="ArgumentNullException">Thrown when <paramref name="targetProperty"/> is <see langword="null"/>.</exception> 262 /// <exception cref="ArgumentNullException">Thrown when <paramref name="property"/> is <see langword="null"/>.</exception> 478 /// <exception cref="ArgumentNullException">Thrown when <paramref name="property"/> is <see langword="null"/>.</exception> 504 /// <exception cref="ArgumentNullException">Thrown when <paramref name="propertyKey"/> is <see langword="null"/>.</exception> 790 /// <exception cref="ArgumentNullException">Thrown when <paramref name="property"/> is <see langword="null"/>.</exception> 801 /// <exception cref="ArgumentNullException">Thrown when <paramref name="propertyKey"/> is <see langword="null"/>.</exception>
BindableObjectExtensions.cs (1)
128 /// <exception cref="ArgumentNullException"></exception>
BindingBase.Create.cs (1)
20 /// <exception cref="ArgumentNullException"></exception>
Layout\GridExtensions.cs (3)
15 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is null.</exception> 34 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is null.</exception> 55 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is null.</exception>
OrderedDictionary.cs (8)
163 /// <exception cref="ArgumentNullException"><paramref name="key" /> is <c>null</c>.</exception> 176 /// <exception cref="ArgumentNullException">If <paramref name="key" /> is <c>null</c>.</exception> 213 /// <exception cref="ArgumentNullException"><paramref name="key" /> is <c>null</c>.</exception> 225 /// <exception cref="ArgumentNullException">If <paramref name="key" /> is <c>null</c>.</exception> 295 /// <exception cref="ArgumentNullException"><paramref name="key" /> is <c>null</c>.</exception> 310 /// <exception cref="ArgumentNullException"><paramref name="key" /> is <c>null</c>.</exception> 328 /// <exception cref="ArgumentNullException"><paramref name="key" /> is <c>null</c>.</exception> 349 /// <exception cref="ArgumentNullException"><paramref name="key" /> is <c>null</c>.</exception>
Page\Page.cs (1)
337 /// <exception cref="ArgumentNullException">Thrown when <paramref name="cancel"/> is <see langword="null"/> or empty.</exception>
ShadowTypeConverter.cs (2)
45 /// <exception cref="ArgumentNullException">Thrown when <paramref name="value" /> is null.</exception> 141 /// <exception cref="ArgumentNullException">Thrown when <paramref name="value" /> is null.</exception>
ViewExtensions.cs (12)
21 /// <exception cref="ArgumentNullException">Thrown if <paramref name="view"/> is <see langword="null"/>.</exception> 70 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 88 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 116 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 134 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 152 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 170 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 188 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 205 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 223 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 241 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception> 260 /// <exception cref="ArgumentNullException">Thrown when <paramref name="view"/> is <see langword="null"/>.</exception>
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
193 /// <exception cref="ArgumentNullException">Thrown when <paramref name="mapSpan"/> is <see langword="null"/>.</exception>
Microsoft.Maui.Essentials (18)
Accelerometer\Accelerometer.shared.cs (1)
85 /// <remarks>Will throw <see cref="FeatureNotSupportedException"/> if not supported on device. Will throw <see cref="ArgumentNullException"/> if handler is null.</remarks>
AppActions\AppActions.shared.cs (1)
208 /// <exception cref="ArgumentNullException">Thrown when either <paramref name="id"/> or <paramref name="title"/> is <see langword="null"/>.</exception>
Geocoding\Geocoding.shared.cs (1)
98 /// <exception cref="ArgumentNullException">Thrown when <paramref name="location"/> is <see langword="null"/>.</exception>
Geolocation\Geolocation.shared.cs (2)
55 /// <exception cref="ArgumentNullException">Thrown when <paramref name="request"/> is <see langword="null"/>.</exception> 143 /// <exception cref="ArgumentNullException">Thrown when <paramref name="request"/> is <see langword="null"/>.</exception>
Geolocation\GeolocationLocationChangedEventArgs.shared.cs (1)
20 /// <exception cref="ArgumentNullException">Thrown when <paramref name="location"/> is <see langword="null"/>.</exception>
Map\Map.shared.cs (3)
202 /// <exception cref="ArgumentNullException">Thrown when either <paramref name="location"/> or <paramref name="options"/> is <see langword="null"/>.</exception> 221 /// <exception cref="ArgumentNullException">Thrown when <paramref name="location"/> is <see langword="null"/>.</exception> 233 /// <exception cref="ArgumentNullException">Thrown when either <paramref name="location"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
PhoneDialer\PhoneDialer.shared.cs (4)
20 /// Will throw <see cref="ArgumentNullException"/> if <paramref name="number"/> is not valid. 23 /// <exception cref="ArgumentNullException">Thrown if <paramref name="number"/> is not valid.</exception> 44 /// Will throw <see cref="ArgumentNullException"/> if <paramref name="number"/> is not valid. 47 /// <exception cref="ArgumentNullException">Thrown if <paramref name="number"/> is not valid.</exception>
Share\Share.shared.cs (3)
105 /// <exception cref="ArgumentNullException">Thrown when <paramref name="request"/> is <see langword="null"/>.</exception> 119 /// <exception cref="ArgumentNullException">Thrown when <paramref name="request"/> is <see langword="null"/>.</exception> 133 /// <exception cref="ArgumentNullException">Thrown when <paramref name="request"/> is <see langword="null"/>.</exception>
Types\Location.shared.cs (1)
96 /// <exception cref="ArgumentNullException">Thrown if <paramref name="point"/> is <see langword="null"/>.</exception>
Types\Placemark.shared.cs (1)
21 /// <exception cref="ArgumentNullException">Thrown when <paramref name="placemark"/> is <see langword="null"/>.</exception>
Microsoft.ML.AutoML.Tests (4)
UserInputValidationTests.cs (4)
29var ex = Assert.Throws<ArgumentNullException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(null, new ColumnInformation(), null, TaskKind.Regression)); 173var ex = Assert.Throws<ArgumentNullException>(() => UserInputValidationUtil.ValidateInferColumnsArgs(null, "Label"));
Microsoft.ML.Core (5)
Environment\HostEnvironmentBase.cs (5)
582/// <exception cref="ArgumentNullException">When <paramref name="name"/> is null or empty.</exception> 600/// <exception cref="ArgumentNullException">When <paramref name="name"/> is null or empty.</exception> 615/// <exception cref="ArgumentNullException">When <paramref name="name"/> is null or empty.</exception> 636/// <exception cref="ArgumentNullException">When <paramref name="name"/> is null or empty.</exception> 654/// <exception cref="ArgumentNullException">When <paramref name="name"/> is null or empty.</exception>
Microsoft.ML.Data (2)
Utilities\StreamUtils.cs (2)
185/// <exception cref="ArgumentNullException"><paramref name="buffer"/> was null.</exception> 248/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception>
Microsoft.ML.Parquet (1)
PartitionedPathUtils.cs (1)
44catch (ArgumentNullException e)
Microsoft.ML.Predictor.Tests (3)
TestGamPublicInterfaces.cs (3)
59Assert.Throws<System.ArgumentNullException>(() => new GamRegressionModelParameters(mlContext, binUpperBounds, null, intercept)); 60Assert.Throws<System.ArgumentNullException>(() => new GamRegressionModelParameters(mlContext, null, binEffects, intercept)); 61Assert.Throws<System.ArgumentNullException>(() => new GamRegressionModelParameters(mlContext, null, null, intercept));
Microsoft.ML.Tests (2)
ImagesTests.cs (2)
1264Assert.Throws<ArgumentNullException>(() => MLImage.CreateFromFile(null)); 1266Assert.Throws<ArgumentNullException>(() => MLImage.CreateFromStream(null));
Microsoft.ML.Tokenizers (12)
Model\BertTokenizer.cs (5)
289/// <exception cref="ArgumentNullException">When <paramref name="tokenIds"/> is null.</exception> 338/// <exception cref="ArgumentNullException">When <paramref name="tokenIds"/> is null.</exception> 401/// <exception cref="ArgumentNullException"></exception> 465/// <exception cref="ArgumentNullException"></exception> 557/// <exception cref="ArgumentNullException">When <paramref name="tokenIds"/> is null.</exception>
Model\EnglishRobertaTokenizer.cs (2)
1110/// <exception cref="ArgumentNullException">Any of `pad`, `eos`, `unk` and `bos` is `null`.</exception> 1225/// <exception cref="ArgumentNullException">`symbol` is `null`.</exception>
Model\TiktokenTokenizer.cs (2)
44/// <exception cref="ArgumentNullException">Thrown when <paramref name="vocabFilePath"/> is null or empty.</exception> 59/// <exception cref="ArgumentNullException">Thrown when <paramref name="vocabStream"/> is null or empty.</exception>
PreTokenizer\CompositePreTokenizer.cs (1)
26/// <exception cref="ArgumentNullException">Thrown when <paramref name="preTokenizers"/> is null.</exception>
PreTokenizer\RegexPreTokenizer.cs (1)
26/// <exception cref="ArgumentNullException">When regex is null</exception>
Tokenizer.cs (1)
358/// <exception cref="ArgumentNullException"><paramref name="ids"/> is null.</exception>
Microsoft.ML.Tokenizers.Tests (2)
LlamaTests.cs (1)
347Assert.Throws<ArgumentNullException>(() => llamaTokenizer.Decode(null!));
TiktokenTests.cs (1)
499Assert.Throws<ArgumentNullException>(() => TiktokenTokenizer.CreateForEncoding(null!));
Microsoft.Net.Http.Headers (6)
ContentDispositionHeaderValueIdentityExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(header); 33ArgumentNullException.ThrowIfNull(header);
GenericHeaderParser.cs (1)
17ArgumentNullException.ThrowIfNull(getParsedValueLength);
RangeConditionHeaderValue.cs (1)
41ArgumentNullException.ThrowIfNull(entityTag);
StringWithQualityHeaderValueComparer.cs (2)
43ArgumentNullException.ThrowIfNull(stringWithQuality1); 44ArgumentNullException.ThrowIfNull(stringWithQuality2);
Microsoft.Net.Http.Headers.Tests (6)
CacheControlHeaderValueTest.cs (1)
61Assert.Throws<ArgumentNullException>(() => cacheControl.Extensions.Add(null!));
ContentDispositionHeaderValueTest.cs (1)
59Assert.Throws<ArgumentNullException>(() => contentDisposition.Parameters.Add(null!));
CookieHeaderValueTest.cs (1)
154Assert.Throws<ArgumentNullException>(() => new CookieHeaderValue(null, "value"));
MediaTypeHeaderValueTest.cs (1)
123Assert.Throws<ArgumentNullException>(() => mediaType.Parameters.Add(null!));
RangeConditionHeaderValueTest.cs (1)
16Assert.Throws<ArgumentNullException>(() => new RangeConditionHeaderValue(input));
SetCookieHeaderValueTest.cs (1)
300Assert.Throws<ArgumentNullException>(() => new SetCookieHeaderValue(null, "value"));
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (2)
322Friend Shared Function GetArgumentNullException(ByVal ArgumentName As String) As ArgumentNullException 335ByVal ResourceID As String, ByVal ParamArray PlaceHolders() As String) As ArgumentNullException
Microsoft\VisualBasic\FileIO\FileSystem.vb (3)
1331TypeOf ex Is ArgumentNullException Or TypeOf ex Is IO.DirectoryNotFoundException Or 1510TypeOf ex Is ArgumentNullException OrElse 1518TypeOf ex Is ArgumentNullException OrElse
Microsoft.VisualBasic.IntegrationTests (1)
InteractionTests.cs (1)
101_ = Assert.Throws<ArgumentNullException>(() => Interaction.Shell(null)).ToString();
Microsoft.VisualBasic.Tests (16)
Microsoft\VisualBasic\ApplicationServices\AssemblyInfoTests.cs (1)
14action.Should().Throw<ArgumentNullException>();
Microsoft\VisualBasic\ApplicationServices\StartupEventArgsTests.cs (1)
21AssertExtensions.Throws<ArgumentNullException>("list", () => new StartupEventArgs(null));
Microsoft\VisualBasic\ApplicationServices\StartupNextInstanceEventArgsTests.cs (1)
24AssertExtensions.Throws<ArgumentNullException>("list", () => new StartupNextInstanceEventArgs(null, bringToForegroundFlag: true));
Microsoft\VisualBasic\Devices\AudioTests.cs (6)
18testCode.Should().Throw<ArgumentNullException>(); 36testCode.Should().Throw<ArgumentNullException>(); 45testCode.Should().Throw<ArgumentNullException>(); 64testCode.Should().Throw<ArgumentNullException>(); 72testCode.Should().Throw<ArgumentNullException>(); 80testCode.Should().Throw<ArgumentNullException>();
Microsoft\VisualBasic\Devices\NetworkTests.cs (3)
38Assert.Throws<ArgumentNullException>(() => network.Ping((string)null)); 53action.Should().Throw<ArgumentNullException>(); 61action.Should().Throw<ArgumentNullException>();
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (4)
31Assert.Throws<ArgumentNullException>(() => _fileSystem.CombinePath(null, "Test2")); 32Assert.Throws<ArgumentNullException>(() => _fileSystem.CombinePath("", "Test2")); 645Assert.Throws<ArgumentNullException>(() => _fileSystem.RenameDirectory(OrigDirectoryWithPath, "")); 669Assert.Throws<ArgumentNullException>(() => _fileSystem.RenameFile(OrigFileWithPath, ""));
Microsoft.VisualStudio.LanguageServices (1)
CodeMarkers\ManagedCodeMarkers.cs (1)
202/// <exception cref="ArgumentNullException">aBuff was null</exception>
Microsoft.Web.Xdt.Extensions (3)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
MSBuild (4)
ExceptionHandling.cs (2)
166|| (e is ArgumentException && !(e is ArgumentNullException)) 311|| e is ArgumentNullException
XMake.cs (2)
3245catch (ArgumentNullException ex) 3359catch (ArgumentNullException ex)
MSBuildTaskHost (2)
ExceptionHandling.cs (2)
166|| (e is ArgumentException && !(e is ArgumentNullException)) 311|| e is ArgumentNullException
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
49[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentNullException))]
Mvc.RoutingWebSite (1)
ControllerRouteTokenTransformerConvention.cs (1)
15ArgumentNullException.ThrowIfNull(parameterTransformer);
netstandard (1)
netstandard.cs (1)
42[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentNullException))]
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (4)
29ArgumentNullException.ThrowIfNull(assembly, nameof(assembly)); 31ArgumentNullException.ThrowIfNull(fullName, nameof(Assembly.FullName)); 48ArgumentNullException.ThrowIfNull(assembly, nameof(assembly)); 97ArgumentNullException.ThrowIfNull(assembly, nameof(assembly));
PresentationCore (989)
MS\Internal\Automation\InteropAutomationProvider.cs (2)
16ArgumentNullException.ThrowIfNull(wrapper); 17ArgumentNullException.ThrowIfNull(parent);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
716ArgumentNullException.ThrowIfNull(array);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
45ArgumentNullException.ThrowIfNull(familyMap);
MS\Internal\FontFace\TypefaceCollection.cs (1)
57ArgumentNullException.ThrowIfNull(array);
MS\Internal\Ink\ExtendedProperty.cs (1)
154ArgumentNullException.ThrowIfNull(value);
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
234ArgumentNullException.ThrowIfNull(value);
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
122ArgumentNullException.ThrowIfNull(strokes); 188ArgumentNullException.ThrowIfNull(applicationGestures);
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (4)
69ArgumentNullException.ThrowIfNull(input); 147ArgumentNullException.ThrowIfNull(input); 152ArgumentNullException.ThrowIfNull(outputBuffer); 307ArgumentNullException.ThrowIfNull(input);
MS\Internal\Ink\InkSerializedFormat\Compress.cs (1)
248ArgumentNullException.ThrowIfNull(data);
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (4)
76ArgumentNullException.ThrowIfNull(input); 495ArgumentNullException.ThrowIfNull(input); 497ArgumentNullException.ThrowIfNull(outputBuffer); 571ArgumentNullException.ThrowIfNull(reader);
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
133ArgumentNullException.ThrowIfNull(writer);
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
25ArgumentNullException.ThrowIfNull(output);
MS\Internal\Ink\Renderer.cs (5)
39ArgumentNullException.ThrowIfNull(stroke); 222ArgumentNullException.ThrowIfNull(value); 275ArgumentNullException.ThrowIfNull(visual); 276ArgumentNullException.ThrowIfNull(drawingAttributes); 320ArgumentNullException.ThrowIfNull(visual);
MS\Internal\Ink\StrokeNodeEnumerator.cs (7)
28ArgumentNullException.ThrowIfNull(stroke); 29ArgumentNullException.ThrowIfNull(drawingAttributes); 43ArgumentNullException.ThrowIfNull(stylusPoints); 44ArgumentNullException.ThrowIfNull(drawingAttributes); 103ArgumentNullException.ThrowIfNull(operations); 116ArgumentNullException.ThrowIfNull(stylusPoints); 145ArgumentNullException.ThrowIfNull(points);
MS\Internal\Ink\StrokeNodeOperations.cs (1)
24ArgumentNullException.ThrowIfNull(nodeShape);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (5)
53ArgumentNullException.ThrowIfNull(tempFileName); 180ArgumentNullException.ThrowIfNull(byteRanges); 294ArgumentNullException.ThrowIfNull(value); 399ArgumentNullException.ThrowIfNull(requestedUri); 407ArgumentNullException.ThrowIfNull(eventHandle);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
196ArgumentNullException.ThrowIfNull(obfuscatedStream);
MS\Internal\IO\Packaging\PreloadedPackages.cs (1)
150ArgumentNullException.ThrowIfNull(uri);
MS\Internal\IO\Packaging\PseudoWebRequest.cs (2)
196ArgumentNullException.ThrowIfNull(value); 216ArgumentNullException.ThrowIfNull(value);
MS\Internal\Media\TextOptionsInternal.cs (2)
40ArgumentNullException.ThrowIfNull(element); 47ArgumentNullException.ThrowIfNull(element);
MS\Internal\Media\VisualTreeUtils.cs (1)
231ArgumentNullException.ThrowIfNull(element);
MS\Internal\PartialArray.cs (1)
124ArgumentNullException.ThrowIfNull(array);
MS\Internal\TextFormatting\FullTextLine.cs (1)
535ArgumentNullException.ThrowIfNull(drawingContext);
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
480ArgumentNullException.ThrowIfNull(drawingContext);
MS\Internal\TextFormatting\TextFormatterImp.cs (3)
444ArgumentNullException.ThrowIfNull(textSource); 446ArgumentNullException.ThrowIfNull(textRunCache); 448ArgumentNullException.ThrowIfNull(paragraphProperties);
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
250ArgumentNullException.ThrowIfNull(drawingContext);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
165ArgumentNullException.ThrowIfNull(array);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
110ArgumentNullException.ThrowIfNull(array);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (2)
175ArgumentNullException.ThrowIfNull(characterArray); 274ArgumentNullException.ThrowIfNull(characterString);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
357ArgumentNullException.ThrowIfNull(bufferToWriteTo);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (2)
35ArgumentNullException.ThrowIfNull(stream); 37ArgumentNullException.ThrowIfNull(syncRoot);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
145ArgumentNullException.ThrowIfNull(exception);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
36ArgumentNullException.ThrowIfNull(array);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (4)
88ArgumentNullException.ThrowIfNull(key, nameof(key)); 89ArgumentNullException.ThrowIfNull(resource, nameof(resource)); 147ArgumentNullException.ThrowIfNull(key, nameof(key)); 171ArgumentNullException.ThrowIfNull(key, nameof(key));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
55ArgumentNullException.ThrowIfNull(uri);
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (6)
104Contract.Requires<ArgumentNullException>(eventSource != null, nameof(eventSource)); 143Contract.Requires<ArgumentNullException>(parentActivity != null, nameof(parentActivity)); 176Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 207Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 237Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 256Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName));
System\IO\Packaging\PackageStore.cs (2)
98ArgumentNullException.ThrowIfNull(package); 140ArgumentNullException.ThrowIfNull(uri);
System\IO\Packaging\PackWebRequestFactory.cs (1)
50ArgumentNullException.ThrowIfNull(uri);
System\IO\Packaging\PackWebResponse.cs (7)
55ArgumentNullException.ThrowIfNull(uri); 57ArgumentNullException.ThrowIfNull(innerUri); 59ArgumentNullException.ThrowIfNull(innerRequest); 123ArgumentNullException.ThrowIfNull(uri); 125ArgumentNullException.ThrowIfNull(innerUri); 127ArgumentNullException.ThrowIfNull(partName); 129ArgumentNullException.ThrowIfNull(cacheEntry);
System\Windows\Automation\AutomationProperties.cs (34)
26ArgumentNullException.ThrowIfNull(element); 36ArgumentNullException.ThrowIfNull(element); 59ArgumentNullException.ThrowIfNull(element); 69ArgumentNullException.ThrowIfNull(element); 92ArgumentNullException.ThrowIfNull(element); 102ArgumentNullException.ThrowIfNull(element); 125ArgumentNullException.ThrowIfNull(element); 135ArgumentNullException.ThrowIfNull(element); 158ArgumentNullException.ThrowIfNull(element); 168ArgumentNullException.ThrowIfNull(element); 191ArgumentNullException.ThrowIfNull(element); 201ArgumentNullException.ThrowIfNull(element); 224ArgumentNullException.ThrowIfNull(element); 234ArgumentNullException.ThrowIfNull(element); 256ArgumentNullException.ThrowIfNull(element); 266ArgumentNullException.ThrowIfNull(element); 288ArgumentNullException.ThrowIfNull(element); 298ArgumentNullException.ThrowIfNull(element); 320ArgumentNullException.ThrowIfNull(element); 330ArgumentNullException.ThrowIfNull(element); 352ArgumentNullException.ThrowIfNull(element); 362ArgumentNullException.ThrowIfNull(element); 384ArgumentNullException.ThrowIfNull(element); 394ArgumentNullException.ThrowIfNull(element); 416ArgumentNullException.ThrowIfNull(element); 426ArgumentNullException.ThrowIfNull(element); 452ArgumentNullException.ThrowIfNull(element); 462ArgumentNullException.ThrowIfNull(element); 488ArgumentNullException.ThrowIfNull(element); 498ArgumentNullException.ThrowIfNull(element); 517ArgumentNullException.ThrowIfNull(element); 527ArgumentNullException.ThrowIfNull(element); 546ArgumentNullException.ThrowIfNull(element); 555ArgumentNullException.ThrowIfNull(element);
System\Windows\Automation\Peers\AutomationPeer.cs (3)
348ArgumentNullException.ThrowIfNull(args); 460ArgumentNullException.ThrowIfNull(connectedPeer); 544ArgumentNullException.ThrowIfNull(parent);
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (3)
22ArgumentNullException.ThrowIfNull(owner); 48ArgumentNullException.ThrowIfNull(element); 55ArgumentNullException.ThrowIfNull(element);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (3)
18ArgumentNullException.ThrowIfNull(owner); 45ArgumentNullException.ThrowIfNull(element); 53ArgumentNullException.ThrowIfNull(element);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
17ArgumentNullException.ThrowIfNull(owner); 43ArgumentNullException.ThrowIfNull(element); 51ArgumentNullException.ThrowIfNull(element);
System\Windows\clipboard.cs (10)
144ArgumentNullException.ThrowIfNull(audioBytes); 153ArgumentNullException.ThrowIfNull(audioStream); 163ArgumentNullException.ThrowIfNull(data); 177ArgumentNullException.ThrowIfNull(image); 186ArgumentNullException.ThrowIfNull(text); 195ArgumentNullException.ThrowIfNull(text); 224ArgumentNullException.ThrowIfNull(data); 236ArgumentNullException.ThrowIfNull(data); 252ArgumentNullException.ThrowIfNull(data); 494ArgumentNullException.ThrowIfNull(data);
System\Windows\ContentElement.cs (2)
854ArgumentNullException.ThrowIfNull(touchDevice); 866ArgumentNullException.ThrowIfNull(touchDevice);
System\Windows\ContentOperations.cs (2)
17ArgumentNullException.ThrowIfNull(reference); 34ArgumentNullException.ThrowIfNull(reference);
System\Windows\CultureInfoConverter.cs (3)
74/// <exception cref="ArgumentNullException"> 103/// <exception cref="ArgumentNullException"> 119ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\DataFormat.cs (1)
18ArgumentNullException.ThrowIfNull(name);
System\Windows\DataFormats.cs (1)
25ArgumentNullException.ThrowIfNull(format);
System\Windows\dataobject.cs (9)
230ArgumentNullException.ThrowIfNull(data); 240ArgumentNullException.ThrowIfNull(data); 251ArgumentNullException.ThrowIfNull(data); 341ArgumentNullException.ThrowIfNull(audioBytes); 350ArgumentNullException.ThrowIfNull(audioStream); 369ArgumentNullException.ThrowIfNull(image); 378ArgumentNullException.ThrowIfNull(textData); 387ArgumentNullException.ThrowIfNull(textData); 649/// <exception cref="ArgumentNullException"><paramref name="data"/> or <paramref name="format"/> is null.</exception>
System\Windows\DataObjectCopyingEventArgs.cs (1)
48ArgumentNullException.ThrowIfNull(dataObject);
System\Windows\DataObjectExtensions.cs (5)
17ArgumentNullException.ThrowIfNull(dataObject); 31/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception> 39/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception> 48/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception> 58/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception>
System\Windows\DataObjectPastingEventArgs.cs (4)
49ArgumentNullException.ThrowIfNull(dataObject); 51ArgumentNullException.ThrowIfNull(formatToApply); 123ArgumentNullException.ThrowIfNull(value); 153ArgumentNullException.ThrowIfNull(value);
System\Windows\DataObjectSettingDataEventArgs.cs (2)
37ArgumentNullException.ThrowIfNull(dataObject); 39ArgumentNullException.ThrowIfNull(format);
System\Windows\Documents\DynamicDocumentPaginator.cs (1)
72ArgumentNullException.ThrowIfNull(contentPosition);
System\Windows\DragDrop.cs (2)
372ArgumentNullException.ThrowIfNull(dragSource); 374ArgumentNullException.ThrowIfNull(data);
System\Windows\DragEventArgs.cs (1)
82ArgumentNullException.ThrowIfNull(relativeTo);
System\Windows\DurationConverter.cs (1)
94ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\EventHandlersStore.cs (11)
52ArgumentNullException.ThrowIfNull(key); 53ArgumentNullException.ThrowIfNull(handler); 87ArgumentNullException.ThrowIfNull(key); 88ArgumentNullException.ThrowIfNull(handler); 124ArgumentNullException.ThrowIfNull(key); 143ArgumentNullException.ThrowIfNull(routedEvent); 144ArgumentNullException.ThrowIfNull(handler); 177ArgumentNullException.ThrowIfNull(routedEvent); 178ArgumentNullException.ThrowIfNull(handler); 221ArgumentNullException.ThrowIfNull(routedEvent); 233ArgumentNullException.ThrowIfNull(routedEvent);
System\Windows\EventManager.cs (9)
55ArgumentNullException.ThrowIfNull(name); 64ArgumentNullException.ThrowIfNull(handlerType); 66ArgumentNullException.ThrowIfNull(ownerType); 149ArgumentNullException.ThrowIfNull(classType); 151ArgumentNullException.ThrowIfNull(routedEvent); 153ArgumentNullException.ThrowIfNull(handler); 216ArgumentNullException.ThrowIfNull(ownerType); 248ArgumentNullException.ThrowIfNull(name); 250ArgumentNullException.ThrowIfNull(ownerType);
System\Windows\EventRoute.cs (5)
40ArgumentNullException.ThrowIfNull(routedEvent); 77ArgumentNullException.ThrowIfNull(target); 79ArgumentNullException.ThrowIfNull(handler); 122ArgumentNullException.ThrowIfNull(source); 124ArgumentNullException.ThrowIfNull(args);
System\Windows\FreezableCollection.cs (4)
64ArgumentNullException.ThrowIfNull(collection); 361ArgumentNullException.ThrowIfNull(array); 471ArgumentNullException.ThrowIfNull(array); 635ArgumentNullException.ThrowIfNull(value);
System\Windows\Generated\ContentElement.cs (12)
67ArgumentNullException.ThrowIfNull(dp); 132ArgumentNullException.ThrowIfNull(dp); 186ArgumentNullException.ThrowIfNull(dp); 387ArgumentNullException.ThrowIfNull(e); 399ArgumentNullException.ThrowIfNull(args); 415ArgumentNullException.ThrowIfNull(args); 515ArgumentNullException.ThrowIfNull(routedEvent); 517ArgumentNullException.ThrowIfNull(handler); 570ArgumentNullException.ThrowIfNull(routedEvent); 572ArgumentNullException.ThrowIfNull(handler); 631ArgumentNullException.ThrowIfNull(route); 632ArgumentNullException.ThrowIfNull(e);
System\Windows\Generated\TextDecorationCollection.cs (4)
273ArgumentNullException.ThrowIfNull(array); 383ArgumentNullException.ThrowIfNull(array); 493ArgumentNullException.ThrowIfNull(value); 898ArgumentNullException.ThrowIfNull(collection);
System\Windows\Generated\UIElement.cs (12)
67ArgumentNullException.ThrowIfNull(dp); 132ArgumentNullException.ThrowIfNull(dp); 186ArgumentNullException.ThrowIfNull(dp); 387ArgumentNullException.ThrowIfNull(e); 399ArgumentNullException.ThrowIfNull(args); 415ArgumentNullException.ThrowIfNull(args); 515ArgumentNullException.ThrowIfNull(routedEvent); 517ArgumentNullException.ThrowIfNull(handler); 570ArgumentNullException.ThrowIfNull(routedEvent); 572ArgumentNullException.ThrowIfNull(handler); 631ArgumentNullException.ThrowIfNull(route); 632ArgumentNullException.ThrowIfNull(e);
System\Windows\Generated\UIElement3D.cs (9)
193ArgumentNullException.ThrowIfNull(e); 205ArgumentNullException.ThrowIfNull(args); 221ArgumentNullException.ThrowIfNull(args); 321ArgumentNullException.ThrowIfNull(routedEvent); 323ArgumentNullException.ThrowIfNull(handler); 376ArgumentNullException.ThrowIfNull(routedEvent); 378ArgumentNullException.ThrowIfNull(handler); 437ArgumentNullException.ThrowIfNull(route); 438ArgumentNullException.ThrowIfNull(e);
System\Windows\IContentHost.cs (2)
32/// <exception cref="ArgumentNullException"> 62/// <exception cref="ArgumentNullException">
System\Windows\Ink\DrawingAttributes.cs (1)
700ArgumentNullException.ThrowIfNull(propertyData);
System\Windows\Ink\Events.cs (4)
201ArgumentNullException.ThrowIfNull(newDrawingAttributes); 202ArgumentNullException.ThrowIfNull(previousDrawingAttributes); 245ArgumentNullException.ThrowIfNull(newStylusPoints); 246ArgumentNullException.ThrowIfNull(previousStylusPoints);
System\Windows\Ink\GestureRecognizer.cs (1)
161ArgumentNullException.ThrowIfNull(strokes);
System\Windows\Ink\IncrementalHitTester.cs (2)
37ArgumentNullException.ThrowIfNull(points); 60ArgumentNullException.ThrowIfNull(stylusPoints);
System\Windows\Ink\Stroke.cs (5)
47ArgumentNullException.ThrowIfNull(stylusPoints); 52ArgumentNullException.ThrowIfNull(drawingAttributes); 463ArgumentNullException.ThrowIfNull(value); 502ArgumentNullException.ThrowIfNull(value); 602ArgumentNullException.ThrowIfNull(e);
System\Windows\Ink\Stroke2.cs (13)
51ArgumentNullException.ThrowIfNull(context); 69ArgumentNullException.ThrowIfNull(drawingContext); 71ArgumentNullException.ThrowIfNull(drawingAttributes); 116ArgumentNullException.ThrowIfNull(lassoPoints); 147ArgumentNullException.ThrowIfNull(lassoPoints); 168ArgumentNullException.ThrowIfNull(eraserShape); 169ArgumentNullException.ThrowIfNull(eraserPath); 255ArgumentNullException.ThrowIfNull(lassoPoints); 309ArgumentNullException.ThrowIfNull(path); 310ArgumentNullException.ThrowIfNull(stylusShape); 365ArgumentNullException.ThrowIfNull(drawingContext); 367ArgumentNullException.ThrowIfNull(drawingAttributes); 447ArgumentNullException.ThrowIfNull(drawingAttributes);
System\Windows\Ink\StrokeCollection.cs (7)
36ArgumentNullException.ThrowIfNull(strokes); 57ArgumentNullException.ThrowIfNull(stream); 81ArgumentNullException.ThrowIfNull(stream); 306ArgumentNullException.ThrowIfNull(stroke); 324ArgumentNullException.ThrowIfNull(stroke); 370ArgumentNullException.ThrowIfNull(strokes); 411ArgumentNullException.ThrowIfNull(strokes);
System\Windows\Ink\StrokeCollection2.cs (7)
81ArgumentNullException.ThrowIfNull(lassoPoints); 183ArgumentNullException.ThrowIfNull(stylusShape); 184ArgumentNullException.ThrowIfNull(path); 220ArgumentNullException.ThrowIfNull(lassoPoints); 271ArgumentNullException.ThrowIfNull(lassoPoints); 348ArgumentNullException.ThrowIfNull(context); 411ArgumentNullException.ThrowIfNull(eraserShape);
System\Windows\Ink\StrokeCollectionConverter.cs (1)
109ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\AccessKeyManager.cs (3)
26ArgumentNullException.ThrowIfNull(element); 57ArgumentNullException.ThrowIfNull(element); 119ArgumentNullException.ThrowIfNull(key);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (4)
43ArgumentNullException.ThrowIfNull(source); 44ArgumentNullException.ThrowIfNull(handler); 53ArgumentNullException.ThrowIfNull(source); 54ArgumentNullException.ThrowIfNull(handler);
System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (1)
28ArgumentNullException.ThrowIfNull(command);
System\Windows\Input\Command\CommandBinding.cs (2)
55ArgumentNullException.ThrowIfNull(command); 81ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Command\CommandBindingCollection.cs (1)
178ArgumentNullException.ThrowIfNull(collection);
System\Windows\Input\Command\CommandDevice.cs (1)
304ArgumentNullException.ThrowIfNull(command);
System\Windows\Input\Command\CommandManager.cs (20)
48ArgumentNullException.ThrowIfNull(element); 49ArgumentNullException.ThrowIfNull(handler); 61ArgumentNullException.ThrowIfNull(element); 62ArgumentNullException.ThrowIfNull(handler); 83ArgumentNullException.ThrowIfNull(element); 84ArgumentNullException.ThrowIfNull(handler); 96ArgumentNullException.ThrowIfNull(element); 97ArgumentNullException.ThrowIfNull(handler); 118ArgumentNullException.ThrowIfNull(element); 119ArgumentNullException.ThrowIfNull(handler); 131ArgumentNullException.ThrowIfNull(element); 132ArgumentNullException.ThrowIfNull(handler); 153ArgumentNullException.ThrowIfNull(element); 154ArgumentNullException.ThrowIfNull(handler); 166ArgumentNullException.ThrowIfNull(element); 167ArgumentNullException.ThrowIfNull(handler); 183ArgumentNullException.ThrowIfNull(type); 184ArgumentNullException.ThrowIfNull(inputBinding); 212ArgumentNullException.ThrowIfNull(type); 213ArgumentNullException.ThrowIfNull(commandBinding);
System\Windows\Input\Command\ExecutedRoutedEventArgs.cs (1)
28ArgumentNullException.ThrowIfNull(command);
System\Windows\Input\Command\InputBinding.cs (3)
37ArgumentNullException.ThrowIfNull(command); 39ArgumentNullException.ThrowIfNull(gesture); 141ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Command\InputBindingCollection.cs (1)
243ArgumentNullException.ThrowIfNull(collection);
System\Windows\Input\Command\InputGestureCollection.cs (3)
250ArgumentNullException.ThrowIfNull(inputGesture); 270ArgumentNullException.ThrowIfNull(collection); 331ArgumentNullException.ThrowIfNull(inputGesture);
System\Windows\Input\Command\KeyGesture.cs (1)
96ArgumentNullException.ThrowIfNull(displayString);
System\Windows\Input\Command\KeyGestureConverter.cs (1)
137ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\Command\MouseActionConverter.cs (1)
84ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\Command\MouseGestureConverter.cs (1)
141ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\Command\RoutedCommand.cs (2)
46ArgumentNullException.ThrowIfNull(name); 53ArgumentNullException.ThrowIfNull(ownerType);
System\Windows\Input\Command\RoutedUICommand.cs (2)
48ArgumentNullException.ThrowIfNull(text); 77ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Cursor.cs (2)
52ArgumentNullException.ThrowIfNull(cursorFile); 83ArgumentNullException.ThrowIfNull(cursorStream);
System\Windows\Input\CursorConverter.cs (1)
208ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\FocusManager.cs (5)
130ArgumentNullException.ThrowIfNull(element); 160ArgumentNullException.ThrowIfNull(element); 172ArgumentNullException.ThrowIfNull(element); 183ArgumentNullException.ThrowIfNull(element); 194ArgumentNullException.ThrowIfNull(element);
System\Windows\Input\InputLanguageManager.cs (14)
37ArgumentNullException.ThrowIfNull(target); 49ArgumentNullException.ThrowIfNull(target); 74ArgumentNullException.ThrowIfNull(target); 85ArgumentNullException.ThrowIfNull(target); 120ArgumentNullException.ThrowIfNull(inputLanguageSource); 145ArgumentNullException.ThrowIfNull(newLanguageId); 147ArgumentNullException.ThrowIfNull(previousLanguageId); 181ArgumentNullException.ThrowIfNull(newLanguageId); 183ArgumentNullException.ThrowIfNull(previousLanguageId); 258ArgumentNullException.ThrowIfNull(value); 293ArgumentNullException.ThrowIfNull(value); 305ArgumentNullException.ThrowIfNull(value); 323ArgumentNullException.ThrowIfNull(value); 335ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\InputManager.cs (3)
327ArgumentNullException.ThrowIfNull(menuSite); 348ArgumentNullException.ThrowIfNull(menuSite); 510ArgumentNullException.ThrowIfNull(input);
System\Windows\Input\InputMethod.cs (14)
224ArgumentNullException.ThrowIfNull(target); 235ArgumentNullException.ThrowIfNull(target); 257ArgumentNullException.ThrowIfNull(target); 268ArgumentNullException.ThrowIfNull(target); 291ArgumentNullException.ThrowIfNull(target); 302ArgumentNullException.ThrowIfNull(target); 324ArgumentNullException.ThrowIfNull(target); 335ArgumentNullException.ThrowIfNull(target); 357ArgumentNullException.ThrowIfNull(target); 368ArgumentNullException.ThrowIfNull(target); 389ArgumentNullException.ThrowIfNull(target); 400ArgumentNullException.ThrowIfNull(target); 1169ArgumentNullException.ThrowIfNull(value); 1182ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\InputReport.cs (1)
34ArgumentNullException.ThrowIfNull(inputSource);
System\Windows\Input\InputReportEventArgs.cs (1)
24ArgumentNullException.ThrowIfNull(report);
System\Windows\Input\InputScope.cs (4)
53ArgumentNullException.ThrowIfNull(value); 71ArgumentNullException.ThrowIfNull(value); 279ArgumentNullException.ThrowIfNull(name); 303ArgumentNullException.ThrowIfNull(name);
System\Windows\Input\KeyEventArgs.cs (1)
29ArgumentNullException.ThrowIfNull(inputSource);
System\Windows\Input\Manipulation.cs (15)
33ArgumentNullException.ThrowIfNull(element); 58ArgumentNullException.ThrowIfNull(element); 70ArgumentNullException.ThrowIfNull(element); 96ArgumentNullException.ThrowIfNull(element); 116ArgumentNullException.ThrowIfNull(element); 137ArgumentNullException.ThrowIfNull(element); 158ArgumentNullException.ThrowIfNull(element); 176ArgumentNullException.ThrowIfNull(element); 196ArgumentNullException.ThrowIfNull(element); 215ArgumentNullException.ThrowIfNull(element); 216ArgumentNullException.ThrowIfNull(manipulator); 234ArgumentNullException.ThrowIfNull(element); 235ArgumentNullException.ThrowIfNull(manipulator); 263ArgumentNullException.ThrowIfNull(element); 264ArgumentNullException.ThrowIfNull(parameter);
System\Windows\Input\ManipulationBoundaryFeedbackEventArgs.cs (2)
35ArgumentNullException.ThrowIfNull(genericHandler); 37ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\ManipulationCompletedEventArgs.cs (4)
27ArgumentNullException.ThrowIfNull(total); 29ArgumentNullException.ThrowIfNull(velocities); 45ArgumentNullException.ThrowIfNull(genericHandler); 47ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\ManipulationDeltaEventArgs.cs (6)
28ArgumentNullException.ThrowIfNull(delta); 30ArgumentNullException.ThrowIfNull(cumulative); 32ArgumentNullException.ThrowIfNull(velocities); 49ArgumentNullException.ThrowIfNull(genericHandler); 51ArgumentNullException.ThrowIfNull(genericTarget); 124ArgumentNullException.ThrowIfNull(unusedManipulation);
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (4)
29ArgumentNullException.ThrowIfNull(initialVelocities); 44ArgumentNullException.ThrowIfNull(genericHandler); 46ArgumentNullException.ThrowIfNull(genericTarget); 194ArgumentNullException.ThrowIfNull(parameter);
System\Windows\Input\ManipulationStartedEventArgs.cs (2)
35ArgumentNullException.ThrowIfNull(genericHandler); 37ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\ManipulationStartingEventArgs.cs (2)
109ArgumentNullException.ThrowIfNull(genericHandler); 111ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\MouseEventArgs.cs (2)
23ArgumentNullException.ThrowIfNull(mouse); 41ArgumentNullException.ThrowIfNull(mouse);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (3)
97ArgumentNullException.ThrowIfNull(value); 728ArgumentNullException.ThrowIfNull(drawingContext); 1043ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (2)
48ArgumentNullException.ThrowIfNull(source); 49ArgumentNullException.ThrowIfNull(listener);
System\Windows\Input\Stylus\Common\RawStylusInput.cs (3)
26ArgumentNullException.ThrowIfNull(report); 31ArgumentNullException.ThrowIfNull(targetPlugInCollection); 98ArgumentNullException.ThrowIfNull(stylusPoints);
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
185ArgumentNullException.ThrowIfNull(data); 241ArgumentNullException.ThrowIfNull(data);
System\Windows\Input\Stylus\Common\Stylus.cs (8)
577ArgumentNullException.ThrowIfNull(element); 594ArgumentNullException.ThrowIfNull(element); 617ArgumentNullException.ThrowIfNull(element); 634ArgumentNullException.ThrowIfNull(element); 657ArgumentNullException.ThrowIfNull(element); 674ArgumentNullException.ThrowIfNull(element); 696ArgumentNullException.ThrowIfNull(element); 713ArgumentNullException.ThrowIfNull(element);
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
35ArgumentNullException.ThrowIfNull(impl);
System\Windows\Input\Stylus\Common\StylusEventArgs.cs (1)
25ArgumentNullException.ThrowIfNull(stylus);
System\Windows\Input\Stylus\Common\StylusPoint.cs (4)
101ArgumentNullException.ThrowIfNull(stylusPointDescription); 108ArgumentNullException.ThrowIfNull(additionalValues); 270ArgumentNullException.ThrowIfNull(stylusPointProperty); 335ArgumentNullException.ThrowIfNull(stylusPointProperty);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (6)
56ArgumentNullException.ThrowIfNull(stylusPointDescription); 83ArgumentNullException.ThrowIfNull(stylusPoints); 110ArgumentNullException.ThrowIfNull(points); 139ArgumentNullException.ThrowIfNull(stylusPointDescription); 200ArgumentNullException.ThrowIfNull(stylusPoints); 399ArgumentNullException.ThrowIfNull(e);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (6)
46ArgumentNullException.ThrowIfNull(stylusPointPropertyInfos); 113ArgumentNullException.ThrowIfNull(stylusPointProperty); 137ArgumentNullException.ThrowIfNull(stylusPointProperty); 330ArgumentNullException.ThrowIfNull(stylusPointDescription); 331ArgumentNullException.ThrowIfNull(stylusPointDescriptionPreserveInfo); 379ArgumentNullException.ThrowIfNull(stylusPointDescriptionSuperset);
System\Windows\Input\Stylus\Common\StylusPointProperty.cs (1)
36ArgumentNullException.ThrowIfNull(stylusPointProperty);
System\Windows\Input\Stylus\Common\StylusTraceLogger.cs (3)
205Requires<ArgumentNullException>(stylusData != null); 224Requires<ArgumentNullException>(error != null); 235Requires<ArgumentNullException>(deviceInfo != null);
System\Windows\Input\Stylus\Common\TabletDevice.cs (1)
27ArgumentNullException.ThrowIfNull(impl);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
688ArgumentNullException.ThrowIfNull(subsetToReformatTo);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1128ArgumentNullException.ThrowIfNull(subsetToReformatTo);
System\Windows\Input\TextCompositionEventArgs.cs (1)
29ArgumentNullException.ThrowIfNull(composition);
System\Windows\Input\TextCompositionManager.cs (15)
57ArgumentNullException.ThrowIfNull(element); 69ArgumentNullException.ThrowIfNull(element); 86ArgumentNullException.ThrowIfNull(element); 98ArgumentNullException.ThrowIfNull(element); 115ArgumentNullException.ThrowIfNull(element); 127ArgumentNullException.ThrowIfNull(element); 144ArgumentNullException.ThrowIfNull(element); 156ArgumentNullException.ThrowIfNull(element); 173ArgumentNullException.ThrowIfNull(element); 185ArgumentNullException.ThrowIfNull(element); 202ArgumentNullException.ThrowIfNull(element); 214ArgumentNullException.ThrowIfNull(element); 310ArgumentNullException.ThrowIfNull(composition); 333ArgumentNullException.ThrowIfNull(composition); 360ArgumentNullException.ThrowIfNull(composition);
System\Windows\Input\TouchPoint.cs (1)
34ArgumentNullException.ThrowIfNull(device);
System\Windows\InterOp\HwndPanningFeedback.cs (1)
24ArgumentNullException.ThrowIfNull(hwndSource);
System\Windows\InterOp\HwndSource.cs (3)
1909ArgumentNullException.ThrowIfNull(sink); 1963ArgumentNullException.ThrowIfNull(request); 1979ArgumentNullException.ThrowIfNull(request);
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (2)
12ArgumentNullException.ThrowIfNull(source); 13ArgumentNullException.ThrowIfNull(sink);
System\Windows\Markup\XmlLanguage.cs (5)
107/// <exception cref="ArgumentNullException"> 117ArgumentNullException.ThrowIfNull(ietfLanguageTag); 341ArgumentNullException.ThrowIfNull(culture); 705/// <exception cref="ArgumentNullException">tag is NULL.</exception> 709ArgumentNullException.ThrowIfNull(ietfLanguageTag);
System\Windows\Markup\XmlLanguageConverter.cs (3)
67/// <exception cref="ArgumentNullException"> 96/// <exception cref="ArgumentNullException"> 112ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Media\Animation\Generated\Animatable.cs (3)
66ArgumentNullException.ThrowIfNull(dp); 131ArgumentNullException.ThrowIfNull(dp); 185ArgumentNullException.ThrowIfNull(dp);
System\Windows\Media\Animation\Generated\BooleanAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 490ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\ByteAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\CharAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 490ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\ColorAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\DecimalAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\DoubleAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Int16AnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Int32AnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Int64AnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\MatrixAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 490ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\ObjectAnimationBase.cs (1)
79ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 490ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Point3DAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\PointAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\QuaternionAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\RectAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Rotation3DAnimationBase.cs (1)
130ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\SingleAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\SizeAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (32)
69ArgumentNullException.ThrowIfNull(keySpline); 141ArgumentNullException.ThrowIfNull(value); 196ArgumentNullException.ThrowIfNull(keySpline); 268ArgumentNullException.ThrowIfNull(value); 323ArgumentNullException.ThrowIfNull(keySpline); 395ArgumentNullException.ThrowIfNull(value); 450ArgumentNullException.ThrowIfNull(keySpline); 522ArgumentNullException.ThrowIfNull(value); 577ArgumentNullException.ThrowIfNull(keySpline); 649ArgumentNullException.ThrowIfNull(value); 704ArgumentNullException.ThrowIfNull(keySpline); 776ArgumentNullException.ThrowIfNull(value); 831ArgumentNullException.ThrowIfNull(keySpline); 903ArgumentNullException.ThrowIfNull(value); 958ArgumentNullException.ThrowIfNull(keySpline); 1030ArgumentNullException.ThrowIfNull(value); 1085ArgumentNullException.ThrowIfNull(keySpline); 1157ArgumentNullException.ThrowIfNull(value); 1212ArgumentNullException.ThrowIfNull(keySpline); 1284ArgumentNullException.ThrowIfNull(value); 1339ArgumentNullException.ThrowIfNull(keySpline); 1411ArgumentNullException.ThrowIfNull(value); 1466ArgumentNullException.ThrowIfNull(keySpline); 1538ArgumentNullException.ThrowIfNull(value); 1593ArgumentNullException.ThrowIfNull(keySpline); 1665ArgumentNullException.ThrowIfNull(value); 1720ArgumentNullException.ThrowIfNull(keySpline); 1792ArgumentNullException.ThrowIfNull(value); 1847ArgumentNullException.ThrowIfNull(keySpline); 1919ArgumentNullException.ThrowIfNull(value); 1974ArgumentNullException.ThrowIfNull(keySpline); 2046ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\StringAnimationBase.cs (1)
130ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 490ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (4)
272ArgumentNullException.ThrowIfNull(array); 382ArgumentNullException.ThrowIfNull(array); 492ArgumentNullException.ThrowIfNull(value); 897ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Animation\Generated\Vector3DAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\VectorAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Timeline.cs (2)
376ArgumentNullException.ThrowIfNull(timeline); 389ArgumentNullException.ThrowIfNull(timeline);
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
92ArgumentNullException.ThrowIfNull(item);
System\Windows\Media\Animation\TimelineGroup.cs (3)
108ArgumentNullException.ThrowIfNull(child); 164/// <exception cref="ArgumentNullException">The childText parameter is 170ArgumentNullException.ThrowIfNull(childText);
System\Windows\Media\CharacterMetrics.cs (1)
51ArgumentNullException.ThrowIfNull(metrics);
System\Windows\Media\CharacterMetricsDictionary.cs (5)
116ArgumentNullException.ThrowIfNull(array); 173ArgumentNullException.ThrowIfNull(array); 357ArgumentNullException.ThrowIfNull(value); 483ArgumentNullException.ThrowIfNull(key); 515ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\ColorContext.cs (1)
483ArgumentNullException.ThrowIfNull(profileUri);
System\Windows\Media\CultureSpecificStringDictionary.cs (5)
108ArgumentNullException.ThrowIfNull(array); 142ArgumentNullException.ThrowIfNull(array); 299ArgumentNullException.ThrowIfNull(value); 310ArgumentNullException.ThrowIfNull(value); 323ArgumentNullException.ThrowIfNull(key);
System\Windows\Media\DrawingVisual.cs (2)
25ArgumentNullException.ThrowIfNull(hitTestParameters); 43ArgumentNullException.ThrowIfNull(hitTestParameters);
System\Windows\Media\Effects\BitmapEffect.cs (1)
92ArgumentNullException.ThrowIfNull(input);
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (4)
275ArgumentNullException.ThrowIfNull(array); 385ArgumentNullException.ThrowIfNull(array); 495ArgumentNullException.ThrowIfNull(value); 900ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\EventProxy.cs (1)
128ArgumentNullException.ThrowIfNull(invokable);
System\Windows\Media\FamilyMap.cs (1)
84ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\FamilyMapCollection.cs (5)
74ArgumentNullException.ThrowIfNull(array); 88ArgumentNullException.ThrowIfNull(array); 246ArgumentNullException.ThrowIfNull(item); 294ArgumentNullException.ThrowIfNull(item); 363ArgumentNullException.ThrowIfNull(obj);
System\Windows\Media\FamilyTypefaceCollection.cs (4)
231ArgumentNullException.ThrowIfNull(item); 298ArgumentNullException.ThrowIfNull(item); 355ArgumentNullException.ThrowIfNull(obj); 366ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\FontEmbeddingManager.cs (1)
43ArgumentNullException.ThrowIfNull(glyphRun);
System\Windows\Media\FontFamily.cs (1)
68ArgumentNullException.ThrowIfNull(familyName);
System\Windows\Media\FontFamilyConverter.cs (2)
115ArgumentNullException.ThrowIfNull(value); 123ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Media\Fonts.cs (5)
42ArgumentNullException.ThrowIfNull(location); 59ArgumentNullException.ThrowIfNull(baseUri); 135ArgumentNullException.ThrowIfNull(location); 152ArgumentNullException.ThrowIfNull(baseUri); 311ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\FormattedText.cs (5)
202ArgumentNullException.ThrowIfNull(textToFormat); 204ArgumentNullException.ThrowIfNull(typeface); 268ArgumentNullException.ThrowIfNull(culture); 369ArgumentNullException.ThrowIfNull(fontFamily); 391ArgumentNullException.ThrowIfNull(fontFamily);
System\Windows\Media\Generated\DoubleCollection.cs (4)
234ArgumentNullException.ThrowIfNull(array); 357ArgumentNullException.ThrowIfNull(array); 451ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\DrawingCollection.cs (4)
294ArgumentNullException.ThrowIfNull(array); 404ArgumentNullException.ThrowIfNull(array); 514ArgumentNullException.ThrowIfNull(value); 942ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\GeneralTransformCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 907ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\GeometryCollection.cs (4)
294ArgumentNullException.ThrowIfNull(array); 404ArgumentNullException.ThrowIfNull(array); 514ArgumentNullException.ThrowIfNull(value); 942ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\GradientStopCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 1010ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\Int32Collection.cs (4)
234ArgumentNullException.ThrowIfNull(array); 357ArgumentNullException.ThrowIfNull(array); 451ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PathFigureCollection.cs (4)
283ArgumentNullException.ThrowIfNull(array); 393ArgumentNullException.ThrowIfNull(array); 503ArgumentNullException.ThrowIfNull(value); 997ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PathSegmentCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 907ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PointCollection.cs (4)
234ArgumentNullException.ThrowIfNull(array); 357ArgumentNullException.ThrowIfNull(array); 451ArgumentNullException.ThrowIfNull(value); 927ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PolyBezierSegmentFigureLogic.cs (2)
46ArgumentNullException.ThrowIfNull(points); 57ArgumentNullException.ThrowIfNull(points);
System\Windows\Media\Generated\PolyLineSegmentFigureLogic.cs (2)
46ArgumentNullException.ThrowIfNull(points); 57ArgumentNullException.ThrowIfNull(points);
System\Windows\Media\Generated\PolyQuadraticBezierSegmentFigureLogic.cs (2)
46ArgumentNullException.ThrowIfNull(points); 57ArgumentNullException.ThrowIfNull(points);
System\Windows\Media\Generated\TextEffectCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 907ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\TransformCollection.cs (4)
294ArgumentNullException.ThrowIfNull(array); 404ArgumentNullException.ThrowIfNull(array); 514ArgumentNullException.ThrowIfNull(value); 942ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\VectorCollection.cs (4)
234ArgumentNullException.ThrowIfNull(array); 357ArgumentNullException.ThrowIfNull(array); 451ArgumentNullException.ThrowIfNull(value); 927ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Geometry.cs (1)
662ArgumentNullException.ThrowIfNull(pen);
System\Windows\Media\GeometryHitTestParameters.cs (1)
36ArgumentNullException.ThrowIfNull(geometry);
System\Windows\Media\GlyphRun.cs (6)
429ArgumentNullException.ThrowIfNull(glyphTypeface); 430ArgumentNullException.ThrowIfNull(glyphIndices); 440ArgumentNullException.ThrowIfNull(advanceWidths); 903ArgumentNullException.ThrowIfNull(value); 1081ArgumentNullException.ThrowIfNull(value); 1111ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\GlyphsSerializer.cs (1)
24ArgumentNullException.ThrowIfNull(glyphRun);
System\Windows\Media\GlyphTypeface.cs (5)
113ArgumentNullException.ThrowIfNull(typefaceSource); 225ArgumentNullException.ThrowIfNull(glyphs); 290ArgumentNullException.ThrowIfNull(value); 1809ArgumentNullException.ThrowIfNull(array); 1894ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\Imaging\BitmapDecoder.cs (4)
60ArgumentNullException.ThrowIfNull(bitmapUri); 117ArgumentNullException.ThrowIfNull(bitmapStream); 461ArgumentNullException.ThrowIfNull(bitmapUri); 487ArgumentNullException.ThrowIfNull(bitmapStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (6)
130ArgumentNullException.ThrowIfNull(value); 157ArgumentNullException.ThrowIfNull(value); 186ArgumentNullException.ThrowIfNull(value); 218ArgumentNullException.ThrowIfNull(value); 273ArgumentNullException.ThrowIfNull(value); 300ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Imaging\BitmapFrame.cs (7)
110ArgumentNullException.ThrowIfNull(bitmapUri); 153ArgumentNullException.ThrowIfNull(bitmapUri); 174ArgumentNullException.ThrowIfNull(bitmapStream); 199ArgumentNullException.ThrowIfNull(bitmapStream); 219ArgumentNullException.ThrowIfNull(source); 251ArgumentNullException.ThrowIfNull(source); 289ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\BitmapImage.cs (1)
45ArgumentNullException.ThrowIfNull(uriSource);
System\Windows\Media\Imaging\BitmapMetadata.cs (7)
581ArgumentNullException.ThrowIfNull(containerFormat); 627ArgumentNullException.ThrowIfNull(bitmapMetadata); 1012ArgumentNullException.ThrowIfNull(query); 1014ArgumentNullException.ThrowIfNull(value); 1079ArgumentNullException.ThrowIfNull(query); 1131ArgumentNullException.ThrowIfNull(query); 1181ArgumentNullException.ThrowIfNull(query);
System\Windows\Media\Imaging\BitmapPalette.cs (2)
31ArgumentNullException.ThrowIfNull(colors); 67ArgumentNullException.ThrowIfNull(bitmapSource);
System\Windows\Media\Imaging\BitmapSource.cs (2)
640ArgumentNullException.ThrowIfNull(pixels); 1695ArgumentNullException.ThrowIfNull(bitmapSource);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
28ArgumentNullException.ThrowIfNull(bitmapTarget); 61ArgumentNullException.ThrowIfNull(visual);
System\Windows\Media\Imaging\CachedBitmap.cs (3)
26ArgumentNullException.ThrowIfNull(source); 65ArgumentNullException.ThrowIfNull(bitmap); 113ArgumentNullException.ThrowIfNull(pixels);
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (3)
33ArgumentNullException.ThrowIfNull(source); 35ArgumentNullException.ThrowIfNull(sourceColorContext); 37ArgumentNullException.ThrowIfNull(destinationColorContext);
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
31ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
34ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
32ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
703ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Knowncolors.cs (1)
812ArgumentNullException.ThrowIfNull(argbString);
System\Windows\Media\mediaeventargs.cs (3)
23ArgumentNullException.ThrowIfNull(errorException); 63ArgumentNullException.ThrowIfNull(parameterType); 65ArgumentNullException.ThrowIfNull(parameterValue);
System\Windows\Media\PathFigure.cs (1)
36ArgumentNullException.ThrowIfNull(segments);
System\Windows\Media\PathGeometry.cs (3)
44ArgumentNullException.ThrowIfNull(figures); 67ArgumentNullException.ThrowIfNull(figures); 354ArgumentNullException.ThrowIfNull(geometry);
System\Windows\Media\PixelFormat.cs (1)
192ArgumentNullException.ThrowIfNull(pixelFormatString);
System\Windows\Media\PixelFormatConverter.cs (2)
74ArgumentNullException.ThrowIfNull(destinationType); 75ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\RenderOptions.cs (12)
43ArgumentNullException.ThrowIfNull(target); 52ArgumentNullException.ThrowIfNull(target); 76ArgumentNullException.ThrowIfNull(target); 85ArgumentNullException.ThrowIfNull(target); 109ArgumentNullException.ThrowIfNull(target); 118ArgumentNullException.ThrowIfNull(target); 143ArgumentNullException.ThrowIfNull(target); 152ArgumentNullException.ThrowIfNull(target); 176ArgumentNullException.ThrowIfNull(target); 185ArgumentNullException.ThrowIfNull(target); 209ArgumentNullException.ThrowIfNull(target); 218ArgumentNullException.ThrowIfNull(target);
System\Windows\Media\RequestCachePolicyConverter.cs (2)
87/// <exception cref="ArgumentNullException"> 103ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Media\SolidColorBrush.cs (4)
55/// <exception cref="System.ArgumentNullException"> 66ArgumentNullException.ThrowIfNull(writer); 117/// <exception cref="System.ArgumentNullException"> 122ArgumentNullException.ThrowIfNull(reader);
System\Windows\Media\StreamAsIStream.cs (1)
630ArgumentNullException.ThrowIfNull(stream);
System\Windows\Media\textformatting\NumberSubstitution.cs (6)
143ArgumentNullException.ThrowIfNull(target); 154ArgumentNullException.ThrowIfNull(target); 176ArgumentNullException.ThrowIfNull(target); 188ArgumentNullException.ThrowIfNull(target); 207ArgumentNullException.ThrowIfNull(target); 218ArgumentNullException.ThrowIfNull(target);
System\Windows\Media\textformatting\TextCharacters.cs (1)
110ArgumentNullException.ThrowIfNull(textRunProperties);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
30ArgumentNullException.ThrowIfNull(textParagraphProperties);
System\Windows\Media\Typeface.cs (1)
99ArgumentNullException.ThrowIfNull(fontFamily);
System\Windows\Media\UniqueEventHelper.cs (2)
90ArgumentNullException.ThrowIfNull(handler); 110ArgumentNullException.ThrowIfNull(handler);
System\Windows\Media\Visual.cs (14)
1913ArgumentNullException.ThrowIfNull(resultCallback); 1915ArgumentNullException.ThrowIfNull(hitTestParameters); 2397ArgumentNullException.ThrowIfNull(hitTestParameters); 2415ArgumentNullException.ThrowIfNull(hitTestParameters); 4140ArgumentNullException.ThrowIfNull(ancestor); 4246/// <exception cref="ArgumentNullException">If the argument is null.</exception> 4251ArgumentNullException.ThrowIfNull(otherVisual); 4293/// <exception cref="ArgumentNullException"> 4303ArgumentNullException.ThrowIfNull(ancestor); 4314/// <exception cref="ArgumentNullException"> 4323ArgumentNullException.ThrowIfNull(ancestor); 4338/// <exception cref="ArgumentNullException">If the descendant argument is null.</exception> 4342ArgumentNullException.ThrowIfNull(descendant); 4355/// <exception cref="ArgumentNullException">If visual is null.</exception>
System\Windows\Media\VisualCollection.cs (3)
64ArgumentNullException.ThrowIfNull(parent); 170ArgumentNullException.ThrowIfNull(array); 198ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\VisualTarget.cs (1)
32ArgumentNullException.ThrowIfNull(hostVisual);
System\Windows\Media\VisualTreeHelper.cs (3)
28ArgumentNullException.ThrowIfNull(reference); 222ArgumentNullException.ThrowIfNull(ancestor); 223ArgumentNullException.ThrowIfNull(descendant);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (4)
280ArgumentNullException.ThrowIfNull(array); 390ArgumentNullException.ThrowIfNull(array); 500ArgumentNullException.ThrowIfNull(value); 905ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\MaterialCollection.cs (4)
292ArgumentNullException.ThrowIfNull(array); 402ArgumentNullException.ThrowIfNull(array); 512ArgumentNullException.ThrowIfNull(value); 940ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Model3DCollection.cs (4)
292ArgumentNullException.ThrowIfNull(array); 402ArgumentNullException.ThrowIfNull(array); 512ArgumentNullException.ThrowIfNull(value); 940ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Point3DCollection.cs (4)
232ArgumentNullException.ThrowIfNull(array); 355ArgumentNullException.ThrowIfNull(array); 449ArgumentNullException.ThrowIfNull(value); 926ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Transform3DCollection.cs (4)
292ArgumentNullException.ThrowIfNull(array); 402ArgumentNullException.ThrowIfNull(array); 512ArgumentNullException.ThrowIfNull(value); 940ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Vector3DCollection.cs (4)
232ArgumentNullException.ThrowIfNull(array); 355ArgumentNullException.ThrowIfNull(array); 449ArgumentNullException.ThrowIfNull(value); 926ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Visual3D.cs (3)
66ArgumentNullException.ThrowIfNull(dp); 131ArgumentNullException.ThrowIfNull(dp); 185ArgumentNullException.ThrowIfNull(dp);
System\Windows\Media3D\ModelVisual3D.cs (1)
73ArgumentNullException.ThrowIfNull(value);
System\Windows\Media3D\Visual3D.cs (11)
634ArgumentNullException.ThrowIfNull(resultCallback); 636ArgumentNullException.ThrowIfNull(hitTestParameters); 1313ArgumentNullException.ThrowIfNull(ancestor); 1398/// <exception cref="ArgumentNullException">If the argument is null.</exception> 1403ArgumentNullException.ThrowIfNull(otherVisual); 1604/// <exception cref="ArgumentNullException"> 1613ArgumentNullException.ThrowIfNull(ancestor); 1630/// <exception cref="ArgumentNullException">If the descendant argument is null.</exception> 1634ArgumentNullException.ThrowIfNull(descendant); 1766/// <exception cref="ArgumentNullException"> 1775ArgumentNullException.ThrowIfNull(ancestor);
System\Windows\Media3D\Visual3DCollection.cs (3)
132ArgumentNullException.ThrowIfNull(array); 148ArgumentNullException.ThrowIfNull(array); 446ArgumentNullException.ThrowIfNull(value);
System\Windows\Navigation\BaseUriHelper.cs (1)
526ArgumentNullException.ThrowIfNull(element);
System\Windows\PresentationSource.cs (4)
114ArgumentNullException.ThrowIfNull(element); 180ArgumentNullException.ThrowIfNull(e); 258ArgumentNullException.ThrowIfNull(ce); 540ArgumentNullException.ThrowIfNull(v);
System\Windows\RoutedEventArgs.cs (2)
274ArgumentNullException.ThrowIfNull(genericHandler); 276ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\TextDecorationCollection.cs (2)
67ArgumentNullException.ThrowIfNull(textDecorations); 91ArgumentNullException.ThrowIfNull(textDecorations);
System\Windows\UIElement.cs (6)
1638ArgumentNullException.ThrowIfNull(route); 1640ArgumentNullException.ThrowIfNull(args); 1876ArgumentNullException.ThrowIfNull(d); 1912ArgumentNullException.ThrowIfNull(d); 4551ArgumentNullException.ThrowIfNull(touchDevice); 4563ArgumentNullException.ThrowIfNull(touchDevice);
System\Windows\UIElement3D.cs (2)
1455ArgumentNullException.ThrowIfNull(touchDevice); 1467ArgumentNullException.ThrowIfNull(touchDevice);
PresentationCore.Tests (19)
System\Windows\ClipboardTests.cs (5)
55action.Should().Throw<ArgumentNullException>().WithParameterName("audioBytes"); 88action.Should().Throw<ArgumentNullException>().WithParameterName("audioStream"); 119action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 126action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 157action.Should().Throw<ArgumentNullException>().WithParameterName("filePaths");
System\Windows\DataObjectTests.cs (7)
56action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 82action.Should().Throw<ArgumentNullException>().Where(e => e.ParamName == "format"); 133act.Should().Throw<ArgumentNullException>(); 208act.Should().Throw<ArgumentNullException>(); 219act.Should().Throw<ArgumentNullException>(); 273act.Should().Throw<ArgumentNullException>(); 284act.Should().Throw<ArgumentNullException>();
System\Windows\DurationConverter.Tests.cs (1)
73Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(new Duration(new TimeSpan(17, 22, 10, 15, 457, 123)), destinationType: null!));
System\Windows\Input\Command\KeyGestureConverter.Tests.cs (1)
190Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, CultureInfo.InvariantCulture, new KeyGesture(Key.C, ModifierKeys.Control), null));
System\Windows\Input\Command\MouseGestureConverter.Tests.cs (1)
176Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, CultureInfo.InvariantCulture, new MouseGesture(MouseAction.LeftClick, ModifierKeys.Control), null));
System\Windows\Input\MouseActionConverter.Tests.cs (1)
153Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(MouseAction.None, destinationType: null!));
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
321Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, culture, input, destinationType));
System\Windows\Media\KnownColorsTests.cs (1)
27Assert.Throws<ArgumentNullException>(() => KnownColors.ArgbStringToKnownColor(argbString: null));
System\Windows\TextDecorationCollectionConverter.Tests.cs (1)
243Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, null, value, destinationType));
PresentationFramework (1318)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (18)
31/// <exception cref="ArgumentNullException">manager is null</exception> 58/// <exception cref="ArgumentNullException">node is null</exception> 61ArgumentNullException.ThrowIfNull(node); 100ArgumentNullException.ThrowIfNull(node); 142/// <exception cref="ArgumentNullException">node is null</exception> 145ArgumentNullException.ThrowIfNull(node); 171/// <exception cref="ArgumentNullException">locatorPart or startNode are 177ArgumentNullException.ThrowIfNull(locatorPart); 178ArgumentNullException.ThrowIfNull(startNode); 272/// <exception cref="ArgumentNullException">d is null</exception> 275ArgumentNullException.ThrowIfNull(d); 286/// <exception cref="ArgumentNullException">d is null</exception> 290ArgumentNullException.ThrowIfNull(d); 312/// <exception cref="ArgumentNullException">d is null</exception> 315ArgumentNullException.ThrowIfNull(d); 327/// <exception cref="ArgumentNullException">d is null</exception> 331ArgumentNullException.ThrowIfNull(d); 382/// <exception cref="ArgumentNullException">node is null</exception>
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (8)
45/// <exception cref="ArgumentNullException">manager is null</exception> 72/// <exception cref="ArgumentNullException">node is null</exception> 75ArgumentNullException.ThrowIfNull(node); 102/// <exception cref="ArgumentNullException">node is null</exception> 107ArgumentNullException.ThrowIfNull(node); 160/// <exception cref="ArgumentNullException">locatorPart or startNode are 166ArgumentNullException.ThrowIfNull(locatorPart); 167ArgumentNullException.ThrowIfNull(startNode);
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (12)
81/// <exception cref="ArgumentNullException">selection is null</exception> 149/// <exception cref="ArgumentNullException">selection is null</exception> 165/// <exception cref="ArgumentNullException">selection is null</exception> 180/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 185ArgumentNullException.ThrowIfNull(startNode); 186ArgumentNullException.ThrowIfNull(selection); 247/// <exception cref="ArgumentNullException">locatorPart or startNode are 254ArgumentNullException.ThrowIfNull(startNode); 284ArgumentNullException.ThrowIfNull(locatorPart); 428ArgumentNullException.ThrowIfNull(selection); 468ArgumentNullException.ThrowIfNull(selection); 490ArgumentNullException.ThrowIfNull(locatorPart);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (32)
84/// <exception cref="ArgumentNullException">if the processor or processorId are null</exception> 89ArgumentNullException.ThrowIfNull(processor); 90ArgumentNullException.ThrowIfNull(processorId); 116/// <exception cref="ArgumentNullException">node is null</exception> 121ArgumentNullException.ThrowIfNull(node); 149/// <exception cref="ArgumentNullException">locatorPart is null</exception> 153ArgumentNullException.ThrowIfNull(locatorPart); 174/// <exception cref="ArgumentNullException">processor or selectionType is null</exception> 179ArgumentNullException.ThrowIfNull(processor); 180ArgumentNullException.ThrowIfNull(selectionType); 207/// <exception cref="ArgumentNullException">selectionType is null</exception> 211ArgumentNullException.ThrowIfNull(selectionType); 235/// <exception cref="ArgumentNullException">locatorPart is null</exception> 239ArgumentNullException.ThrowIfNull(locatorPart); 255/// <exception cref="ArgumentNullException">node is null</exception> 261ArgumentNullException.ThrowIfNull(node); 331/// <exception cref="ArgumentNullException">if selection is null</exception> 337ArgumentNullException.ThrowIfNull(selection); 383/// <exception cref="ArgumentNullException">locator or startNode are null</exception> 390ArgumentNullException.ThrowIfNull(locator); 391ArgumentNullException.ThrowIfNull(startNode); 448/// <exception cref="ArgumentNullException">d is null</exception> 451ArgumentNullException.ThrowIfNull(d); 463/// <exception cref="ArgumentNullException">d is null</exception> 467ArgumentNullException.ThrowIfNull(d); 491/// <exception cref="ArgumentNullException">subtree is null</exception> 494ArgumentNullException.ThrowIfNull(subTree); 518/// <exception cref="ArgumentNullException">startNode or locator is null</exception> 521ArgumentNullException.ThrowIfNull(startNode); 522ArgumentNullException.ThrowIfNull(locator); 629/// <exception cref="ArgumentNullException">root is null</exception> 741/// <exception cref="ArgumentNullException">node is null</exception>
MS\Internal\Annotations\Anchoring\PathNode.cs (4)
30/// <exception cref="ArgumentNullException">node is null</exception> 33ArgumentNullException.ThrowIfNull(node); 138/// <exception cref="ArgumentNullException">nodes is null</exception> 141ArgumentNullException.ThrowIfNull(nodes);
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (6)
62/// <exception cref="ArgumentNullException">selection1 or selection2 are 72/// <exception cref="ArgumentNullException">selection is null</exception> 81/// <exception cref="ArgumentNullException">selection is null</exception> 90/// <exception cref="ArgumentNullException">selection is null</exception> 103/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 118/// <exception cref="ArgumentNullException">locatorPart or startNode are
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (7)
41/// <exception cref="ArgumentNullException">manager is null</exception> 44ArgumentNullException.ThrowIfNull(manager); 71/// <exception cref="ArgumentNullException">node is null</exception> 86/// <exception cref="ArgumentNullException">node is null</exception> 89ArgumentNullException.ThrowIfNull(node); 115/// <exception cref="ArgumentNullException">node is null</exception> 135/// <exception cref="ArgumentNullException">locatorPart or startNode are
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (15)
65/// <exception cref="ArgumentNullException">anchor1 or anchor2 are null</exception> 101/// <exception cref="ArgumentNullException">selection is null</exception> 105ArgumentNullException.ThrowIfNull(selection); 145/// <exception cref="ArgumentNullException">selection is null</exception> 149ArgumentNullException.ThrowIfNull(selection); 166/// <exception cref="ArgumentNullException">pointer is null</exception> 169ArgumentNullException.ThrowIfNull(pointer); 219/// <exception cref="ArgumentNullException">anchor is null</exception> 223ArgumentNullException.ThrowIfNull(selection); 240/// <exception cref="ArgumentNullException">pointer is null</exception> 243ArgumentNullException.ThrowIfNull(pointer); 264/// <exception cref="ArgumentNullException">pointer is null</exception> 267ArgumentNullException.ThrowIfNull(pointer); 287/// <exception cref="ArgumentNullException">pointer is null</exception> 290ArgumentNullException.ThrowIfNull(pointer);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (11)
65/// <exception cref="ArgumentNullException">anchor1 or anchor2 are 79/// <exception cref="ArgumentNullException">selection is null</exception> 91/// <exception cref="ArgumentNullException">selection is null</exception> 104/// <exception cref="ArgumentNullException">selection is null</exception> 121/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 126ArgumentNullException.ThrowIfNull(startNode); 127ArgumentNullException.ThrowIfNull(selection); 183/// <exception cref="ArgumentNullException">locatorPart or startNode are 188ArgumentNullException.ThrowIfNull(startNode); 189ArgumentNullException.ThrowIfNull(locatorPart); 353ArgumentNullException.ThrowIfNull(locatorPart);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (9)
67/// <exception cref="ArgumentNullException">selection is null</exception> 82/// <exception cref="ArgumentNullException">selection is null</exception> 99/// <exception cref="ArgumentNullException">selection is null</exception> 119/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 124ArgumentNullException.ThrowIfNull(startNode); 163/// <exception cref="ArgumentNullException">locatorPart or startNode are null</exception> 166ArgumentNullException.ThrowIfNull(locatorPart); 167ArgumentNullException.ThrowIfNull(startNode); 260ArgumentNullException.ThrowIfNull(selection);
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (14)
59/// <exception cref="ArgumentNullException">selection1 or selection2 are 63ArgumentNullException.ThrowIfNull(selection1); 64ArgumentNullException.ThrowIfNull(selection2); 76/// <exception cref="ArgumentNullException">selection is null</exception> 88/// <exception cref="ArgumentNullException">selection is null</exception> 92ArgumentNullException.ThrowIfNull(selection); 108/// <exception cref="ArgumentNullException">selection is null</exception> 112ArgumentNullException.ThrowIfNull(selection); 134/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 139ArgumentNullException.ThrowIfNull(startNode); 140ArgumentNullException.ThrowIfNull(selection); 155/// <exception cref="ArgumentNullException">locatorPart or startNode are 160ArgumentNullException.ThrowIfNull(startNode); 161ArgumentNullException.ThrowIfNull(locatorPart);
MS\Internal\Annotations\AnnotationObservableCollection.cs (1)
54/// <exception cref="ArgumentNullException"> list is a null reference </exception>
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (4)
38ArgumentNullException.ThrowIfNull(adornerLayer); 166ArgumentNullException.ThrowIfNull(component); 181ArgumentNullException.ThrowIfNull(component); 480ArgumentNullException.ThrowIfNull(component);
MS\Internal\Annotations\Component\HighlightComponent.cs (4)
46ArgumentNullException.ThrowIfNull(type); 263ArgumentNullException.ThrowIfNull(attachedAnnotation); 445ArgumentNullException.ThrowIfNull(selection); 507ArgumentNullException.ThrowIfNull(attachedAnnotation);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
54ArgumentNullException.ThrowIfNull(type); 231ArgumentNullException.ThrowIfNull(attachedAnnotation);
MS\Internal\Annotations\ObservableDictionary.cs (13)
59/// <exception cref="ArgumentNullException">key or val is null</exception> 63ArgumentNullException.ThrowIfNull(key); 64ArgumentNullException.ThrowIfNull(val); 138/// <exception cref="ArgumentNullException">key is null</exception> 141ArgumentNullException.ThrowIfNull(key); 150/// <exception cref="ArgumentNullException">pair is null</exception> 161/// <exception cref="ArgumentNullException">pair is null</exception> 172/// <exception cref="ArgumentNullException">pair is null</exception> 183/// <exception cref="ArgumentNullException">target is null</exception> 187ArgumentNullException.ThrowIfNull(target); 237ArgumentNullException.ThrowIfNull(key); 245ArgumentNullException.ThrowIfNull(key); 247ArgumentNullException.ThrowIfNull(value);
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (1)
106ArgumentNullException.ThrowIfNull(anchorLocator);
MS\Internal\Annotations\TextAnchor.cs (1)
101ArgumentNullException.ThrowIfNull(textPointer);
MS\Internal\AppModel\Journaling.cs (1)
532ArgumentNullException.ThrowIfNull(contentObject);
MS\Internal\Controls\ActiveXSite.cs (1)
34ArgumentNullException.ThrowIfNull(host);
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
31ArgumentNullException.ThrowIfNull(inkCanvas); 49ArgumentNullException.ThrowIfNull(transform);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
905ArgumentNullException.ThrowIfNull(attachedAnnotation); 929ArgumentNullException.ThrowIfNull(attachedAnnotation);
MS\Internal\Controls\StickyNote\StickyNoteHelper.cs (1)
56ArgumentNullException.ThrowIfNull(helper);
MS\Internal\Controls\ValidationRuleCollection.cs (2)
40ArgumentNullException.ThrowIfNull(item); 50ArgumentNullException.ThrowIfNull(item);
MS\Internal\Data\BindingCollection.cs (2)
79ArgumentNullException.ThrowIfNull(item); 93ArgumentNullException.ThrowIfNull(item);
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
48ArgumentNullException.ThrowIfNull(args);
MS\Internal\Data\ObjectRef.cs (7)
119/// <exception cref="ArgumentNullException"> name is a null reference </exception> 122ArgumentNullException.ThrowIfNull(name); 138ArgumentNullException.ThrowIfNull(d); 311/// <exception cref="ArgumentNullException"> relativeSource is a null reference </exception> 314ArgumentNullException.ThrowIfNull(relativeSource); 345/// <exception cref="ArgumentNullException"> d is a null reference </exception> 356/// <exception cref="ArgumentNullException"> d is a null reference </exception>
MS\Internal\Data\RBTree.cs (1)
567ArgumentNullException.ThrowIfNull(array);
MS\Internal\Data\StaticPropertyChangedEventManager.cs (4)
45ArgumentNullException.ThrowIfNull(type); 46ArgumentNullException.ThrowIfNull(handler); 56ArgumentNullException.ThrowIfNull(type); 57ArgumentNullException.ThrowIfNull(handler);
MS\Internal\Data\ValueChangedEventManager.cs (6)
63ArgumentNullException.ThrowIfNull(source); 64ArgumentNullException.ThrowIfNull(listener); 74ArgumentNullException.ThrowIfNull(source); 75ArgumentNullException.ThrowIfNull(listener); 85ArgumentNullException.ThrowIfNull(handler); 97ArgumentNullException.ThrowIfNull(handler);
MS\Internal\Data\XmlNodeChangedEventManager.cs (6)
42ArgumentNullException.ThrowIfNull(source); 43ArgumentNullException.ThrowIfNull(listener); 53ArgumentNullException.ThrowIfNull(source); 54ArgumentNullException.ThrowIfNull(listener); 64ArgumentNullException.ThrowIfNull(handler); 74ArgumentNullException.ThrowIfNull(handler);
MS\Internal\Documents\ContentElementCollection.cs (10)
53/// <exception cref="ArgumentNullException"> 66ArgumentNullException.ThrowIfNull(array); 86/// <exception cref="ArgumentNullException"> 102ArgumentNullException.ThrowIfNull(array); 141/// <exception cref="ArgumentNullException"> 204/// <exception cref="ArgumentNullException"> 224/// <exception cref="ArgumentNullException"> 403ArgumentNullException.ThrowIfNull(value); 449ArgumentNullException.ThrowIfNull(value); 503ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\DocumentGrid.cs (2)
1706ArgumentNullException.ThrowIfNull(e); 2674ArgumentNullException.ThrowIfNull(row);
MS\Internal\Documents\FlowDocumentPaginator.cs (4)
215ArgumentNullException.ThrowIfNull(contentPosition); 278ArgumentNullException.ThrowIfNull(contentPosition); 356ArgumentNullException.ThrowIfNull(page); 415ArgumentNullException.ThrowIfNull(o);
MS\Internal\Documents\ParentUndoUnit.cs (6)
55/// <exception cref="ArgumentNullException"> 62ArgumentNullException.ThrowIfNull(newUnit); 103/// <exception cref="ArgumentNullException"> 110ArgumentNullException.ThrowIfNull(unit); 200/// <exception cref="ArgumentNullException"> 212ArgumentNullException.ThrowIfNull(unit);
MS\Internal\Documents\TableColumnCollectionInternal.cs (7)
26/// <exception cref="ArgumentNullException"> 36ArgumentNullException.ThrowIfNull(item); 79/// <exception cref="ArgumentNullException"> 101ArgumentNullException.ThrowIfNull(item); 193/// <exception cref="ArgumentNullException"> 208ArgumentNullException.ThrowIfNull(item); 329ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (7)
31/// <exception cref="ArgumentNullException"> 41ArgumentNullException.ThrowIfNull(item); 84/// <exception cref="ArgumentNullException"> 106ArgumentNullException.ThrowIfNull(item); 131/// <exception cref="ArgumentNullException"> 146ArgumentNullException.ThrowIfNull(item); 416ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\TextParagraphView.cs (6)
89ArgumentNullException.ThrowIfNull(position); 108ArgumentNullException.ThrowIfNull(startPosition); 109ArgumentNullException.ThrowIfNull(endPosition); 133ArgumentNullException.ThrowIfNull(position); 262ArgumentNullException.ThrowIfNull(position); 281ArgumentNullException.ThrowIfNull(position);
MS\Internal\Documents\UndoManager.cs (11)
95ArgumentNullException.ThrowIfNull(scope); 96ArgumentNullException.ThrowIfNull(undoManager); 130ArgumentNullException.ThrowIfNull(scope); 181/// <exception cref="ArgumentNullException"> 193ArgumentNullException.ThrowIfNull(unit); 232/// <exception cref="ArgumentNullException"> 242ArgumentNullException.ThrowIfNull(unit); 308/// <exception cref="ArgumentNullException"> 318ArgumentNullException.ThrowIfNull(unit); 399/// <exception cref="ArgumentNullException"> 411ArgumentNullException.ThrowIfNull(unit);
MS\Internal\Ink\ClipboardProcessor.cs (1)
52ArgumentNullException.ThrowIfNull(inkCanvas);
MS\Internal\Ink\EditBehavior.cs (2)
39ArgumentNullException.ThrowIfNull(inkCanvas); 40ArgumentNullException.ThrowIfNull(editingCoordinator);
MS\Internal\Ink\EditingCoordinator.cs (1)
37ArgumentNullException.ThrowIfNull(inkCanvas);
MS\Internal\Ink\InkCanvasSelection.cs (1)
40ArgumentNullException.ThrowIfNull(inkCanvas);
MS\Internal\Ink\LassoHelper.cs (1)
67ArgumentNullException.ThrowIfNull(points);
MS\Internal\IO\Packaging\ContentDescriptor.cs (2)
23ArgumentNullException.ThrowIfNull(xmlNamespace); 24ArgumentNullException.ThrowIfNull(baseName);
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (1)
58ArgumentNullException.ThrowIfNull(coreProperties);
MS\Internal\IO\Packaging\EncryptedPackageFilter.cs (1)
33ArgumentNullException.ThrowIfNull(encryptedPackage);
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
46ArgumentNullException.ThrowIfNull(managedFilter);
MS\Internal\IO\Packaging\ManagedFilter.cs (1)
67ArgumentNullException.ThrowIfNull(value);
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
28ArgumentNullException.ThrowIfNull(ioStream);
MS\Internal\IO\Packaging\PackageFilter.cs (1)
57ArgumentNullException.ThrowIfNull(package);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
62ArgumentNullException.ThrowIfNull(oleStream);
MS\Internal\IO\Packaging\XpsFilter.cs (1)
520ArgumentNullException.ThrowIfNull(stream);
MS\Internal\ListOfObject.cs (1)
17ArgumentNullException.ThrowIfNull(list);
MS\Internal\Markup\StaticExtension.cs (1)
78ArgumentNullException.ThrowIfNull(serviceProvider);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
1139ArgumentNullException.ThrowIfNull(serviceType);
MS\Internal\WeakDictionary.cs (1)
293ArgumentNullException.ThrowIfNull(array);
MS\Internal\WeakHashSet.cs (1)
40ArgumentNullException.ThrowIfNull(array);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
55ArgumentNullException.ThrowIfNull(uri);
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (6)
104Contract.Requires<ArgumentNullException>(eventSource != null, nameof(eventSource)); 143Contract.Requires<ArgumentNullException>(parentActivity != null, nameof(parentActivity)); 176Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 207Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 237Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 256Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName));
System\ComponentModel\DesignerProperties.cs (2)
68ArgumentNullException.ThrowIfNull(element); 78ArgumentNullException.ThrowIfNull(element);
System\Windows\Annotations\Annotation.cs (8)
84/// <exception cref="ArgumentNullException">annotationType is null</exception> 88ArgumentNullException.ThrowIfNull(annotationType); 118/// <exception cref="ArgumentNullException">annotationType is null</exception> 124ArgumentNullException.ThrowIfNull(annotationType); 176/// <exception cref="ArgumentNullException">writer is null</exception> 179ArgumentNullException.ThrowIfNull(writer); 262/// <exception cref="ArgumentNullException">reader is null</exception> 265ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (2)
46/// <exception cref="ArgumentNullException">annotation is null</exception> 53ArgumentNullException.ThrowIfNull(annotation);
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
57ArgumentNullException.ThrowIfNull(attachedAnnotation);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
364ArgumentNullException.ThrowIfNull(dpv);
System\Windows\Annotations\AnnotationHelper.cs (11)
39/// <exception cref="ArgumentNullException">service is null</exception> 69/// <exception cref="ArgumentNullException">service is null</exception> 85/// <exception cref="ArgumentNullException">service is null</exception> 102/// <exception cref="ArgumentNullException">service is null</exception> 125/// <exception cref="ArgumentNullException">service is null</exception> 148/// <exception cref="ArgumentNullException">service is null</exception> 170/// <exception cref="ArgumentNullException">service or annotation is null</exception> 176ArgumentNullException.ThrowIfNull(annotation); 483/// <exception cref="ArgumentNullException">service is null</exception> 1076/// <exception cref="ArgumentNullException">service is null</exception> 1080ArgumentNullException.ThrowIfNull(service);
System\Windows\Annotations\AnnotationResource.cs (6)
55/// <exception cref="ArgumentNullException">name is null</exception> 59ArgumentNullException.ThrowIfNull(name); 107/// <exception cref="ArgumentNullException">writer is null</exception> 110ArgumentNullException.ThrowIfNull(writer); 156/// <exception cref="ArgumentNullException">reader is null</exception> 159ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (2)
46/// <exception cref="ArgumentNullException">annotation or action is null</exception> 53ArgumentNullException.ThrowIfNull(annotation);
System\Windows\Annotations\AnnotationService.cs (34)
87/// <exception cref="ArgumentNullException">viewer is null</exception> 90ArgumentNullException.ThrowIfNull(viewer); 100/// <exception cref="ArgumentNullException">viewer is null</exception> 103ArgumentNullException.ThrowIfNull(viewer); 113/// <exception cref="ArgumentNullException">viewer is null</exception> 116ArgumentNullException.ThrowIfNull(viewer); 127/// <exception cref="ArgumentNullException">root is null</exception> 131ArgumentNullException.ThrowIfNull(root); 153/// <exception cref="ArgumentNullException">store is null</exception> 160ArgumentNullException.ThrowIfNull(annotationStore); 284/// <exception cref="ArgumentNullException">viewer is null</exception> 287ArgumentNullException.ThrowIfNull(viewer); 299/// <exception cref="ArgumentNullException">reader is null</exception> 302ArgumentNullException.ThrowIfNull(reader); 314/// <exception cref="ArgumentNullException">viewer is null</exception> 317ArgumentNullException.ThrowIfNull(viewer); 340/// <exception cref="ArgumentNullException">element is null</exception> 350ArgumentNullException.ThrowIfNull(element); 380/// <exception cref="ArgumentNullException">element is null</exception> 385ArgumentNullException.ThrowIfNull(element); 518/// <exception cref="ArgumentNullException">d is null</exception> 521ArgumentNullException.ThrowIfNull(d); 541ArgumentNullException.ThrowIfNull(d); 563/// <exception cref="ArgumentNullException">d is null</exception> 566ArgumentNullException.ThrowIfNull(d); 567ArgumentNullException.ThrowIfNull(id); 579/// <exception cref="ArgumentNullException">d is null</exception> 582ArgumentNullException.ThrowIfNull(d); 601/// <exception cref="ArgumentNullException">d is null</exception> 604ArgumentNullException.ThrowIfNull(d); 605ArgumentNullException.ThrowIfNull(id); 617/// <exception cref="ArgumentNullException">d is null</exception> 620ArgumentNullException.ThrowIfNull(d); 857/// <exception cref="ArgumentNullException">element is null</exception>
System\Windows\Annotations\LocatorGroup.cs (4)
93/// <exception cref="ArgumentNullException">writer is null</exception> 96ArgumentNullException.ThrowIfNull(writer); 119/// <exception cref="ArgumentNullException">reader is null</exception> 122ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\LocatorPart.cs (2)
41/// <exception cref="ArgumentNullException">partType is null</exception> 45ArgumentNullException.ThrowIfNull(partType);
System\Windows\Annotations\LocatorPartList.cs (6)
62/// <exception cref="ArgumentNullException">locator is null</exception> 65ArgumentNullException.ThrowIfNull(locator); 136/// <exception cref="ArgumentNullException">writer is null</exception> 139ArgumentNullException.ThrowIfNull(writer); 187/// <exception cref="ArgumentNullException">reader is null</exception> 190ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
58/// <exception cref="ArgumentNullException">newAnnotation is null</exception>
System\Windows\Annotations\Storage\StoreContentChangedEventArgs.cs (1)
63ArgumentNullException.ThrowIfNull(annotation);
System\Windows\Annotations\Storage\XmlStreamStore.cs (9)
59/// <exception cref="ArgumentNullException">stream is null</exception> 64ArgumentNullException.ThrowIfNull(stream); 85/// <exception cref="ArgumentNullException">stream is null</exception> 92ArgumentNullException.ThrowIfNull(stream); 112/// <exception cref="ArgumentNullException">newAnnotation is null</exception> 118ArgumentNullException.ThrowIfNull(newAnnotation); 229ArgumentNullException.ThrowIfNull(anchorLocator); 389ArgumentNullException.ThrowIfNull(name); 539/// <exception cref="ArgumentNullException">queryExpression is null</exception>
System\Windows\Application.cs (7)
348ArgumentNullException.ThrowIfNull(component); 349ArgumentNullException.ThrowIfNull(resourceLocator); 439ArgumentNullException.ThrowIfNull(resourceLocator); 576ArgumentNullException.ThrowIfNull(uriResource); 608ArgumentNullException.ThrowIfNull(uriContent); 637ArgumentNullException.ThrowIfNull(uriRemote); 1031ArgumentNullException.ThrowIfNull(value);
System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (2)
98ArgumentNullException.ThrowIfNull(d); 99ArgumentNullException.ThrowIfNull(dp);
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
142ArgumentNullException.ThrowIfNull(val);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
26ArgumentNullException.ThrowIfNull(owner); 416ArgumentNullException.ThrowIfNull(cellProviders); 438ArgumentNullException.ThrowIfNull(itemProviders);
System\Windows\Automation\Peers\DataGridCellAutomationPeer.cs (1)
24ArgumentNullException.ThrowIfNull(owner);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
25ArgumentNullException.ThrowIfNull(item); 26ArgumentNullException.ThrowIfNull(dataGridColumn);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
27ArgumentNullException.ThrowIfNull(item); 28ArgumentNullException.ThrowIfNull(dataGridPeer);
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
23ArgumentNullException.ThrowIfNull(owner);
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
25ArgumentNullException.ThrowIfNull(owningCalendar);
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
124ArgumentNullException.ThrowIfNull(value);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
95ArgumentNullException.ThrowIfNull(value);
System\Windows\ColorConvertedBitmapExtension.cs (1)
37ArgumentNullException.ThrowIfNull(image);
System\Windows\ComponentResourceKey.cs (3)
29ArgumentNullException.ThrowIfNull(typeInTargetAssembly); 30ArgumentNullException.ThrowIfNull(resourceId); 51ArgumentNullException.ThrowIfNull(value);
System\Windows\ComponentResourceKeyConverter.cs (3)
31ArgumentNullException.ThrowIfNull(sourceType); 51ArgumentNullException.ThrowIfNull(destinationType); 102ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Condition.cs (5)
47ArgumentNullException.ThrowIfNull(conditionProperty); 65ArgumentNullException.ThrowIfNull(binding); 260ArgumentNullException.ThrowIfNull(targetObject); 261ArgumentNullException.ThrowIfNull(eventArgs); 279ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\ConditionCollection.cs (1)
107ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\Canvas.cs (8)
74ArgumentNullException.ThrowIfNull(element); 86ArgumentNullException.ThrowIfNull(element); 100ArgumentNullException.ThrowIfNull(element); 112ArgumentNullException.ThrowIfNull(element); 126ArgumentNullException.ThrowIfNull(element); 138ArgumentNullException.ThrowIfNull(element); 152ArgumentNullException.ThrowIfNull(element); 164ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ColumnDefinition.cs (4)
75ArgumentNullException.ThrowIfNull(array); 101ArgumentNullException.ThrowIfNull(array); 587ArgumentNullException.ThrowIfNull(value); 608ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ColumnDefinitionCollectionConverter.cs (1)
34/// <exception cref="ArgumentNullException">
System\Windows\Controls\ContextMenuService.cs (18)
37ArgumentNullException.ThrowIfNull(element); 62ArgumentNullException.ThrowIfNull(element); 84ArgumentNullException.ThrowIfNull(element); 95ArgumentNullException.ThrowIfNull(element); 117ArgumentNullException.ThrowIfNull(element); 128ArgumentNullException.ThrowIfNull(element); 148ArgumentNullException.ThrowIfNull(element); 159ArgumentNullException.ThrowIfNull(element); 180ArgumentNullException.ThrowIfNull(element); 191ArgumentNullException.ThrowIfNull(element); 212ArgumentNullException.ThrowIfNull(element); 223ArgumentNullException.ThrowIfNull(element); 244ArgumentNullException.ThrowIfNull(element); 255ArgumentNullException.ThrowIfNull(element); 276ArgumentNullException.ThrowIfNull(element); 287ArgumentNullException.ThrowIfNull(element); 308ArgumentNullException.ThrowIfNull(element); 319ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\DataGrid.cs (2)
1527ArgumentNullException.ThrowIfNull(item); 7806ArgumentNullException.ThrowIfNull(itemProperties);
System\Windows\Controls\DataGridCellInfo.cs (2)
22ArgumentNullException.ThrowIfNull(column); 43ArgumentNullException.ThrowIfNull(cell);
System\Windows\Controls\DataGridColumn.cs (2)
614ArgumentNullException.ThrowIfNull(dataItem); 635ArgumentNullException.ThrowIfNull(dataGridRow);
System\Windows\Controls\DataGridLengthConverter.cs (3)
60/// <exception cref="ArgumentNullException"> 115/// <exception cref="ArgumentNullException"> 128ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Controls\DockPanel.cs (2)
100ArgumentNullException.ThrowIfNull(element); 113ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\DocumentViewer.cs (3)
1892ArgumentNullException.ThrowIfNull(data); 1910catch (ArgumentNullException) 1943ArgumentNullException.ThrowIfNull(data);
System\Windows\Controls\ExceptionRoutedEventArgs.cs (1)
22ArgumentNullException.ThrowIfNull(errorException);
System\Windows\Controls\FlowDocumentReader.cs (1)
1913ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1796ArgumentNullException.ThrowIfNull(value); 1836ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Controls\Grid.cs (11)
68ArgumentNullException.ThrowIfNull(value); 124ArgumentNullException.ThrowIfNull(element); 137ArgumentNullException.ThrowIfNull(element); 149ArgumentNullException.ThrowIfNull(element); 162ArgumentNullException.ThrowIfNull(element); 174ArgumentNullException.ThrowIfNull(element); 187ArgumentNullException.ThrowIfNull(element); 199ArgumentNullException.ThrowIfNull(element); 212ArgumentNullException.ThrowIfNull(element); 224ArgumentNullException.ThrowIfNull(element); 236ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\GridView.cs (2)
168ArgumentNullException.ThrowIfNull(element); 179ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\GridViewColumnCollection.cs (1)
427ArgumentNullException.ThrowIfNull(column);
System\Windows\Controls\Image.cs (6)
539ArgumentNullException.ThrowIfNull(handler); 549ArgumentNullException.ThrowIfNull(handler); 663ArgumentNullException.ThrowIfNull(handler); 673ArgumentNullException.ThrowIfNull(handler); 787ArgumentNullException.ThrowIfNull(handler); 797ArgumentNullException.ThrowIfNull(handler);
System\Windows\Controls\InkCanvas.cs (27)
435ArgumentNullException.ThrowIfNull(element); 447ArgumentNullException.ThrowIfNull(element); 469ArgumentNullException.ThrowIfNull(element); 481ArgumentNullException.ThrowIfNull(element); 503ArgumentNullException.ThrowIfNull(element); 515ArgumentNullException.ThrowIfNull(element); 537ArgumentNullException.ThrowIfNull(element); 549ArgumentNullException.ThrowIfNull(element); 768ArgumentNullException.ThrowIfNull(value); 963ArgumentNullException.ThrowIfNull(value); 986ArgumentNullException.ThrowIfNull(value); 1028ArgumentNullException.ThrowIfNull(e); 1159ArgumentNullException.ThrowIfNull(e); 1178ArgumentNullException.ThrowIfNull(e); 1199ArgumentNullException.ThrowIfNull(e); 1249ArgumentNullException.ThrowIfNull(e); 1306ArgumentNullException.ThrowIfNull(e); 1360ArgumentNullException.ThrowIfNull(e); 1392ArgumentNullException.ThrowIfNull(e); 1423ArgumentNullException.ThrowIfNull(e); 1459ArgumentNullException.ThrowIfNull(e); 1508ArgumentNullException.ThrowIfNull(e); 1535ArgumentNullException.ThrowIfNull(e); 1565ArgumentNullException.ThrowIfNull(e); 1599ArgumentNullException.ThrowIfNull(e); 1629ArgumentNullException.ThrowIfNull(e); 1911ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ItemCollection.cs (1)
284ArgumentNullException.ThrowIfNull(array);
System\Windows\Controls\ItemContainerGenerator.cs (2)
565ArgumentNullException.ThrowIfNull(container); 612ArgumentNullException.ThrowIfNull(container);
System\Windows\Controls\ItemsControl.cs (2)
1078ArgumentNullException.ThrowIfNull(element); 1176ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
150ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\Controls\Label.cs (1)
146ArgumentNullException.ThrowIfNull(o);
System\Windows\Controls\MediaScriptCommandRoutedEventArgs.cs (2)
21ArgumentNullException.ThrowIfNull(parameterType); 23ArgumentNullException.ThrowIfNull(parameterValue);
System\Windows\Controls\MultipleCopiesCollection.cs (2)
240ArgumentNullException.ThrowIfNull(value); 247ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\Panel.cs (3)
81ArgumentNullException.ThrowIfNull(value); 916ArgumentNullException.ThrowIfNull(element); 928ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
511ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (5)
322ArgumentNullException.ThrowIfNull(element); 333ArgumentNullException.ThrowIfNull(element); 485ArgumentNullException.ThrowIfNull(element); 1697ArgumentNullException.ThrowIfNull(value); 1739ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (6)
382ArgumentNullException.ThrowIfNull(source); 383ArgumentNullException.ThrowIfNull(listener); 393ArgumentNullException.ThrowIfNull(source); 394ArgumentNullException.ThrowIfNull(listener); 404ArgumentNullException.ThrowIfNull(handler); 414ArgumentNullException.ThrowIfNull(handler);
System\Windows\Controls\Primitives\LayoutInformation.cs (2)
20ArgumentNullException.ThrowIfNull(element); 55ArgumentNullException.ThrowIfNull(dispatcher);
System\Windows\Controls\Primitives\Popup.cs (2)
881ArgumentNullException.ThrowIfNull(popup); 882ArgumentNullException.ThrowIfNull(child);
System\Windows\Controls\Primitives\Selector.cs (3)
184ArgumentNullException.ThrowIfNull(element); 208ArgumentNullException.ThrowIfNull(element); 221ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1041ArgumentNullException.ThrowIfNull(e); 1515ArgumentNullException.ThrowIfNull(position);
System\Windows\Controls\PrintDialog.cs (2)
342ArgumentNullException.ThrowIfNull(visual); 371ArgumentNullException.ThrowIfNull(documentPaginator);
System\Windows\Controls\RichTextBox.cs (4)
149ArgumentNullException.ThrowIfNull(value); 174ArgumentNullException.ThrowIfNull(text); 354ArgumentNullException.ThrowIfNull(value); 573ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\RowDefinition.cs (4)
70ArgumentNullException.ThrowIfNull(array); 96ArgumentNullException.ThrowIfNull(array); 582ArgumentNullException.ThrowIfNull(value); 603ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\RowDefinitionCollectionConverter.cs (1)
34/// <exception cref="ArgumentNullException">
System\Windows\Controls\ScrollViewer.cs (14)
452ArgumentNullException.ThrowIfNull(element); 462ArgumentNullException.ThrowIfNull(element); 486ArgumentNullException.ThrowIfNull(element); 496ArgumentNullException.ThrowIfNull(element); 520ArgumentNullException.ThrowIfNull(element); 530ArgumentNullException.ThrowIfNull(element); 784ArgumentNullException.ThrowIfNull(element); 796ArgumentNullException.ThrowIfNull(element); 1435ArgumentNullException.ThrowIfNull(element); 1445ArgumentNullException.ThrowIfNull(element); 1508ArgumentNullException.ThrowIfNull(element); 1518ArgumentNullException.ThrowIfNull(element); 1548ArgumentNullException.ThrowIfNull(element); 1558ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (4)
21ArgumentNullException.ThrowIfNull(addedCells); 22ArgumentNullException.ThrowIfNull(removedCells); 35ArgumentNullException.ThrowIfNull(addedCells); 36ArgumentNullException.ThrowIfNull(removedCells);
System\Windows\Controls\SelectionChangedEventArgs.cs (3)
34ArgumentNullException.ThrowIfNull(id); 35ArgumentNullException.ThrowIfNull(removedItems); 36ArgumentNullException.ThrowIfNull(addedItems);
System\Windows\Controls\SpellCheck.cs (4)
68ArgumentNullException.ThrowIfNull(textBoxBase); 78ArgumentNullException.ThrowIfNull(textBoxBase); 123ArgumentNullException.ThrowIfNull(textBoxBase); 162ArgumentNullException.ThrowIfNull(textBoxBase);
System\Windows\Controls\TextAdaptor.cs (1)
566ArgumentNullException.ThrowIfNull(childElementProvider);
System\Windows\Controls\TextBlock.cs (27)
121ArgumentNullException.ThrowIfNull(value); 174ArgumentNullException.ThrowIfNull(text); 267ArgumentNullException.ThrowIfNull(serviceType); 339ArgumentNullException.ThrowIfNull(inline); 539ArgumentNullException.ThrowIfNull(element); 550ArgumentNullException.ThrowIfNull(element); 639ArgumentNullException.ThrowIfNull(element); 650ArgumentNullException.ThrowIfNull(element); 678ArgumentNullException.ThrowIfNull(element); 689ArgumentNullException.ThrowIfNull(element); 717ArgumentNullException.ThrowIfNull(element); 728ArgumentNullException.ThrowIfNull(element); 756ArgumentNullException.ThrowIfNull(element); 767ArgumentNullException.ThrowIfNull(element); 798ArgumentNullException.ThrowIfNull(element); 810ArgumentNullException.ThrowIfNull(element); 839ArgumentNullException.ThrowIfNull(element); 850ArgumentNullException.ThrowIfNull(element); 938ArgumentNullException.ThrowIfNull(element); 950ArgumentNullException.ThrowIfNull(element); 977ArgumentNullException.ThrowIfNull(element); 988ArgumentNullException.ThrowIfNull(element); 1034ArgumentNullException.ThrowIfNull(element); 1045ArgumentNullException.ThrowIfNull(element); 1479ArgumentNullException.ThrowIfNull(ctx); 1627ArgumentNullException.ThrowIfNull(hitTestParameters); 1725ArgumentNullException.ThrowIfNull(child);
System\Windows\Controls\TextBox.cs (2)
127ArgumentNullException.ThrowIfNull(value); 141ArgumentNullException.ThrowIfNull(text);
System\Windows\Controls\TextChangedEventArgs.cs (1)
70ArgumentNullException.ThrowIfNull(id);
System\Windows\Controls\TextRangeAdaptor.cs (5)
1589ArgumentNullException.ThrowIfNull(range); 1611ArgumentNullException.ThrowIfNull(targetRange); 1657ArgumentNullException.ThrowIfNull(value); 1748ArgumentNullException.ThrowIfNull(text); 2004ArgumentNullException.ThrowIfNull(targetRange);
System\Windows\Controls\TextSearch.cs (6)
37ArgumentNullException.ThrowIfNull(itemsControl); 79ArgumentNullException.ThrowIfNull(element); 92ArgumentNullException.ThrowIfNull(element); 111ArgumentNullException.ThrowIfNull(element); 124ArgumentNullException.ThrowIfNull(element); 742ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ToolBar.cs (3)
358ArgumentNullException.ThrowIfNull(element); 418ArgumentNullException.ThrowIfNull(element); 430ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ToolBarTray.cs (3)
150ArgumentNullException.ThrowIfNull(element); 161ArgumentNullException.ThrowIfNull(element); 267ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ToolTipService.cs (28)
36ArgumentNullException.ThrowIfNull(element); 53ArgumentNullException.ThrowIfNull(element); 75ArgumentNullException.ThrowIfNull(element); 86ArgumentNullException.ThrowIfNull(element); 108ArgumentNullException.ThrowIfNull(element); 119ArgumentNullException.ThrowIfNull(element); 140ArgumentNullException.ThrowIfNull(element); 151ArgumentNullException.ThrowIfNull(element); 172ArgumentNullException.ThrowIfNull(element); 183ArgumentNullException.ThrowIfNull(element); 204ArgumentNullException.ThrowIfNull(element); 215ArgumentNullException.ThrowIfNull(element); 236ArgumentNullException.ThrowIfNull(element); 247ArgumentNullException.ThrowIfNull(element); 268ArgumentNullException.ThrowIfNull(element); 279ArgumentNullException.ThrowIfNull(element); 305ArgumentNullException.ThrowIfNull(element); 316ArgumentNullException.ThrowIfNull(element); 337ArgumentNullException.ThrowIfNull(element); 348ArgumentNullException.ThrowIfNull(element); 375ArgumentNullException.ThrowIfNull(element); 386ArgumentNullException.ThrowIfNull(element); 408ArgumentNullException.ThrowIfNull(element); 419ArgumentNullException.ThrowIfNull(element); 441ArgumentNullException.ThrowIfNull(element); 452ArgumentNullException.ThrowIfNull(element); 474ArgumentNullException.ThrowIfNull(element); 485ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\Validation.cs (19)
81/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 84ArgumentNullException.ThrowIfNull(element); 152/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 155ArgumentNullException.ThrowIfNull(element); 179/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 183ArgumentNullException.ThrowIfNull(element); 189/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 192ArgumentNullException.ThrowIfNull(element); 223/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 227ArgumentNullException.ThrowIfNull(element); 233/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 236ArgumentNullException.ThrowIfNull(element); 286/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 290ArgumentNullException.ThrowIfNull(element); 296/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 299ArgumentNullException.ThrowIfNull(element); 480ArgumentNullException.ThrowIfNull(bindingExpression); 481ArgumentNullException.ThrowIfNull(validationError); 492ArgumentNullException.ThrowIfNull(bindingExpression);
System\Windows\Controls\ValidationError.cs (2)
29ArgumentNullException.ThrowIfNull(ruleInError); 30ArgumentNullException.ThrowIfNull(bindingInError);
System\Windows\Controls\ViewPort3D.cs (1)
226ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (3)
83/// <exception cref="ArgumentNullException"> 117/// <exception cref="ArgumentNullException"> 130ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Controls\VirtualizingPanel.cs (15)
64ArgumentNullException.ThrowIfNull(element); 76ArgumentNullException.ThrowIfNull(element); 98ArgumentNullException.ThrowIfNull(element); 110ArgumentNullException.ThrowIfNull(element); 130ArgumentNullException.ThrowIfNull(element); 142ArgumentNullException.ThrowIfNull(element); 161ArgumentNullException.ThrowIfNull(element); 172ArgumentNullException.ThrowIfNull(element); 196ArgumentNullException.ThrowIfNull(element); 209ArgumentNullException.ThrowIfNull(element); 230ArgumentNullException.ThrowIfNull(element); 242ArgumentNullException.ThrowIfNull(element); 262ArgumentNullException.ThrowIfNull(element); 274ArgumentNullException.ThrowIfNull(element); 294ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
10975ArgumentNullException.ThrowIfNull(child);
System\Windows\Controls\WebBrowser.cs (1)
154ArgumentNullException.ThrowIfNull(stream);
System\Windows\ControlTemplate.cs (1)
61ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\CornerRadiusConverter.cs (4)
78/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 117ArgumentNullException.ThrowIfNull(value); 119ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Data\Binding.cs (4)
158/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 161ArgumentNullException.ThrowIfNull(target); 167/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 170ArgumentNullException.ThrowIfNull(target);
System\Windows\Data\BindingExpression.cs (1)
208ArgumentNullException.ThrowIfNull(d);
System\Windows\Data\BindingExpressionBase.cs (3)
123ArgumentNullException.ThrowIfNull(binding); 360ArgumentNullException.ThrowIfNull(d); 361ArgumentNullException.ThrowIfNull(dp);
System\Windows\Data\BindingGroup.cs (2)
1970ArgumentNullException.ThrowIfNull(item); 1981ArgumentNullException.ThrowIfNull(item);
System\Windows\Data\BindingOperations.cs (27)
60/// <exception cref="ArgumentNullException"> target and dp and binding cannot be null </exception> 63ArgumentNullException.ThrowIfNull(target); 64ArgumentNullException.ThrowIfNull(dp); 65ArgumentNullException.ThrowIfNull(binding); 87/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 103/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 118/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 133/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 148/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 151ArgumentNullException.ThrowIfNull(target); 152ArgumentNullException.ThrowIfNull(dp); 168/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 189/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 204/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 221/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 224ArgumentNullException.ThrowIfNull(target); 225ArgumentNullException.ThrowIfNull(dp); 236/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 239ArgumentNullException.ThrowIfNull(target); 265/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 268ArgumentNullException.ThrowIfNull(target); 269ArgumentNullException.ThrowIfNull(dp); 293ArgumentNullException.ThrowIfNull(collection); 294ArgumentNullException.ThrowIfNull(synchronizationCallback); 309ArgumentNullException.ThrowIfNull(collection); 310ArgumentNullException.ThrowIfNull(lockObject); 324ArgumentNullException.ThrowIfNull(collection);
System\Windows\Data\CollectionView.cs (4)
55ArgumentNullException.ThrowIfNull(collection); 164ArgumentNullException.ThrowIfNull(value); 910ArgumentNullException.ThrowIfNull(args); 1022ArgumentNullException.ThrowIfNull(args);
System\Windows\Data\DataChangedEventManager.cs (5)
39ArgumentNullException.ThrowIfNull(source); 40ArgumentNullException.ThrowIfNull(listener); 54ArgumentNullException.ThrowIfNull(listener); 64ArgumentNullException.ThrowIfNull(handler); 74ArgumentNullException.ThrowIfNull(handler);
System\Windows\Data\ListCollectionView.cs (1)
1656ArgumentNullException.ThrowIfNull(args);
System\Windows\Data\ValueConversionAttribute.cs (2)
51ArgumentNullException.ThrowIfNull(sourceType); 52ArgumentNullException.ThrowIfNull(targetType);
System\Windows\Data\XmlNamespaceMappingCollection.cs (8)
70ArgumentNullException.ThrowIfNull(text); 82/// <exception cref="ArgumentNullException">mapping is null</exception> 85ArgumentNullException.ThrowIfNull(mapping); 116/// <exception cref="ArgumentNullException">mapping is null</exception> 119ArgumentNullException.ThrowIfNull(mapping); 132ArgumentNullException.ThrowIfNull(array); 151/// <exception cref="ArgumentNullException">mapping is null</exception> 154ArgumentNullException.ThrowIfNull(mapping);
System\Windows\DataTemplate.cs (1)
187ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\DataTrigger.cs (2)
199ArgumentNullException.ThrowIfNull(targetObject); 200ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\DeferrableContentConverter.cs (1)
29ArgumentNullException.ThrowIfNull(context);
System\Windows\DependencyPropertyHelper.cs (4)
169ArgumentNullException.ThrowIfNull(dependencyObject); 170ArgumentNullException.ThrowIfNull(dependencyProperty); 195ArgumentNullException.ThrowIfNull(elementInTemplate); 196ArgumentNullException.ThrowIfNull(dependencyProperty);
System\Windows\Documents\Adorner.cs (1)
43ArgumentNullException.ThrowIfNull(adornedElement);
System\Windows\Documents\AdornerLayer.cs (7)
147ArgumentNullException.ThrowIfNull(context); 179ArgumentNullException.ThrowIfNull(adorner); 230ArgumentNullException.ThrowIfNull(element); 255ArgumentNullException.ThrowIfNull(element); 309ArgumentNullException.ThrowIfNull(visual); 510ArgumentNullException.ThrowIfNull(adorner); 677ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\Block.cs (8)
102ArgumentNullException.ThrowIfNull(element); 113ArgumentNullException.ThrowIfNull(element); 234ArgumentNullException.ThrowIfNull(element); 245ArgumentNullException.ThrowIfNull(element); 295ArgumentNullException.ThrowIfNull(element); 307ArgumentNullException.ThrowIfNull(element); 341ArgumentNullException.ThrowIfNull(element); 352ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\BlockUIContainer.cs (1)
50ArgumentNullException.ThrowIfNull(uiElement);
System\Windows\Documents\DocumentSequence.cs (8)
60ArgumentNullException.ThrowIfNull(serviceType); 93ArgumentNullException.ThrowIfNull(value); 269ArgumentNullException.ThrowIfNull(document); 294ArgumentNullException.ThrowIfNull(userState); 308ArgumentNullException.ThrowIfNull(contentPosition); 340ArgumentNullException.ThrowIfNull(userState); 358ArgumentNullException.ThrowIfNull(o); 1075ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
342ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
655ArgumentNullException.ThrowIfNull(textBuffer); 729ArgumentNullException.ThrowIfNull(property); 740ArgumentNullException.ThrowIfNull(property);
System\Windows\Documents\DocumentSequenceTextView.cs (3)
253ArgumentNullException.ThrowIfNull(position); 300ArgumentNullException.ThrowIfNull(position); 326ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
56ArgumentNullException.ThrowIfNull(element); 102ArgumentNullException.ThrowIfNull(element); 159ArgumentNullException.ThrowIfNull(element); 189ArgumentNullException.ThrowIfNull(listItem); 231ArgumentNullException.ThrowIfNull(element); 285ArgumentNullException.ThrowIfNull(tableRowGroup); 327ArgumentNullException.ThrowIfNull(tableRow); 370ArgumentNullException.ThrowIfNull(tableCell); 414ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
30ArgumentNullException.ThrowIfNull(storyFragment); 88ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\FixedDocument.cs (13)
87/// <exception cref="ArgumentNullException">serviceType is NULL.</exception> 94ArgumentNullException.ThrowIfNull(serviceType); 120/// <exception cref="ArgumentNullException">value is NULL.</exception> 128ArgumentNullException.ThrowIfNull(value); 357/// <exception cref="ArgumentNullException">userState is NULL.</exception> 371ArgumentNullException.ThrowIfNull(userState); 393/// <exception cref="ArgumentNullException">contentPosition is NULL.</exception> 399ArgumentNullException.ThrowIfNull(contentPosition); 413/// <exception cref="ArgumentNullException">userState is NULL.</exception> 419ArgumentNullException.ThrowIfNull(userState); 435/// <exception cref="ArgumentNullException">element is NULL.</exception> 438ArgumentNullException.ThrowIfNull(o); 1376ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Documents\FixedLineResult.cs (1)
42ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\FixedNode.cs (1)
147ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\FixedPage.cs (22)
173/// <exception cref="ArgumentNullException">value is NULL.</exception> 181ArgumentNullException.ThrowIfNull(value); 210/// <exception cref="ArgumentNullException">element is NULL.</exception> 218ArgumentNullException.ThrowIfNull(element); 225/// <exception cref="ArgumentNullException">element is NULL.</exception> 231ArgumentNullException.ThrowIfNull(element); 238/// <exception cref="ArgumentNullException">element is NULL.</exception> 246ArgumentNullException.ThrowIfNull(element); 253/// <exception cref="ArgumentNullException">element is NULL.</exception> 259ArgumentNullException.ThrowIfNull(element); 266/// <exception cref="ArgumentNullException">element is NULL.</exception> 274ArgumentNullException.ThrowIfNull(element); 281/// <exception cref="ArgumentNullException">element is NULL.</exception> 287ArgumentNullException.ThrowIfNull(element); 294/// <exception cref="ArgumentNullException">element is NULL.</exception> 302ArgumentNullException.ThrowIfNull(element); 309/// <exception cref="ArgumentNullException">element is NULL.</exception> 315ArgumentNullException.ThrowIfNull(element); 322/// <exception cref="ArgumentNullException">element is NULL.</exception> 327ArgumentNullException.ThrowIfNull(element); 334/// <exception cref="ArgumentNullException">element is NULL.</exception> 338ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
278ArgumentNullException.ThrowIfNull(path);
System\Windows\Documents\FixedTextContainer.cs (1)
309ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\FixedTextPointer.cs (4)
125ArgumentNullException.ThrowIfNull(textBuffer); 192ArgumentNullException.ThrowIfNull(property); 204ArgumentNullException.ThrowIfNull(property); 493ArgumentNullException.ThrowIfNull(textData);
System\Windows\Documents\FlowDocument.cs (3)
116ArgumentNullException.ThrowIfNull(block); 1625ArgumentNullException.ThrowIfNull(value); 1685ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Documents\FlowNode.cs (1)
108ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\FlowPosition.cs (1)
64ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\InlineCollection.cs (2)
188ArgumentNullException.ThrowIfNull(text); 234ArgumentNullException.ThrowIfNull(uiElement);
System\Windows\Documents\ITextView.cs (9)
79/// <exception cref="System.ArgumentNullException"> 116/// <exception cref="System.ArgumentNullException"> 176/// <exception cref="System.ArgumentNullException"> 222/// <exception cref="System.ArgumentNullException"> 254/// <exception cref="System.ArgumentNullException"> 293/// <exception cref="System.ArgumentNullException"> 319/// <exception cref="System.ArgumentNullException"> 348/// <exception cref="System.ArgumentNullException"> 377/// <exception cref="System.ArgumentNullException">
System\Windows\Documents\List.cs (2)
58ArgumentNullException.ThrowIfNull(listItem); 181ArgumentNullException.ThrowIfNull(item);
System\Windows\Documents\ListItem.cs (1)
49ArgumentNullException.ThrowIfNull(paragraph);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
60ArgumentNullException.ThrowIfNull(optionDescription);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
72ArgumentNullException.ThrowIfNull(error);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (4)
322ArgumentNullException.ThrowIfNull(dictionaryPath); 323ArgumentNullException.ThrowIfNull(languageTag); 353ArgumentNullException.ThrowIfNull(dictionaryPath); 354ArgumentNullException.ThrowIfNull(languageTag);
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (4)
33ArgumentNullException.ThrowIfNull(enumString); 77ArgumentNullException.ThrowIfNull(spellingErrors); 120ArgumentNullException.ThrowIfNull(errors); 144ArgumentNullException.ThrowIfNull(spellingErrors);
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (3)
283ArgumentNullException.ThrowIfNull(exception); 284ArgumentNullException.ThrowIfNull(exceptions); 298ArgumentNullException.ThrowIfNull(exceptions);
System\Windows\Documents\PageContent.cs (4)
156/// <exception cref="ArgumentNullException">value is NULL.</exception> 167ArgumentNullException.ThrowIfNull(value); 267ArgumentNullException.ThrowIfNull(value); 343ArgumentNullException.ThrowIfNull(pageVisual);
System\Windows\Documents\PageContentCollection.cs (2)
45/// <exception cref="ArgumentNullException"> 53ArgumentNullException.ThrowIfNull(newPageContent);
System\Windows\Documents\Paragraph.cs (1)
51ArgumentNullException.ThrowIfNull(inline);
System\Windows\Documents\RubberbandSelector.cs (1)
45ArgumentNullException.ThrowIfNull(scope);
System\windows\Documents\Section.cs (1)
44ArgumentNullException.ThrowIfNull(block);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
63ArgumentNullException.ThrowIfNull(factoryInstance);
System\Windows\Documents\Serialization\SerializerProvider.cs (4)
72ArgumentNullException.ThrowIfNull(serializerDescriptor); 98ArgumentNullException.ThrowIfNull(serializerDescriptor); 125ArgumentNullException.ThrowIfNull(serializerDescriptor); 133ArgumentNullException.ThrowIfNull(stream);
System\Windows\Documents\Span.cs (2)
88ArgumentNullException.ThrowIfNull(start); 89ArgumentNullException.ThrowIfNull(end);
System\Windows\Documents\Table.cs (1)
58ArgumentNullException.ThrowIfNull(value);
System\Windows\Documents\TableCell.cs (1)
60ArgumentNullException.ThrowIfNull(blockItem);
System\Windows\Documents\TableCellCollection.cs (5)
48/// <exception cref="ArgumentNullException"> 67/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException"> 164/// <exception cref="ArgumentNullException"> 187/// <exception cref="ArgumentNullException">
System\Windows\Documents\TableColumnCollection.cs (5)
48/// <exception cref="ArgumentNullException"> 67/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException"> 164/// <exception cref="ArgumentNullException"> 187/// <exception cref="ArgumentNullException">
System\Windows\Documents\TableRow.cs (1)
56ArgumentNullException.ThrowIfNull(value);
System\Windows\Documents\TableRowCollection.cs (5)
48/// <exception cref="ArgumentNullException"> 67/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException"> 164/// <exception cref="ArgumentNullException"> 187/// <exception cref="ArgumentNullException">
System\Windows\Documents\TableRowGroup.cs (1)
57ArgumentNullException.ThrowIfNull(value);
System\Windows\Documents\TableRowGroupCollection.cs (5)
48/// <exception cref="ArgumentNullException"> 67/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException"> 164/// <exception cref="ArgumentNullException"> 187/// <exception cref="ArgumentNullException">
System\Windows\Documents\TextContainer.cs (3)
214ArgumentNullException.ThrowIfNull(position); 215ArgumentNullException.ThrowIfNull(property); 256ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\TextEffectResolver.cs (3)
41ArgumentNullException.ThrowIfNull(effect); 130ArgumentNullException.ThrowIfNull(element); 131ArgumentNullException.ThrowIfNull(effect);
System\Windows\Documents\TextElement.cs (15)
473ArgumentNullException.ThrowIfNull(element); 484ArgumentNullException.ThrowIfNull(element); 518ArgumentNullException.ThrowIfNull(element); 529ArgumentNullException.ThrowIfNull(element); 563ArgumentNullException.ThrowIfNull(element); 574ArgumentNullException.ThrowIfNull(element); 608ArgumentNullException.ThrowIfNull(element); 619ArgumentNullException.ThrowIfNull(element); 656ArgumentNullException.ThrowIfNull(element); 668ArgumentNullException.ThrowIfNull(element); 704ArgumentNullException.ThrowIfNull(element); 715ArgumentNullException.ThrowIfNull(element); 857ArgumentNullException.ThrowIfNull(text); 1488ArgumentNullException.ThrowIfNull(textData); 1522ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\TextElementCollection.cs (10)
78ArgumentNullException.ThrowIfNull(item); 242ArgumentNullException.ThrowIfNull(previousSibling); 244ArgumentNullException.ThrowIfNull(newItem); 281ArgumentNullException.ThrowIfNull(nextSibling); 283ArgumentNullException.ThrowIfNull(newItem); 316ArgumentNullException.ThrowIfNull(range); 394ArgumentNullException.ThrowIfNull(value); 447ArgumentNullException.ThrowIfNull(value); 560ArgumentNullException.ThrowIfNull(value); 597ArgumentNullException.ThrowIfNull(array);
System\Windows\Documents\TextPointer.cs (8)
256ArgumentNullException.ThrowIfNull(textPointer); 264ArgumentNullException.ThrowIfNull(position); 431ArgumentNullException.ThrowIfNull(textPosition); 1271ArgumentNullException.ThrowIfNull(textData); 1749ArgumentNullException.ThrowIfNull(textBuffer); 2138ArgumentNullException.ThrowIfNull(uiElement); 2499ArgumentNullException.ThrowIfNull(formattingProperty); 2523ArgumentNullException.ThrowIfNull(formattingProperty);
System\Windows\Documents\TextRange.cs (4)
83ArgumentNullException.ThrowIfNull(position1); 84ArgumentNullException.ThrowIfNull(position2); 779ArgumentNullException.ThrowIfNull(formattingProperty); 848ArgumentNullException.ThrowIfNull(formattingProperty);
System\Windows\Documents\TextRangeBase.cs (8)
61ArgumentNullException.ThrowIfNull(textPointer); 185ArgumentNullException.ThrowIfNull(position); 235ArgumentNullException.ThrowIfNull(position); 1284ArgumentNullException.ThrowIfNull(textData); 1496ArgumentNullException.ThrowIfNull(stream); 1497ArgumentNullException.ThrowIfNull(dataFormat); 1544ArgumentNullException.ThrowIfNull(stream); 1545ArgumentNullException.ThrowIfNull(dataFormat);
System\Windows\Documents\Typography.cs (87)
30ArgumentNullException.ThrowIfNull(owner); 364ArgumentNullException.ThrowIfNull(element); 377ArgumentNullException.ThrowIfNull(element); 390ArgumentNullException.ThrowIfNull(element); 403ArgumentNullException.ThrowIfNull(element); 416ArgumentNullException.ThrowIfNull(element); 429ArgumentNullException.ThrowIfNull(element); 442ArgumentNullException.ThrowIfNull(element); 455ArgumentNullException.ThrowIfNull(element); 468ArgumentNullException.ThrowIfNull(element); 481ArgumentNullException.ThrowIfNull(element); 494ArgumentNullException.ThrowIfNull(element); 507ArgumentNullException.ThrowIfNull(element); 520ArgumentNullException.ThrowIfNull(element); 533ArgumentNullException.ThrowIfNull(element); 546ArgumentNullException.ThrowIfNull(element); 559ArgumentNullException.ThrowIfNull(element); 572ArgumentNullException.ThrowIfNull(element); 585ArgumentNullException.ThrowIfNull(element); 598ArgumentNullException.ThrowIfNull(element); 611ArgumentNullException.ThrowIfNull(element); 624ArgumentNullException.ThrowIfNull(element); 637ArgumentNullException.ThrowIfNull(element); 650ArgumentNullException.ThrowIfNull(element); 663ArgumentNullException.ThrowIfNull(element); 676ArgumentNullException.ThrowIfNull(element); 689ArgumentNullException.ThrowIfNull(element); 702ArgumentNullException.ThrowIfNull(element); 715ArgumentNullException.ThrowIfNull(element); 728ArgumentNullException.ThrowIfNull(element); 741ArgumentNullException.ThrowIfNull(element); 754ArgumentNullException.ThrowIfNull(element); 767ArgumentNullException.ThrowIfNull(element); 780ArgumentNullException.ThrowIfNull(element); 793ArgumentNullException.ThrowIfNull(element); 806ArgumentNullException.ThrowIfNull(element); 819ArgumentNullException.ThrowIfNull(element); 832ArgumentNullException.ThrowIfNull(element); 845ArgumentNullException.ThrowIfNull(element); 858ArgumentNullException.ThrowIfNull(element); 871ArgumentNullException.ThrowIfNull(element); 884ArgumentNullException.ThrowIfNull(element); 897ArgumentNullException.ThrowIfNull(element); 910ArgumentNullException.ThrowIfNull(element); 923ArgumentNullException.ThrowIfNull(element); 936ArgumentNullException.ThrowIfNull(element); 949ArgumentNullException.ThrowIfNull(element); 962ArgumentNullException.ThrowIfNull(element); 975ArgumentNullException.ThrowIfNull(element); 988ArgumentNullException.ThrowIfNull(element); 1001ArgumentNullException.ThrowIfNull(element); 1014ArgumentNullException.ThrowIfNull(element); 1027ArgumentNullException.ThrowIfNull(element); 1040ArgumentNullException.ThrowIfNull(element); 1053ArgumentNullException.ThrowIfNull(element); 1066ArgumentNullException.ThrowIfNull(element); 1079ArgumentNullException.ThrowIfNull(element); 1092ArgumentNullException.ThrowIfNull(element); 1105ArgumentNullException.ThrowIfNull(element); 1118ArgumentNullException.ThrowIfNull(element); 1131ArgumentNullException.ThrowIfNull(element); 1144ArgumentNullException.ThrowIfNull(element); 1157ArgumentNullException.ThrowIfNull(element); 1170ArgumentNullException.ThrowIfNull(element); 1183ArgumentNullException.ThrowIfNull(element); 1196ArgumentNullException.ThrowIfNull(element); 1209ArgumentNullException.ThrowIfNull(element); 1222ArgumentNullException.ThrowIfNull(element); 1235ArgumentNullException.ThrowIfNull(element); 1248ArgumentNullException.ThrowIfNull(element); 1261ArgumentNullException.ThrowIfNull(element); 1274ArgumentNullException.ThrowIfNull(element); 1287ArgumentNullException.ThrowIfNull(element); 1300ArgumentNullException.ThrowIfNull(element); 1313ArgumentNullException.ThrowIfNull(element); 1326ArgumentNullException.ThrowIfNull(element); 1339ArgumentNullException.ThrowIfNull(element); 1352ArgumentNullException.ThrowIfNull(element); 1365ArgumentNullException.ThrowIfNull(element); 1378ArgumentNullException.ThrowIfNull(element); 1391ArgumentNullException.ThrowIfNull(element); 1404ArgumentNullException.ThrowIfNull(element); 1417ArgumentNullException.ThrowIfNull(element); 1430ArgumentNullException.ThrowIfNull(element); 1443ArgumentNullException.ThrowIfNull(element); 1456ArgumentNullException.ThrowIfNull(element); 1469ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\ValidationHelper.cs (2)
55ArgumentNullException.ThrowIfNull(startPosition); 56ArgumentNullException.ThrowIfNull(endPosition);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
714/// <exception cref="ArgumentNullException">
System\Windows\Documents\WpfPayload.cs (4)
188ArgumentNullException.ThrowIfNull(range); 285/// <exception cref="ArgumentNullException"> 299ArgumentNullException.ThrowIfNull(stream); 480ArgumentNullException.ThrowIfNull(image);
System\Windows\Documents\XamlRtfConverter.cs (2)
52ArgumentNullException.ThrowIfNull(xamlContent); 89ArgumentNullException.ThrowIfNull(rtfContent);
System\Windows\Documents\ZoomPercentageConverter.cs (1)
189catch (ArgumentNullException) { }
System\Windows\DynamicResourceExtension.cs (2)
38ArgumentNullException.ThrowIfNull(resourceKey); 82ArgumentNullException.ThrowIfNull(value);
System\Windows\DynamicResourceExtensionConverter.cs (1)
42ArgumentNullException.ThrowIfNull(value);
System\Windows\EventSetter.cs (4)
32ArgumentNullException.ThrowIfNull(routedEvent); 33ArgumentNullException.ThrowIfNull(handler); 47ArgumentNullException.ThrowIfNull(value); 63ArgumentNullException.ThrowIfNull(value);
System\Windows\EventSetterHandlerConverter.cs (2)
50ArgumentNullException.ThrowIfNull(typeDescriptorContext); 51ArgumentNullException.ThrowIfNull(source);
System\Windows\EventTrigger.cs (1)
92ArgumentNullException.ThrowIfNull(value);
System\Windows\FigureLengthConverter.cs (3)
94/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 143ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\FontSizeConverter.cs (1)
99ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\FrameworkContentElement.cs (4)
339ArgumentNullException.ThrowIfNull(resourceKey); 366ArgumentNullException.ThrowIfNull(resourceKey); 423ArgumentNullException.ThrowIfNull(storyboard); 985ArgumentNullException.ThrowIfNull(request);
System\Windows\FrameworkElement.cs (6)
447ArgumentNullException.ThrowIfNull(storyboard); 819ArgumentNullException.ThrowIfNull(resourceKey); 847ArgumentNullException.ThrowIfNull(resourceKey); 3683ArgumentNullException.ThrowIfNull(element); 3693ArgumentNullException.ThrowIfNull(element); 5302ArgumentNullException.ThrowIfNull(request);
System\Windows\FrameworkElementFactory.cs (8)
124ArgumentNullException.ThrowIfNull(value); 163ArgumentNullException.ThrowIfNull(child); 202ArgumentNullException.ThrowIfNull(dp); 280ArgumentNullException.ThrowIfNull(dp); 305ArgumentNullException.ThrowIfNull(routedEvent); 306ArgumentNullException.ThrowIfNull(handler); 341ArgumentNullException.ThrowIfNull(routedEvent); 342ArgumentNullException.ThrowIfNull(handler);
System\Windows\FrameworkTemplate.cs (1)
300ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\GridLengthConverter.cs (3)
97/// <exception cref="ArgumentNullException"> 150/// <exception cref="ArgumentNullException"> 163ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Ink\Events.cs (10)
31ArgumentNullException.ThrowIfNull(stroke); 77ArgumentNullException.ThrowIfNull(newStrokes); 78ArgumentNullException.ThrowIfNull(previousStrokes); 126ArgumentNullException.ThrowIfNull(selectedStrokes); 127ArgumentNullException.ThrowIfNull(selectedElements); 165ArgumentNullException.ThrowIfNull(selectedElements); 188ArgumentNullException.ThrowIfNull(selectedStrokes); 265ArgumentNullException.ThrowIfNull(stroke); 302ArgumentNullException.ThrowIfNull(strokes); 307ArgumentNullException.ThrowIfNull(gestureRecognitionResults);
System\Windows\Input\Command\CommandConverter.cs (1)
169ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\KeyboardNavigation.cs (12)
324ArgumentNullException.ThrowIfNull(element); 337ArgumentNullException.ThrowIfNull(element); 349ArgumentNullException.ThrowIfNull(element); 362ArgumentNullException.ThrowIfNull(element); 374ArgumentNullException.ThrowIfNull(element); 388ArgumentNullException.ThrowIfNull(element); 400ArgumentNullException.ThrowIfNull(element); 414ArgumentNullException.ThrowIfNull(element); 426ArgumentNullException.ThrowIfNull(element); 440ArgumentNullException.ThrowIfNull(element); 452ArgumentNullException.ThrowIfNull(element); 465ArgumentNullException.ThrowIfNull(element);
System\Windows\Interop\WindowInteropHelper.cs (1)
34ArgumentNullException.ThrowIfNull(window);
System\Windows\LengthConverter.cs (3)
92/// <exception cref="ArgumentNullException"> 121/// <exception cref="ArgumentNullException"> 137ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Localization.cs (4)
54ArgumentNullException.ThrowIfNull(element); 66ArgumentNullException.ThrowIfNull(element); 80ArgumentNullException.ThrowIfNull(element); 92ArgumentNullException.ThrowIfNull(element);
System\Windows\LogicalTreeHelper.cs (6)
64ArgumentNullException.ThrowIfNull(logicalTreeNode); 115ArgumentNullException.ThrowIfNull(current); 139ArgumentNullException.ThrowIfNull(current); 161ArgumentNullException.ThrowIfNull(current); 171ArgumentNullException.ThrowIfNull(current); 181ArgumentNullException.ThrowIfNull(current);
System\Windows\LostFocusEventManager.cs (6)
42ArgumentNullException.ThrowIfNull(source); 43ArgumentNullException.ThrowIfNull(listener); 53ArgumentNullException.ThrowIfNull(source); 54ArgumentNullException.ThrowIfNull(listener); 64ArgumentNullException.ThrowIfNull(handler); 74ArgumentNullException.ThrowIfNull(handler);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
49ArgumentNullException.ThrowIfNull(fileName); 61ArgumentNullException.ThrowIfNull(stream); 71ArgumentNullException.ThrowIfNull(stream); 72ArgumentNullException.ThrowIfNull(xamlReaderSettings); 91ArgumentNullException.ThrowIfNull(stream); 92ArgumentNullException.ThrowIfNull(schemaContext);
System\Windows\Markup\Baml2006\Baml2006ReaderContext.cs (1)
12ArgumentNullException.ThrowIfNull(schemaContext);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (8)
339ArgumentNullException.ThrowIfNull(assemblyName); 363ArgumentNullException.ThrowIfNull(typeName); 390ArgumentNullException.ThrowIfNull(propertyName); 409ArgumentNullException.ThrowIfNull(value); 704ArgumentNullException.ThrowIfNull(name); 712ArgumentNullException.ThrowIfNull(assembly); 729ArgumentNullException.ThrowIfNull(name); 748ArgumentNullException.ThrowIfNull(name);
System\Windows\Markup\Baml2006\Baml6Assembly.cs (2)
20ArgumentNullException.ThrowIfNull(name); 28ArgumentNullException.ThrowIfNull(assembly);
System\Windows\Markup\Baml2006\SharedStream.cs (3)
25ArgumentNullException.ThrowIfNull(baseStream); 38ArgumentNullException.ThrowIfNull(baseStream); 165ArgumentNullException.ThrowIfNull(buffer);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
177ArgumentNullException.ThrowIfNull(type);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
20ArgumentNullException.ThrowIfNull(type);
System\Windows\Markup\BamlWriter.cs (1)
28ArgumentNullException.ThrowIfNull(stream);
System\Windows\Markup\DependencyPropertyConverter.cs (2)
64ArgumentNullException.ThrowIfNull(context); 65ArgumentNullException.ThrowIfNull(source);
System\Windows\Markup\Localizer\BamlLocalizableResourceKey.cs (3)
25ArgumentNullException.ThrowIfNull(uid); 26ArgumentNullException.ThrowIfNull(className); 27ArgumentNullException.ThrowIfNull(propertyName);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (9)
210ArgumentNullException.ThrowIfNull(key); 215ArgumentNullException.ThrowIfNull(key); 227ArgumentNullException.ThrowIfNull(key); 295ArgumentNullException.ThrowIfNull(array); 322ArgumentNullException.ThrowIfNull(key); 328ArgumentNullException.ThrowIfNull(key); 334ArgumentNullException.ThrowIfNull(key); 342ArgumentNullException.ThrowIfNull(key); 347ArgumentNullException.ThrowIfNull(key);
System\Windows\Markup\Localizer\BamlLocalizer.cs (3)
55ArgumentNullException.ThrowIfNull(source); 82ArgumentNullException.ThrowIfNull(target); 83ArgumentNullException.ThrowIfNull(updates);
System\Windows\Markup\Primitives\MarkupWriter.cs (8)
34ArgumentNullException.ThrowIfNull(instance); 56ArgumentNullException.ThrowIfNull(instance); 57ArgumentNullException.ThrowIfNull(manager); 72ArgumentNullException.ThrowIfNull(writer); 91ArgumentNullException.ThrowIfNull(writer); 92ArgumentNullException.ThrowIfNull(manager); 113ArgumentNullException.ThrowIfNull(writer); 114ArgumentNullException.ThrowIfNull(item);
System\Windows\Markup\RoutedEventConverter.cs (2)
139ArgumentNullException.ThrowIfNull(value); 140ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (2)
84ArgumentNullException.ThrowIfNull(serviceProvider); 85ArgumentNullException.ThrowIfNull(source);
System\Windows\Markup\XamlFigureLengthSerializer.cs (2)
63ArgumentNullException.ThrowIfNull(writer); 134ArgumentNullException.ThrowIfNull(reader);
System\Windows\Markup\XamlGridLengthSerializer.cs (2)
63ArgumentNullException.ThrowIfNull(writer); 134ArgumentNullException.ThrowIfNull(reader);
System\Windows\Markup\XamlReader.cs (7)
131ArgumentNullException.ThrowIfNull(reader); 159ArgumentNullException.ThrowIfNull(stream); 200ArgumentNullException.ThrowIfNull(stream); 243ArgumentNullException.ThrowIfNull(reader); 279ArgumentNullException.ThrowIfNull(stream); 319ArgumentNullException.ThrowIfNull(reader); 962ArgumentNullException.ThrowIfNull(reader);
System\Windows\Markup\XamlWriter.cs (9)
39ArgumentNullException.ThrowIfNull(obj); 74ArgumentNullException.ThrowIfNull(obj); 75ArgumentNullException.ThrowIfNull(writer); 99ArgumentNullException.ThrowIfNull(obj); 100ArgumentNullException.ThrowIfNull(stream); 126ArgumentNullException.ThrowIfNull(obj); 127ArgumentNullException.ThrowIfNull(xmlWriter); 156ArgumentNullException.ThrowIfNull(obj); 157ArgumentNullException.ThrowIfNull(manager);
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (2)
69ArgumentNullException.ThrowIfNull(keySpline); 141ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ThicknessAnimationBase.cs (3)
78ArgumentNullException.ThrowIfNull(defaultOriginValue); 79ArgumentNullException.ThrowIfNull(defaultDestinationValue); 133ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (4)
205ArgumentNullException.ThrowIfNull(child); 242/// <exception cref="ArgumentNullException">The childText parameter is 246ArgumentNullException.ThrowIfNull(childText); 523ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (2)
282ArgumentNullException.ThrowIfNull(keyFrame); 363ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Storyboard.cs (9)
84ArgumentNullException.ThrowIfNull(element); 99ArgumentNullException.ThrowIfNull(element); 133ArgumentNullException.ThrowIfNull(element); 134ArgumentNullException.ThrowIfNull(name); 143ArgumentNullException.ThrowIfNull(element); 163ArgumentNullException.ThrowIfNull(element); 164ArgumentNullException.ThrowIfNull(path); 173ArgumentNullException.ThrowIfNull(element); 1211ArgumentNullException.ThrowIfNull(containingObject);
System\Windows\Media\TextOptions.cs (6)
64ArgumentNullException.ThrowIfNull(element); 71ArgumentNullException.ThrowIfNull(element); 78ArgumentNullException.ThrowIfNull(element); 85ArgumentNullException.ThrowIfNull(element); 93ArgumentNullException.ThrowIfNull(element); 100ArgumentNullException.ThrowIfNull(element);
System\Windows\Navigation\Journal.cs (1)
270ArgumentNullException.ThrowIfNull(journalEntry);
System\Windows\Navigation\JournalEntry.cs (6)
109ArgumentNullException.ThrowIfNull(info); 150ArgumentNullException.ThrowIfNull(dependencyObject); 166ArgumentNullException.ThrowIfNull(dependencyObject); 181ArgumentNullException.ThrowIfNull(dependencyObject); 256ArgumentNullException.ThrowIfNull(contentObject); 274ArgumentNullException.ThrowIfNull(contentObject);
System\Windows\Navigation\JournalEntryListConverter.cs (2)
84ArgumentNullException.ThrowIfNull(element); 94ArgumentNullException.ThrowIfNull(element);
System\Windows\Navigation\NavigationService.cs (1)
1291ArgumentNullException.ThrowIfNull(dependencyObject);
System\Windows\PropertyPathConverter.cs (5)
81/// <exception cref="ArgumentNullException"> 95ArgumentNullException.ThrowIfNull(source); 111/// <exception cref="ArgumentNullException"> 128ArgumentNullException.ThrowIfNull(value); 129ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\ResourceDictionary.cs (1)
87ArgumentNullException.ThrowIfNull(array);
System\Windows\ResourceDictionaryCollection.cs (2)
43ArgumentNullException.ThrowIfNull(item); 54ArgumentNullException.ThrowIfNull(item);
System\Windows\ResourceReferenceExpression.cs (2)
51ArgumentNullException.ThrowIfNull(d); 52ArgumentNullException.ThrowIfNull(dp);
System\Windows\ResourceReferenceExpressionConverter.cs (2)
63ArgumentNullException.ThrowIfNull(destinationType); 118ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Setter.cs (4)
63ArgumentNullException.ThrowIfNull(property); 219ArgumentNullException.ThrowIfNull(targetObject); 220ArgumentNullException.ThrowIfNull(eventArgs); 251ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\SetterBaseCollection.cs (1)
107ArgumentNullException.ThrowIfNull(setterBase);
System\Windows\SizeChangedEventArgs.cs (2)
24ArgumentNullException.ThrowIfNull(info); 25ArgumentNullException.ThrowIfNull(element);
System\Windows\Standard\ErrorCodes.cs (1)
421Assert.IsFalse(e is ArgumentNullException);
System\Windows\StaticResourceExtension.cs (2)
37ArgumentNullException.ThrowIfNull(resourceKey); 70ArgumentNullException.ThrowIfNull(value);
System\Windows\Style.cs (2)
161ArgumentNullException.ThrowIfNull(value); 388ArgumentNullException.ThrowIfNull(value);
System\Windows\SystemKeyConverter.cs (3)
39ArgumentNullException.ThrowIfNull(sourceType); 59ArgumentNullException.ThrowIfNull(destinationType); 112ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\TemplateBindingExtension.cs (3)
39ArgumentNullException.ThrowIfNull(property); 72ArgumentNullException.ThrowIfNull(value); 86ArgumentNullException.ThrowIfNull(value);
System\Windows\TemplateBindingExtensionConverter.cs (1)
46ArgumentNullException.ThrowIfNull(value);
System\Windows\TemplateContentLoader.cs (2)
12ArgumentNullException.ThrowIfNull(serviceProvider); 13ArgumentNullException.ThrowIfNull(xamlReader);
System\Windows\ThemeDictionaryExtension.cs (1)
33ArgumentNullException.ThrowIfNull(assemblyName);
System\Windows\ThemeManager.cs (3)
395ArgumentNullException.ThrowIfNull(newDictionary); 417ArgumentNullException.ThrowIfNull(rd); 435ArgumentNullException.ThrowIfNull(rd, nameof(rd));
System\Windows\ThemeModeConverter.cs (3)
53/// <exception cref="ArgumentNullException"> 77/// <exception cref="ArgumentNullException"> 95ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\ThicknessConverter.cs (4)
78/// <exception cref="ArgumentNullException"> 107/// <exception cref="ArgumentNullException"> 120ArgumentNullException.ThrowIfNull(value); 121ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Trigger.cs (2)
175ArgumentNullException.ThrowIfNull(o); 287ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\TriggerActionCollection.cs (1)
303ArgumentNullException.ThrowIfNull(value);
System\Windows\TriggerBase.cs (1)
187ArgumentNullException.ThrowIfNull(target);
System\Windows\TriggerCollection.cs (1)
137ArgumentNullException.ThrowIfNull(triggerBase);
System\Windows\VisualStateManager.cs (16)
28ArgumentNullException.ThrowIfNull(stateName); 70ArgumentNullException.ThrowIfNull(control); 86ArgumentNullException.ThrowIfNull(stateGroupsRoot); 110ArgumentNullException.ThrowIfNull(obj); 117ArgumentNullException.ThrowIfNull(obj); 141ArgumentNullException.ThrowIfNull(obj); 157ArgumentNullException.ThrowIfNull(obj); 187ArgumentNullException.ThrowIfNull(stateGroupsRoot); 188ArgumentNullException.ThrowIfNull(state); 328ArgumentNullException.ThrowIfNull(stateGroup); 329ArgumentNullException.ThrowIfNull(newState); 341ArgumentNullException.ThrowIfNull(stateGroup); 342ArgumentNullException.ThrowIfNull(newState); 529ArgumentNullException.ThrowIfNull(element); 530ArgumentNullException.ThrowIfNull(group); 531ArgumentNullException.ThrowIfNull(to);
System\Windows\Window.cs (1)
524ArgumentNullException.ThrowIfNull(dependencyObject);
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
59ArgumentNullException.ThrowIfNull(element); 71ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
59ArgumentNullException.ThrowIfNull(element); 71ArgumentNullException.ThrowIfNull(element);
PresentationFramework.AeroLite (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
58ArgumentNullException.ThrowIfNull(element); 70ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Fluent.Tests (1)
ResourceTests\FluentResourceDictionaryTests.cs (1)
84ArgumentNullException.ThrowIfNull(resourceDictionary, nameof(resourceDictionary));
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
97ArgumentNullException.ThrowIfNull(element); 109ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
79ArgumentNullException.ThrowIfNull(element); 91ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Tests (1)
System\Windows\Controls\VirtualizationCacheLengthConverter.Tests.cs (1)
307Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, culture, input, destinationType));
PresentationUI (62)
MS\Internal\Documents\Application\CommandEnforcer.cs (2)
26ArgumentNullException.ThrowIfNull(command); 87ArgumentNullException.ThrowIfNull(bind);
MS\Internal\Documents\Application\DocumentManager.cs (2)
498/// <exception cref="System.ArgumentNullException"/> 502ArgumentNullException.ThrowIfNull(document);
MS\Internal\Documents\Application\DocumentProperties.cs (1)
32ArgumentNullException.ThrowIfNull(uri);
MS\Internal\Documents\Application\DocumentStream.cs (10)
87/// <exception cref="System.ArgumentNullException"/> 326/// <exception cref="System.ArgumentNullException"/> 341/// <exception cref="System.ArgumentNullException"/> 376/// <exception cref="System.ArgumentNullException"/> 381ArgumentNullException.ThrowIfNull(existing); 483/// <exception cref="System.ArgumentNullException"/> 716/// <exception cref="System.ArgumentNullException"/> 947/// <exception cref="System.ArgumentNullException"/> 966/// <exception cref="System.ArgumentNullException"/> 970ArgumentNullException.ThrowIfNull(location);
MS\Internal\Documents\Application\PageTextBox.cs (1)
398ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (3)
30/// <exception cref="System.ArgumentNullException" /> 41/// <exception cref="System.ArgumentNullException" /> 45ArgumentNullException.ThrowIfNull(target);
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (2)
71ArgumentNullException.ThrowIfNull(exception); 266(exception is ArgumentNullException) ||
MS\Internal\Documents\Application\TransactionalPackage.cs (9)
52/// <exception cref="System.ArgumentNullException" /> 61ArgumentNullException.ThrowIfNull(original); 75/// <exception cref="System.ArgumentNullException" /> 78ArgumentNullException.ThrowIfNull(workspace); 93/// <exception cref="System.ArgumentNullException" /> 97ArgumentNullException.ThrowIfNull(target); 144ArgumentNullException.ThrowIfNull(newOriginal); 506/// <exception cref="System.ArgumentNullException" /> 518ArgumentNullException.ThrowIfNull(packagePart);
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (4)
51/// <exception cref="System.ArgumentNullException"/> 63ArgumentNullException.ThrowIfNull(container); 64ArgumentNullException.ThrowIfNull(readingPart); 65ArgumentNullException.ThrowIfNull(writeablePartFactory);
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (3)
40/// <exception cref="System.ArgumentNullException" /> 54ArgumentNullException.ThrowIfNull(readingStream); 55ArgumentNullException.ThrowIfNull(writeableStreamFactory);
MS\Internal\Documents\Application\ZoomComboBox.cs (2)
469catch (ArgumentNullException) { } 541ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
33ArgumentNullException.ThrowIfNull(package);
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (5)
223ArgumentNullException.ThrowIfNull(docSigManager); 224ArgumentNullException.ThrowIfNull(rmManager); 1633ArgumentNullException.ThrowIfNull(args); 1895catch (ArgumentNullException) { } 1986catch (ArgumentNullException) { }
MS\Internal\Documents\DocumentSignatureManager.cs (3)
36ArgumentNullException.ThrowIfNull(digSigProvider); 1077ArgumentNullException.ThrowIfNull(digitalSignature); 1145ArgumentNullException.ThrowIfNull(args);
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
317ArgumentNullException.ThrowIfNull(dataStream);
MS\Internal\Documents\RequestedSignatureDialog.cs (1)
23ArgumentNullException.ThrowIfNull(docSigManager);
MS\Internal\Documents\RightsManagementManager.cs (1)
42ArgumentNullException.ThrowIfNull(rmProvider);
MS\Internal\Documents\RightsManagementProvider.cs (3)
446ArgumentNullException.ThrowIfNull(user); 480ArgumentNullException.ThrowIfNull(user); 639ArgumentNullException.ThrowIfNull(licenses);
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
70ArgumentNullException.ThrowIfNull(user);
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (5)
621ArgumentNullException.ThrowIfNull(everyoneRow); 642ArgumentNullException.ThrowIfNull(everyoneRow); 643ArgumentNullException.ThrowIfNull(targetRow); 729ArgumentNullException.ThrowIfNull(everyoneRow); 760ArgumentNullException.ThrowIfNull(row);
MS\Internal\Documents\SigningDialog.cs (2)
33ArgumentNullException.ThrowIfNull(x509Certificate2); 34ArgumentNullException.ThrowIfNull(docSigManager);
ReachFramework (196)
AlphaFlattener\MetroDevice.cs (6)
432ArgumentNullException.ThrowIfNull(queue); 778ArgumentNullException.ThrowIfNull(ticket); 785ArgumentNullException.ThrowIfNull(ticket); 786ArgumentNullException.ThrowIfNull(devMode); 793ArgumentNullException.ThrowIfNull(ticket); 813ArgumentNullException.ThrowIfNull(ticket);
MS\Internal\Printing\Configuration\DevMode.cs (1)
29ArgumentNullException.ThrowIfNull(devModeBytes);
Packaging\PartEditor.cs (1)
40ArgumentNullException.ThrowIfNull(metroPart);
packaging\XpsDigitalSignature.cs (1)
156catch( ArgumentNullException )
Packaging\XpsDocument.cs (7)
158ArgumentNullException.ThrowIfNull(path); 355/// <exception cref="ArgumentNullException">certificate is null.</exception> 392/// <exception cref="ArgumentNullException">certificate is null.</exception> 433/// <exception cref="ArgumentNullException">certificate is null.</exception> 461/// <exception cref="ArgumentNullException">signature is null.</exception> 470ArgumentNullException.ThrowIfNull(signature); 834ArgumentNullException.ThrowIfNull(certificate);
Packaging\XpsFixedDocumentReaderWriter.cs (2)
253/// <exception cref="ArgumentNullException">part is null.</exception> 263ArgumentNullException.ThrowIfNull(part);
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (2)
189/// <exception cref="ArgumentNullException">part is null.</exception> 198ArgumentNullException.ThrowIfNull(part);
Packaging\XpsFixedPageReaderWriter.cs (8)
217/// <exception cref="ArgumentNullException">resourceName is null.</exception> 310/// <exception cref="ArgumentNullException">imageType is null.</exception> 437/// <exception cref="ArgumentNullException">part is null.</exception> 448ArgumentNullException.ThrowIfNull(part); 1185/// <exception cref="ArgumentNullException">imageType is null.</exception> 1209/// <exception cref="ArgumentNullException">imageType is null.</exception> 1222ArgumentNullException.ThrowIfNull(mimeType); 1242ArgumentNullException.ThrowIfNull(mimeType);
Packaging\XpsInterleavingPolicy.cs (1)
276ArgumentNullException.ThrowIfNull(node);
Packaging\XpsManager.cs (11)
297ArgumentNullException.ThrowIfNull(contentType); 347ArgumentNullException.ThrowIfNull(contentType); 434ArgumentNullException.ThrowIfNull(relatedPart); 435ArgumentNullException.ThrowIfNull(metroPart); 436ArgumentNullException.ThrowIfNull(printTicket); 489ArgumentNullException.ThrowIfNull(relatedPart); 490ArgumentNullException.ThrowIfNull(metroPart); 975ArgumentNullException.ThrowIfNull(metroPackage); 1005ArgumentNullException.ThrowIfNull(relatedPart); 1038ArgumentNullException.ThrowIfNull(contentType); 1468ArgumentNullException.ThrowIfNull(startingPart);
Packaging\XpsPartBase.cs (1)
36ArgumentNullException.ThrowIfNull(xpsManager);
Packaging\XpsResource.cs (3)
24/// <exception cref="ArgumentNullException">part is null.</exception> 37ArgumentNullException.ThrowIfNull(part); 67ArgumentNullException.ThrowIfNull(inUri);
Packaging\XpsResourcePolicy.cs (3)
73/// <exception cref="ArgumentNullException">service or serviceType is null..</exception> 82ArgumentNullException.ThrowIfNull(serviceType); 83ArgumentNullException.ThrowIfNull(service);
Packaging\XPSSignatureDefinition.cs (3)
326ArgumentNullException.ThrowIfNull(writer); 407ArgumentNullException.ThrowIfNull(reader); 485catch (ArgumentNullException)
PrintConfig\FallbackPTProvider.cs (1)
302ArgumentNullException.ThrowIfNull(devMode);
PrintConfig\PrintCapabilitesWriter.cs (1)
26ArgumentNullException.ThrowIfNull(stream);
PrintConfig\PrintSchemaShim.cs (2)
111ArgumentNullException.ThrowIfNull(ticket); 112ArgumentNullException.ThrowIfNull(oemDriverNamespace);
PrintConfig\PrtCap_Public.cs (2)
34/// <exception cref="ArgumentNullException"> 45ArgumentNullException.ThrowIfNull(xmlStream);
PrintConfig\PrtCap_Public_Simple.cs (1)
188/// <exception cref="ArgumentNullException">
PrintConfig\PrtTicket_Public.cs (4)
53/// <exception cref="ArgumentNullException"> 64ArgumentNullException.ThrowIfNull(xmlStream); 146/// <exception cref="ArgumentNullException"> 152ArgumentNullException.ThrowIfNull(outStream);
PrintConfig\PrtTicket_Public_Simple.cs (2)
257/// <exception cref="ArgumentNullException"> 307/// <exception cref="ArgumentNullException">
PrintConfig\PTConverter.cs (8)
60/// <exception cref="ArgumentNullException"> 74ArgumentNullException.ThrowIfNull(deviceName); 117/// <exception cref="ArgumentNullException"> 140/// <exception cref="ArgumentNullException"> 172/// <exception cref="ArgumentNullException"> 200/// <exception cref="ArgumentNullException"> 236ArgumentNullException.ThrowIfNull(devMode); 257ArgumentNullException.ThrowIfNull(printTicket);
PrintConfig\PTManager.cs (5)
194/// <exception cref="ArgumentNullException"> 208ArgumentNullException.ThrowIfNull(deviceName); 318/// <exception cref="ArgumentNullException"> 349/// <exception cref="ArgumentNullException"> 369ArgumentNullException.ThrowIfNull(basePrintTicket);
Serialization\ColorTypeConverter.cs (2)
105ArgumentNullException.ThrowIfNull(value); 278ArgumentNullException.ThrowIfNull(colorContext);
Serialization\FontTypeConverter.cs (2)
103ArgumentNullException.ThrowIfNull(value); 142ArgumentNullException.ThrowIfNull(context);
Serialization\ImageSourceTypeConverter.cs (2)
108ArgumentNullException.ThrowIfNull(value); 150ArgumentNullException.ThrowIfNull(context);
Serialization\Manager\MetroSerializationManager.cs (5)
151ArgumentNullException.ThrowIfNull(serializedObject); 503ArgumentNullException.ThrowIfNull(serializedObject); 697ArgumentNullException.ThrowIfNull(serializableObject); 756ArgumentNullException.ThrowIfNull(serializableObject); 943ArgumentNullException.ThrowIfNull(serializableObjectType);
Serialization\Manager\NGCPageContentCollectionSerializerAsync.cs (1)
107ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\NGCSerializationManager.cs (4)
30/// <exception cref="ArgumentNullException">queue is NULL.</exception> 38ArgumentNullException.ThrowIfNull(queue); 51/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 62ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\NGCSerializationManagerAsync.cs (4)
33/// <exception cref="ArgumentNullException">queue is NULL.</exception> 41ArgumentNullException.ThrowIfNull(queue); 61/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 70ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\NGCSerializer.cs (7)
69ArgumentNullException.ThrowIfNull(manager); 82ArgumentNullException.ThrowIfNull(serializedObject); 136ArgumentNullException.ThrowIfNull(manager); 150ArgumentNullException.ThrowIfNull(serializedObject); 215ArgumentNullException.ThrowIfNull(manager); 294ArgumentNullException.ThrowIfNull(manager); 465ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\NGCSerializerAsync.cs (19)
28ArgumentNullException.ThrowIfNull(manager); 120ArgumentNullException.ThrowIfNull(serializedProperty); 165ArgumentNullException.ThrowIfNull(serializedObject); 270ArgumentNullException.ThrowIfNull(serializableObjectContext); 293ArgumentNullException.ThrowIfNull(serializablePropertyContext); 358ArgumentNullException.ThrowIfNull(serializableObjectContext); 420ArgumentNullException.ThrowIfNull(serializablePropertyContext); 497ArgumentNullException.ThrowIfNull(manager); 570ArgumentNullException.ThrowIfNull(serializableObjectContext); 601ArgumentNullException.ThrowIfNull(manager); 682ArgumentNullException.ThrowIfNull(serializableObjectContext); 755ArgumentNullException.ThrowIfNull(manager); 834ArgumentNullException.ThrowIfNull(serializableObjectContext); 869ArgumentNullException.ThrowIfNull(manager); 946ArgumentNullException.ThrowIfNull(serializableObjectContext); 984ArgumentNullException.ThrowIfNull(manager); 1031ArgumentNullException.ThrowIfNull(serializableObjectContext); 1144ArgumentNullException.ThrowIfNull(serializableObjectContext); 1253ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\NGCUIElementCollectionSerializerAsync.cs (1)
121ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\NullPackagingPolicy.cs (2)
739/// <exception cref="ArgumentNullException">printTicket is NULL.</exception> 750ArgumentNullException.ThrowIfNull(printTicket);
Serialization\Manager\ReachDocumentReferenceCollectionSerializer.cs (1)
38ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachDocumentReferenceCollectionSerializerAsync.cs (1)
76ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachDocumentSequenceSerializer.cs (2)
142ArgumentNullException.ThrowIfNull(serializablePropertyContext); 164ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (2)
180ArgumentNullException.ThrowIfNull(serializablePropertyContext); 202ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedDocumentSerializer.cs (3)
124ArgumentNullException.ThrowIfNull(serializableObjectContext); 213ArgumentNullException.ThrowIfNull(serializablePropertyContext); 243ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (3)
153ArgumentNullException.ThrowIfNull(serializableObjectContext); 253ArgumentNullException.ThrowIfNull(serializablePropertyContext); 283ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedPageSerializer.cs (3)
140ArgumentNullException.ThrowIfNull(serializableObjectContext); 290ArgumentNullException.ThrowIfNull(serializablePropertyContext); 319ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
165ArgumentNullException.ThrowIfNull(serializableObjectContext); 262ArgumentNullException.ThrowIfNull(serializablePropertyContext); 291ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachObjectContext.cs (1)
58ArgumentNullException.ThrowIfNull(target);
Serialization\Manager\ReachPageContentCollectionSerializer.cs (1)
59ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachPageContentCollectionSerializerAsync.cs (1)
105ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachPrintTicketSerializer.cs (1)
98ArgumentNullException.ThrowIfNull(serializedProperty);
Serialization\Manager\ReachPrintTicketSerializerAsync.cs (1)
91ArgumentNullException.ThrowIfNull(serializedProperty);
Serialization\Manager\ReachSerializableProperties.cs (4)
364ArgumentNullException.ThrowIfNull(target); 366ArgumentNullException.ThrowIfNull(propertyCache); 385ArgumentNullException.ThrowIfNull(target); 386ArgumentNullException.ThrowIfNull(propertyCache);
Serialization\Manager\ReachSerializationCacheItems.cs (2)
282ArgumentNullException.ThrowIfNull(propertyInfo); 302ArgumentNullException.ThrowIfNull(propertyInfo);
Serialization\Manager\ReachSerializationUtils.cs (2)
279ArgumentNullException.ThrowIfNull(manager); 280ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\ReachSerializer.cs (7)
36ArgumentNullException.ThrowIfNull(manager); 70ArgumentNullException.ThrowIfNull(serializedObject); 129ArgumentNullException.ThrowIfNull(serializedProperty); 208ArgumentNullException.ThrowIfNull(serializableObjectContext); 231ArgumentNullException.ThrowIfNull(serializablePropertyContext); 296ArgumentNullException.ThrowIfNull(serializableObjectContext); 325ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachSerializerAsync.cs (7)
38ArgumentNullException.ThrowIfNull(manager); 132ArgumentNullException.ThrowIfNull(serializedProperty); 177ArgumentNullException.ThrowIfNull(serializedObject); 282ArgumentNullException.ThrowIfNull(serializableObjectContext); 305ArgumentNullException.ThrowIfNull(serializablePropertyContext); 370ArgumentNullException.ThrowIfNull(serializableObjectContext); 432ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachUIElementCollectionSerializer.cs (1)
82ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachUIElementCollectionSerializerAsync.cs (1)
122ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (1)
105ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
120ArgumentNullException.ThrowIfNull(serializableObjectContext); 255ArgumentNullException.ThrowIfNull(serializablePropertyContext); 277ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\XpsOMPackagingPolicy.cs (4)
31ArgumentNullException.ThrowIfNull(packageTarget); 400ArgumentNullException.ThrowIfNull(printTicket); 566ArgumentNullException.ThrowIfNull(resourceId); 835ArgumentNullException.ThrowIfNull(contentType);
Serialization\Manager\XpsOMSerializationManager.cs (1)
62ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\XpsOMSerializationManagerAsync.cs (1)
44ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\XpsPackagingPolicy.cs (5)
502/// <exception cref="ArgumentNullException">reachPackage is NULL.</exception> 513/// <exception cref="ArgumentNullException">reachPackage is NULL.</exception> 521ArgumentNullException.ThrowIfNull(xpsPackage); 1242/// <exception cref="ArgumentNullException">printTicket is NULL.</exception> 1253ArgumentNullException.ThrowIfNull(printTicket);
Serialization\Manager\XpsSerializationManager.cs (2)
79/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 92ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\XpsSerializationManagerAsync.cs (2)
56/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 65ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\XpsFontSubsetter.cs (4)
101ArgumentNullException.ThrowIfNull(packagingPolicy); 128ArgumentNullException.ThrowIfNull(glyphRun); 436ArgumentNullException.ThrowIfNull(packagingPolicy); 437ArgumentNullException.ThrowIfNull(glyphTypeface);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
55ArgumentNullException.ThrowIfNull(uri);
Roslyn.Diagnostics.Analyzers (46)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
RoutingSandbox (4)
Framework\FrameworkEndpointRouteBuilderExtensions.cs (2)
10ArgumentNullException.ThrowIfNull(endpoints); 11ArgumentNullException.ThrowIfNull(configure);
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
10ArgumentNullException.ThrowIfNull(endpoints);
HelloExtension\HelloAppBuilderExtensions.cs (1)
13ArgumentNullException.ThrowIfNull(app);
RoutingWebSite (2)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
10ArgumentNullException.ThrowIfNull(endpoints);
HelloExtension\HelloAppBuilderExtensions.cs (1)
13ArgumentNullException.ThrowIfNull(app);
Shared (15)
JsonSchemaExporter\JsonSchemaExporter.cs (2)
47/// <exception cref="ArgumentNullException">One of the specified parameters is <see langword="null" />.</exception> 67/// <exception cref="ArgumentNullException">One of the specified parameters is <see langword="null" />.</exception>
JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (4)
72/// <exception cref="ArgumentNullException">If the parameterInfo parameter is null.</exception> 195/// <exception cref="ArgumentNullException">If the propertyInfo parameter is null.</exception> 244/// <exception cref="ArgumentNullException">If the eventInfo parameter is null.</exception> 257/// <exception cref="ArgumentNullException">If the fieldInfo parameter is null.</exception>
ServerSentEvents\SseParser.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="sseStream"/> is null.</exception> 37/// <exception cref="ArgumentNullException"><paramref name="sseStream"/> or <paramref name="itemParser"/> is null.</exception>
Throw\Throw.cs (7)
33/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 52/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 126/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 159/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 242/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 302/// Throws an <see cref="System.ArgumentNullException"/>. 313/// Throws an <see cref="System.ArgumentNullException"/>.
Shared.Tests (24)
Debugger\DebuggerTest.cs (3)
62Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddAttachedDebuggerState()); 63Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddDetachedDebuggerState()); 64Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddSystemDebuggerState());
JsonSchemaExporter\JsonSchemaExporterTests.cs (3)
141Assert.Throws<ArgumentNullException>(() => ((JsonSerializerOptions)null!).GetJsonSchemaAsNode(typeof(int))); 142Assert.Throws<ArgumentNullException>(() => Options.GetJsonSchemaAsNode(type: null!)); 143Assert.Throws<ArgumentNullException>(() => ((JsonTypeInfo)null!).GetJsonSchemaAsNode());
Pools\PoolTests.cs (1)
225Assert.Throws<ArgumentNullException>(() => PoolFactory.CreatePool<Foo>(null!, 0));
Throw\ThrowTest.cs (17)
64var exception = Assert.Throws<ArgumentNullException>(() => Throw.ArgumentNullException(paramName)); 73var exception = Assert.Throws<ArgumentNullException>(() => Throw.ArgumentNullException(paramName, message)); 116var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNull<string>(null!, "paramName")); 123var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNull<int?>(null!, "paramName")); 224var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrWhitespace(null!, "paramName")); 246var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty(null, "paramName")); 322ArgumentException exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((ICollection<int>?)null, "foo")); 325exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((IReadOnlyCollection<int>?)null, "foo")); 328exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((List<int>?)null, "foo")); 331exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((Queue<int>?)null, "foo")); 334exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((IEnumerable<int>?)null, "foo"));
System.CodeDom (98)
Microsoft\CSharp\CSharpCodeGenerator.cs (19)
534ArgumentNullException.ThrowIfNull(e); 1233ArgumentNullException.ThrowIfNull(e); 2689ArgumentNullException.ThrowIfNull(name); 2706ArgumentNullException.ThrowIfNull(name); 2890ArgumentNullException.ThrowIfNull(options); 2904ArgumentNullException.ThrowIfNull(options); 2918ArgumentNullException.ThrowIfNull(options); 2932ArgumentNullException.ThrowIfNull(options); 2946ArgumentNullException.ThrowIfNull(options); 2947ArgumentNullException.ThrowIfNull(fileNames); 2968ArgumentNullException.ThrowIfNull(options); 2982ArgumentNullException.ThrowIfNull(options); 2990ArgumentNullException.ThrowIfNull(options); 2991ArgumentNullException.ThrowIfNull(fileName); 3002ArgumentNullException.ThrowIfNull(options); 3009ArgumentNullException.ThrowIfNull(options); 3010ArgumentNullException.ThrowIfNull(ea); 3050ArgumentNullException.ThrowIfNull(options); 3051ArgumentNullException.ThrowIfNull(sources);
Microsoft\CSharp\CSharpCodeProvider.cs (1)
25ArgumentNullException.ThrowIfNull(providerOptions);
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
39ArgumentNullException.ThrowIfNull(destinationType);
Microsoft\VisualBasic\VBCodeProvider.cs (1)
25ArgumentNullException.ThrowIfNull(providerOptions);
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
39ArgumentNullException.ThrowIfNull(destinationType);
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
45ArgumentNullException.ThrowIfNull(type);
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (2)
44ArgumentNullException.ThrowIfNull(value); 54ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeAttributeArgumentCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeAttributeDeclarationCollection.cs (2)
34ArgumentNullException.ThrowIfNull(value); 44ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeCatchClauseCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeCommentStatementCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeDirectiveCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeExpressionCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeNamespaceCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeNamespaceImportCollection.cs (1)
41ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeParameterDeclarationExpressionCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeStatementCollection.cs (2)
34ArgumentNullException.ThrowIfNull(value); 44ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeTypeDeclarationCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeTypeMemberCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\CodeTypeParameterCollection.cs (2)
34ArgumentNullException.ThrowIfNull(value); 44ArgumentNullException.ThrowIfNull(value);
System\CodeDom\Compiler\CodeCompiler.cs (17)
13ArgumentNullException.ThrowIfNull(options); 27ArgumentNullException.ThrowIfNull(options); 41ArgumentNullException.ThrowIfNull(options); 55ArgumentNullException.ThrowIfNull(options); 69ArgumentNullException.ThrowIfNull(options); 70ArgumentNullException.ThrowIfNull(fileNames); 90ArgumentNullException.ThrowIfNull(options); 108ArgumentNullException.ThrowIfNull(options); 115ArgumentNullException.ThrowIfNull(options); 116ArgumentNullException.ThrowIfNull(fileName); 126ArgumentNullException.ThrowIfNull(options); 133ArgumentNullException.ThrowIfNull(options); 134ArgumentNullException.ThrowIfNull(ea); 174ArgumentNullException.ThrowIfNull(options); 175ArgumentNullException.ThrowIfNull(fileNames); 200ArgumentNullException.ThrowIfNull(options); 201ArgumentNullException.ThrowIfNull(sources);
System\CodeDom\Compiler\CodeDomProvider.cs (2)
91ArgumentNullException.ThrowIfNull(language); 100ArgumentNullException.ThrowIfNull(extension);
System\CodeDom\Compiler\CodeGenerator.cs (22)
237ArgumentNullException.ThrowIfNull(e); 400ArgumentNullException.ThrowIfNull(member); 607ArgumentNullException.ThrowIfNull(e); 704ArgumentNullException.ThrowIfNull(e); 791ArgumentNullException.ThrowIfNull(e); 805ArgumentNullException.ThrowIfNull(e); 859ArgumentNullException.ThrowIfNull(e); 953ArgumentNullException.ThrowIfNull(stmts); 963ArgumentNullException.ThrowIfNull(attributes); 1008ArgumentNullException.ThrowIfNull(arg); 1261ArgumentNullException.ThrowIfNull(parameters); 1296ArgumentNullException.ThrowIfNull(e); 1349ArgumentNullException.ThrowIfNull(e); 1363ArgumentNullException.ThrowIfNull(e); 1371ArgumentNullException.ThrowIfNull(e); 1448ArgumentNullException.ThrowIfNull(e); 1455ArgumentNullException.ThrowIfNull(e); 1467ArgumentNullException.ThrowIfNull(e); 1478ArgumentNullException.ThrowIfNull(e); 1498ArgumentNullException.ThrowIfNull(e); 1519ArgumentNullException.ThrowIfNull(e); 1529ArgumentNullException.ThrowIfNull(e);
System\CodeDom\Compiler\CodeValidator.cs (3)
58ArgumentNullException.ThrowIfNull(e); 392ArgumentNullException.ThrowIfNull(e); 767ArgumentNullException.ThrowIfNull(e);
System\CodeDom\Compiler\CompilerErrorCollection.cs (2)
32ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value);
System\CodeDom\Compiler\CompilerInfo.cs (1)
65ArgumentNullException.ThrowIfNull(providerOptions);
System.Collections (107)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ICollectionDebugView.cs (1)
14ArgumentNullException.ThrowIfNull(collection);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
13ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\LinkedList.cs (6)
34ArgumentNullException.ThrowIfNull(collection); 196ArgumentNullException.ThrowIfNull(array); 328ArgumentNullException.ThrowIfNull(info); 422ArgumentNullException.ThrowIfNull(node); 432ArgumentNullException.ThrowIfNull(node); 449ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\OrderedDictionary.cs (43)
147/// <exception cref="ArgumentNullException"><paramref name="dictionary"/> is <see langword="null"/>.</exception> 164/// <exception cref="ArgumentNullException"><paramref name="dictionary"/> is <see langword="null"/>.</exception> 168ArgumentNullException.ThrowIfNull(dictionary); 181/// <exception cref="ArgumentNullException"><paramref name="collection"/> is <see langword="null"/>.</exception> 198/// <exception cref="ArgumentNullException"><paramref name="collection"/> is <see langword="null"/>.</exception> 202ArgumentNullException.ThrowIfNull(collection); 295ArgumentNullException.ThrowIfNull(value); 311ArgumentNullException.ThrowIfNull(key); 322ArgumentNullException.ThrowIfNull(key); 325ArgumentNullException.ThrowIfNull(value); 361/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 377ArgumentNullException.ThrowIfNull(key); 482/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 486ArgumentNullException.ThrowIfNull(key); 494/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 502/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 506ArgumentNullException.ThrowIfNull(key); 549/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 610/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 613ArgumentNullException.ThrowIfNull(key); 720/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 730ArgumentNullException.ThrowIfNull(key); 738/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 745/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 748ArgumentNullException.ThrowIfNull(key); 814/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 824ArgumentNullException.ThrowIfNull(key); 920/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 931/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 934ArgumentNullException.ThrowIfNull(key); 1177ArgumentNullException.ThrowIfNull(item.Key, nameof(item)); 1201ArgumentNullException.ThrowIfNull(item.Key, nameof(item)); 1211ArgumentNullException.ThrowIfNull(array); 1234ArgumentNullException.ThrowIfNull(key); 1237ArgumentNullException.ThrowIfNull(value); 1247ArgumentNullException.ThrowIfNull(value); 1267ArgumentNullException.ThrowIfNull(key); 1275ArgumentNullException.ThrowIfNull(key); 1286ArgumentNullException.ThrowIfNull(array); 1507ArgumentNullException.ThrowIfNull(array); 1529ArgumentNullException.ThrowIfNull(array); 1696ArgumentNullException.ThrowIfNull(array); 1838ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\PriorityQueue.cs (8)
127/// <exception cref="ArgumentNullException"> 149/// <exception cref="ArgumentNullException"> 158ArgumentNullException.ThrowIfNull(items); 399/// <exception cref="ArgumentNullException"> 404ArgumentNullException.ThrowIfNull(items); 462/// <exception cref="ArgumentNullException"> 467ArgumentNullException.ThrowIfNull(elements); 956ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\PriorityQueueDebugView.cs (1)
15ArgumentNullException.ThrowIfNull(queue);
System\Collections\Generic\SortedDictionary.cs (18)
33ArgumentNullException.ThrowIfNull(dictionary); 110ArgumentNullException.ThrowIfNull(key); 122ArgumentNullException.ThrowIfNull(key); 191ArgumentNullException.ThrowIfNull(key); 203ArgumentNullException.ThrowIfNull(key); 252ArgumentNullException.ThrowIfNull(key); 259ArgumentNullException.ThrowIfNull(key); 313ArgumentNullException.ThrowIfNull(key); 316ArgumentNullException.ThrowIfNull(value); 340ArgumentNullException.ThrowIfNull(key); 344ArgumentNullException.ThrowIfNull(value); 377ArgumentNullException.ThrowIfNull(key); 523ArgumentNullException.ThrowIfNull(dictionary); 538ArgumentNullException.ThrowIfNull(array); 552ArgumentNullException.ThrowIfNull(array); 684ArgumentNullException.ThrowIfNull(dictionary); 699ArgumentNullException.ThrowIfNull(array); 713ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\SortedList.cs (10)
181ArgumentNullException.ThrowIfNull(key); 267ArgumentNullException.ThrowIfNull(key); 270ArgumentNullException.ThrowIfNull(value); 433ArgumentNullException.ThrowIfNull(array); 454ArgumentNullException.ThrowIfNull(array); 582ArgumentNullException.ThrowIfNull(key); 618ArgumentNullException.ThrowIfNull(value); 640ArgumentNullException.ThrowIfNull(key); 745ArgumentNullException.ThrowIfNull(key); 1093ArgumentNullException.ThrowIfNull(key);
System\Collections\Generic\SortedSet.cs (15)
87ArgumentNullException.ThrowIfNull(collection); 515ArgumentNullException.ThrowIfNull(array); 542ArgumentNullException.ThrowIfNull(array); 848ArgumentNullException.ThrowIfNull(other); 988ArgumentNullException.ThrowIfNull(other); 1070ArgumentNullException.ThrowIfNull(other); 1108ArgumentNullException.ThrowIfNull(other); 1175ArgumentNullException.ThrowIfNull(other); 1210ArgumentNullException.ThrowIfNull(other); 1234ArgumentNullException.ThrowIfNull(other); 1261ArgumentNullException.ThrowIfNull(other); 1293ArgumentNullException.ThrowIfNull(other); 1321ArgumentNullException.ThrowIfNull(other); 1430ArgumentNullException.ThrowIfNull(match); 1535ArgumentNullException.ThrowIfNull(info);
System\Collections\Generic\Stack.cs (3)
52ArgumentNullException.ThrowIfNull(collection); 99ArgumentNullException.ThrowIfNull(array); 122ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\StackDebugView.cs (1)
14ArgumentNullException.ThrowIfNull(stack);
System.Collections.Concurrent (93)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollectionDebugView.cs (1)
23ArgumentNullException.ThrowIfNull(collection);
System\Collections\Concurrent\BlockingCollection.cs (25)
171/// <exception cref="System.ArgumentNullException">The <paramref name="collection"/> argument is 178ArgumentNullException.ThrowIfNull(collection); 193/// <exception cref="System.ArgumentNullException">The <paramref name="collection"/> argument is 197ArgumentNullException.ThrowIfNull(collection); 742/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 784/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 823/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 849/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 877/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 909/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 939/// <exception cref="System.ArgumentNullException">If the collections argument is null.</exception> 1124/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 1152/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 1181/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 1209/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 1240/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 1274/// <exception cref="System.ArgumentNullException">The <paramref name="collections"/> argument is 1307/// <exception cref="System.ArgumentNullException">If the collections argument is null.</exception> 1341/// <exception cref="System.ArgumentNullException">If the collections argument is null.</exception> 1530/// <exception cref="System.ArgumentNullException">The <paramref name="array"/> argument is 1548/// <exception cref="System.ArgumentNullException">The <paramref name="array"/> argument is 1568catch (ArgumentNullException) 1649/// <exception cref="System.ArgumentNullException">If the collections argument is null.</exception> 1655ArgumentNullException.ThrowIfNull(collections); 1739ArgumentNullException.ThrowIfNull(collection);
System\Collections\Concurrent\ConcurrentBag.cs (6)
54/// <exception cref="ArgumentNullException"><paramref name="collection"/> is a null reference 58ArgumentNullException.ThrowIfNull(collection); 268/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in 279ArgumentNullException.ThrowIfNull(array); 342/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in 369ArgumentNullException.ThrowIfNull(array);
System\Collections\Concurrent\ConcurrentDictionary.cs (45)
96/// <exception cref="ArgumentNullException"><paramref name="collection"/> is a null reference (Nothing in Visual Basic).</exception> 117/// <exception cref="ArgumentNullException"><paramref name="collection"/> is a null reference (Nothing in Visual Basic).</exception> 121ArgumentNullException.ThrowIfNull(collection); 138/// <exception cref="ArgumentNullException"><paramref name="collection"/> is a null reference (Nothing in Visual Basic).</exception> 144ArgumentNullException.ThrowIfNull(collection); 365/// <exception cref="ArgumentNullException"><paramref name="key"/> is null reference (Nothing in Visual Basic).</exception> 382/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference (Nothing in Visual Basic).</exception> 395/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference (Nothing in Visual Basic).</exception> 418/// <exception cref="ArgumentNullException"> 516/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference (Nothing in Visual Basic).</exception> 605/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference.</exception> 632/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference.</exception> 744/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in Visual Basic).</exception> 753ArgumentNullException.ThrowIfNull(array); 1059/// <exception cref="ArgumentNullException"> 1173/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1175/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is a null reference 1214/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1216/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is a null reference 1255/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1291/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1293/// <exception cref="ArgumentNullException"><paramref name="addValueFactory"/> is a null reference 1295/// <exception cref="ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference 1366/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1368/// <exception cref="ArgumentNullException"><paramref name="addValueFactory"/> is a null reference 1370/// <exception cref="ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference 1439/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1441/// <exception cref="ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference 1538/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1563/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1595/// <exception cref="ArgumentNullException">The <paramref name="keyValuePair"/> of <paramref 1635/// <exception cref="ArgumentNullException">The Key property of <paramref 1664/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1701/// <exception cref="ArgumentNullException"> <paramref name="key"/> is a null reference 1752/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1783/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1856/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference 1867ArgumentNullException.ThrowIfNull(array); 2356/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2367/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2375/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2527/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2542/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2576/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2588/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception>
System\Collections\Concurrent\ConcurrentStack.cs (13)
77/// <exception cref="System.ArgumentNullException">The <paramref name="collection"/> argument is 81ArgumentNullException.ThrowIfNull(collection); 211/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in 227ArgumentNullException.ThrowIfNull(array); 246/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in 258ArgumentNullException.ThrowIfNull(array); 295/// <exception cref="ArgumentNullException"><paramref name="items"/> is a null reference 306ArgumentNullException.ThrowIfNull(items); 319/// <exception cref="ArgumentNullException"><paramref name="items"/> is a null reference 392ArgumentNullException.ThrowIfNull(items); 489/// <exception cref="ArgumentNullException"><paramref name="items"/> is a null argument (Nothing 500ArgumentNullException.ThrowIfNull(items); 519/// <exception cref="ArgumentNullException"><paramref name="items"/> is a null reference
System\Collections\Concurrent\PartitionerStatic.cs (3)
90ArgumentNullException.ThrowIfNull(list); 116ArgumentNullException.ThrowIfNull(array); 167ArgumentNullException.ThrowIfNull(source);
System.Collections.Immutable (33)
System\Collections\Frozen\FrozenDictionary.AlternateLookup.cs (3)
100/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 119/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 130/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception>
System\Collections\Frozen\FrozenDictionary.cs (5)
119ArgumentNullException.ThrowIfNull(source); 376ArgumentNullException.ThrowIfNull(destination); 402ArgumentNullException.ThrowIfNull(array); 479ArgumentNullException.ThrowIfNull(key); 596ArgumentNullException.ThrowIfNull(key);
System\Collections\Frozen\FrozenSet.cs (8)
64ArgumentNullException.ThrowIfNull(source); 274ArgumentNullException.ThrowIfNull(destination); 427ArgumentNullException.ThrowIfNull(other); 437ArgumentNullException.ThrowIfNull(other); 447ArgumentNullException.ThrowIfNull(other); 457ArgumentNullException.ThrowIfNull(other); 467ArgumentNullException.ThrowIfNull(other); 477ArgumentNullException.ThrowIfNull(other);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
960/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception>
System\Collections\Immutable\ImmutableArray_1.cs (1)
800/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception>
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (5)
404/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> 520/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> 536/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> 573/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> 590/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception>
System\Collections\Immutable\ImmutableDictionary_2.cs (2)
567/// <exception cref="ArgumentNullException"><paramref name="key"/> is null. 587/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
881/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception>
System\Collections\Immutable\ImmutableList_1.cs (1)
438/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception>
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (2)
472/// <exception cref="ArgumentNullException"><paramref name="key"/> is null. 492/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.
Validation\Requires.cs (4)
21/// <exception cref="ArgumentNullException">Thrown if <paramref name="value"/> is <c>null</c></exception> 39/// <exception cref="ArgumentNullException">Thrown if <paramref name="value"/> is <c>null</c></exception> 54/// <exception cref="ArgumentNullException">Thrown if <paramref name="value"/> is <c>null</c></exception> 69/// Throws an <see cref="ArgumentNullException"/>.
System.Collections.NonGeneric (18)
System\Collections\CaseInsensitiveComparer.cs (1)
29ArgumentNullException.ThrowIfNull(culture);
System\Collections\CaseInsensitiveHashCodeProvider.cs (2)
25ArgumentNullException.ThrowIfNull(culture); 36ArgumentNullException.ThrowIfNull(obj);
System\Collections\CollectionBase.cs (1)
230ArgumentNullException.ThrowIfNull(value);
System\Collections\Queue.cs (3)
130ArgumentNullException.ThrowIfNull(array); 210ArgumentNullException.ThrowIfNull(queue); 489ArgumentNullException.ThrowIfNull(queue);
System\Collections\SortedList.cs (8)
175ArgumentNullException.ThrowIfNull(key); 336ArgumentNullException.ThrowIfNull(array); 456ArgumentNullException.ThrowIfNull(key); 477ArgumentNullException.ThrowIfNull(key); 551ArgumentNullException.ThrowIfNull(list); 730ArgumentNullException.ThrowIfNull(key); 971ArgumentNullException.ThrowIfNull(key); 1095ArgumentNullException.ThrowIfNull(sortedList);
System\Collections\Stack.cs (3)
116ArgumentNullException.ThrowIfNull(array); 191ArgumentNullException.ThrowIfNull(stack); 387ArgumentNullException.ThrowIfNull(stack);
System.Collections.Specialized (26)
src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
49ArgumentNullException.ThrowIfNull(obj);
System\Collections\Specialized\HybridDictionary.cs (3)
86ArgumentNullException.ThrowIfNull(key); 282ArgumentNullException.ThrowIfNull(key); 333ArgumentNullException.ThrowIfNull(key);
System\Collections\Specialized\ListDictionary.cs (7)
34ArgumentNullException.ThrowIfNull(key); 65ArgumentNullException.ThrowIfNull(key); 153ArgumentNullException.ThrowIfNull(key); 191ArgumentNullException.ThrowIfNull(key); 206ArgumentNullException.ThrowIfNull(array); 232ArgumentNullException.ThrowIfNull(key); 364ArgumentNullException.ThrowIfNull(array);
System\Collections\Specialized\NameObjectCollectionBase.cs (3)
373ArgumentNullException.ThrowIfNull(array); 440ArgumentNullException.ThrowIfNull(type); 597ArgumentNullException.ThrowIfNull(array);
System\Collections\Specialized\NameValueCollection.cs (2)
160ArgumentNullException.ThrowIfNull(c); 198ArgumentNullException.ThrowIfNull(dest);
System\Collections\Specialized\OrderedDictionary.cs (4)
262ArgumentNullException.ThrowIfNull(key); 351ArgumentNullException.ThrowIfNull(key); 386ArgumentNullException.ThrowIfNull(info); 558ArgumentNullException.ThrowIfNull(array);
System\Collections\Specialized\StringCollection.cs (1)
74ArgumentNullException.ThrowIfNull(value);
System\Collections\Specialized\StringDictionary.cs (5)
69ArgumentNullException.ThrowIfNull(key); 75ArgumentNullException.ThrowIfNull(key); 120ArgumentNullException.ThrowIfNull(key); 138ArgumentNullException.ThrowIfNull(key); 173ArgumentNullException.ThrowIfNull(key);
System.ComponentModel.Annotations (41)
System\ComponentModel\DataAnnotations\AllowedValuesAttribute.cs (1)
22ArgumentNullException.ThrowIfNull(values);
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (2)
42/// <exception cref="System.ArgumentNullException">The value of associatedMetadataType is null.</exception> 48ArgumentNullException.ThrowIfNull(associatedMetadataType);
System\ComponentModel\DataAnnotations\CompareAttribute.cs (2)
17ArgumentNullException.ThrowIfNull(otherProperty); 36ArgumentNullException.ThrowIfNull(validationContext);
System\ComponentModel\DataAnnotations\DeniedValuesAttribute.cs (1)
22ArgumentNullException.ThrowIfNull(values);
System\ComponentModel\DataAnnotations\MetadataTypeAttribute.cs (1)
23/// <exception cref="System.ArgumentNullException">metadataClassType is null.</exception>
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (3)
425/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 432ArgumentNullException.ThrowIfNull(validationContext); 499ArgumentNullException.ThrowIfNull(validationContext);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
139ArgumentNullException.ThrowIfNull(validationContext);
System\ComponentModel\DataAnnotations\ValidationContext.cs (6)
46/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is <c>null</c></exception> 63/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is <c>null</c></exception> 85/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is <c>null</c></exception> 89ArgumentNullException.ThrowIfNull(instance); 117/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is <c>null</c></exception> 125ArgumentNullException.ThrowIfNull(instance);
System\ComponentModel\DataAnnotations\ValidationResult.cs (2)
67/// <exception cref="System.ArgumentNullException">The <paramref name="validationResult" /> is null.</exception> 70ArgumentNullException.ThrowIfNull(validationResult);
System\ComponentModel\DataAnnotations\Validator.cs (22)
89/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is null.</exception> 127/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is null.</exception> 136ArgumentNullException.ThrowIfNull(instance); 188ArgumentNullException.ThrowIfNull(validationAttributes); 213/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 242/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is null.</exception> 243/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 268/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is null.</exception> 269/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 279ArgumentNullException.ThrowIfNull(instance); 280ArgumentNullException.ThrowIfNull(validationContext); 309/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 314ArgumentNullException.ThrowIfNull(validationContext); 315ArgumentNullException.ThrowIfNull(validationAttributes); 334/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 354/// <exception cref="ArgumentNullException">When <paramref name="destinationType" /> is null.</exception> 396/// <exception cref="ArgumentNullException">When <paramref name="instance" /> is null.</exception> 397/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 406ArgumentNullException.ThrowIfNull(validationContext); 551/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 555ArgumentNullException.ThrowIfNull(validationContext); 608/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception>
System.ComponentModel.Composition (221)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (2)
14ArgumentNullException.ThrowIfNull(itemType); 15ArgumentNullException.ThrowIfNull(collectionObject);
Microsoft\Internal\Collections\CollectionServices.cs (3)
61ArgumentNullException.ThrowIfNull(source); 167ArgumentNullException.ThrowIfNull(source); 198ArgumentNullException.ThrowIfNull(stack);
Microsoft\Internal\GenerationServices.cs (9)
167ArgumentNullException.ThrowIfNull(dictionary); 168ArgumentNullException.ThrowIfNull(key); 169ArgumentNullException.ThrowIfNull(value); 186ArgumentNullException.ThrowIfNull(dictionary); 187ArgumentNullException.ThrowIfNull(key); 188ArgumentNullException.ThrowIfNull(value); 204ArgumentNullException.ThrowIfNull(exception); 205ArgumentNullException.ThrowIfNull(dataStore); 216ArgumentNullException.ThrowIfNull(enumerable);
Microsoft\Internal\LazyServices.cs (1)
13ArgumentNullException.ThrowIfNull(lazy);
Microsoft\Internal\ReflectionServices.cs (2)
62ArgumentNullException.ThrowIfNull(declaringType); 69ArgumentNullException.ThrowIfNull(member);
System\ComponentModel\Composition\AttributedModel\AttributedExportDefinition.cs (3)
24ArgumentNullException.ThrowIfNull(partCreationInfo); 25ArgumentNullException.ThrowIfNull(member); 26ArgumentNullException.ThrowIfNull(exportAttribute);
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (6)
29ArgumentNullException.ThrowIfNull(type); 38ArgumentNullException.ThrowIfNull(attributedPart); 48ArgumentNullException.ThrowIfNull(attributedPart); 49ArgumentNullException.ThrowIfNull(reflectionContext); 65ArgumentNullException.ThrowIfNull(partDefinition); 66ArgumentNullException.ThrowIfNull(attributedPart);
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (2)
29ArgumentNullException.ThrowIfNull(type); 186ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\Composition\AttributedModelServices.cs (2)
168/// <exception cref="ArgumentNullException"> 199/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\CatalogReflectionContextAttribute.cs (1)
27ArgumentNullException.ThrowIfNull(_reflectionContextType);
System\ComponentModel\Composition\CompositionContractMismatchException.cs (1)
71/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\ConstraintServices.cs (6)
58ArgumentNullException.ThrowIfNull(parameter); 68ArgumentNullException.ThrowIfNull(requiredMetadata); 69ArgumentNullException.ThrowIfNull(parameter); 86ArgumentNullException.ThrowIfNull(parameter); 106ArgumentNullException.ThrowIfNull(requiredTypeIdentity); 107ArgumentNullException.ThrowIfNull(parameter);
System\ComponentModel\Composition\ContractNameServices.cs (1)
46ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\Composition\ErrorBuilder.cs (11)
37ArgumentNullException.ThrowIfNull(exception); 38ArgumentNullException.ThrowIfNull(definition); 49ArgumentNullException.ThrowIfNull(part); 50ArgumentNullException.ThrowIfNull(innerException); 63ArgumentNullException.ThrowIfNull(part); 64ArgumentNullException.ThrowIfNull(definition); 65ArgumentNullException.ThrowIfNull(innerException); 79ArgumentNullException.ThrowIfNull(part); 80ArgumentNullException.ThrowIfNull(definition); 81ArgumentNullException.ThrowIfNull(innerException); 95ArgumentNullException.ThrowIfNull(part);
System\ComponentModel\Composition\ExceptionBuilder.cs (11)
21ArgumentNullException.ThrowIfNull(parameterName); 30ArgumentNullException.ThrowIfNull(instance); 37ArgumentNullException.ThrowIfNull(memberName); 51ArgumentNullException.ThrowIfNull(parameterName); 66ArgumentNullException.ThrowIfNull(parameterName); 80ArgumentNullException.ThrowIfNull(part); 81ArgumentNullException.ThrowIfNull(definition); 82ArgumentNullException.ThrowIfNull(innerException); 90ArgumentNullException.ThrowIfNull(parameterName); 97ArgumentNullException.ThrowIfNull(partDefinitionType); 104ArgumentNullException.ThrowIfNull(typeName);
System\ComponentModel\Composition\ExportFactoryOfT.cs (1)
12ArgumentNullException.ThrowIfNull(exportLifetimeContextCreator);
System\ComponentModel\Composition\ExportServices.cs (4)
28ArgumentNullException.ThrowIfNull(metadataViewType); 38ArgumentNullException.ThrowIfNull(metadataViewType); 59ArgumentNullException.ThrowIfNull(genericMethod); 69ArgumentNullException.ThrowIfNull(genericMethod);
System\ComponentModel\Composition\ExportServices.DisposableLazy.cs (2)
17ArgumentNullException.ThrowIfNull(disposable); 35ArgumentNullException.ThrowIfNull(disposable);
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (2)
40/// <exception cref="ArgumentNullException"> 113/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
149/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (5)
41/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 150/// <exception cref="ArgumentNullException"> 210/// <exception cref="ArgumentNullException"> 412/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\AtomicCompositionExtensions.cs (3)
11ArgumentNullException.ThrowIfNull(defaultResultAndKey); 29ArgumentNullException.ThrowIfNull(action); 43ArgumentNullException.ThrowIfNull(action);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (8)
27ArgumentNullException.ThrowIfNull(outerExportProvider); 59/// <exception cref="ArgumentNullException"> 131/// <exception cref="ArgumentNullException"> 512ArgumentNullException.ThrowIfNull(part); 513ArgumentNullException.ThrowIfNull(export); 550ArgumentNullException.ThrowIfNull(catalogPart); 598ArgumentNullException.ThrowIfNull(exportedValue); 599ArgumentNullException.ThrowIfNull(part);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (2)
18ArgumentNullException.ThrowIfNull(catalogExportProvider); 19ArgumentNullException.ThrowIfNull(scopeDefinition);
System\ComponentModel\Composition\Hosting\ComposablePartCatalogChangeEventArgs.cs (1)
38/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (3)
108/// <exception cref="ArgumentNullException"> 317ArgumentNullException.ThrowIfNull(batch); 354ArgumentNullException.ThrowIfNull(batch);
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (3)
106/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 158/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\CompositionBatch.SingleExportComposablePart.cs (1)
20ArgumentNullException.ThrowIfNull(export);
System\ComponentModel\Composition\Hosting\CompositionContainer.CompositionServiceShim.cs (1)
16ArgumentNullException.ThrowIfNull(innerContainer);
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (6)
392/// <exception cref="ArgumentNullException"> 421/// <exception cref="ArgumentNullException"> 439/// <exception cref="ArgumentNullException"> 460/// <exception cref="ArgumentNullException"> 481/// <exception cref="ArgumentNullException"> 504/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (2)
166/// <exception cref="ArgumentNullException"> 189ArgumentNullException.ThrowIfNull(definition);
System\ComponentModel\Composition\Hosting\CompositionService.cs (1)
22ArgumentNullException.ThrowIfNull(composablePartCatalog);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
28ArgumentNullException.ThrowIfNull(member); 63ArgumentNullException.ThrowIfNull(specifiedContractType); 405ArgumentNullException.ThrowIfNull(itemType); 620ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (9)
58/// <exception cref="ArgumentNullException"> 96/// <exception cref="ArgumentNullException"> 134/// <exception cref="ArgumentNullException"> 176/// <exception cref="ArgumentNullException"> 216/// <exception cref="ArgumentNullException"> 259/// <exception cref="ArgumentNullException"> 307/// <exception cref="ArgumentNullException"> 360/// <exception cref="ArgumentNullException"> 516/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\ExportProvider.cs (4)
47/// <exception cref="ArgumentNullException"> 81/// <exception cref="ArgumentNullException"> 141/// <exception cref="ArgumentNullException"> 210ArgumentNullException.ThrowIfNull(definition);
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (4)
252/// <exception cref="ArgumentNullException"> 796ArgumentNullException.ThrowIfNull(type); 797ArgumentNullException.ThrowIfNull(metadataViewType); 798ArgumentNullException.ThrowIfNull(contractName);
System\ComponentModel\Composition\Hosting\ExportsChangeEventArgs.cs (1)
41/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (1)
136/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (2)
22ArgumentNullException.ThrowIfNull(catalog); 23ArgumentNullException.ThrowIfNull(importFilter);
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (2)
28ArgumentNullException.ThrowIfNull(catalog); 29ArgumentNullException.ThrowIfNull(importFilter);
System\ComponentModel\Composition\Hosting\FilteredCatalog.Traversal.cs (2)
61ArgumentNullException.ThrowIfNull(traversal); 82ArgumentNullException.ThrowIfNull(traversal);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (4)
146/// <exception cref="ArgumentNullException"> 183/// <exception cref="ArgumentNullException"> 412ArgumentNullException.ThrowIfNull(part); 689ArgumentNullException.ThrowIfNull(atomicComposition);
System\ComponentModel\Composition\Hosting\ImportEngine.EngineContext.cs (2)
30ArgumentNullException.ThrowIfNull(part); 40ArgumentNullException.ThrowIfNull(part);
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
35ArgumentNullException.ThrowIfNull(sourceDefinition);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (6)
42/// <exception cref="ArgumentNullException"> 64/// <exception cref="ArgumentNullException"> 92/// <exception cref="ArgumentNullException"> 120/// <exception cref="ArgumentNullException"> 156/// <exception cref="ArgumentNullException"> 289ArgumentNullException.ThrowIfNull(definition);
System\ComponentModel\Composition\ICompositionService.cs (1)
20/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\ImportCardinalityMismatchException.cs (1)
74/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\MetadataServices.cs (1)
31ArgumentNullException.ThrowIfNull(metadata);
System\ComponentModel\Composition\MetadataViewGenerator.cs (2)
93ArgumentNullException.ThrowIfNull(viewType); 139ArgumentNullException.ThrowIfNull(metadataViewFactory);
System\ComponentModel\Composition\MetadataViewProvider.cs (2)
17ArgumentNullException.ThrowIfNull(metadata); 128ArgumentNullException.ThrowIfNull(metadataViewType);
System\ComponentModel\Composition\Primitives\ComposablePart.cs (2)
140/// <exception cref="ArgumentNullException"> 170/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
84/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Primitives\ComposablePartException.cs (2)
41/// <exception cref="ArgumentNullException"> 164/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (3)
86/// <exception cref="ArgumentNullException"> 148/// <exception cref="ArgumentNullException"> 292/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Primitives\Export.cs (3)
48/// <exception cref="ArgumentNullException"> 81/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Primitives\ExportDefinition.cs (1)
48/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (2)
74/// <exception cref="ArgumentNullException"> 259/// <exception cref="ArgumentNullException">
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.cs (1)
18ArgumentNullException.ThrowIfNull(exportFactoryType);
System\ComponentModel\Composition\ReflectionModel\ExportingMember.cs (2)
20ArgumentNullException.ThrowIfNull(definition); 21ArgumentNullException.ThrowIfNull(member);
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (2)
16ArgumentNullException.ThrowIfNull(type); 38ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (6)
34ArgumentNullException.ThrowIfNull(originalPartCreationInfo); 35ArgumentNullException.ThrowIfNull(originalPart); 36ArgumentNullException.ThrowIfNull(specialization); 112ArgumentNullException.ThrowIfNull(_membersTable); 120ArgumentNullException.ThrowIfNull(_parametersTable); 173ArgumentNullException.ThrowIfNull(members);
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (3)
17ArgumentNullException.ThrowIfNull(definition); 47ArgumentNullException.ThrowIfNull(exports); 67ArgumentNullException.ThrowIfNull(exports);
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (5)
22ArgumentNullException.ThrowIfNull(member); 107ArgumentNullException.ThrowIfNull(values); 122ArgumentNullException.ThrowIfNull(itemType); 215ArgumentNullException.ThrowIfNull(collection); 216ArgumentNullException.ThrowIfNull(values);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (3)
37ArgumentNullException.ThrowIfNull(type); 110ArgumentNullException.ThrowIfNull(type); 111ArgumentNullException.ThrowIfNull(baseType);
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (1)
22ArgumentNullException.ThrowIfNull(productImportDefinition);
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
23ArgumentNullException.ThrowIfNull(productImportDefinition);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
26ArgumentNullException.ThrowIfNull(creationInfo);
System\ComponentModel\Composition\ReflectionModel\ReflectionExtensions.cs (7)
46ArgumentNullException.ThrowIfNull(member); 83ArgumentNullException.ThrowIfNull(property); 100ArgumentNullException.ThrowIfNull(parameter); 107ArgumentNullException.ThrowIfNull(method); 114ArgumentNullException.ThrowIfNull(field); 121ArgumentNullException.ThrowIfNull(type); 128ArgumentNullException.ThrowIfNull(member);
System\ComponentModel\Composition\ReflectionModel\ReflectionField.cs (1)
15ArgumentNullException.ThrowIfNull(field);
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberExportDefinition.cs (1)
19ArgumentNullException.ThrowIfNull(exportDefinition);
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberImportDefinition.cs (1)
27ArgumentNullException.ThrowIfNull(contractName);
System\ComponentModel\Composition\ReflectionModel\ReflectionMethod.cs (1)
15ArgumentNullException.ThrowIfNull(method);
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (1)
335ArgumentNullException.ThrowIfNull(partType);
System\ComponentModel\Composition\ReflectionModel\ReflectionParameter.cs (1)
16ArgumentNullException.ThrowIfNull(parameter);
System\ComponentModel\Composition\ReflectionModel\ReflectionParameterImportDefinition.cs (1)
27ArgumentNullException.ThrowIfNull(importingLazyParameter);
System\ComponentModel\Composition\ReflectionModel\ReflectionType.cs (1)
14ArgumentNullException.ThrowIfNull(type);
System\Composition\Diagnostics\CompositionTrace.cs (11)
17ArgumentNullException.ThrowIfNull(definition); 29ArgumentNullException.ThrowIfNull(definition); 30ArgumentNullException.ThrowIfNull(exception); 43ArgumentNullException.ThrowIfNull(catalog); 44ArgumentNullException.ThrowIfNull(fileName); 45ArgumentNullException.ThrowIfNull(exception); 64ArgumentNullException.ThrowIfNull(type); 76ArgumentNullException.ThrowIfNull(type); 77ArgumentNullException.ThrowIfNull(member); 89ArgumentNullException.ThrowIfNull(type); 101ArgumentNullException.ThrowIfNull(item);
System.ComponentModel.Composition.Registration (32)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (12)
38ArgumentNullException.ThrowIfNull(type); 39ArgumentNullException.ThrowIfNull(member); 51ArgumentNullException.ThrowIfNull(type); 52ArgumentNullException.ThrowIfNull(member); 64ArgumentNullException.ThrowIfNull(type); 65ArgumentNullException.ThrowIfNull(member); 77ArgumentNullException.ThrowIfNull(type); 89ArgumentNullException.ThrowIfNull(type); 90ArgumentNullException.ThrowIfNull(member); 102ArgumentNullException.ThrowIfNull(type); 114ArgumentNullException.ThrowIfNull(parameter); 115ArgumentNullException.ThrowIfNull(constructor);
System\ComponentModel\Composition\Registration\PartBuilder.cs (9)
102ArgumentNullException.ThrowIfNull(interfaceFilter); 112ArgumentNullException.ThrowIfNull(propertyFilter); 120ArgumentNullException.ThrowIfNull(propertyFilter); 130ArgumentNullException.ThrowIfNull(propertyFilter); 138ArgumentNullException.ThrowIfNull(propertyFilter); 148ArgumentNullException.ThrowIfNull(propertyFilter); 156ArgumentNullException.ThrowIfNull(propertyFilter); 165ArgumentNullException.ThrowIfNull(propertyFilter); 173ArgumentNullException.ThrowIfNull(propertyFilter);
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (7)
44ArgumentNullException.ThrowIfNull(propertyFilter); 96ArgumentNullException.ThrowIfNull(constructorFilter); 150ArgumentNullException.ThrowIfNull(constructorFilter); 168ArgumentNullException.ThrowIfNull(propertyFilter); 184ArgumentNullException.ThrowIfNull(propertyFilter); 200ArgumentNullException.ThrowIfNull(propertyFilter); 216ArgumentNullException.ThrowIfNull(propertyFilter);
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (4)
43ArgumentNullException.ThrowIfNull(type); 61ArgumentNullException.ThrowIfNull(type); 71ArgumentNullException.ThrowIfNull(typeFilter); 81ArgumentNullException.ThrowIfNull(typeFilter);
System.ComponentModel.EventBasedAsync (1)
System\ComponentModel\AsyncOperation.cs (1)
67ArgumentNullException.ThrowIfNull(d);
System.ComponentModel.Primitives (17)
System\ComponentModel\Design\Serialization\DesignerSerializerAttribute.cs (3)
21ArgumentNullException.ThrowIfNull(serializerType); 22ArgumentNullException.ThrowIfNull(baseSerializerType); 33ArgumentNullException.ThrowIfNull(baseSerializerType);
System\ComponentModel\DesignerAttribute.cs (7)
22ArgumentNullException.ThrowIfNull(designerTypeName); 34ArgumentNullException.ThrowIfNull(designerType); 46ArgumentNullException.ThrowIfNull(designerTypeName); 58ArgumentNullException.ThrowIfNull(designerTypeName); 59ArgumentNullException.ThrowIfNull(designerBaseType); 71ArgumentNullException.ThrowIfNull(designerType); 72ArgumentNullException.ThrowIfNull(designerBaseType);
System\ComponentModel\EditorAttribute.cs (5)
32ArgumentNullException.ThrowIfNull(typeName); 43ArgumentNullException.ThrowIfNull(typeName); 44ArgumentNullException.ThrowIfNull(baseType); 55ArgumentNullException.ThrowIfNull(type); 56ArgumentNullException.ThrowIfNull(baseType);
System\ComponentModel\EventHandlerList.cs (1)
74ArgumentNullException.ThrowIfNull(listToAddFrom);
System\ComponentModel\InvalidEnumArgumentException.cs (1)
53ArgumentNullException.ThrowIfNull(enumClass);
System.ComponentModel.TypeConverter (165)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (6)
505ArgumentNullException.ThrowIfNull(func); 506ArgumentNullException.ThrowIfNull(element); 527ArgumentNullException.ThrowIfNull(expandedName); 549ArgumentNullException.ThrowIfNull(func); 550ArgumentNullException.ThrowIfNull(element); 561ArgumentNullException.ThrowIfNull(expandedName);
System\ComponentModel\AttributeCollection.cs (5)
50ArgumentNullException.ThrowIfNull(_attributes[idx], nameof(attributes)); 63ArgumentNullException.ThrowIfNull(existing); 73ArgumentNullException.ThrowIfNull(newAttributes[idx], nameof(newAttributes)); 131ArgumentNullException.ThrowIfNull(attributeType); 245ArgumentNullException.ThrowIfNull(attributeType);
System\ComponentModel\AttributeProviderAttribute.cs (4)
18ArgumentNullException.ThrowIfNull(typeName); 28ArgumentNullException.ThrowIfNull(typeName); 29ArgumentNullException.ThrowIfNull(propertyName); 40ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\BaseNumberConverter.cs (1)
92ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\ComponentResourceManager.cs (4)
68ArgumentNullException.ThrowIfNull(value); 69ArgumentNullException.ThrowIfNull(objectName); 82ArgumentNullException.ThrowIfNull(value); 83ArgumentNullException.ThrowIfNull(objectName);
System\ComponentModel\Container.cs (1)
222ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\CultureInfoConverter.cs (1)
34ArgumentNullException.ThrowIfNull(culture);
System\ComponentModel\Design\DesignerOptionService.cs (4)
37ArgumentNullException.ThrowIfNull(parent); 38ArgumentNullException.ThrowIfNull(name); 55ArgumentNullException.ThrowIfNull(pageName); 56ArgumentNullException.ThrowIfNull(valueName);
System\ComponentModel\Design\DesignerVerbCollection.cs (2)
26ArgumentNullException.ThrowIfNull(value); 36ArgumentNullException.ThrowIfNull(value);
System\ComponentModel\Design\DesigntimeLicenseContext.cs (1)
35ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\Design\HelpKeywordAttribute.cs (2)
64ArgumentNullException.ThrowIfNull(keyword); 74ArgumentNullException.ThrowIfNull(t);
System\ComponentModel\Design\Serialization\ContextStack.cs (3)
70ArgumentNullException.ThrowIfNull(type); 98ArgumentNullException.ThrowIfNull(context); 127ArgumentNullException.ThrowIfNull(context);
System\ComponentModel\Design\Serialization\DefaultSerializationProviderAttribute.cs (2)
21ArgumentNullException.ThrowIfNull(providerType); 31ArgumentNullException.ThrowIfNull(providerTypeName);
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (6)
76ArgumentNullException.ThrowIfNull(sourceOwner); 77ArgumentNullException.ThrowIfNull(sourceMember); 83ArgumentNullException.ThrowIfNull(sourceOwner); 84ArgumentNullException.ThrowIfNull(sourceMember); 182ArgumentNullException.ThrowIfNull(owner); 183ArgumentNullException.ThrowIfNull(member);
System\ComponentModel\Design\Serialization\RootDesignerSerializerAttribute.cs (3)
22ArgumentNullException.ThrowIfNull(serializerType); 23ArgumentNullException.ThrowIfNull(baseSerializerType); 35ArgumentNullException.ThrowIfNull(baseSerializerType);
System\ComponentModel\Design\ServiceContainer.cs (5)
81ArgumentNullException.ThrowIfNull(serviceType); 82ArgumentNullException.ThrowIfNull(serviceInstance); 122ArgumentNullException.ThrowIfNull(serviceType); 123ArgumentNullException.ThrowIfNull(callback); 236ArgumentNullException.ThrowIfNull(serviceType);
System\ComponentModel\EnumConverter.cs (1)
125ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\InstallerTypeAttribute.cs (1)
22ArgumentNullException.ThrowIfNull(installerType);
System\ComponentModel\MaskedTextProvider.cs (5)
871ArgumentNullException.ThrowIfNull(input); 1243ArgumentNullException.ThrowIfNull(input); 1777ArgumentNullException.ThrowIfNull(input); 1812ArgumentNullException.ThrowIfNull(input); 1993ArgumentNullException.ThrowIfNull(input);
System\ComponentModel\MemberDescriptor.cs (9)
43ArgumentNullException.ThrowIfNull(name); 68ArgumentNullException.ThrowIfNull(descr); 89ArgumentNullException.ThrowIfNull(oldMemberDescriptor); 312ArgumentNullException.ThrowIfNull(attributeList); 403ArgumentNullException.ThrowIfNull(componentClass); 435ArgumentNullException.ThrowIfNull(type); 436ArgumentNullException.ThrowIfNull(instance); 449ArgumentNullException.ThrowIfNull(componentClass); 450ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\MultilineStringConverter.cs (1)
19ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\NestedContainer.cs (2)
23ArgumentNullException.ThrowIfNull(owner); 66ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\NullableConverter.cs (1)
102ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\PropertyDescriptor.cs (4)
170ArgumentNullException.ThrowIfNull(component); 171ArgumentNullException.ThrowIfNull(handler); 437ArgumentNullException.ThrowIfNull(component); 438ArgumentNullException.ThrowIfNull(handler);
System\ComponentModel\ProvidePropertyAttribute.cs (1)
21ArgumentNullException.ThrowIfNull(receiverType);
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
501ArgumentNullException.ThrowIfNull(component); 502ArgumentNullException.ThrowIfNull(handler); 977ArgumentNullException.ThrowIfNull(component); 978ArgumentNullException.ThrowIfNull(handler);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (2)
223ArgumentNullException.ThrowIfNull(editorBaseType); 651ArgumentNullException.ThrowIfNull(instance);
System\ComponentModel\ToolboxItemAttribute.cs (2)
59ArgumentNullException.ThrowIfNull(toolboxItemTypeName); 69ArgumentNullException.ThrowIfNull(toolboxItemType);
System\ComponentModel\TypeConverter.cs (1)
115ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\TypeDescriptionProvider.cs (11)
75ArgumentNullException.ThrowIfNull(objectType); 149ArgumentNullException.ThrowIfNull(instance); 194ArgumentNullException.ThrowIfNull(instance); 234ArgumentNullException.ThrowIfNull(reflectionType); 268ArgumentNullException.ThrowIfNull(instance); 307ArgumentNullException.ThrowIfNull(objectType); 327ArgumentNullException.ThrowIfNull(instance); 358ArgumentNullException.ThrowIfNull(objectType); 393/// <exception cref="ArgumentNullException">If <paramref name="type"/> is null.</exception> 396ArgumentNullException.ThrowIfNull(type); 412ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\TypeDescriptor.cs (58)
202ArgumentNullException.ThrowIfNull(type); 203ArgumentNullException.ThrowIfNull(attributes); 224ArgumentNullException.ThrowIfNull(instance); 225ArgumentNullException.ThrowIfNull(attributes); 258ArgumentNullException.ThrowIfNull(provider); 259ArgumentNullException.ThrowIfNull(type); 284ArgumentNullException.ThrowIfNull(provider); 285ArgumentNullException.ThrowIfNull(instance); 318ArgumentNullException.ThrowIfNull(provider); 319ArgumentNullException.ThrowIfNull(type); 334ArgumentNullException.ThrowIfNull(provider); 335ArgumentNullException.ThrowIfNull(instance); 417ArgumentNullException.ThrowIfNull(primary); 418ArgumentNullException.ThrowIfNull(secondary); 493ArgumentNullException.ThrowIfNull(objectType); 497ArgumentNullException.ThrowIfNull(args); 619ArgumentNullException.ThrowIfNull(type); 620ArgumentNullException.ThrowIfNull(primary); 983ArgumentNullException.ThrowIfNull(type, typeName); 997ArgumentNullException.ThrowIfNull(type, typeName); 1080ArgumentNullException.ThrowIfNull(editorBaseType); 1093ArgumentNullException.ThrowIfNull(editorBaseType); 1118ArgumentNullException.ThrowIfNull(componentType); 1316ArgumentNullException.ThrowIfNull(component); 1355ArgumentNullException.ThrowIfNull(componentType); 1538ArgumentNullException.ThrowIfNull(type); 1552ArgumentNullException.ThrowIfNull(instance); 1562ArgumentNullException.ThrowIfNull(component); 1616ArgumentNullException.ThrowIfNull(type); 1628ArgumentNullException.ThrowIfNull(instance); 2630ArgumentNullException.ThrowIfNull(primary); 2631ArgumentNullException.ThrowIfNull(secondary); 2660ArgumentNullException.ThrowIfNull(primary); 2674ArgumentNullException.ThrowIfNull(provider); 2675ArgumentNullException.ThrowIfNull(type); 2691ArgumentNullException.ThrowIfNull(provider); 2692ArgumentNullException.ThrowIfNull(instance); 2709ArgumentNullException.ThrowIfNull(provider); 2710ArgumentNullException.ThrowIfNull(type); 2724ArgumentNullException.ThrowIfNull(provider); 2725ArgumentNullException.ThrowIfNull(instance); 2760ArgumentNullException.ThrowIfNull(infos); 2790ArgumentNullException.ThrowIfNull(objectType); 3167ArgumentNullException.ThrowIfNull(editorBaseType); 3264ArgumentNullException.ThrowIfNull(objectType); 3268ArgumentNullException.ThrowIfNull(args); 3285ArgumentNullException.ThrowIfNull(instance); 3297ArgumentNullException.ThrowIfNull(instance); 3309ArgumentNullException.ThrowIfNull(instance); 3322ArgumentNullException.ThrowIfNull(instance); 3339ArgumentNullException.ThrowIfNull(component); 3353ArgumentNullException.ThrowIfNull(objectType); 3360ArgumentNullException.ThrowIfNull(objectType); 3371ArgumentNullException.ThrowIfNull(objectType); 3387ArgumentNullException.ThrowIfNull(objectType); 3413ArgumentNullException.ThrowIfNull(type); 3601ArgumentNullException.ThrowIfNull(editorBaseType); 3995ArgumentNullException.ThrowIfNull(editorBaseType);
System\ComponentModel\TypeListConverter.cs (1)
70ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\UriTypeConverter.cs (1)
67ArgumentNullException.ThrowIfNull(destinationType);
System\ComponentModel\VersionConverter.cs (1)
68ArgumentNullException.ThrowIfNull(destinationType);
System\Drawing\ColorConverter.cs (1)
50ArgumentNullException.ThrowIfNull(destinationType);
System\Drawing\PointConverter.cs (2)
58ArgumentNullException.ThrowIfNull(destinationType); 90ArgumentNullException.ThrowIfNull(propertyValues);
System\Drawing\RectangleConverter.cs (2)
60ArgumentNullException.ThrowIfNull(destinationType); 97ArgumentNullException.ThrowIfNull(propertyValues);
System\Drawing\SizeConverter.cs (2)
58ArgumentNullException.ThrowIfNull(destinationType); 90ArgumentNullException.ThrowIfNull(propertyValues);
System\Drawing\SizeFConverter.cs (2)
58ArgumentNullException.ThrowIfNull(destinationType); 88ArgumentNullException.ThrowIfNull(propertyValues);
System.Composition.Convention (61)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (12)
38ArgumentNullException.ThrowIfNull(type); 39ArgumentNullException.ThrowIfNull(member); 51ArgumentNullException.ThrowIfNull(type); 52ArgumentNullException.ThrowIfNull(member); 64ArgumentNullException.ThrowIfNull(type); 65ArgumentNullException.ThrowIfNull(member); 77ArgumentNullException.ThrowIfNull(type); 89ArgumentNullException.ThrowIfNull(type); 90ArgumentNullException.ThrowIfNull(member); 102ArgumentNullException.ThrowIfNull(type); 114ArgumentNullException.ThrowIfNull(parameter); 115ArgumentNullException.ThrowIfNull(constructor);
System\Composition\Convention\ConventionBuilder.cs (6)
50ArgumentNullException.ThrowIfNull(type); 76ArgumentNullException.ThrowIfNull(type); 92ArgumentNullException.ThrowIfNull(typeFilter); 107ArgumentNullException.ThrowIfNull(typeFilter); 149ArgumentNullException.ThrowIfNull(member); 286ArgumentNullException.ThrowIfNull(parameter);
System\Composition\Convention\ExportConventionBuilder.cs (6)
43ArgumentNullException.ThrowIfNull(type); 56ArgumentNullException.ThrowIfNull(contractName); 73ArgumentNullException.ThrowIfNull(getContractNameFromPartType); 87ArgumentNullException.ThrowIfNull(name); 107ArgumentNullException.ThrowIfNull(name); 108ArgumentNullException.ThrowIfNull(getValueFromPartType);
System\Composition\Convention\ImportConventionBuilder.cs (5)
33ArgumentNullException.ThrowIfNull(contractName); 50ArgumentNullException.ThrowIfNull(getContractNameFromPartType); 95ArgumentNullException.ThrowIfNull(name); 115ArgumentNullException.ThrowIfNull(name); 116ArgumentNullException.ThrowIfNull(getConstraintValueFromPartType);
System\Composition\Convention\PartConventionBuilder.cs (23)
68ArgumentNullException.ThrowIfNull(exportConfiguration); 94ArgumentNullException.ThrowIfNull(exportConfiguration); 109ArgumentNullException.ThrowIfNull(constructorSelector); 124ArgumentNullException.ThrowIfNull(importConfiguration); 138ArgumentNullException.ThrowIfNull(interfaceFilter); 161ArgumentNullException.ThrowIfNull(interfaceFilter); 162ArgumentNullException.ThrowIfNull(exportConfiguration); 181ArgumentNullException.ThrowIfNull(propertyFilter); 195ArgumentNullException.ThrowIfNull(propertyFilter); 196ArgumentNullException.ThrowIfNull(exportConfiguration); 216ArgumentNullException.ThrowIfNull(propertyFilter); 231ArgumentNullException.ThrowIfNull(propertyFilter); 232ArgumentNullException.ThrowIfNull(exportConfiguration); 251ArgumentNullException.ThrowIfNull(propertyFilter); 265ArgumentNullException.ThrowIfNull(propertyFilter); 266ArgumentNullException.ThrowIfNull(importConfiguration); 286ArgumentNullException.ThrowIfNull(propertyFilter); 301ArgumentNullException.ThrowIfNull(propertyFilter); 302ArgumentNullException.ThrowIfNull(importConfiguration); 341ArgumentNullException.ThrowIfNull(sharingBoundary); 366ArgumentNullException.ThrowIfNull(name); 386ArgumentNullException.ThrowIfNull(name); 387ArgumentNullException.ThrowIfNull(getValueFromPartType);
System\Composition\Convention\PartConventionBuilderOfT.cs (9)
32ArgumentNullException.ThrowIfNull(methodSelector); 100ArgumentNullException.ThrowIfNull(propertySelector); 156ArgumentNullException.ThrowIfNull(constructorSelector); 211ArgumentNullException.ThrowIfNull(constructorSelector); 238ArgumentNullException.ThrowIfNull(propertySelector); 268ArgumentNullException.ThrowIfNull(propertySelector); 295ArgumentNullException.ThrowIfNull(propertySelector); 324ArgumentNullException.ThrowIfNull(propertySelector); 337ArgumentNullException.ThrowIfNull(methodSelector);
System.Composition.Hosting (18)
System\Composition\Hosting\CompositionHost.cs (1)
46ArgumentNullException.ThrowIfNull(providers);
System\Composition\Hosting\Core\CompositionDependency.cs (8)
42ArgumentNullException.ThrowIfNull(contract); 43ArgumentNullException.ThrowIfNull(target); 44ArgumentNullException.ThrowIfNull(site); 58ArgumentNullException.ThrowIfNull(contract); 59ArgumentNullException.ThrowIfNull(site); 74ArgumentNullException.ThrowIfNull(contract); 75ArgumentNullException.ThrowIfNull(targets); 76ArgumentNullException.ThrowIfNull(site);
System\Composition\Hosting\Core\CompositionOperation.cs (4)
33ArgumentNullException.ThrowIfNull(outermostLifetimeContext); 34ArgumentNullException.ThrowIfNull(compositionRootActivator); 51ArgumentNullException.ThrowIfNull(action); 65ArgumentNullException.ThrowIfNull(action);
System\Composition\Hosting\Core\DirectExportDescriptor.cs (2)
15ArgumentNullException.ThrowIfNull(activator); 16ArgumentNullException.ThrowIfNull(metadata);
System\Composition\Hosting\Util\Formatters.cs (3)
13ArgumentNullException.ThrowIfNull(items); 21ArgumentNullException.ThrowIfNull(type); 32ArgumentNullException.ThrowIfNull(closedGenericType);
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
143ArgumentNullException.ThrowIfNull(constraintName);
System.Composition.TypedParts (15)
System\Composition\CompositionContextExtensions.cs (3)
47ArgumentNullException.ThrowIfNull(exportProvider); 48ArgumentNullException.ThrowIfNull(objectWithLooseImports); 49ArgumentNullException.ThrowIfNull(conventions);
System\Composition\Hosting\ContainerConfiguration.cs (10)
52ArgumentNullException.ThrowIfNull(exportDescriptorProvider); 67ArgumentNullException.ThrowIfNull(conventions); 154ArgumentNullException.ThrowIfNull(partTypes); 203ArgumentNullException.ThrowIfNull(assemblies); 216ArgumentNullException.ThrowIfNull(exportedInstance); 231ArgumentNullException.ThrowIfNull(exportedInstance); 244ArgumentNullException.ThrowIfNull(contractType); 245ArgumentNullException.ThrowIfNull(exportedInstance); 260ArgumentNullException.ThrowIfNull(contractType); 261ArgumentNullException.ThrowIfNull(exportedInstance);
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
24ArgumentNullException.ThrowIfNull(attributeContext);
System\Composition\TypedParts\Util\DirectAttributeContext.cs (1)
25ArgumentNullException.ThrowIfNull(parameter);
System.Configuration.ConfigurationManager (12)
System\Configuration\ApplicationSettingsBase.cs (1)
59ArgumentNullException.ThrowIfNull(owner);
System\Configuration\AppSettingsReader.cs (2)
33ArgumentNullException.ThrowIfNull(key); 34ArgumentNullException.ThrowIfNull(type);
System\Configuration\CallbackValidator.cs (1)
20ArgumentNullException.ThrowIfNull(callback);
System\Configuration\ConfigurationElementCollection.cs (1)
34ArgumentNullException.ThrowIfNull(comparer);
System\Configuration\ConfigurationElementProperty.cs (1)
14ArgumentNullException.ThrowIfNull(validator);
System\Configuration\ConfigurationSectionCollection.cs (1)
66ArgumentNullException.ThrowIfNull(array);
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
70ArgumentNullException.ThrowIfNull(array);
System\Configuration\PositiveTimeSpanValidator.cs (1)
15ArgumentNullException.ThrowIfNull(value);
System\Configuration\PropertyInformationCollection.cs (1)
44ArgumentNullException.ThrowIfNull(array);
System\Configuration\ProtectedConfigurationProviderCollection.cs (1)
14ArgumentNullException.ThrowIfNull(provider);
System\Configuration\SettingsProviderCollection.cs (1)
12ArgumentNullException.ThrowIfNull(provider);
System.Console (10)
System\Console.cs (6)
90ArgumentNullException.ThrowIfNull(value); 130ArgumentNullException.ThrowIfNull(value); 505ArgumentNullException.ThrowIfNull(value); 661ArgumentNullException.ThrowIfNull(newIn); 672ArgumentNullException.ThrowIfNull(newOut); 692ArgumentNullException.ThrowIfNull(newError);
System\IO\SyncTextReader.cs (2)
120ArgumentNullException.ThrowIfNull(buffer); 132ArgumentNullException.ThrowIfNull(buffer);
System\TermInfo.cs (2)
62ArgumentNullException.ThrowIfNull(format); 63ArgumentNullException.ThrowIfNull(args);
System.Data.Common (53)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (5)
65internal static ArgumentNullException ArgumentNull(string parameter) 67ArgumentNullException e = new ArgumentNullException(parameter); 72internal static ArgumentNullException ArgumentNull(string parameter, string error) 74ArgumentNullException e = new ArgumentNullException(parameter, error); 314internal static ArgumentNullException CollectionNullValue(string parameter, Type collection, Type itemType)
System\Data\ColumnTypeConverter.cs (1)
73ArgumentNullException.ThrowIfNull(destinationType);
System\Data\Common\AdapterUtil.Common.cs (2)
558internal static ArgumentNullException UpdateRequiresNonNullDataSet(string parameter) 570internal static ArgumentNullException UpdateRequiresDataTable(string parameter)
System\Data\Common\DbDataReaderExtensions.cs (1)
57ArgumentNullException.ThrowIfNull(reader);
System\Data\ConstraintConverter.cs (1)
33ArgumentNullException.ThrowIfNull(destinationType);
System\Data\DataReaderExtensions.cs (26)
16ArgumentNullException.ThrowIfNull(reader); 23ArgumentNullException.ThrowIfNull(reader); 30ArgumentNullException.ThrowIfNull(reader); 37ArgumentNullException.ThrowIfNull(reader); 44ArgumentNullException.ThrowIfNull(reader); 52ArgumentNullException.ThrowIfNull(reader); 59ArgumentNullException.ThrowIfNull(reader); 66ArgumentNullException.ThrowIfNull(reader); 73ArgumentNullException.ThrowIfNull(reader); 80ArgumentNullException.ThrowIfNull(reader); 87ArgumentNullException.ThrowIfNull(reader); 94ArgumentNullException.ThrowIfNull(reader); 101ArgumentNullException.ThrowIfNull(reader); 108ArgumentNullException.ThrowIfNull(reader); 115ArgumentNullException.ThrowIfNull(reader); 122ArgumentNullException.ThrowIfNull(reader); 129ArgumentNullException.ThrowIfNull(reader); 136ArgumentNullException.ThrowIfNull(reader); 144ArgumentNullException.ThrowIfNull(reader); 152ArgumentNullException.ThrowIfNull(reader); 159ArgumentNullException.ThrowIfNull(reader); 166ArgumentNullException.ThrowIfNull(reader); 173ArgumentNullException.ThrowIfNull(reader); 180ArgumentNullException.ThrowIfNull(reader); 187ArgumentNullException.ThrowIfNull(reader); 194ArgumentNullException.ThrowIfNull(reader);
System\Data\DataSetUtil.cs (1)
23internal static ArgumentNullException ArgumentNull(string message)
System\Data\DataTableExtensions.cs (3)
35/// <exception cref="ArgumentNullException">if source is null</exception> 72/// <exception cref="ArgumentNullException">if source is null</exception> 73/// <exception cref="ArgumentNullException">if table is null</exception>
System\Data\DefaultValueTypeConverter.cs (1)
24ArgumentNullException.ThrowIfNull(destinationType);
System\Data\PrimaryKeyTypeConverter.cs (1)
25ArgumentNullException.ThrowIfNull(destinationType);
System\Data\RelationshipConverter.cs (1)
40ArgumentNullException.ThrowIfNull(destinationType);
System\Data\SQLTypes\SQLBytes.cs (2)
302ArgumentNullException.ThrowIfNull(buffer); 371ArgumentNullException.ThrowIfNull(buffer);
System\Data\SQLTypes\SQLChars.cs (4)
295ArgumentNullException.ThrowIfNull(buffer); 341ArgumentNullException.ThrowIfNull(buffer); 648ArgumentNullException.ThrowIfNull(buffer); 664ArgumentNullException.ThrowIfNull(buffer);
System\Data\SQLTypes\SQLDecimal.cs (2)
587ArgumentNullException.ThrowIfNull(bits); 994ArgumentNullException.ThrowIfNull(s);
System\Data\SQLTypes\SqlXml.cs (2)
397ArgumentNullException.ThrowIfNull(buffer); 433ArgumentNullException.ThrowIfNull(buffer);
System.Data.Odbc (5)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (5)
65internal static ArgumentNullException ArgumentNull(string parameter) 67ArgumentNullException e = new ArgumentNullException(parameter); 72internal static ArgumentNullException ArgumentNull(string parameter, string error) 74ArgumentNullException e = new ArgumentNullException(parameter, error); 314internal static ArgumentNullException CollectionNullValue(string parameter, Type collection, Type itemType)
System.Diagnostics.DiagnosticSource (11)
System\Diagnostics\Activity.cs (1)
554ArgumentNullException.ThrowIfNull(exception);
System\Diagnostics\ActivityContext.cs (1)
99ArgumentNullException.ThrowIfNull(traceParent);
System\Diagnostics\ActivitySource.cs (1)
349ArgumentNullException.ThrowIfNull(listener);
System\Diagnostics\ActivityTagsCollection.cs (4)
39ArgumentNullException.ThrowIfNull(list); 68ArgumentNullException.ThrowIfNull(key); 141ArgumentNullException.ThrowIfNull(key); 215ArgumentNullException.ThrowIfNull(key);
System\Diagnostics\Metrics\InstrumentAdvice.cs (1)
41ArgumentNullException.ThrowIfNull(value);
System\Diagnostics\Metrics\Meter.cs (1)
35ArgumentNullException.ThrowIfNull(options);
System\Diagnostics\Metrics\MeterFactoryExtensions.cs (1)
24ArgumentNullException.ThrowIfNull(meterFactory);
System\Diagnostics\Metrics\TagList.netcore.cs (1)
160ArgumentNullException.ThrowIfNull(array);
System.Diagnostics.Process (5)
src\libraries\Common\src\System\IO\StringParser.cs (1)
35ArgumentNullException.ThrowIfNull(buffer);
System\Diagnostics\Process.cs (2)
571ArgumentNullException.ThrowIfNull(value); 1348ArgumentNullException.ThrowIfNull(startInfo);
System\Diagnostics\ProcessStartInfo.cs (2)
64ArgumentNullException.ThrowIfNull(fileName); 65ArgumentNullException.ThrowIfNull(arguments);
System.Diagnostics.TextWriterTraceListener (2)
System\Diagnostics\TextWriterTraceListener.cs (2)
44ArgumentNullException.ThrowIfNull(stream); 67ArgumentNullException.ThrowIfNull(writer);
System.Diagnostics.TraceSource (11)
System\Diagnostics\CorrelationManager.cs (1)
32ArgumentNullException.ThrowIfNull(operationId);
System\Diagnostics\SourceFilter.cs (2)
22ArgumentNullException.ThrowIfNull(source); 36ArgumentNullException.ThrowIfNull(value, nameof(Source));
System\Diagnostics\SwitchAttribute.cs (2)
41ArgumentNullException.ThrowIfNull(value); 51ArgumentNullException.ThrowIfNull(assembly);
System\Diagnostics\SwitchLevelAttribute.cs (1)
24ArgumentNullException.ThrowIfNull(value);
System\Diagnostics\TraceListeners.cs (3)
88ArgumentNullException.ThrowIfNull(value); 101ArgumentNullException.ThrowIfNull(value); 151ArgumentNullException.ThrowIfNull(listener);
System\Diagnostics\TraceSource.cs (1)
560ArgumentNullException.ThrowIfNull(value, nameof(Switch));
System\Diagnostics\TraceUtils.cs (1)
18ArgumentNullException.ThrowIfNull(attributes);
System.Drawing.Common.Tests (286)
mono\System.Drawing\GraphicsTests.cs (36)
1086Assert.Throws<ArgumentNullException>(() => g.EndContainer(null)); 1142Assert.Throws<ArgumentNullException>(() => g.FillRectangles(null, new Rectangle[1])); 1150Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (Rectangle[])null)); 1166Assert.Throws<ArgumentNullException>(() => g.FillRectangles(null, new RectangleF[1])); 1174Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (RectangleF[])null)); 1595Assert.Throws<ArgumentNullException>(() => g.MeasureString("a", null)); 1596Assert.Throws<ArgumentNullException>(() => g.MeasureString("a".AsSpan(), null)); 1883Assert.Throws<ArgumentNullException>(() => g.MeasureCharacterRanges("a", null, default, null)); 1884Assert.Throws<ArgumentNullException>(() => g.MeasureCharacterRanges("a".AsSpan(), null, default, null)); 2336Assert.Throws<ArgumentNullException>(() => g.DrawIcon(null, new Rectangle(0, 0, 32, 32))); 2360Assert.Throws<ArgumentNullException>(() => g.DrawIcon(null, 4, 2)); 2377Assert.Throws<ArgumentNullException>(() => g.DrawIconUnstretched(null, new Rectangle(0, 0, 40, 20))); 2401Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new RectangleF(0, 0, 0, 0))); 2420Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new PointF(0, 0))); 2436Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, Array.Empty<PointF>())); 2444Assert.Throws<ArgumentNullException>(() => g.DrawImage(bmp, (PointF[])null)); 2471Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Rectangle(0, 0, 0, 0))); 2494Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Point(0, 0))); 2510Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, Array.Empty<Point>())); 2518Assert.Throws<ArgumentNullException>(() => g.DrawImage(bmp, (Point[])null)); 2542Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, int.MaxValue, int.MinValue)); 2566Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, float.MaxValue, float.MinValue)); 2590Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, default(Rectangle), default, GraphicsUnit.Display)); 2627Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, pts, r, GraphicsUnit.Pixel)); 2641Assert.Throws<ArgumentNullException>(() => DrawImage_ImagePointRectangleGraphicsUnit(null)); 2685Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, pts, r, GraphicsUnit.Pixel)); 2699Assert.Throws<ArgumentNullException>(() => DrawImage_ImagePointFRectangleGraphicsUnit(null)); 2764Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Point(0, 0))); 2780Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Rectangle(0, 0, -1, -1))); 2796Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, 0, 0)); 2812Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, 0, 0, -1, -1)); 2828Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaledAndClipped(null, new Rectangle(0, 0, 0, 0))); 2856Assert.Throws<ArgumentNullException>(() => g.DrawPath(null, path)); 2864Assert.Throws<ArgumentNullException>(() => g.DrawPath(Pens.Black, null)); 2898Assert.Throws<ArgumentNullException>(() => g.FillPath(null, path)); 2906Assert.Throws<ArgumentNullException>(() => g.FillPath(Brushes.Black, null));
mono\System.Imaging\MetafileTest.cs (1)
266Assert.Throws<ArgumentNullException>(() => Metafile_StreamEmfType(null, EmfType.EmfOnly));
System\Drawing\BitmapTests.cs (11)
68AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null)); 69AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null, false)); 96AssertExtensions.Throws<ArgumentNullException, NullReferenceException>("type", () => new Bitmap(null, "name")); 112AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Bitmap(typeof(Bitmap), null)); 145AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null)); 146AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null, false)); 296AssertExtensions.Throws<ArgumentNullException>("g", null, () => new Bitmap(1, 1, null)); 341AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, new Size(1, 2))); 342AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, 1, 2)); 1094AssertExtensions.Throws<ArgumentNullException>("bitmapData", () => bitmap.LockBits(Rectangle.Empty, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, null)); 1234AssertExtensions.Throws<ArgumentNullException>("bitmapdata", () => bitmap.UnlockBits(null));
System\Drawing\BufferedGraphicsContextTests.cs (1)
139Assert.Throws<ArgumentNullException>("hdc", () => context.Allocate(null, new Rectangle(0, 0, 10, 10)));
System\Drawing\Drawing2D\GraphicsPathIteratorTests.cs (2)
293Assert.Throws<ArgumentNullException>(() => gpi.Enumerate(ref points, ref types)); 311Assert.Throws<ArgumentNullException>(() => gpi.CopyData(ref points, ref types, 0, 1));
System\Drawing\Drawing2D\GraphicsPathTests.cs (26)
82AssertExtensions.Throws<ArgumentNullException>("pts", () => new GraphicsPath((Point[])null, new byte[1])); 316AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddLines((Point[])null)); 317AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddLines((PointF[])null)); 427AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddBeziers((PointF[])null)); 428AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddBeziers((Point[])null)); 666AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddClosedCurve((PointF[])null)); 667AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddClosedCurve((Point[])null)); 806AssertExtensions.Throws<ArgumentNullException>("rects", () => gp.AddRectangles((RectangleF[])null)); 807AssertExtensions.Throws<ArgumentNullException>("rects", () => gp.AddRectangles((Rectangle[])null)); 939AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((Point[])null)); 940AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((PointF[])null)); 987AssertExtensions.Throws<ArgumentNullException>("addingPath", () => new GraphicsPath().AddPath(null, false)); 1066Assert.Throws<ArgumentNullException>(() => 1068Assert.Throws<ArgumentNullException>(() => 1070Assert.Throws<ArgumentNullException>(() => 1072Assert.Throws<ArgumentNullException>(() => 1080AssertExtensions.Throws<ArgumentNullException, ArgumentException>("family", null, () => 1112AssertExtensions.Throws<ArgumentNullException>("matrix", () => gp.Transform(null)); 1281AssertExtensions.Throws<ArgumentNullException>("destPoints", () => gp.Warp(null, default)); 1684AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null)); 1685AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix())); 1686AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix(), 0.67f)); 1739AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(1, 1, null)); 1740AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(1.0f, 1.0f, null)); 1741AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(default, null)); 1742AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(default(PointF), null));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (7)
314Assert.Throws<ArgumentNullException>(() => brush.Blend = null); 321Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend { Factors = null }); 328AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => brush.Blend = new Blend { Factors = new float[2], Positions = null }); 414AssertExtensions.Throws<ArgumentNullException>("value", () => brush.InterpolationColors = null); 588AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.Transform = null); 698AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null)); 699AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
System\Drawing\Drawing2D\MatrixTests.cs (9)
131AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default(RectangleF), null)); 132AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default, null)); 338AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null)); 339AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null, MatrixOrder.Prepend)); 731AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformPoints((Point[])null)); 732AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformPoints((PointF[])null)); 797AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.VectorTransformPoints(null)); 798AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformVectors((Point[])null)); 799AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformVectors((PointF[])null));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (13)
71AssertExtensions.Throws<ArgumentNullException>("points", () => new PathGradientBrush((Point[])null)); 72AssertExtensions.Throws<ArgumentNullException>("points", () => new PathGradientBrush((PointF[])null)); 108AssertExtensions.Throws<ArgumentNullException>("path", () => new PathGradientBrush((GraphicsPath)null)); 215AssertExtensions.Throws<ArgumentNullException>(() => brush.SurroundColors = null); 327Assert.Throws<ArgumentNullException>(() => brush.Blend = null); 328Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend() { Factors = null, Positions = null }); 329Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend() { Factors = null, Positions = [] }); 336AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => 577Assert.Throws<ArgumentNullException>(() => brush.InterpolationColors = null); 595AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => 663AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.Transform = null); 734AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null)); 735AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
System\Drawing\FontFamilyTests.cs (3)
56AssertExtensions.Throws<ArgumentNullException>("name", () => new FontFamily(null!)); 57AssertExtensions.Throws<ArgumentNullException>("name", () => new FontFamily(null!, null)); 150AssertExtensions.Throws<ArgumentNullException>("graphics", () => FontFamily.GetFamilies(null));
System\Drawing\FontTests.cs (12)
326AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10)); 327AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic)); 328AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, GraphicsUnit.Display)); 329AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display)); 330AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10)); 331AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10, gdiVerticalFont: true)); 526AssertExtensions.Throws<ArgumentNullException>("graphics", () => font.GetHeight(null)); 603AssertExtensions.Throws<ArgumentNullException>("lf", () => Font.FromLogFont(null)); 604AssertExtensions.Throws<ArgumentNullException>("lf", () => Font.FromLogFont(null, hdc)); 766Assert.Throws<ArgumentNullException>(() => font.ToLogFont(null)); 767Assert.Throws<ArgumentNullException>(() => font.ToLogFont(null, graphics)); 775AssertExtensions.Throws<ArgumentNullException>("graphics", () => font.ToLogFont(new LOGFONT(), null));
System\Drawing\Graphics_DrawBezierTests.cs (7)
65AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, 1, 2, 3, 4, 5, 6, 7, 8)); 66AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, Point.Empty, Point.Empty, Point.Empty, Point.Empty)); 67AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty)); 121AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBeziers(null, new Point[2])); 122AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBeziers(null, new PointF[2])); 143AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawBeziers(pen, (Point[])null)); 144AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawBeziers(pen, (PointF[])null));
System\Drawing\Graphics_DrawLineTests.cs (8)
43AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, Point.Empty, Point.Empty)); 44AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, 0, 0, 0, 0)); 45AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, PointF.Empty, PointF.Empty)); 46AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, 0f, 0f, 0f, 0f)); 102AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLines(null, new Point[2])); 103AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLines(null, new PointF[2])); 124AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawLines(pen, (Point[])null)); 125AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawLines(pen, (PointF[])null));
System\Drawing\GraphicsTests.Core.cs (2)
75AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new RectangleF(0f, 0f, 1f, 1f))); 129AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new RectangleF(0, 0, 1, 1), 0, 90));
System\Drawing\GraphicsTests.cs (57)
111AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero)); 259AssertExtensions.Throws<ArgumentNullException>("image", () => Graphics.FromImage(null)); 1222AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null)); 1223AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null, MatrixOrder.Append)); 1874AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (Point[])null)); 1875AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (PointF[])null)); 1961AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new Rectangle(0, 0, 1, 1), 0, 90)); 1962AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0, 0, 1, 1, 0, 90)); 1963AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new RectangleF(0, 0, 1, 1), 0, 90)); 1964AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0f, 0f, 1f, 1f, 0, 90)); 2044AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new Rectangle(0, 0, 1, 1))); 2045AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0, 0, 1, 1)); 2046AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0f, 0f, 1f, 1f)); 2099AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new Rectangle[2])); 2100AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new RectangleF[2])); 2121AssertExtensions.Throws<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (Rectangle[])null)); 2122AssertExtensions.Throws<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (RectangleF[])null)); 2170AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new Rectangle(0, 0, 1, 1))); 2171AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0, 0, 1, 1)); 2172AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new RectangleF(0, 0, 1, 1))); 2173AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0f, 0f, 1f, 1f)); 2229AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new Rectangle(0, 0, 1, 1), 0, 90)); 2230AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0, 0, 1, 1, 0, 90)); 2231AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new RectangleF(0, 0, 1, 1), 0, 90)); 2232AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0f, 0f, 1f, 1f, 0, 90)); 2312AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new Point[2])); 2313AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new PointF[2])); 2334AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (Point[])null)); 2335AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (PointF[])null)); 2386AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPath(null, graphicsPath)); 2407AssertExtensions.Throws<ArgumentNullException>("path", () => graphics.DrawPath(pen, null)); 2457AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2])); 2458AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2])); 2459AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 1)); 2460AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 1)); 2461AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2)); 2462AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 0, 2, 1)); 2463AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2, 1)); 2489AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null)); 2490AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null)); 2491AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 1)); 2492AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 1)); 2493AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, null, 0, 2)); 2494AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 0, 2, 1)); 2495AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 0, 2, 1)); 2576AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3])); 2577AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3], 1, FillMode.Winding)); 2578AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3])); 2579AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3], 1, FillMode.Winding)); 2602AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null)); 2603AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null, 1, FillMode.Winding)); 2604AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null)); 2605AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null, 1, FillMode.Winding)); 2662AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new Rectangle(0, 0, 1, 1), 0, 90)); 2663AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, 0, 0, 1, 1, 0, 90)); 2664AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, 0f, 0f, 1f, 1f, 0, 90)); 2868Assert.Throws<ArgumentNullException>(() => graphics.DrawCachedBitmap(null!, 0, 0));
System\Drawing\IconTests.cs (14)
89AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null)); 90AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null, new Size(32, 32))); 91AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null, 32, 32)); 145AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null)); 146AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null, 32, 32)); 147AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null, new Size(32, 32))); 245AssertExtensions.Throws<ArgumentNullException, ArgumentException>("original", null, () => new Icon((Icon)null, 32, 32)); 246AssertExtensions.Throws<ArgumentNullException, ArgumentException>("original", null, () => new Icon((Icon)null, new Size(32, 32))); 275AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Icon(typeof(Icon), null)); 401AssertExtensions.Throws<ArgumentNullException, ArgumentException>("filePath", null, () => Icon.ExtractAssociatedIcon(null)); 453Assert.Throws<ArgumentNullException>(() => icon.Save(null)); 463AssertExtensions.Throws<ArgumentNullException>("outputStream", "dataStream", () => icon.Save(null)); 786Assert.Throws<ArgumentNullException>(() => { Icon.ExtractIcon(null!, 0, 16); }); 787Assert.Throws<ArgumentNullException>(() => { Icon.ExtractIcon(null!, 0); });
System\Drawing\ImageTests.cs (5)
505AssertExtensions.Throws<ArgumentNullException>("path", () => Image.FromFile(null)); 506AssertExtensions.Throws<ArgumentNullException>("path", () => Image.FromFile(null, useEmbeddedColorManagement: true)); 564AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null)); 565AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null, useEmbeddedColorManagement: true)); 566AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null, useEmbeddedColorManagement: true, validateImageData: true));
System\Drawing\Imaging\CachedBitmapTests.cs (2)
15Assert.Throws<ArgumentNullException>(() => new CachedBitmap(bitmap, null)); 16Assert.Throws<ArgumentNullException>(() => new CachedBitmap(null, graphics));
System\Drawing\Imaging\ImageAttributesTests.cs (10)
231AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null)); 232AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null, ColorMatrixFlag.Default)); 233AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => 449AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix)); 450AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix, ColorMatrixFlag.Default)); 452AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => 1083Assert.Throws<ArgumentNullException>(() => imageAttr.SetOutputChannelColorProfile(null)); 1084Assert.Throws<ArgumentNullException>(() => imageAttr.SetOutputChannelColorProfile(null, ColorAdjustType.Default)); 1222AssertExtensions.ThrowsAny<ArgumentNullException, ArgumentException>(() => imageAttr.SetRemapTable(_yellowToRedColorMap, type)); 1229Assert.Throws<ArgumentNullException>(() => imageAttr.SetRemapTable(null, ColorAdjustType.Default));
System\Drawing\Imaging\MetafileTests.cs (15)
69AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null)); 104AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Metafile((Stream)null)); 414AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc)); 415AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.EmfOnly)); 416AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.EmfOnly, "description")); 681AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, _rectangleF)); 682AssertExtensions.Throws<ArgumentNullException>("path", () => 684AssertExtensions.Throws<ArgumentNullException>("path", () => 686AssertExtensions.Throws<ArgumentNullException>("path", () => 830Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF)); 831Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible)); 832Assert.Throws<ArgumentNullException>(() => 834Assert.Throws<ArgumentNullException>(() => 864AssertExtensions.Throws<ArgumentNullException>("path", () => Metafile.GetMetafileHeader((string)null)); 878Assert.Throws<ArgumentNullException>(() => Metafile.GetMetafileHeader((Stream)null));
System\Drawing\PenTests.cs (7)
77AssertExtensions.Throws<ArgumentNullException>("brush", () => new Pen(null)); 78AssertExtensions.Throws<ArgumentNullException>("brush", () => new Pen(null, 0)); 176AssertExtensions.Throws<ArgumentNullException>("value", () => pen.Brush = null); 325Assert.Throws<ArgumentNullException>(() => pen.CompoundArray = null); 797Assert.Throws<ArgumentNullException>(() => pen.MultiplyTransform(null)); 798Assert.Throws<ArgumentNullException>(() => pen.MultiplyTransform(null, MatrixOrder.Prepend)); 1079AssertExtensions.Throws<ArgumentNullException>("value", () => pen.Transform = null);
System\Drawing\Printing\PrinterSettingsTests.cs (2)
279AssertExtensions.Throws<ArgumentNullException>(null, () => printerSettings.PrintFileName = null); 286AssertExtensions.Throws<ArgumentNullException>(string.Empty, () => printerSettings.PrintFileName = string.Empty);
System\Drawing\RegionTests.cs (21)
121AssertExtensions.Throws<ArgumentNullException>("rgnData", () => new Region((RegionData)null)); 245AssertExtensions.Throws<ArgumentNullException>("path", () => new Region((GraphicsPath)null)); 406AssertExtensions.Throws<ArgumentNullException>("region", () => region.Complement((Region)null)); 509AssertExtensions.Throws<ArgumentNullException>("path", () => region.Complement((GraphicsPath)null)); 592AssertExtensions.Throws<ArgumentNullException>("region", () => region.Equals(null, s_graphic)); 599AssertExtensions.Throws<ArgumentNullException>("g", () => region.Equals(region, null)); 813AssertExtensions.Throws<ArgumentNullException>("region", () => region.Exclude((Region)null)); 892AssertExtensions.Throws<ArgumentNullException>("path", () => region.Exclude((GraphicsPath)null)); 961AssertExtensions.Throws<ArgumentNullException>("g", () => region.GetHrgn(null)); 974AssertExtensions.Throws<ArgumentNullException>("regionHandle", () => region.ReleaseHrgn(IntPtr.Zero)); 981AssertExtensions.Throws<ArgumentNullException>("g", () => region.GetBounds(null)); 1023AssertExtensions.Throws<ArgumentNullException>("matrix", () => region.GetRegionScans(null)); 1146AssertExtensions.Throws<ArgumentNullException>("region", () => region.Intersect((Region)null)); 1249AssertExtensions.Throws<ArgumentNullException>("path", () => region.Intersect((GraphicsPath)null)); 1269AssertExtensions.Throws<ArgumentNullException>("g", () => region.IsEmpty(null)); 1282AssertExtensions.Throws<ArgumentNullException>("g", () => region.IsInfinite(null)); 1708AssertExtensions.Throws<ArgumentNullException>("region", () => region.Union((Region)null)); 1788AssertExtensions.Throws<ArgumentNullException>("path", () => region.Union((GraphicsPath)null)); 1876AssertExtensions.Throws<ArgumentNullException>("matrix", () => region.Transform(null)); 2066AssertExtensions.Throws<ArgumentNullException>("region", () => region.Xor((Region)null)); 2146AssertExtensions.Throws<ArgumentNullException>("path", () => region.Xor((GraphicsPath)null));
System\Drawing\StringFormatTests.cs (3)
78AssertExtensions.Throws<ArgumentNullException>("format", () => new StringFormat(null)); 163Assert.Throws<ArgumentNullException>(() => format.SetTabStops(0, null)); 218Assert.Throws<ArgumentNullException>(() => format.SetMeasurableCharacterRanges(null));
System\Drawing\Text\PrivateFontCollectionTests.cs (1)
93AssertExtensions.Throws<ArgumentNullException>("filename", "path", () => fontCollection.AddFontFile(null));
System\Drawing\TextureBrushTests.cs (11)
242AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush((Image)null)); 243AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile)); 244AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty)); 245AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty)); 246AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty, null)); 247AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null)); 248AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, RectangleF.Empty)); 249AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, Rectangle.Empty)); 374AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null)); 375AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Prepend)); 598AssertExtensions.Throws<ArgumentNullException>("value", () => brush.Transform = null);
System.Formats.Asn1 (25)
System\Formats\Asn1\AsnDecoder.Enumerated.cs (2)
182/// <exception cref="ArgumentNullException"> 397/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (2)
173/// <exception cref="ArgumentNullException"> 534/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnWriter.cs (10)
225/// <exception cref="ArgumentNullException"> 234ArgumentNullException.ThrowIfNull(encodeCallback); 267/// <exception cref="ArgumentNullException"> 277ArgumentNullException.ThrowIfNull(encodeCallback); 304/// <exception cref="ArgumentNullException"> 314ArgumentNullException.ThrowIfNull(encodeCallback); 372/// <exception cref="ArgumentNullException"> 381ArgumentNullException.ThrowIfNull(other); 520/// <exception cref="ArgumentNullException"> 542ArgumentNullException.ThrowIfNull(destination);
System\Formats\Asn1\AsnWriter.Enumerated.cs (3)
14/// <exception cref="ArgumentNullException"> 35ArgumentNullException.ThrowIfNull(value); 46/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnWriter.NamedBitList.cs (4)
32/// <exception cref="ArgumentNullException"> 37ArgumentNullException.ThrowIfNull(value); 85/// <exception cref="ArgumentNullException"> 96ArgumentNullException.ThrowIfNull(value);
System\Formats\Asn1\AsnWriter.Oid.cs (2)
29/// <exception cref="ArgumentNullException"> 34ArgumentNullException.ThrowIfNull(oidValue);
System\Formats\Asn1\AsnWriter.Text.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/></exception> 41ArgumentNullException.ThrowIfNull(value);
System.Formats.Cbor (4)
System\Formats\Cbor\Writer\CborWriter.String.cs (4)
19/// <exception cref="ArgumentNullException">The provided value cannot be <see langword="null" />.</exception> 27ArgumentNullException.ThrowIfNull(value); 99/// <exception cref="ArgumentNullException">The provided value cannot be <see langword="null" />.</exception> 108ArgumentNullException.ThrowIfNull(value);
System.Formats.Nrbf (7)
System\Formats\Nrbf\ArrayRecord.cs (1)
74ArgumentNullException.ThrowIfNull(expectedArrayType);
System\Formats\Nrbf\NrbfDecoder.cs (4)
51/// <exception cref="ArgumentNullException"><paramref name="stream" /> is <see langword="null" />.</exception> 58ArgumentNullException.ThrowIfNull(stream); 101/// <exception cref="ArgumentNullException"><paramref name="payload"/> is <see langword="null" />.</exception> 130ArgumentNullException.ThrowIfNull(payload);
System\Formats\Nrbf\SerializationRecord.cs (2)
55/// <exception cref="ArgumentNullException"><paramref name="type" /> is <see langword="null" />.</exception> 58ArgumentNullException.ThrowIfNull(type);
System.Formats.Tar (37)
System\Formats\Tar\GnuTarEntry.cs (1)
33/// <exception cref="ArgumentNullException"><paramref name="entryName"/> is <see langword="null"/>.</exception>
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (2)
26/// <exception cref="ArgumentNullException"><paramref name="globalExtendedAttributes"/> is <see langword="null"/>.</exception> 30ArgumentNullException.ThrowIfNull(globalExtendedAttributes);
System\Formats\Tar\PaxTarEntry.cs (3)
35/// <exception cref="ArgumentNullException"><paramref name="entryName"/> is <see langword="null"/>.</exception> 63/// <exception cref="ArgumentNullException"><paramref name="extendedAttributes"/> or <paramref name="entryName"/> is <see langword="null"/>.</exception> 70ArgumentNullException.ThrowIfNull(extendedAttributes);
System\Formats\Tar\PosixTarEntry.cs (4)
103/// <exception cref="ArgumentNullException">Cannot set a null group name.</exception> 110ArgumentNullException.ThrowIfNull(value); 119/// <exception cref="ArgumentNullException">Cannot set a null user name.</exception> 125ArgumentNullException.ThrowIfNull(value);
System\Formats\Tar\TarEntry.cs (3)
122/// <exception cref="ArgumentNullException">The specified value is <see langword="null"/>.</exception> 189/// <exception cref="ArgumentNullException"><paramref name="destinationFileName"/> is <see langword="null"/>.</exception> 219/// <exception cref="ArgumentNullException"><paramref name="destinationFileName"/> is <see langword="null"/>.</exception>
System\Formats\Tar\TarFile.cs (12)
25/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName"/> or <paramref name="destination"/> is <see langword="null"/>.</exception> 34ArgumentNullException.ThrowIfNull(destination); 60/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName"/> or <paramref name="destination"/> is <see langword="null"/>.</exception> 73ArgumentNullException.ThrowIfNull(destination); 97/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName"/> or <paramref name="destinationFileName"/> is <see langword="null"/>.</exception> 129/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName"/> or <paramref name="destinationFileName"/> is <see langword="null"/>.</exception> 162/// <exception cref="ArgumentNullException"><paramref name="source"/> or <paramref name="destinationDirectoryName"/> is <see langword="null"/>.</exception> 173ArgumentNullException.ThrowIfNull(source); 203/// <exception cref="ArgumentNullException"><paramref name="source"/> or <paramref name="destinationDirectoryName"/> is <see langword="null"/>.</exception> 218ArgumentNullException.ThrowIfNull(source); 246/// <exception cref="ArgumentNullException"><paramref name="sourceFileName"/> or <paramref name="destinationDirectoryName"/> is <see langword="null"/>.</exception> 289/// <exception cref="ArgumentNullException"><paramref name="sourceFileName"/> or <paramref name="destinationDirectoryName"/> is <see langword="null"/>.</exception>
System\Formats\Tar\TarReader.cs (2)
32/// <exception cref="ArgumentNullException"><paramref name="archiveStream"/> is <see langword="null"/>.</exception> 35ArgumentNullException.ThrowIfNull(archiveStream);
System\Formats\Tar\TarWriter.cs (8)
28/// <exception cref="ArgumentNullException"><paramref name="archiveStream"/> is <see langword="null"/>.</exception> 41/// <exception cref="ArgumentNullException"><paramref name="archiveStream"/> is <see langword="null"/>.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="archiveStream"/> is <see langword="null"/>.</exception> 64ArgumentNullException.ThrowIfNull(archiveStream); 229/// <exception cref="ArgumentNullException"><paramref name="entry"/> is <see langword="null"/>.</exception> 238ArgumentNullException.ThrowIfNull(entry); 277/// <exception cref="ArgumentNullException"><paramref name="entry"/> is <see langword="null"/>.</exception> 287ArgumentNullException.ThrowIfNull(entry);
System\Formats\Tar\UstarTarEntry.cs (1)
28/// <exception cref="ArgumentNullException"><paramref name="entryName"/> is <see langword="null"/>.</exception>
System\Formats\Tar\V7TarEntry.cs (1)
23/// <exception cref="ArgumentNullException"><paramref name="entryName"/> is <see langword="null"/>.</exception>
System.IO.Compression (21)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
25ArgumentNullException.ThrowIfNull(stream);
System\IO\Compression\DeflateZLib\DeflateStream.cs (5)
55/// <exception cref="ArgumentNullException"><paramref name="stream"/> or <paramref name="compressionOptions"/> is <see langword="null" />.</exception> 62ArgumentNullException.ThrowIfNull(stream); 63ArgumentNullException.ThrowIfNull(compressionOptions); 74ArgumentNullException.ThrowIfNull(stream); 102ArgumentNullException.ThrowIfNull(stream);
System\IO\Compression\GZipStream.cs (1)
41/// <exception cref="ArgumentNullException"><paramref name="stream"/> or <paramref name="compressionOptions"/> is <see langword="null" />.</exception>
System\IO\Compression\ZipArchive.Async.cs (2)
61/// <exception cref="ArgumentNullException">The stream is null.</exception> 69ArgumentNullException.ThrowIfNull(stream);
System\IO\Compression\ZipArchive.cs (10)
43/// <exception cref="ArgumentNullException">The stream is null.</exception> 52/// <exception cref="ArgumentNullException">The stream is null.</exception> 63/// <exception cref="ArgumentNullException">The stream is null.</exception> 75/// <exception cref="ArgumentNullException">The stream is null.</exception> 124ArgumentNullException.ThrowIfNull(stream); 260/// <exception cref="ArgumentNullException">entryName is null.</exception> 274/// <exception cref="ArgumentNullException">entryName is null.</exception> 324/// <exception cref="ArgumentNullException">entryName is null.</exception> 332ArgumentNullException.ThrowIfNull(entryName); 920ArgumentNullException.ThrowIfNull(stream);
System\IO\Compression\ZipArchiveEntry.cs (1)
241ArgumentNullException.ThrowIfNull(value, nameof(FullName));
System\IO\Compression\ZLibStream.cs (1)
54/// <exception cref="ArgumentNullException"><paramref name="stream"/> or <paramref name="compressionOptions"/> is <see langword="null" />.</exception>
System.IO.Compression.Brotli (7)
System\IO\Compression\BrotliStream.cs (1)
31ArgumentNullException.ThrowIfNull(stream);
System\IO\Compression\dec\BrotliStream.Decompress.cs (2)
25/// <exception cref="System.ArgumentNullException"><paramref name="buffer" /> is <see langword="null" />.</exception> 104/// <exception cref="System.ArgumentNullException"><paramref name="asyncResult" /> is <see langword="null" />.</exception>
System\IO\Compression\enc\BrotliStream.Compress.cs (4)
19/// <exception cref="ArgumentNullException"><paramref name="stream"/> is <see langword="null" />.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="stream"/> is <see langword="null" />.</exception> 38/// <exception cref="ArgumentNullException"><paramref name="stream"/> or <paramref name="compressionOptions"/> is <see langword="null" />.</exception> 41ArgumentNullException.ThrowIfNull(compressionOptions);
System.IO.Compression.ZipFile (62)
System\IO\Compression\ZipFile.Create.Async.cs (9)
19/// <exception cref="ArgumentNullException">archiveFileName is null.</exception> 43/// <exception cref="ArgumentNullException">path is null.</exception> 82/// <exception cref="ArgumentNullException">path is null.</exception> 196/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 240/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 288/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 354/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 382/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 412/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception>
System\IO\Compression\ZipFile.Create.cs (10)
17/// <exception cref="ArgumentNullException">archiveFileName is null.</exception> 39/// <exception cref="ArgumentNullException">path is null.</exception> 76/// <exception cref="ArgumentNullException">path is null.</exception> 186/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 228/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 274/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 337/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 363/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 391/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 491ArgumentNullException.ThrowIfNull(destination);
System\IO\Compression\ZipFile.Extract.Async.cs (10)
24/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 58/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 93/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 149/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 195ArgumentNullException.ThrowIfNull(sourceArchiveFileName); 215/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 246/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 285/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 325/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 345ArgumentNullException.ThrowIfNull(source);
System\IO\Compression\ZipFile.Extract.cs (10)
22/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 54/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 87/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 141/// <exception cref="ArgumentNullException">sourceArchive or destinationDirectoryName is null.</exception> 183ArgumentNullException.ThrowIfNull(sourceArchiveFileName); 201/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 230/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 267/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 305/// <exception cref="ArgumentNullException"><paramref name="destinationDirectoryName" /> or <paramref name="source" /> is <see langword="null" />.</exception> 322ArgumentNullException.ThrowIfNull(source);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (2)
28/// <exception cref="ArgumentNullException">sourceFileName or entryName is null.</exception> 60/// <exception cref="ArgumentNullException">sourceFileName or entryName is null.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (5)
28/// <exception cref="ArgumentNullException">sourceFileName or entryName is null.</exception> 59/// <exception cref="ArgumentNullException">sourceFileName or entryName is null.</exception> 98ArgumentNullException.ThrowIfNull(destination); 99ArgumentNullException.ThrowIfNull(sourceFileName); 100ArgumentNullException.ThrowIfNull(entryName);
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (4)
21/// <exception cref="ArgumentNullException">destinationDirectoryName is null.</exception> 53/// <exception cref="ArgumentNullException">destinationDirectoryName is null.</exception> 75ArgumentNullException.ThrowIfNull(source); 76ArgumentNullException.ThrowIfNull(destinationDirectoryName);
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (4)
19/// <exception cref="ArgumentNullException">destinationDirectoryName is null.</exception> 49/// <exception cref="ArgumentNullException">destinationDirectoryName is null.</exception> 68ArgumentNullException.ThrowIfNull(source); 69ArgumentNullException.ThrowIfNull(destinationDirectoryName);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
20/// <exception cref="ArgumentNullException">destinationFileName is null.</exception> 48/// <exception cref="ArgumentNullException">destinationFileName is null.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (6)
17/// <exception cref="ArgumentNullException">destinationFileName is null.</exception> 45/// <exception cref="ArgumentNullException">destinationFileName is null.</exception> 78ArgumentNullException.ThrowIfNull(source); 79ArgumentNullException.ThrowIfNull(destinationFileName); 110ArgumentNullException.ThrowIfNull(source); 111ArgumentNullException.ThrowIfNull(destinationDirectoryName);
System.IO.FileSystem.DriveInfo (1)
System\IO\DriveInfo.cs (1)
14ArgumentNullException.ThrowIfNull(driveName);
System.IO.FileSystem.Watcher (3)
System\IO\FileSystemEventArgs.cs (1)
20ArgumentNullException.ThrowIfNull(directory);
System\IO\FileSystemWatcher.cs (2)
98ArgumentNullException.ThrowIfNull(filter); 361ArgumentNullException.ThrowIfNull(path);
System.IO.Hashing (24)
System\IO\Hashing\Crc32.cs (2)
101/// <exception cref="ArgumentNullException"> 106ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\Crc64.cs (2)
99/// <exception cref="ArgumentNullException"> 104ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (6)
82/// <exception cref="ArgumentNullException"> 87ArgumentNullException.ThrowIfNull(source); 97/// <exception cref="ArgumentNullException"> 103ArgumentNullException.ThrowIfNull(stream); 121/// <exception cref="ArgumentNullException"> 126ArgumentNullException.ThrowIfNull(stream);
System\IO\Hashing\XxHash128.cs (3)
54/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 61/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 64ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\XxHash3.cs (3)
53/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 63ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\XxHash32.cs (4)
159/// <exception cref="ArgumentNullException"> 164ArgumentNullException.ThrowIfNull(source); 175/// <exception cref="ArgumentNullException"> 180ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\XxHash64.cs (4)
159/// <exception cref="ArgumentNullException"> 164ArgumentNullException.ThrowIfNull(source); 175/// <exception cref="ArgumentNullException"> 180ArgumentNullException.ThrowIfNull(source);
System.IO.IsolatedStorage (8)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (7)
76ArgumentNullException.ThrowIfNull(file); 93ArgumentNullException.ThrowIfNull(path); 102ArgumentNullException.ThrowIfNull(path); 111ArgumentNullException.ThrowIfNull(dir); 146ArgumentNullException.ThrowIfNull(dir); 169ArgumentNullException.ThrowIfNull(searchPattern); 193ArgumentNullException.ThrowIfNull(searchPattern);
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (1)
86ArgumentNullException.ThrowIfNull(path);
System.IO.MemoryMappedFiles (4)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (4)
109ArgumentNullException.ThrowIfNull(path); 198/// <exception cref="ArgumentNullException"><paramref name="fileHandle"/> is <see langword="null" />.</exception> 212ArgumentNullException.ThrowIfNull(fileHandle); 241ArgumentNullException.ThrowIfNull(fileStream);
System.IO.Packaging (84)
System\IO\Packaging\ContentType.cs (2)
69/// <exception cref="ArgumentNullException">If the contentType parameter is null</exception> 75ArgumentNullException.ThrowIfNull(contentType);
System\IO\Packaging\InternalRelationshipCollection.cs (3)
329catch (ArgumentNullException argNullEx) 392ArgumentNullException.ThrowIfNull(targetUri); 393ArgumentNullException.ThrowIfNull(relationshipType);
System\IO\Packaging\Package.cs (24)
91/// <exception cref="ArgumentNullException">If path parameter is null</exception> 106/// <exception cref="ArgumentNullException">If path parameter is null</exception> 122/// <exception cref="ArgumentNullException">If path parameter is null</exception> 142/// <exception cref="ArgumentNullException">If stream parameter is null</exception> 158/// <exception cref="ArgumentNullException">If stream parameter is null</exception> 183/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 184/// <exception cref="ArgumentNullException">If contentType parameter is null</exception> 205/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 206/// <exception cref="ArgumentNullException">If contentType parameter is null</exception> 256/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 280/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 305/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 573/// <exception cref="ArgumentNullException">If parameter "targetUri" is null</exception> 574/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 595/// <exception cref="ArgumentNullException">If parameter "targetUri" is null</exception> 596/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 619/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 658/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 682/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 704/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 848/// <exception cref="ArgumentNullException">If path parameter is null</exception> 857ArgumentNullException.ThrowIfNull(path); 911/// <exception cref="ArgumentNullException">If stream parameter is null</exception> 918ArgumentNullException.ThrowIfNull(stream);
System\IO\Packaging\PackagePart.cs (16)
37/// <exception cref="ArgumentNullException">If parameter "package" is null</exception> 38/// <exception cref="ArgumentNullException">If parameter "partUri" is null</exception> 64/// <exception cref="ArgumentNullException">If parameter "package" is null</exception> 65/// <exception cref="ArgumentNullException">If parameter "partUri" is null</exception> 92/// <exception cref="ArgumentNullException">If parameter "package" is null</exception> 93/// <exception cref="ArgumentNullException">If parameter "partUri" is null</exception> 101ArgumentNullException.ThrowIfNull(package); 102ArgumentNullException.ThrowIfNull(partUri); 371/// <exception cref="ArgumentNullException">If parameter "targetUri" is null</exception> 372/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 395/// <exception cref="ArgumentNullException">If parameter "targetUri" is null</exception> 396/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 420/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 462/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 487/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 510/// <exception cref="ArgumentNullException">If parameter "id" is null</exception>
System\IO\Packaging\PackageRelationship.cs (4)
115ArgumentNullException.ThrowIfNull(package); 116ArgumentNullException.ThrowIfNull(targetUri); 117ArgumentNullException.ThrowIfNull(relationshipType); 118ArgumentNullException.ThrowIfNull(id);
System\IO\Packaging\PackageRelationshipSelector.cs (6)
24/// <exception cref="ArgumentNullException">If sourceUri is null</exception> 25/// <exception cref="ArgumentNullException">If selectionCriteria is null</exception> 33ArgumentNullException.ThrowIfNull(sourceUri); 34ArgumentNullException.ThrowIfNull(selectionCriteria); 108/// <exception cref="ArgumentNullException">If package parameter is null</exception> 111ArgumentNullException.ThrowIfNull(package);
System\IO\Packaging\PackUriHelper.cs (18)
30/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 38ArgumentNullException.ThrowIfNull(partUri); 73/// <exception cref="ArgumentNullException">If either sourcePartUri or targetUri parameter is null</exception> 78ArgumentNullException.ThrowIfNull(sourcePartUri); 79ArgumentNullException.ThrowIfNull(targetUri); 100/// <exception cref="ArgumentNullException">If either the sourcePartUri or targetPartUri parameter is null</exception> 104ArgumentNullException.ThrowIfNull(sourcePartUri); 105ArgumentNullException.ThrowIfNull(targetPartUri); 118/// <exception cref="ArgumentNullException">If partUri is null</exception> 122ArgumentNullException.ThrowIfNull(partUri); 162/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 167ArgumentNullException.ThrowIfNull(partUri); 184/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 189ArgumentNullException.ThrowIfNull(partUri); 235/// <exception cref="ArgumentNullException">If relationshipPartUri parameter is null</exception> 242ArgumentNullException.ThrowIfNull(relationshipPartUri); 328/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 372ArgumentNullException.ThrowIfNull(partUri);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (5)
29/// <exception cref="ArgumentNullException">If packageUri parameter is null</exception> 46/// <exception cref="ArgumentNullException">If packageUri parameter is null</exception> 66/// <exception cref="ArgumentNullException">If packageUri parameter is null</exception> 127/// <exception cref="ArgumentNullException">If packUri parameter is null</exception> 150/// <exception cref="ArgumentNullException">If packUri parameter is null</exception>
System\IO\Packaging\ZipPackage.cs (3)
32/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 33/// <exception cref="ArgumentNullException">If contentType parameter is null</exception> 106/// <exception cref="ArgumentNullException">If partUri parameter is null</exception>
System\IO\Packaging\ZipPackagePartPiece.cs (3)
27ArgumentNullException.ThrowIfNull(zipArchiveEntry); 153ArgumentNullException.ThrowIfNull(zipArchiveEntry); 154ArgumentNullException.ThrowIfNull(prefixName);
System.IO.Pipelines (2)
src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (1)
12ArgumentNullException.ThrowIfNull(destination);
System\IO\Pipelines\ThrowHelper.cs (1)
19private static ArgumentNullException CreateArgumentNullException(ExceptionArgument argument) => new ArgumentNullException(argument.ToString());
System.IO.Pipes (7)
System\IO\Pipes\AnonymousPipeClientStream.cs (2)
27ArgumentNullException.ThrowIfNull(pipeHandleAsString); 54ArgumentNullException.ThrowIfNull(safePipeHandle);
System\IO\Pipes\AnonymousPipeServerStream.cs (2)
40ArgumentNullException.ThrowIfNull(serverSafePipeHandle); 41ArgumentNullException.ThrowIfNull(clientSafePipeHandle);
System\IO\Pipes\NamedPipeClientStream.cs (2)
61ArgumentNullException.ThrowIfNull(serverName); 95ArgumentNullException.ThrowIfNull(safePipeHandle);
System\IO\Pipes\NamedPipeServerStream.cs (1)
136ArgumentNullException.ThrowIfNull(safePipeHandle);
System.IO.Ports (2)
System\IO\Ports\SerialStream.cs (1)
93ArgumentNullException.ThrowIfNull(array);
System\IO\Ports\SerialStream.Unix.cs (1)
601ArgumentNullException.ThrowIfNull(portName);
System.Linq (43)
System\Linq\Chunk.cs (1)
30/// <exception cref="ArgumentNullException">
System\Linq\Distinct.cs (2)
34/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 48/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\ElementAt.cs (2)
41/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\First.cs (2)
41/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\Index.cs (1)
14/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\Intersect.cs (2)
34/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception> 51/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception>
System\Linq\Join.cs (2)
23/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 127/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\Last.cs (2)
41/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\LeftJoin.cs (2)
23/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\Lookup.cs (3)
268ArgumentNullException.ThrowIfNull(array); 290ArgumentNullException.ThrowIfNull(item); 316ArgumentNullException.ThrowIfNull(array);
System\Linq\Max.cs (3)
306/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 402/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 416/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\Min.cs (3)
285/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 381/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 395/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\OrderBy.cs (4)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 36/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 62/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 81/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\RightJoin.cs (2)
23/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\Sequence.cs (3)
20/// <exception cref="ArgumentNullException"><paramref name="start"/> is <see langword="null"/>.</exception> 21/// <exception cref="ArgumentNullException"><paramref name="endInclusive"/> is <see langword="null"/>.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="step"/> is <see langword="null"/>.</exception>
System\Linq\Single.cs (2)
40/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\Take.cs (1)
30/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\ToCollection.cs (4)
80/// <exception cref="ArgumentNullException"><paramref name="source"/> is a null reference.</exception> 93/// <exception cref="ArgumentNullException"><paramref name="source"/> is a null reference.</exception> 115/// <exception cref="ArgumentNullException"><paramref name="source"/> is a null reference.</exception> 128/// <exception cref="ArgumentNullException"><paramref name="source"/> is a null reference.</exception>
System\Linq\Union.cs (2)
36/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception> 52/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception>
System.Linq.AsyncEnumerable (697)
System\Linq\AggregateAsync.cs (28)
19/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 27ArgumentNullException.ThrowIfNull(source); 28ArgumentNullException.ThrowIfNull(func); 60/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 61/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 68ArgumentNullException.ThrowIfNull(source); 69ArgumentNullException.ThrowIfNull(func); 103/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 104/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 111ArgumentNullException.ThrowIfNull(source); 112ArgumentNullException.ThrowIfNull(func); 140/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 141/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 147ArgumentNullException.ThrowIfNull(source); 148ArgumentNullException.ThrowIfNull(func); 182/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 183/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 184/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 192ArgumentNullException.ThrowIfNull(source); 193ArgumentNullException.ThrowIfNull(func); 194ArgumentNullException.ThrowIfNull(resultSelector); 229/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 230/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 231/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 239ArgumentNullException.ThrowIfNull(source); 240ArgumentNullException.ThrowIfNull(func); 241ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\AggregateBy.cs (28)
30/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 31/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 41ArgumentNullException.ThrowIfNull(source); 42ArgumentNullException.ThrowIfNull(keySelector); 43ArgumentNullException.ThrowIfNull(func); 101/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 112ArgumentNullException.ThrowIfNull(source); 113ArgumentNullException.ThrowIfNull(keySelector); 114ArgumentNullException.ThrowIfNull(func); 167/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 168/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 169/// <exception cref="ArgumentNullException"><paramref name="seedSelector"/> is <see langword="null"/>.</exception> 170/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 178ArgumentNullException.ThrowIfNull(source); 179ArgumentNullException.ThrowIfNull(keySelector); 180ArgumentNullException.ThrowIfNull(seedSelector); 181ArgumentNullException.ThrowIfNull(func); 239/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 240/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 241/// <exception cref="ArgumentNullException"><paramref name="seedSelector"/> is <see langword="null"/>.</exception> 242/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 250ArgumentNullException.ThrowIfNull(source); 251ArgumentNullException.ThrowIfNull(keySelector); 252ArgumentNullException.ThrowIfNull(seedSelector); 253ArgumentNullException.ThrowIfNull(func);
System\Linq\AllAsync.cs (8)
22/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 29ArgumentNullException.ThrowIfNull(source); 30ArgumentNullException.ThrowIfNull(predicate); 59/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 67ArgumentNullException.ThrowIfNull(source); 68ArgumentNullException.ThrowIfNull(predicate);
System\Linq\AnyAsync.cs (10)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23ArgumentNullException.ThrowIfNull(source); 46/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 47/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 53ArgumentNullException.ThrowIfNull(source); 54ArgumentNullException.ThrowIfNull(predicate); 83/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 84/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 90ArgumentNullException.ThrowIfNull(source); 91ArgumentNullException.ThrowIfNull(predicate);
System\Linq\Append.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23ArgumentNullException.ThrowIfNull(source);
System\Linq\AverageAsync.cs (20)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 24ArgumentNullException.ThrowIfNull(source); 52/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 59ArgumentNullException.ThrowIfNull(source); 87/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 92ArgumentNullException.ThrowIfNull(source); 120/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 125ArgumentNullException.ThrowIfNull(source); 153/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 158ArgumentNullException.ThrowIfNull(source); 186/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 192ArgumentNullException.ThrowIfNull(source); 218/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 224ArgumentNullException.ThrowIfNull(source); 250/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 255ArgumentNullException.ThrowIfNull(source); 281/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 286ArgumentNullException.ThrowIfNull(source); 312/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 317ArgumentNullException.ThrowIfNull(source);
System\Linq\Cast.cs (1)
27ArgumentNullException.ThrowIfNull(source);
System\Linq\Chunk.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 30ArgumentNullException.ThrowIfNull(source);
System\Linq\Concat.cs (4)
18/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 19/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception> 23ArgumentNullException.ThrowIfNull(first); 24ArgumentNullException.ThrowIfNull(second);
System\Linq\ContainsAsync.cs (2)
20/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 27ArgumentNullException.ThrowIfNull(source);
System\Linq\CountAsync.cs (16)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 24ArgumentNullException.ThrowIfNull(source); 50/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 57ArgumentNullException.ThrowIfNull(source); 58ArgumentNullException.ThrowIfNull(predicate); 85/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 92ArgumentNullException.ThrowIfNull(source); 93ArgumentNullException.ThrowIfNull(predicate); 120/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 125ArgumentNullException.ThrowIfNull(source); 151/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 157ArgumentNullException.ThrowIfNull(source); 158ArgumentNullException.ThrowIfNull(predicate); 185/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 191ArgumentNullException.ThrowIfNull(source); 192ArgumentNullException.ThrowIfNull(predicate);
System\Linq\CountBy.cs (8)
21/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 28ArgumentNullException.ThrowIfNull(source); 29ArgumentNullException.ThrowIfNull(keySelector); 72/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 79ArgumentNullException.ThrowIfNull(source); 80ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\DefaultIfEmpty.cs (3)
19/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 36ArgumentNullException.ThrowIfNull(source);
System\Linq\Distinct.cs (2)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 22ArgumentNullException.ThrowIfNull(source);
System\Linq\DistinctBy.cs (10)
20/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 25/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 32ArgumentNullException.ThrowIfNull(source); 33ArgumentNullException.ThrowIfNull(keySelector); 70/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 75/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 76/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 82ArgumentNullException.ThrowIfNull(source); 83ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\ElementAtAsync.cs (10)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 25ArgumentNullException.ThrowIfNull(source); 39/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 45ArgumentNullException.ThrowIfNull(source); 55/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 62/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 74ArgumentNullException.ThrowIfNull(source); 84/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 90/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 101ArgumentNullException.ThrowIfNull(source);
System\Linq\Empty.cs (2)
38ArgumentNullException.ThrowIfNull(keySelector); 44ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\Except.cs (4)
19/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception> 26ArgumentNullException.ThrowIfNull(first); 27ArgumentNullException.ThrowIfNull(second);
System\Linq\ExceptBy.cs (12)
23/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 24/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception> 25/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 32ArgumentNullException.ThrowIfNull(first); 33ArgumentNullException.ThrowIfNull(second); 34ArgumentNullException.ThrowIfNull(keySelector); 83/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 84/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception> 85/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 92ArgumentNullException.ThrowIfNull(first); 93ArgumentNullException.ThrowIfNull(second); 94ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\FirstAsync.cs (25)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 24ArgumentNullException.ThrowIfNull(source); 49/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 50/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 60ArgumentNullException.ThrowIfNull(source); 61ArgumentNullException.ThrowIfNull(predicate); 88/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 89/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 99ArgumentNullException.ThrowIfNull(source); 100ArgumentNullException.ThrowIfNull(predicate); 127/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 139/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 145ArgumentNullException.ThrowIfNull(source); 169/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 170/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 186/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 187/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 201/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 202/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 209ArgumentNullException.ThrowIfNull(source); 210ArgumentNullException.ThrowIfNull(predicate); 238/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 239/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 246ArgumentNullException.ThrowIfNull(source); 247ArgumentNullException.ThrowIfNull(predicate);
System\Linq\GroupBy.cs (48)
25/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 32ArgumentNullException.ThrowIfNull(source); 33ArgumentNullException.ThrowIfNull(keySelector); 62/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 63/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 69ArgumentNullException.ThrowIfNull(source); 70ArgumentNullException.ThrowIfNull(keySelector); 105/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 106/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 107/// <exception cref="ArgumentNullException"><paramref name="elementSelector"/> is <see langword="null"/>.</exception> 114ArgumentNullException.ThrowIfNull(source); 115ArgumentNullException.ThrowIfNull(keySelector); 116ArgumentNullException.ThrowIfNull(elementSelector); 152/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 153/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 154/// <exception cref="ArgumentNullException"><paramref name="elementSelector"/> is <see langword="null"/>.</exception> 161ArgumentNullException.ThrowIfNull(source); 162ArgumentNullException.ThrowIfNull(keySelector); 163ArgumentNullException.ThrowIfNull(elementSelector); 198/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 200/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 207ArgumentNullException.ThrowIfNull(source); 208ArgumentNullException.ThrowIfNull(keySelector); 209ArgumentNullException.ThrowIfNull(resultSelector); 247/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 248/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 249/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 256ArgumentNullException.ThrowIfNull(source); 257ArgumentNullException.ThrowIfNull(keySelector); 258ArgumentNullException.ThrowIfNull(resultSelector); 297/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 298/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception> 299/// <exception cref="ArgumentNullException"><paramref name="elementSelector" /> is <see langword="null" />.</exception> 300/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 308ArgumentNullException.ThrowIfNull(source); 309ArgumentNullException.ThrowIfNull(keySelector); 310ArgumentNullException.ThrowIfNull(elementSelector); 311ArgumentNullException.ThrowIfNull(resultSelector); 351/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 352/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception> 353/// <exception cref="ArgumentNullException"><paramref name="elementSelector" /> is <see langword="null" />.</exception> 354/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 362ArgumentNullException.ThrowIfNull(source); 363ArgumentNullException.ThrowIfNull(keySelector); 364ArgumentNullException.ThrowIfNull(elementSelector); 365ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\GroupJoin.cs (20)
31/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 33/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 34/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 35/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 44ArgumentNullException.ThrowIfNull(outer); 45ArgumentNullException.ThrowIfNull(inner); 46ArgumentNullException.ThrowIfNull(outerKeySelector); 47ArgumentNullException.ThrowIfNull(innerKeySelector); 48ArgumentNullException.ThrowIfNull(resultSelector); 96/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 97/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 98/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 99/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 100/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 109ArgumentNullException.ThrowIfNull(outer); 110ArgumentNullException.ThrowIfNull(inner); 111ArgumentNullException.ThrowIfNull(outerKeySelector); 112ArgumentNullException.ThrowIfNull(innerKeySelector); 113ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\Index.cs (2)
17/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 21ArgumentNullException.ThrowIfNull(source);
System\Linq\Intersect.cs (4)
19/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 26ArgumentNullException.ThrowIfNull(first); 27ArgumentNullException.ThrowIfNull(second);
System\Linq\IntersectBy.cs (14)
21/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception> 28/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 29/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 30/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception> 37ArgumentNullException.ThrowIfNull(first); 38ArgumentNullException.ThrowIfNull(second); 39ArgumentNullException.ThrowIfNull(keySelector); 86/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception> 93/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 94/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 95/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception> 102ArgumentNullException.ThrowIfNull(first); 103ArgumentNullException.ThrowIfNull(second); 104ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\Join.cs (20)
28/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 29/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 30/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 31/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 41ArgumentNullException.ThrowIfNull(outer); 42ArgumentNullException.ThrowIfNull(inner); 43ArgumentNullException.ThrowIfNull(outerKeySelector); 44ArgumentNullException.ThrowIfNull(innerKeySelector); 45ArgumentNullException.ThrowIfNull(resultSelector); 101/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 104/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 105/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 114ArgumentNullException.ThrowIfNull(outer); 115ArgumentNullException.ThrowIfNull(inner); 116ArgumentNullException.ThrowIfNull(outerKeySelector); 117ArgumentNullException.ThrowIfNull(innerKeySelector); 118ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\LastAsync.cs (25)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23ArgumentNullException.ThrowIfNull(source); 55/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 66ArgumentNullException.ThrowIfNull(source); 67ArgumentNullException.ThrowIfNull(predicate); 109/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 110/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 120ArgumentNullException.ThrowIfNull(source); 121ArgumentNullException.ThrowIfNull(predicate); 165/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 177/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 183ArgumentNullException.ThrowIfNull(source); 212/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 213/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 226/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 227/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 241/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 242/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 249ArgumentNullException.ThrowIfNull(source); 250ArgumentNullException.ThrowIfNull(predicate); 294/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 295/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 302ArgumentNullException.ThrowIfNull(source); 303ArgumentNullException.ThrowIfNull(predicate);
System\Linq\LeftJoin.cs (20)
25/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 27/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 28/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 29/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 38ArgumentNullException.ThrowIfNull(outer); 39ArgumentNullException.ThrowIfNull(inner); 40ArgumentNullException.ThrowIfNull(outerKeySelector); 41ArgumentNullException.ThrowIfNull(innerKeySelector); 42ArgumentNullException.ThrowIfNull(resultSelector); 96/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 97/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 98/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 99/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 100/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 109ArgumentNullException.ThrowIfNull(outer); 110ArgumentNullException.ThrowIfNull(inner); 111ArgumentNullException.ThrowIfNull(outerKeySelector); 112ArgumentNullException.ThrowIfNull(innerKeySelector); 113ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\MaxAsync.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 29ArgumentNullException.ThrowIfNull(source);
System\Linq\MaxByAsync.cs (6)
20/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 31ArgumentNullException.ThrowIfNull(source); 32ArgumentNullException.ThrowIfNull(keySelector); 130/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 141ArgumentNullException.ThrowIfNull(source); 142ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\MinAsync.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 29ArgumentNullException.ThrowIfNull(source);
System\Linq\MinByAsync.cs (6)
20/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 31ArgumentNullException.ThrowIfNull(source); 32ArgumentNullException.ThrowIfNull(keySelector); 130/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 141ArgumentNullException.ThrowIfNull(source); 142ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\OfType.cs (1)
27ArgumentNullException.ThrowIfNull(source);
System\Linq\OrderBy.cs (30)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 31/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 38ArgumentNullException.ThrowIfNull(source); 39ArgumentNullException.ThrowIfNull(keySelector); 53/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 54/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 60ArgumentNullException.ThrowIfNull(source); 61ArgumentNullException.ThrowIfNull(keySelector); 73/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 86/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 93ArgumentNullException.ThrowIfNull(source); 94ArgumentNullException.ThrowIfNull(keySelector); 108/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 109/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 115ArgumentNullException.ThrowIfNull(source); 116ArgumentNullException.ThrowIfNull(keySelector); 130/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 131/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 137ArgumentNullException.ThrowIfNull(source); 149/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 150/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 156ArgumentNullException.ThrowIfNull(source); 168/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 169/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 175ArgumentNullException.ThrowIfNull(source); 187/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 188/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 194ArgumentNullException.ThrowIfNull(source);
System\Linq\Prepend.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23ArgumentNullException.ThrowIfNull(source);
System\Linq\Reverse.cs (2)
16/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 20ArgumentNullException.ThrowIfNull(source);
System\Linq\RightJoin.cs (20)
25/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 27/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 28/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 29/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 38ArgumentNullException.ThrowIfNull(outer); 39ArgumentNullException.ThrowIfNull(inner); 40ArgumentNullException.ThrowIfNull(outerKeySelector); 41ArgumentNullException.ThrowIfNull(innerKeySelector); 42ArgumentNullException.ThrowIfNull(resultSelector); 97/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 98/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 99/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 100/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 101/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 110ArgumentNullException.ThrowIfNull(outer); 111ArgumentNullException.ThrowIfNull(inner); 112ArgumentNullException.ThrowIfNull(outerKeySelector); 113ArgumentNullException.ThrowIfNull(innerKeySelector); 114ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\Select.cs (16)
22/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 28ArgumentNullException.ThrowIfNull(source); 29ArgumentNullException.ThrowIfNull(selector); 56/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 62ArgumentNullException.ThrowIfNull(source); 63ArgumentNullException.ThrowIfNull(selector); 93/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 94/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 99ArgumentNullException.ThrowIfNull(source); 100ArgumentNullException.ThrowIfNull(selector); 131/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 132/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 137ArgumentNullException.ThrowIfNull(source); 138ArgumentNullException.ThrowIfNull(selector);
System\Linq\SelectMany.cs (66)
25/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 31ArgumentNullException.ThrowIfNull(source); 32ArgumentNullException.ThrowIfNull(selector); 65/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 66/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 71ArgumentNullException.ThrowIfNull(source); 72ArgumentNullException.ThrowIfNull(selector); 105/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 106/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 111ArgumentNullException.ThrowIfNull(source); 112ArgumentNullException.ThrowIfNull(selector); 146/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 147/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 152ArgumentNullException.ThrowIfNull(source); 153ArgumentNullException.ThrowIfNull(selector); 188/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 189/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 194ArgumentNullException.ThrowIfNull(source); 195ArgumentNullException.ThrowIfNull(selector); 230/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 231/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 236ArgumentNullException.ThrowIfNull(source); 237ArgumentNullException.ThrowIfNull(selector); 277/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 278/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 279/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 285ArgumentNullException.ThrowIfNull(source); 286ArgumentNullException.ThrowIfNull(collectionSelector); 287ArgumentNullException.ThrowIfNull(resultSelector); 327/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 328/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 329/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 335ArgumentNullException.ThrowIfNull(source); 336ArgumentNullException.ThrowIfNull(collectionSelector); 337ArgumentNullException.ThrowIfNull(resultSelector); 377/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 378/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 379/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 385ArgumentNullException.ThrowIfNull(source); 386ArgumentNullException.ThrowIfNull(collectionSelector); 387ArgumentNullException.ThrowIfNull(resultSelector); 427/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 428/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 429/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 435ArgumentNullException.ThrowIfNull(source); 436ArgumentNullException.ThrowIfNull(collectionSelector); 437ArgumentNullException.ThrowIfNull(resultSelector); 476/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 477/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 478/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 484ArgumentNullException.ThrowIfNull(source); 485ArgumentNullException.ThrowIfNull(collectionSelector); 486ArgumentNullException.ThrowIfNull(resultSelector); 526/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 527/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 528/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 534ArgumentNullException.ThrowIfNull(source); 535ArgumentNullException.ThrowIfNull(collectionSelector); 536ArgumentNullException.ThrowIfNull(resultSelector); 576/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 577/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 578/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 584ArgumentNullException.ThrowIfNull(source); 585ArgumentNullException.ThrowIfNull(collectionSelector); 586ArgumentNullException.ThrowIfNull(resultSelector);
System\Linq\Sequence.cs (3)
20/// <exception cref="ArgumentNullException"><paramref name="start"/> is <see langword="null"/>.</exception> 21/// <exception cref="ArgumentNullException"><paramref name="endInclusive"/> is <see langword="null"/>.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="step"/> is <see langword="null"/>.</exception>
System\Linq\SequenceEqualAsync.cs (2)
28ArgumentNullException.ThrowIfNull(first); 29ArgumentNullException.ThrowIfNull(second);
System\Linq\Shuffle.cs (1)
25ArgumentNullException.ThrowIfNull(source);
System\Linq\SingleAsync.cs (25)
20/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 27ArgumentNullException.ThrowIfNull(source); 60/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 61/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 70ArgumentNullException.ThrowIfNull(source); 71ArgumentNullException.ThrowIfNull(predicate); 113/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 114/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 123ArgumentNullException.ThrowIfNull(source); 124ArgumentNullException.ThrowIfNull(predicate); 168/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 181/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 188ArgumentNullException.ThrowIfNull(source); 227/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 228/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 249/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 250/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 265/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 266/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 274ArgumentNullException.ThrowIfNull(source); 275ArgumentNullException.ThrowIfNull(predicate); 315/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 316/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 324ArgumentNullException.ThrowIfNull(source); 325ArgumentNullException.ThrowIfNull(predicate);
System\Linq\Skip.cs (2)
17/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 22ArgumentNullException.ThrowIfNull(source);
System\Linq\SkipLast.cs (2)
21/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 26ArgumentNullException.ThrowIfNull(source);
System\Linq\SkipWhile.cs (16)
25/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 31ArgumentNullException.ThrowIfNull(source); 32ArgumentNullException.ThrowIfNull(predicate); 74/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 75/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 80ArgumentNullException.ThrowIfNull(source); 81ArgumentNullException.ThrowIfNull(predicate); 127/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 128/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 133ArgumentNullException.ThrowIfNull(source); 134ArgumentNullException.ThrowIfNull(predicate); 181/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 182/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 187ArgumentNullException.ThrowIfNull(source); 188ArgumentNullException.ThrowIfNull(predicate);
System\Linq\SumAsync.cs (20)
17/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 23ArgumentNullException.ThrowIfNull(source); 43/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 49ArgumentNullException.ThrowIfNull(source); 69/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 74ArgumentNullException.ThrowIfNull(source); 94/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 99ArgumentNullException.ThrowIfNull(source); 119/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 124ArgumentNullException.ThrowIfNull(source); 144/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 150ArgumentNullException.ThrowIfNull(source); 173/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 179ArgumentNullException.ThrowIfNull(source); 202/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 207ArgumentNullException.ThrowIfNull(source); 230/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 235ArgumentNullException.ThrowIfNull(source); 258/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 263ArgumentNullException.ThrowIfNull(source);
System\Linq\Take.cs (4)
22/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 27ArgumentNullException.ThrowIfNull(source); 59/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 64ArgumentNullException.ThrowIfNull(source);
System\Linq\TakeLast.cs (1)
19ArgumentNullException.ThrowIfNull(source);
System\Linq\TakeWhile.cs (16)
21/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 27ArgumentNullException.ThrowIfNull(source); 28ArgumentNullException.ThrowIfNull(predicate); 58/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 59/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 64ArgumentNullException.ThrowIfNull(source); 65ArgumentNullException.ThrowIfNull(predicate); 99/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 100/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 105ArgumentNullException.ThrowIfNull(source); 106ArgumentNullException.ThrowIfNull(predicate); 141/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 142/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 147ArgumentNullException.ThrowIfNull(source); 148ArgumentNullException.ThrowIfNull(predicate);
System\Linq\ToArrayAsync.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 23ArgumentNullException.ThrowIfNull(source);
System\Linq\ToAsyncEnumerable.cs (2)
14/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 21ArgumentNullException.ThrowIfNull(source);
System\Linq\ToDictionaryAsync.cs (23)
22/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 29ArgumentNullException.ThrowIfNull(source); 56/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 82ArgumentNullException.ThrowIfNull(source); 83ArgumentNullException.ThrowIfNull(keySelector); 112/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 113/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 121ArgumentNullException.ThrowIfNull(source); 122ArgumentNullException.ThrowIfNull(keySelector); 154/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 155/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 156/// <exception cref="ArgumentNullException"><paramref name="elementSelector"/> is <see langword="null"/>.</exception> 165ArgumentNullException.ThrowIfNull(source); 166ArgumentNullException.ThrowIfNull(keySelector); 167ArgumentNullException.ThrowIfNull(elementSelector); 200/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 201/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 202/// <exception cref="ArgumentNullException"><paramref name="elementSelector"/> is <see langword="null"/>.</exception> 211ArgumentNullException.ThrowIfNull(source); 212ArgumentNullException.ThrowIfNull(keySelector); 213ArgumentNullException.ThrowIfNull(elementSelector);
System\Linq\ToHashSetAsync.cs (2)
19/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 25ArgumentNullException.ThrowIfNull(source);
System\Linq\ToListAsync.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 23ArgumentNullException.ThrowIfNull(source);
System\Linq\ToLookupAsync.cs (19)
26/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 27/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 34ArgumentNullException.ThrowIfNull(source); 35ArgumentNullException.ThrowIfNull(keySelector); 74/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 75/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 82ArgumentNullException.ThrowIfNull(source); 83ArgumentNullException.ThrowIfNull(keySelector); 125/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 134ArgumentNullException.ThrowIfNull(source); 135ArgumentNullException.ThrowIfNull(keySelector); 136ArgumentNullException.ThrowIfNull(elementSelector); 178/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 179/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 187ArgumentNullException.ThrowIfNull(source); 188ArgumentNullException.ThrowIfNull(keySelector); 189ArgumentNullException.ThrowIfNull(elementSelector); 240ArgumentNullException.ThrowIfNull(array);
System\Linq\Union.cs (4)
19/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception> 26ArgumentNullException.ThrowIfNull(first); 27ArgumentNullException.ThrowIfNull(second);
System\Linq\UnionBy.cs (10)
21/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 29ArgumentNullException.ThrowIfNull(first); 30ArgumentNullException.ThrowIfNull(second); 31ArgumentNullException.ThrowIfNull(keySelector); 72/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 80ArgumentNullException.ThrowIfNull(first); 81ArgumentNullException.ThrowIfNull(second); 82ArgumentNullException.ThrowIfNull(keySelector);
System\Linq\Where.cs (16)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 19/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 24ArgumentNullException.ThrowIfNull(source); 25ArgumentNullException.ThrowIfNull(predicate); 51/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 52/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 57ArgumentNullException.ThrowIfNull(source); 58ArgumentNullException.ThrowIfNull(predicate); 90/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 91/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 96ArgumentNullException.ThrowIfNull(source); 97ArgumentNullException.ThrowIfNull(predicate); 130/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 131/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 136ArgumentNullException.ThrowIfNull(source); 137ArgumentNullException.ThrowIfNull(predicate);
System\Linq\Zip.cs (22)
24/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 25/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 32ArgumentNullException.ThrowIfNull(first); 33ArgumentNullException.ThrowIfNull(second); 34ArgumentNullException.ThrowIfNull(resultSelector); 68/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 70/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 76ArgumentNullException.ThrowIfNull(first); 77ArgumentNullException.ThrowIfNull(second); 78ArgumentNullException.ThrowIfNull(resultSelector); 107/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 108/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 113ArgumentNullException.ThrowIfNull(first); 114ArgumentNullException.ThrowIfNull(second); 144/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 145/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 146/// <exception cref="ArgumentNullException"><paramref name="third" /> is <see langword="null" />.</exception> 152ArgumentNullException.ThrowIfNull(first); 153ArgumentNullException.ThrowIfNull(second); 154ArgumentNullException.ThrowIfNull(third);
System.Linq.Expressions (288)
System\Dynamic\BinaryOperationBinder.cs (3)
64ArgumentNullException.ThrowIfNull(target); 65ArgumentNullException.ThrowIfNull(args); 69ArgumentNullException.ThrowIfNull(arg0, nameof(args));
System\Dynamic\BindingRestrictions.cs (6)
43ArgumentNullException.ThrowIfNull(restrictions); 65ArgumentNullException.ThrowIfNull(expression); 66ArgumentNullException.ThrowIfNull(type); 96ArgumentNullException.ThrowIfNull(expression); 112ArgumentNullException.ThrowIfNull(expression); 347ArgumentNullException.ThrowIfNull(node);
System\Dynamic\CallInfo.cs (1)
51ArgumentNullException.ThrowIfNull(argNames);
System\Dynamic\ConvertBinder.cs (2)
23ArgumentNullException.ThrowIfNull(type); 65ArgumentNullException.ThrowIfNull(target);
System\Dynamic\CreateInstanceBinder.cs (2)
22ArgumentNullException.ThrowIfNull(callInfo); 64ArgumentNullException.ThrowIfNull(target);
System\Dynamic\DeleteIndexBinder.cs (2)
22ArgumentNullException.ThrowIfNull(callInfo); 44ArgumentNullException.ThrowIfNull(target);
System\Dynamic\DeleteMemberBinder.cs (2)
23ArgumentNullException.ThrowIfNull(name); 70ArgumentNullException.ThrowIfNull(target);
System\Dynamic\DynamicMetaObject.cs (17)
28ArgumentNullException.ThrowIfNull(expression); 29ArgumentNullException.ThrowIfNull(restrictions); 109ArgumentNullException.ThrowIfNull(binder); 120ArgumentNullException.ThrowIfNull(binder); 132ArgumentNullException.ThrowIfNull(binder); 143ArgumentNullException.ThrowIfNull(binder); 155ArgumentNullException.ThrowIfNull(binder); 168ArgumentNullException.ThrowIfNull(binder); 180ArgumentNullException.ThrowIfNull(binder); 192ArgumentNullException.ThrowIfNull(binder); 204ArgumentNullException.ThrowIfNull(binder); 216ArgumentNullException.ThrowIfNull(binder); 227ArgumentNullException.ThrowIfNull(binder); 239ArgumentNullException.ThrowIfNull(binder); 256ArgumentNullException.ThrowIfNull(objects); 262ArgumentNullException.ThrowIfNull(mo, nameof(objects)); 283ArgumentNullException.ThrowIfNull(expression);
System\Dynamic\DynamicMetaObjectBinder.cs (4)
52ArgumentNullException.ThrowIfNull(args); 53ArgumentNullException.ThrowIfNull(parameters); 54ArgumentNullException.ThrowIfNull(returnLabel); 184ArgumentNullException.ThrowIfNull(target);
System\Dynamic\ExpandoObject.cs (14)
303ArgumentNullException.ThrowIfNull(key); 331ArgumentNullException.ThrowIfNull(collection); 399ArgumentNullException.ThrowIfNull(array); 470ArgumentNullException.ThrowIfNull(collection); 549ArgumentNullException.ThrowIfNull(array); 633ArgumentNullException.ThrowIfNull(key); 646ArgumentNullException.ThrowIfNull(key); 655ArgumentNullException.ThrowIfNull(key); 715ArgumentNullException.ThrowIfNull(array); 828ArgumentNullException.ThrowIfNull(binder); 840ArgumentNullException.ThrowIfNull(binder); 852ArgumentNullException.ThrowIfNull(binder); 853ArgumentNullException.ThrowIfNull(value); 881ArgumentNullException.ThrowIfNull(binder);
System\Dynamic\GetIndexBinder.cs (2)
22ArgumentNullException.ThrowIfNull(callInfo); 44ArgumentNullException.ThrowIfNull(target);
System\Dynamic\GetMemberBinder.cs (2)
23ArgumentNullException.ThrowIfNull(name); 70ArgumentNullException.ThrowIfNull(target);
System\Dynamic\InvokeBinder.cs (2)
22ArgumentNullException.ThrowIfNull(callInfo); 64ArgumentNullException.ThrowIfNull(target);
System\Dynamic\InvokeMemberBinder.cs (3)
24ArgumentNullException.ThrowIfNull(name); 25ArgumentNullException.ThrowIfNull(callInfo); 60ArgumentNullException.ThrowIfNull(target);
System\Dynamic\SetIndexBinder.cs (4)
22ArgumentNullException.ThrowIfNull(callInfo); 44ArgumentNullException.ThrowIfNull(target); 45ArgumentNullException.ThrowIfNull(args); 51ArgumentNullException.ThrowIfNull(value, nameof(args));
System\Dynamic\SetMemberBinder.cs (4)
23ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(target); 53ArgumentNullException.ThrowIfNull(args); 57ArgumentNullException.ThrowIfNull(arg0, nameof(args));
System\Dynamic\UnaryOperationBinder.cs (1)
75ArgumentNullException.ThrowIfNull(target);
System\Dynamic\Utils\ContractUtils.cs (5)
62/// <exception cref="ArgumentNullException"> 89ArgumentNullException.ThrowIfNull(collection, paramName); 105/// <exception cref="ArgumentNullException"> 111ArgumentNullException.ThrowIfNull(array, arrayName); 133/// <exception cref="ArgumentNullException">Array is <c>null</c>.</exception>
System\Dynamic\Utils\ListArgumentProvider.cs (1)
90ArgumentNullException.ThrowIfNull(array);
System\Linq\Expressions\BlockExpression.cs (6)
763ArgumentNullException.ThrowIfNull(array); 903ArgumentNullException.ThrowIfNull(expressions); 927ArgumentNullException.ThrowIfNull(expressions); 973ArgumentNullException.ThrowIfNull(expressions); 1001ArgumentNullException.ThrowIfNull(type); 1002ArgumentNullException.ThrowIfNull(expressions);
System\Linq\Expressions\CatchBlock.cs (3)
95ArgumentNullException.ThrowIfNull(variable); 122ArgumentNullException.ThrowIfNull(variable); 137ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\Compiler\AssemblyGen.cs (2)
44ArgumentNullException.ThrowIfNull(name); 45ArgumentNullException.ThrowIfNull(parent);
System\Linq\Expressions\ConditionalExpression.cs (1)
170ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\ConstantExpression.cs (1)
97ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\DebugInfoExpression.cs (2)
158ArgumentNullException.ThrowIfNull(document); 175ArgumentNullException.ThrowIfNull(document);
System\Linq\Expressions\DefaultExpression.cs (1)
66ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\DynamicExpression.cs (18)
866ArgumentNullException.ThrowIfNull(delegateType); 867ArgumentNullException.ThrowIfNull(binder); 893ArgumentNullException.ThrowIfNull(delegateType); 894ArgumentNullException.ThrowIfNull(binder); 923ArgumentNullException.ThrowIfNull(delegateType); 924ArgumentNullException.ThrowIfNull(binder); 956ArgumentNullException.ThrowIfNull(delegateType); 957ArgumentNullException.ThrowIfNull(binder); 992ArgumentNullException.ThrowIfNull(delegateType); 993ArgumentNullException.ThrowIfNull(binder); 1061ArgumentNullException.ThrowIfNull(binder); 1097ArgumentNullException.ThrowIfNull(binder); 1138ArgumentNullException.ThrowIfNull(binder); 1184ArgumentNullException.ThrowIfNull(binder); 1231ArgumentNullException.ThrowIfNull(arguments); 1232ArgumentNullException.ThrowIfNull(returnType); 1242ArgumentNullException.ThrowIfNull(binder); 1277ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\ElementInit.cs (2)
91ArgumentNullException.ThrowIfNull(addMethod); 92ArgumentNullException.ThrowIfNull(arguments);
System\Linq\Expressions\Expression.cs (1)
250ArgumentNullException.ThrowIfNull(expression, paramName);
System\Linq\Expressions\Expression.DebuggerProxy.cs (26)
18ArgumentNullException.ThrowIfNull(node); 40ArgumentNullException.ThrowIfNull(node); 59ArgumentNullException.ThrowIfNull(node); 75ArgumentNullException.ThrowIfNull(node); 94ArgumentNullException.ThrowIfNull(node); 111ArgumentNullException.ThrowIfNull(node); 133ArgumentNullException.ThrowIfNull(node); 149ArgumentNullException.ThrowIfNull(node); 168ArgumentNullException.ThrowIfNull(node); 187ArgumentNullException.ThrowIfNull(node); 205ArgumentNullException.ThrowIfNull(node); 223ArgumentNullException.ThrowIfNull(node); 244ArgumentNullException.ThrowIfNull(node); 262ArgumentNullException.ThrowIfNull(node); 281ArgumentNullException.ThrowIfNull(node); 299ArgumentNullException.ThrowIfNull(node); 317ArgumentNullException.ThrowIfNull(node); 336ArgumentNullException.ThrowIfNull(node); 353ArgumentNullException.ThrowIfNull(node); 372ArgumentNullException.ThrowIfNull(node); 390ArgumentNullException.ThrowIfNull(node); 407ArgumentNullException.ThrowIfNull(node); 421ArgumentNullException.ThrowIfNull(node); 441ArgumentNullException.ThrowIfNull(node); 461ArgumentNullException.ThrowIfNull(node); 479ArgumentNullException.ThrowIfNull(node);
System\Linq\Expressions\ExpressionVisitor.cs (4)
45ArgumentNullException.ThrowIfNull(nodes); 93ArgumentNullException.ThrowIfNull(nodes); 94ArgumentNullException.ThrowIfNull(elementVisitor); 155ArgumentNullException.ThrowIfNull(nodes);
System\Linq\Expressions\GotoExpression.cs (1)
341ArgumentNullException.ThrowIfNull(target, targetParameter);
System\Linq\Expressions\IndexExpression.cs (3)
216ArgumentNullException.ThrowIfNull(propertyName); 381ArgumentNullException.ThrowIfNull(indexer, paramName); 460ArgumentNullException.ThrowIfNull(arguments);
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
91ArgumentNullException.ThrowIfNull(list);
System\Linq\Expressions\InvocationExpression.cs (8)
412/// <exception cref="ArgumentNullException"> 448/// <exception cref="ArgumentNullException"> 489/// <exception cref="ArgumentNullException"> 533/// <exception cref="ArgumentNullException"> 582/// <exception cref="ArgumentNullException"> 635/// <exception cref="ArgumentNullException"> 678/// <exception cref="ArgumentNullException"> 705/// <exception cref="ArgumentNullException">
System\Linq\Expressions\LabelTarget.cs (1)
80ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\LambdaExpression.cs (3)
854ArgumentNullException.ThrowIfNull(body); 866ArgumentNullException.ThrowIfNull(param, "parameter"); 916ArgumentNullException.ThrowIfNull(delegateType);
System\Linq\Expressions\ListInitExpression.cs (6)
124ArgumentNullException.ThrowIfNull(newExpression); 125ArgumentNullException.ThrowIfNull(initializers); 166ArgumentNullException.ThrowIfNull(newExpression); 167ArgumentNullException.ThrowIfNull(initializers); 208ArgumentNullException.ThrowIfNull(newExpression); 209ArgumentNullException.ThrowIfNull(initializers);
System\Linq\Expressions\MemberAssignment.cs (3)
61ArgumentNullException.ThrowIfNull(member); 81ArgumentNullException.ThrowIfNull(propertyAccessor); 82ArgumentNullException.ThrowIfNull(expression);
System\Linq\Expressions\MemberExpression.cs (10)
129ArgumentNullException.ThrowIfNull(field); 157ArgumentNullException.ThrowIfNull(fieldName); 181ArgumentNullException.ThrowIfNull(type); 182ArgumentNullException.ThrowIfNull(fieldName); 209ArgumentNullException.ThrowIfNull(propertyName); 232ArgumentNullException.ThrowIfNull(type); 233ArgumentNullException.ThrowIfNull(propertyName); 252ArgumentNullException.ThrowIfNull(property); 302ArgumentNullException.ThrowIfNull(propertyAccessor); 388ArgumentNullException.ThrowIfNull(member);
System\Linq\Expressions\MemberInitExpression.cs (4)
142/// <exception cref="ArgumentNullException"> 154/// <exception cref="ArgumentNullException"> 159ArgumentNullException.ThrowIfNull(newExpression); 160ArgumentNullException.ThrowIfNull(bindings);
System\Linq\Expressions\MemberListBinding.cs (8)
63/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 82ArgumentNullException.ThrowIfNull(member); 83ArgumentNullException.ThrowIfNull(initializers); 95/// <exception cref="ArgumentNullException"> 109/// <exception cref="ArgumentNullException"> 116ArgumentNullException.ThrowIfNull(propertyAccessor); 117ArgumentNullException.ThrowIfNull(initializers);
System\Linq\Expressions\MemberMemberBinding.cs (4)
81ArgumentNullException.ThrowIfNull(member); 82ArgumentNullException.ThrowIfNull(bindings); 119ArgumentNullException.ThrowIfNull(propertyAccessor); 158ArgumentNullException.ThrowIfNull(b, nameof(bindings));
System\Linq\Expressions\MethodCallExpression.cs (48)
838/// <exception cref="ArgumentNullException"> 844ArgumentNullException.ThrowIfNull(method); 857/// <exception cref="ArgumentNullException"> 861ArgumentNullException.ThrowIfNull(method); 862ArgumentNullException.ThrowIfNull(arg0); 878/// <exception cref="ArgumentNullException"> 882ArgumentNullException.ThrowIfNull(method); 883ArgumentNullException.ThrowIfNull(arg0); 884ArgumentNullException.ThrowIfNull(arg1); 902/// <exception cref="ArgumentNullException"> 906ArgumentNullException.ThrowIfNull(method); 907ArgumentNullException.ThrowIfNull(arg0); 908ArgumentNullException.ThrowIfNull(arg1); 909ArgumentNullException.ThrowIfNull(arg2); 929/// <exception cref="ArgumentNullException"> 933ArgumentNullException.ThrowIfNull(method); 934ArgumentNullException.ThrowIfNull(arg0); 935ArgumentNullException.ThrowIfNull(arg1); 936ArgumentNullException.ThrowIfNull(arg2); 937ArgumentNullException.ThrowIfNull(arg3); 959/// <exception cref="ArgumentNullException"> 964ArgumentNullException.ThrowIfNull(method); 965ArgumentNullException.ThrowIfNull(arg0); 966ArgumentNullException.ThrowIfNull(arg1); 967ArgumentNullException.ThrowIfNull(arg2); 968ArgumentNullException.ThrowIfNull(arg3); 969ArgumentNullException.ThrowIfNull(arg4); 1014ArgumentNullException.ThrowIfNull(method); 1051ArgumentNullException.ThrowIfNull(method); 1052ArgumentNullException.ThrowIfNull(arg0); 1078ArgumentNullException.ThrowIfNull(method); 1079ArgumentNullException.ThrowIfNull(arg0); 1080ArgumentNullException.ThrowIfNull(arg1); 1108ArgumentNullException.ThrowIfNull(method); 1109ArgumentNullException.ThrowIfNull(arg0); 1110ArgumentNullException.ThrowIfNull(arg1); 1111ArgumentNullException.ThrowIfNull(arg2); 1137/// <exception cref="ArgumentNullException"> 1144ArgumentNullException.ThrowIfNull(instance); 1145ArgumentNullException.ThrowIfNull(methodName); 1161/// <exception cref="ArgumentNullException"> 1172ArgumentNullException.ThrowIfNull(type); 1173ArgumentNullException.ThrowIfNull(methodName); 1185/// <exception cref="ArgumentNullException"> 1218ArgumentNullException.ThrowIfNull(method); 1355ArgumentNullException.ThrowIfNull(arg, nameof(arguments)); 1405/// <exception cref="ArgumentNullException"> 1412ArgumentNullException.ThrowIfNull(indexes);
System\Linq\Expressions\NewArrayExpression.cs (5)
68ArgumentNullException.ThrowIfNull(expressions); 137ArgumentNullException.ThrowIfNull(type); 138ArgumentNullException.ThrowIfNull(initializers); 213ArgumentNullException.ThrowIfNull(type); 214ArgumentNullException.ThrowIfNull(bounds);
System\Linq\Expressions\NewExpression.cs (4)
138ArgumentNullException.ThrowIfNull(constructor); 139ArgumentNullException.ThrowIfNull(constructor.DeclaringType, nameof(constructor)); 164ArgumentNullException.ThrowIfNull(constructor); 200ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\ParameterExpression.cs (1)
202ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\RuntimeVariablesExpression.cs (1)
91ArgumentNullException.ThrowIfNull(variables);
System\Linq\Expressions\SwitchExpression.cs (2)
221ArgumentNullException.ThrowIfNull(c, nameof(cases)); 256ArgumentNullException.ThrowIfNull(c, nameof(cases));
System\Linq\Expressions\SymbolDocumentInfo.cs (1)
16ArgumentNullException.ThrowIfNull(fileName);
System\Linq\Expressions\TypeBinaryExpression.cs (2)
194ArgumentNullException.ThrowIfNull(type); 209ArgumentNullException.ThrowIfNull(type);
System\Linq\Expressions\UnaryExpression.cs (22)
302/// <exception cref="ArgumentNullException">Thrown when <paramref name="operand"/> is null.</exception> 317/// <exception cref="ArgumentNullException">Thrown when <paramref name="operand"/> is null.</exception> 455/// <exception cref="ArgumentNullException">Thrown when <paramref name="expression"/> is null.</exception> 468/// <exception cref="ArgumentNullException">Thrown when <paramref name="expression"/> is null.</exception> 490/// <exception cref="ArgumentNullException">Thrown when <paramref name="expression"/> is null.</exception> 503/// <exception cref="ArgumentNullException">Thrown when <paramref name="expression"/> is null.</exception> 523/// <exception cref="ArgumentNullException">Thrown when <paramref name="expression"/> is null.</exception> 534/// <exception cref="ArgumentNullException"> 557/// <exception cref="ArgumentNullException"> 569/// <exception cref="ArgumentNullException"> 688/// <exception cref="ArgumentNullException"> 693ArgumentNullException.ThrowIfNull(type); 712ArgumentNullException.ThrowIfNull(type); 726/// <exception cref="ArgumentNullException"> 739/// <exception cref="ArgumentNullException"> 748ArgumentNullException.ThrowIfNull(type); 766/// <exception cref="ArgumentNullException"> 779/// <exception cref="ArgumentNullException"> 788ArgumentNullException.ThrowIfNull(type); 808/// <exception cref="ArgumentNullException"> 831/// <exception cref="ArgumentNullException"> 882ArgumentNullException.ThrowIfNull(type);
System\Runtime\CompilerServices\CallSite.cs (3)
89ArgumentNullException.ThrowIfNull(delegateType); 90ArgumentNullException.ThrowIfNull(binder); 218ArgumentNullException.ThrowIfNull(binder);
System\Runtime\CompilerServices\DynamicAttribute.cs (1)
47ArgumentNullException.ThrowIfNull(transformFlags);
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (2)
50ArgumentNullException.ThrowIfNull(collection); 353ArgumentNullException.ThrowIfNull(array);
System.Linq.Parallel (384)
System\Linq\ParallelEnumerable.cs (384)
97/// <exception cref="System.ArgumentNullException"> 102ArgumentNullException.ThrowIfNull(source); 119/// <exception cref="System.ArgumentNullException"> 124ArgumentNullException.ThrowIfNull(source); 140/// <exception cref="System.ArgumentNullException"> 151ArgumentNullException.ThrowIfNull(source); 180/// <exception cref="System.ArgumentNullException"> 191ArgumentNullException.ThrowIfNull(source); 212/// <exception cref="System.ArgumentNullException"> 217ArgumentNullException.ThrowIfNull(source); 231/// <exception cref="System.ArgumentNullException"> 236ArgumentNullException.ThrowIfNull(source); 258/// <exception cref="System.ArgumentNullException"> 263ArgumentNullException.ThrowIfNull(source); 284/// <exception cref="System.ArgumentNullException"> 295ArgumentNullException.ThrowIfNull(source); 315/// <exception cref="System.ArgumentNullException"> 323ArgumentNullException.ThrowIfNull(source); 340/// <exception cref="System.ArgumentNullException"> 351ArgumentNullException.ThrowIfNull(source); 373/// <exception cref="System.ArgumentNullException"> 384ArgumentNullException.ThrowIfNull(source); 486/// <exception cref="System.ArgumentNullException"> 497ArgumentNullException.ThrowIfNull(source); 498ArgumentNullException.ThrowIfNull(action); 524/// <exception cref="System.ArgumentNullException"> 529ArgumentNullException.ThrowIfNull(source); 530ArgumentNullException.ThrowIfNull(predicate); 542/// <exception cref="System.ArgumentNullException"> 547ArgumentNullException.ThrowIfNull(source); 548ArgumentNullException.ThrowIfNull(predicate); 567/// <exception cref="System.ArgumentNullException"> 573ArgumentNullException.ThrowIfNull(source); 574ArgumentNullException.ThrowIfNull(selector); 588/// <exception cref="System.ArgumentNullException"> 594ArgumentNullException.ThrowIfNull(source); 595ArgumentNullException.ThrowIfNull(selector); 618/// <exception cref="System.ArgumentNullException"> 624ArgumentNullException.ThrowIfNull(first); 625ArgumentNullException.ThrowIfNull(second); 626ArgumentNullException.ThrowIfNull(resultSelector); 678/// <exception cref="System.ArgumentNullException"> 738/// <exception cref="System.ArgumentNullException"> 747ArgumentNullException.ThrowIfNull(outer); 748ArgumentNullException.ThrowIfNull(inner); 749ArgumentNullException.ThrowIfNull(outerKeySelector); 750ArgumentNullException.ThrowIfNull(innerKeySelector); 751ArgumentNullException.ThrowIfNull(resultSelector); 810/// <exception cref="System.ArgumentNullException"> 872/// <exception cref="System.ArgumentNullException"> 881ArgumentNullException.ThrowIfNull(outer); 882ArgumentNullException.ThrowIfNull(inner); 883ArgumentNullException.ThrowIfNull(outerKeySelector); 884ArgumentNullException.ThrowIfNull(innerKeySelector); 885ArgumentNullException.ThrowIfNull(resultSelector); 938/// <exception cref="System.ArgumentNullException"> 944ArgumentNullException.ThrowIfNull(source); 945ArgumentNullException.ThrowIfNull(selector); 961/// <exception cref="System.ArgumentNullException"> 967ArgumentNullException.ThrowIfNull(source); 968ArgumentNullException.ThrowIfNull(selector); 989/// <exception cref="System.ArgumentNullException"> 997ArgumentNullException.ThrowIfNull(source); 998ArgumentNullException.ThrowIfNull(collectionSelector); 999ArgumentNullException.ThrowIfNull(resultSelector); 1025/// <exception cref="System.ArgumentNullException"> 1033ArgumentNullException.ThrowIfNull(source); 1034ArgumentNullException.ThrowIfNull(collectionSelector); 1035ArgumentNullException.ThrowIfNull(resultSelector); 1061/// <exception cref="System.ArgumentNullException"> 1067ArgumentNullException.ThrowIfNull(source); 1068ArgumentNullException.ThrowIfNull(keySelector); 1089/// <exception cref="System.ArgumentNullException"> 1095ArgumentNullException.ThrowIfNull(source); 1096ArgumentNullException.ThrowIfNull(keySelector); 1116/// <exception cref="System.ArgumentNullException"> 1122ArgumentNullException.ThrowIfNull(source); 1123ArgumentNullException.ThrowIfNull(keySelector); 1143/// <exception cref="System.ArgumentNullException"> 1149ArgumentNullException.ThrowIfNull(source); 1150ArgumentNullException.ThrowIfNull(keySelector); 1172/// <exception cref="System.ArgumentNullException"> 1179ArgumentNullException.ThrowIfNull(source); 1180ArgumentNullException.ThrowIfNull(keySelector); 1202/// <exception cref="System.ArgumentNullException"> 1210ArgumentNullException.ThrowIfNull(source); 1211ArgumentNullException.ThrowIfNull(keySelector); 1232/// <exception cref="System.ArgumentNullException"> 1240ArgumentNullException.ThrowIfNull(source); 1241ArgumentNullException.ThrowIfNull(keySelector); 1263/// <exception cref="System.ArgumentNullException"> 1271ArgumentNullException.ThrowIfNull(source); 1272ArgumentNullException.ThrowIfNull(keySelector); 1292/// <exception cref="System.ArgumentNullException"> 1312/// <exception cref="System.ArgumentNullException"> 1318ArgumentNullException.ThrowIfNull(source); 1319ArgumentNullException.ThrowIfNull(keySelector); 1338/// <exception cref="System.ArgumentNullException"> 1364/// <exception cref="System.ArgumentNullException"> 1371ArgumentNullException.ThrowIfNull(source); 1372ArgumentNullException.ThrowIfNull(keySelector); 1373ArgumentNullException.ThrowIfNull(elementSelector); 1403/// <exception cref="System.ArgumentNullException"> 1411ArgumentNullException.ThrowIfNull(resultSelector); 1431/// <exception cref="System.ArgumentNullException"> 1438ArgumentNullException.ThrowIfNull(resultSelector); 1461/// <exception cref="System.ArgumentNullException"> 1468ArgumentNullException.ThrowIfNull(resultSelector); 1492/// <exception cref="System.ArgumentNullException"> 1499ArgumentNullException.ThrowIfNull(resultSelector); 1599/// <exception cref="System.ArgumentNullException"> 1620ArgumentNullException.ThrowIfNull(source); 1621ArgumentNullException.ThrowIfNull(func); 1650/// <exception cref="System.ArgumentNullException"> 1668ArgumentNullException.ThrowIfNull(source); 1669ArgumentNullException.ThrowIfNull(func); 1690/// <exception cref="System.ArgumentNullException"> 1703ArgumentNullException.ThrowIfNull(source); 1704ArgumentNullException.ThrowIfNull(func); 1705ArgumentNullException.ThrowIfNull(resultSelector); 1745/// <exception cref="System.ArgumentNullException"> 1759ArgumentNullException.ThrowIfNull(source); 1760ArgumentNullException.ThrowIfNull(updateAccumulatorFunc); 1761ArgumentNullException.ThrowIfNull(combineAccumulatorsFunc); 1762ArgumentNullException.ThrowIfNull(resultSelector); 1798/// <exception cref="System.ArgumentNullException"> 1815ArgumentNullException.ThrowIfNull(source); 1816ArgumentNullException.ThrowIfNull(seedFactory); 1817ArgumentNullException.ThrowIfNull(updateAccumulatorFunc); 1818ArgumentNullException.ThrowIfNull(combineAccumulatorsFunc); 1819ArgumentNullException.ThrowIfNull(resultSelector); 1837/// <exception cref="System.ArgumentNullException"> 1850ArgumentNullException.ThrowIfNull(source); 1879/// <exception cref="System.ArgumentNullException"> 1892ArgumentNullException.ThrowIfNull(source); 1893ArgumentNullException.ThrowIfNull(predicate); 1908/// <exception cref="System.ArgumentNullException"> 1921ArgumentNullException.ThrowIfNull(source); 1946/// <exception cref="System.ArgumentNullException"> 1959ArgumentNullException.ThrowIfNull(source); 1960ArgumentNullException.ThrowIfNull(predicate); 1975/// <exception cref="System.ArgumentNullException"> 1988ArgumentNullException.ThrowIfNull(source); 1998/// <exception cref="System.ArgumentNullException"> 2011ArgumentNullException.ThrowIfNull(source); 2021/// <exception cref="System.ArgumentNullException"> 2034ArgumentNullException.ThrowIfNull(source); 2044/// <exception cref="System.ArgumentNullException"> 2057ArgumentNullException.ThrowIfNull(source); 2067/// <exception cref="System.ArgumentNullException"> 2078ArgumentNullException.ThrowIfNull(source); 2088/// <exception cref="System.ArgumentNullException"> 2099ArgumentNullException.ThrowIfNull(source); 2109/// <exception cref="System.ArgumentNullException"> 2120ArgumentNullException.ThrowIfNull(source); 2130/// <exception cref="System.ArgumentNullException"> 2141ArgumentNullException.ThrowIfNull(source); 2151/// <exception cref="System.ArgumentNullException"> 2164ArgumentNullException.ThrowIfNull(source); 2174/// <exception cref="System.ArgumentNullException"> 2187ArgumentNullException.ThrowIfNull(source); 2199/// <exception cref="System.ArgumentNullException"> 2223/// <exception cref="System.ArgumentNullException"> 2247/// <exception cref="System.ArgumentNullException"> 2271/// <exception cref="System.ArgumentNullException"> 2295/// <exception cref="System.ArgumentNullException"> 2317/// <exception cref="System.ArgumentNullException"> 2339/// <exception cref="System.ArgumentNullException"> 2361/// <exception cref="System.ArgumentNullException"> 2383/// <exception cref="System.ArgumentNullException"> 2407/// <exception cref="System.ArgumentNullException"> 2442/// <exception cref="System.ArgumentNullException"> 2456ArgumentNullException.ThrowIfNull(source); 2466/// <exception cref="System.ArgumentNullException"> 2477ArgumentNullException.ThrowIfNull(source); 2487/// <exception cref="System.ArgumentNullException"> 2501ArgumentNullException.ThrowIfNull(source); 2511/// <exception cref="System.ArgumentNullException"> 2522ArgumentNullException.ThrowIfNull(source); 2532/// <exception cref="System.ArgumentNullException"> 2546ArgumentNullException.ThrowIfNull(source); 2556/// <exception cref="System.ArgumentNullException"> 2567ArgumentNullException.ThrowIfNull(source); 2577/// <exception cref="System.ArgumentNullException"> 2591ArgumentNullException.ThrowIfNull(source); 2601/// <exception cref="System.ArgumentNullException"> 2612ArgumentNullException.ThrowIfNull(source); 2622/// <exception cref="System.ArgumentNullException"> 2636ArgumentNullException.ThrowIfNull(source); 2646/// <exception cref="System.ArgumentNullException"> 2657ArgumentNullException.ThrowIfNull(source); 2668/// <exception cref="System.ArgumentNullException"> 2682ArgumentNullException.ThrowIfNull(source); 2695/// <exception cref="System.ArgumentNullException"> 2720/// <exception cref="System.ArgumentNullException"> 2742/// <exception cref="System.ArgumentNullException"> 2767/// <exception cref="System.ArgumentNullException"> 2789/// <exception cref="System.ArgumentNullException"> 2814/// <exception cref="System.ArgumentNullException"> 2836/// <exception cref="System.ArgumentNullException"> 2861/// <exception cref="System.ArgumentNullException"> 2883/// <exception cref="System.ArgumentNullException"> 2908/// <exception cref="System.ArgumentNullException"> 2931/// <exception cref="System.ArgumentNullException"> 2957/// <exception cref="System.ArgumentNullException"> 2971ArgumentNullException.ThrowIfNull(source); 2981/// <exception cref="System.ArgumentNullException"> 2992ArgumentNullException.ThrowIfNull(source); 3002/// <exception cref="System.ArgumentNullException"> 3016ArgumentNullException.ThrowIfNull(source); 3026/// <exception cref="System.ArgumentNullException"> 3037ArgumentNullException.ThrowIfNull(source); 3047/// <exception cref="System.ArgumentNullException"> 3061ArgumentNullException.ThrowIfNull(source); 3071/// <exception cref="System.ArgumentNullException"> 3082ArgumentNullException.ThrowIfNull(source); 3092/// <exception cref="System.ArgumentNullException"> 3106ArgumentNullException.ThrowIfNull(source); 3116/// <exception cref="System.ArgumentNullException"> 3127ArgumentNullException.ThrowIfNull(source); 3137/// <exception cref="System.ArgumentNullException"> 3151ArgumentNullException.ThrowIfNull(source); 3161/// <exception cref="System.ArgumentNullException"> 3172ArgumentNullException.ThrowIfNull(source); 3182/// <exception cref="System.ArgumentNullException"> 3196ArgumentNullException.ThrowIfNull(source); 3209/// <exception cref="System.ArgumentNullException"> 3234/// <exception cref="System.ArgumentNullException"> 3256/// <exception cref="System.ArgumentNullException"> 3281/// <exception cref="System.ArgumentNullException"> 3303/// <exception cref="System.ArgumentNullException"> 3328/// <exception cref="System.ArgumentNullException"> 3350/// <exception cref="System.ArgumentNullException"> 3375/// <exception cref="System.ArgumentNullException"> 3397/// <exception cref="System.ArgumentNullException"> 3422/// <exception cref="System.ArgumentNullException"> 3445/// <exception cref="System.ArgumentNullException"> 3471/// <exception cref="System.ArgumentNullException"> 3487ArgumentNullException.ThrowIfNull(source); 3497/// <exception cref="System.ArgumentNullException"> 3510ArgumentNullException.ThrowIfNull(source); 3520/// <exception cref="System.ArgumentNullException"> 3536ArgumentNullException.ThrowIfNull(source); 3546/// <exception cref="System.ArgumentNullException"> 3559ArgumentNullException.ThrowIfNull(source); 3569/// <exception cref="System.ArgumentNullException"> 3583ArgumentNullException.ThrowIfNull(source); 3593/// <exception cref="System.ArgumentNullException"> 3604ArgumentNullException.ThrowIfNull(source); 3614/// <exception cref="System.ArgumentNullException"> 3628ArgumentNullException.ThrowIfNull(source); 3636/// <exception cref="System.ArgumentNullException"> 3649ArgumentNullException.ThrowIfNull(source); 3659/// <exception cref="System.ArgumentNullException"> 3673ArgumentNullException.ThrowIfNull(source); 3683/// <exception cref="System.ArgumentNullException"> 3694ArgumentNullException.ThrowIfNull(source); 3707/// <exception cref="System.ArgumentNullException"> 3734/// <exception cref="System.ArgumentNullException"> 3758/// <exception cref="System.ArgumentNullException"> 3785/// <exception cref="System.ArgumentNullException"> 3809/// <exception cref="System.ArgumentNullException"> 3834/// <exception cref="System.ArgumentNullException"> 3856/// <exception cref="System.ArgumentNullException"> 3881/// <exception cref="System.ArgumentNullException"> 3903/// <exception cref="System.ArgumentNullException"> 3928/// <exception cref="System.ArgumentNullException"> 3955/// <exception cref="System.ArgumentNullException"> 3966ArgumentNullException.ThrowIfNull(source); 3967ArgumentNullException.ThrowIfNull(predicate); 3978/// <exception cref="System.ArgumentNullException"> 3989ArgumentNullException.ThrowIfNull(source); 4007/// <exception cref="System.ArgumentNullException"> 4018ArgumentNullException.ThrowIfNull(source); 4019ArgumentNullException.ThrowIfNull(predicate); 4038/// <exception cref="System.ArgumentNullException"> 4063/// <exception cref="System.ArgumentNullException"> 4074ArgumentNullException.ThrowIfNull(source); 4098/// <exception cref="System.ArgumentNullException"> 4103ArgumentNullException.ThrowIfNull(source); 4130/// <exception cref="System.ArgumentNullException"> 4135ArgumentNullException.ThrowIfNull(source); 4136ArgumentNullException.ThrowIfNull(predicate); 4155/// <exception cref="System.ArgumentNullException"> 4160ArgumentNullException.ThrowIfNull(source); 4161ArgumentNullException.ThrowIfNull(predicate); 4180/// <exception cref="System.ArgumentNullException"> 4185ArgumentNullException.ThrowIfNull(source); 4212/// <exception cref="System.ArgumentNullException"> 4217ArgumentNullException.ThrowIfNull(source); 4218ArgumentNullException.ThrowIfNull(predicate); 4239/// <exception cref="System.ArgumentNullException"> 4244ArgumentNullException.ThrowIfNull(source); 4245ArgumentNullException.ThrowIfNull(predicate); 4265/// <exception cref="System.ArgumentNullException"> 4270ArgumentNullException.ThrowIfNull(first); 4271ArgumentNullException.ThrowIfNull(second); 4312/// <exception cref="System.ArgumentNullException"> 4323ArgumentNullException.ThrowIfNull(first); 4324ArgumentNullException.ThrowIfNull(second); 4362/// <exception cref="System.ArgumentNullException"> 4373ArgumentNullException.ThrowIfNull(first); 4374ArgumentNullException.ThrowIfNull(second); 4468/// <exception cref="System.ArgumentNullException"> 4485/// <exception cref="System.ArgumentNullException"> 4491ArgumentNullException.ThrowIfNull(source); 4507/// <exception cref="System.ArgumentNullException"> 4546/// <exception cref="System.ArgumentNullException"> 4552ArgumentNullException.ThrowIfNull(first); 4553ArgumentNullException.ThrowIfNull(second); 4597/// <exception cref="System.ArgumentNullException"> 4641/// <exception cref="System.ArgumentNullException"> 4647ArgumentNullException.ThrowIfNull(first); 4648ArgumentNullException.ThrowIfNull(second); 4694/// <exception cref="System.ArgumentNullException"> 4737/// <exception cref="System.ArgumentNullException"> 4743ArgumentNullException.ThrowIfNull(first); 4744ArgumentNullException.ThrowIfNull(second); 4788/// <exception cref="System.ArgumentNullException"> 4807/// <exception cref="System.ArgumentNullException"> 4818ArgumentNullException.ThrowIfNull(source); 4839/// <exception cref="System.ArgumentNullException"> 4850ArgumentNullException.ThrowIfNull(source); 4916/// <exception cref="System.ArgumentNullException"> 4945/// <exception cref="System.ArgumentNullException"> 4961ArgumentNullException.ThrowIfNull(source); 4962ArgumentNullException.ThrowIfNull(keySelector); 5007/// <exception cref="System.ArgumentNullException"> 5042/// <exception cref="System.ArgumentNullException"> 5058ArgumentNullException.ThrowIfNull(source); 5059ArgumentNullException.ThrowIfNull(keySelector); 5060ArgumentNullException.ThrowIfNull(elementSelector); 5103/// <exception cref="System.ArgumentNullException"> 5128/// <exception cref="System.ArgumentNullException"> 5140ArgumentNullException.ThrowIfNull(source); 5141ArgumentNullException.ThrowIfNull(keySelector); 5182/// <exception cref="System.ArgumentNullException"> 5214/// <exception cref="System.ArgumentNullException"> 5226ArgumentNullException.ThrowIfNull(source); 5227ArgumentNullException.ThrowIfNull(keySelector); 5228ArgumentNullException.ThrowIfNull(elementSelector); 5267/// <exception cref="System.ArgumentNullException"> 5272ArgumentNullException.ThrowIfNull(source); 5289/// <exception cref="System.ArgumentNullException"> 5294ArgumentNullException.ThrowIfNull(source); 5307/// <exception cref="System.ArgumentNullException"> 5312ArgumentNullException.ThrowIfNull(source); 5383/// <exception cref="System.ArgumentNullException"> 5397ArgumentNullException.ThrowIfNull(source); 5426/// <exception cref="System.ArgumentNullException"> 5440ArgumentNullException.ThrowIfNull(source); 5441ArgumentNullException.ThrowIfNull(predicate); 5468/// <exception cref="System.ArgumentNullException"> 5479ArgumentNullException.ThrowIfNull(source); 5514/// <exception cref="System.ArgumentNullException"> 5525ArgumentNullException.ThrowIfNull(source); 5526ArgumentNullException.ThrowIfNull(predicate); 5559/// <exception cref="System.ArgumentNullException"> 5573ArgumentNullException.ThrowIfNull(source); 5602/// <exception cref="System.ArgumentNullException"> 5616ArgumentNullException.ThrowIfNull(source); 5617ArgumentNullException.ThrowIfNull(predicate); 5646/// <exception cref="System.ArgumentNullException"> 5657ArgumentNullException.ThrowIfNull(source); 5688/// <exception cref="System.ArgumentNullException"> 5699ArgumentNullException.ThrowIfNull(source); 5700ArgumentNullException.ThrowIfNull(predicate); 5733/// <exception cref="System.ArgumentNullException"> 5747ArgumentNullException.ThrowIfNull(source); 5762/// <exception cref="System.ArgumentNullException"> 5776ArgumentNullException.ThrowIfNull(source); 5777ArgumentNullException.ThrowIfNull(predicate); 5792/// <exception cref="System.ArgumentNullException"> 5803ArgumentNullException.ThrowIfNull(source); 5822/// <exception cref="System.ArgumentNullException"> 5833ArgumentNullException.ThrowIfNull(source); 5834ArgumentNullException.ThrowIfNull(predicate); 5853/// <exception cref="System.ArgumentNullException"> 5871/// <exception cref="System.ArgumentNullException"> 5876ArgumentNullException.ThrowIfNull(source); 5894/// <exception cref="System.ArgumentNullException"> 5908ArgumentNullException.ThrowIfNull(source); 5937/// <exception cref="System.ArgumentNullException"> 5948ArgumentNullException.ThrowIfNull(source);
System.Linq.Queryable (357)
System\Linq\EnumerableQuery.cs (4)
65ArgumentNullException.ThrowIfNull(expression); 75ArgumentNullException.ThrowIfNull(expression); 86ArgumentNullException.ThrowIfNull(expression); 93ArgumentNullException.ThrowIfNull(expression);
System\Linq\Queryable.cs (353)
22ArgumentNullException.ThrowIfNull(source); 31ArgumentNullException.ThrowIfNull(source); 50ArgumentNullException.ThrowIfNull(source); 51ArgumentNullException.ThrowIfNull(predicate); 63ArgumentNullException.ThrowIfNull(source); 64ArgumentNullException.ThrowIfNull(predicate); 76ArgumentNullException.ThrowIfNull(source); 88ArgumentNullException.ThrowIfNull(source); 100ArgumentNullException.ThrowIfNull(source); 101ArgumentNullException.ThrowIfNull(selector); 113ArgumentNullException.ThrowIfNull(source); 114ArgumentNullException.ThrowIfNull(selector); 126ArgumentNullException.ThrowIfNull(source); 127ArgumentNullException.ThrowIfNull(selector); 139ArgumentNullException.ThrowIfNull(source); 140ArgumentNullException.ThrowIfNull(selector); 152ArgumentNullException.ThrowIfNull(source); 153ArgumentNullException.ThrowIfNull(collectionSelector); 154ArgumentNullException.ThrowIfNull(resultSelector); 166ArgumentNullException.ThrowIfNull(source); 167ArgumentNullException.ThrowIfNull(collectionSelector); 168ArgumentNullException.ThrowIfNull(resultSelector); 196/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 283ArgumentNullException.ThrowIfNull(outer); 284ArgumentNullException.ThrowIfNull(inner); 285ArgumentNullException.ThrowIfNull(outerKeySelector); 286ArgumentNullException.ThrowIfNull(innerKeySelector); 287ArgumentNullException.ThrowIfNull(resultSelector); 310/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 398ArgumentNullException.ThrowIfNull(outer); 399ArgumentNullException.ThrowIfNull(inner); 400ArgumentNullException.ThrowIfNull(outerKeySelector); 401ArgumentNullException.ThrowIfNull(innerKeySelector); 402ArgumentNullException.ThrowIfNull(resultSelector); 414ArgumentNullException.ThrowIfNull(outer); 415ArgumentNullException.ThrowIfNull(inner); 416ArgumentNullException.ThrowIfNull(outerKeySelector); 417ArgumentNullException.ThrowIfNull(innerKeySelector); 418ArgumentNullException.ThrowIfNull(resultSelector); 430ArgumentNullException.ThrowIfNull(outer); 431ArgumentNullException.ThrowIfNull(inner); 432ArgumentNullException.ThrowIfNull(outerKeySelector); 433ArgumentNullException.ThrowIfNull(innerKeySelector); 434ArgumentNullException.ThrowIfNull(resultSelector); 456/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 544ArgumentNullException.ThrowIfNull(outer); 545ArgumentNullException.ThrowIfNull(inner); 546ArgumentNullException.ThrowIfNull(outerKeySelector); 547ArgumentNullException.ThrowIfNull(innerKeySelector); 548ArgumentNullException.ThrowIfNull(resultSelector); 571/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 659ArgumentNullException.ThrowIfNull(outer); 660ArgumentNullException.ThrowIfNull(inner); 661ArgumentNullException.ThrowIfNull(outerKeySelector); 662ArgumentNullException.ThrowIfNull(innerKeySelector); 663ArgumentNullException.ThrowIfNull(resultSelector); 678/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 699ArgumentNullException.ThrowIfNull(source); 715/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 736ArgumentNullException.ThrowIfNull(source); 748ArgumentNullException.ThrowIfNull(source); 749ArgumentNullException.ThrowIfNull(keySelector); 761ArgumentNullException.ThrowIfNull(source); 762ArgumentNullException.ThrowIfNull(keySelector); 777/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 798ArgumentNullException.ThrowIfNull(source); 814/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 835ArgumentNullException.ThrowIfNull(source); 847ArgumentNullException.ThrowIfNull(source); 848ArgumentNullException.ThrowIfNull(keySelector); 860ArgumentNullException.ThrowIfNull(source); 861ArgumentNullException.ThrowIfNull(keySelector); 883/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 970ArgumentNullException.ThrowIfNull(outer); 971ArgumentNullException.ThrowIfNull(inner); 972ArgumentNullException.ThrowIfNull(outerKeySelector); 973ArgumentNullException.ThrowIfNull(innerKeySelector); 974ArgumentNullException.ThrowIfNull(resultSelector); 997/// <exception cref="ArgumentNullException"><paramref name="outer" /> or <paramref name="inner" /> or <paramref name="outerKeySelector" /> or <paramref name="innerKeySelector" /> or <paramref name="resultSelector" /> is <see langword="null" />.</exception> 1084ArgumentNullException.ThrowIfNull(outer); 1085ArgumentNullException.ThrowIfNull(inner); 1086ArgumentNullException.ThrowIfNull(outerKeySelector); 1087ArgumentNullException.ThrowIfNull(innerKeySelector); 1088ArgumentNullException.ThrowIfNull(resultSelector); 1100ArgumentNullException.ThrowIfNull(source); 1101ArgumentNullException.ThrowIfNull(keySelector); 1113ArgumentNullException.ThrowIfNull(source); 1114ArgumentNullException.ThrowIfNull(keySelector); 1126ArgumentNullException.ThrowIfNull(source); 1127ArgumentNullException.ThrowIfNull(keySelector); 1139ArgumentNullException.ThrowIfNull(source); 1140ArgumentNullException.ThrowIfNull(keySelector); 1152ArgumentNullException.ThrowIfNull(source); 1165/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1170ArgumentNullException.ThrowIfNull(source); 1182ArgumentNullException.ThrowIfNull(source); 1183ArgumentNullException.ThrowIfNull(predicate); 1195ArgumentNullException.ThrowIfNull(source); 1196ArgumentNullException.ThrowIfNull(predicate); 1208ArgumentNullException.ThrowIfNull(source); 1220ArgumentNullException.ThrowIfNull(source); 1221ArgumentNullException.ThrowIfNull(predicate); 1233ArgumentNullException.ThrowIfNull(source); 1234ArgumentNullException.ThrowIfNull(predicate); 1246ArgumentNullException.ThrowIfNull(source); 1247ArgumentNullException.ThrowIfNull(keySelector); 1259ArgumentNullException.ThrowIfNull(source); 1260ArgumentNullException.ThrowIfNull(keySelector); 1261ArgumentNullException.ThrowIfNull(elementSelector); 1273ArgumentNullException.ThrowIfNull(source); 1274ArgumentNullException.ThrowIfNull(keySelector); 1286ArgumentNullException.ThrowIfNull(source); 1287ArgumentNullException.ThrowIfNull(keySelector); 1288ArgumentNullException.ThrowIfNull(elementSelector); 1300ArgumentNullException.ThrowIfNull(source); 1301ArgumentNullException.ThrowIfNull(keySelector); 1302ArgumentNullException.ThrowIfNull(elementSelector); 1303ArgumentNullException.ThrowIfNull(resultSelector); 1315ArgumentNullException.ThrowIfNull(source); 1316ArgumentNullException.ThrowIfNull(keySelector); 1317ArgumentNullException.ThrowIfNull(resultSelector); 1329ArgumentNullException.ThrowIfNull(source); 1330ArgumentNullException.ThrowIfNull(keySelector); 1331ArgumentNullException.ThrowIfNull(resultSelector); 1343ArgumentNullException.ThrowIfNull(source); 1344ArgumentNullException.ThrowIfNull(keySelector); 1345ArgumentNullException.ThrowIfNull(elementSelector); 1346ArgumentNullException.ThrowIfNull(resultSelector); 1358ArgumentNullException.ThrowIfNull(source); 1370ArgumentNullException.ThrowIfNull(source); 1385/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1389ArgumentNullException.ThrowIfNull(source); 1390ArgumentNullException.ThrowIfNull(keySelector); 1406/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1410ArgumentNullException.ThrowIfNull(source); 1411ArgumentNullException.ThrowIfNull(keySelector); 1425/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 1434ArgumentNullException.ThrowIfNull(source); 1446ArgumentNullException.ThrowIfNull(source1); 1447ArgumentNullException.ThrowIfNull(source2); 1459ArgumentNullException.ThrowIfNull(source1); 1460ArgumentNullException.ThrowIfNull(source2); 1472ArgumentNullException.ThrowIfNull(source1); 1473ArgumentNullException.ThrowIfNull(source2); 1474ArgumentNullException.ThrowIfNull(resultSelector); 1496ArgumentNullException.ThrowIfNull(source1); 1497ArgumentNullException.ThrowIfNull(source2); 1498ArgumentNullException.ThrowIfNull(source3); 1510ArgumentNullException.ThrowIfNull(source1); 1511ArgumentNullException.ThrowIfNull(source2); 1523ArgumentNullException.ThrowIfNull(source1); 1524ArgumentNullException.ThrowIfNull(source2); 1542/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 1546ArgumentNullException.ThrowIfNull(source1); 1547ArgumentNullException.ThrowIfNull(source2); 1548ArgumentNullException.ThrowIfNull(keySelector); 1565/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 1569ArgumentNullException.ThrowIfNull(source1); 1570ArgumentNullException.ThrowIfNull(source2); 1571ArgumentNullException.ThrowIfNull(keySelector); 1587/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1591ArgumentNullException.ThrowIfNull(source); 1603ArgumentNullException.ThrowIfNull(source1); 1604ArgumentNullException.ThrowIfNull(source2); 1616ArgumentNullException.ThrowIfNull(source1); 1617ArgumentNullException.ThrowIfNull(source2); 1635/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 1639ArgumentNullException.ThrowIfNull(source1); 1640ArgumentNullException.ThrowIfNull(source2); 1641ArgumentNullException.ThrowIfNull(keySelector); 1660/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 1664ArgumentNullException.ThrowIfNull(source1); 1665ArgumentNullException.ThrowIfNull(source2); 1666ArgumentNullException.ThrowIfNull(keySelector); 1681ArgumentNullException.ThrowIfNull(source1); 1682ArgumentNullException.ThrowIfNull(source2); 1694ArgumentNullException.ThrowIfNull(source1); 1695ArgumentNullException.ThrowIfNull(source2); 1718ArgumentNullException.ThrowIfNull(source1); 1719ArgumentNullException.ThrowIfNull(source2); 1720ArgumentNullException.ThrowIfNull(keySelector); 1744ArgumentNullException.ThrowIfNull(source1); 1745ArgumentNullException.ThrowIfNull(source2); 1746ArgumentNullException.ThrowIfNull(keySelector); 1761ArgumentNullException.ThrowIfNull(source); 1773ArgumentNullException.ThrowIfNull(source); 1774ArgumentNullException.ThrowIfNull(predicate); 1786ArgumentNullException.ThrowIfNull(source); 1800/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1804ArgumentNullException.ThrowIfNull(source); 1816ArgumentNullException.ThrowIfNull(source); 1817ArgumentNullException.ThrowIfNull(predicate); 1832/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception> 1836ArgumentNullException.ThrowIfNull(source); 1837ArgumentNullException.ThrowIfNull(predicate); 1849ArgumentNullException.ThrowIfNull(source); 1861ArgumentNullException.ThrowIfNull(source); 1862ArgumentNullException.ThrowIfNull(predicate); 1874ArgumentNullException.ThrowIfNull(source); 1888/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1892ArgumentNullException.ThrowIfNull(source); 1904ArgumentNullException.ThrowIfNull(source); 1905ArgumentNullException.ThrowIfNull(predicate); 1920/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception> 1924ArgumentNullException.ThrowIfNull(source); 1925ArgumentNullException.ThrowIfNull(predicate); 1938ArgumentNullException.ThrowIfNull(source); 1950ArgumentNullException.ThrowIfNull(source); 1951ArgumentNullException.ThrowIfNull(predicate); 1963ArgumentNullException.ThrowIfNull(source); 1977/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1982ArgumentNullException.ThrowIfNull(source); 1994ArgumentNullException.ThrowIfNull(source); 1995ArgumentNullException.ThrowIfNull(predicate); 2010/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception> 2015ArgumentNullException.ThrowIfNull(source); 2016ArgumentNullException.ThrowIfNull(predicate); 2028ArgumentNullException.ThrowIfNull(source); 2044/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2050ArgumentNullException.ThrowIfNull(source); 2065ArgumentNullException.ThrowIfNull(source); 2078/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2083ArgumentNullException.ThrowIfNull(source); 2095ArgumentNullException.ThrowIfNull(source); 2107ArgumentNullException.ThrowIfNull(source); 2119ArgumentNullException.ThrowIfNull(source); 2131ArgumentNullException.ThrowIfNull(source); 2143ArgumentNullException.ThrowIfNull(source); 2155ArgumentNullException.ThrowIfNull(source1); 2156ArgumentNullException.ThrowIfNull(source2); 2168ArgumentNullException.ThrowIfNull(source1); 2169ArgumentNullException.ThrowIfNull(source2); 2183ArgumentNullException.ThrowIfNull(source); 2195ArgumentNullException.ThrowIfNull(source); 2207ArgumentNullException.ThrowIfNull(source); 2208ArgumentNullException.ThrowIfNull(predicate); 2220ArgumentNullException.ThrowIfNull(source); 2221ArgumentNullException.ThrowIfNull(predicate); 2233ArgumentNullException.ThrowIfNull(source); 2245ArgumentNullException.ThrowIfNull(source); 2246ArgumentNullException.ThrowIfNull(predicate); 2262/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2266ArgumentNullException.ThrowIfNull(source); 2267ArgumentNullException.ThrowIfNull(keySelector); 2279ArgumentNullException.ThrowIfNull(source); 2291ArgumentNullException.ThrowIfNull(source); 2292ArgumentNullException.ThrowIfNull(predicate); 2304ArgumentNullException.ThrowIfNull(source); 2318/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2323ArgumentNullException.ThrowIfNull(source); 2336ArgumentNullException.ThrowIfNull(source); 2337ArgumentNullException.ThrowIfNull(selector); 2352/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2357ArgumentNullException.ThrowIfNull(source); 2358ArgumentNullException.ThrowIfNull(keySelector); 2375/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2383ArgumentNullException.ThrowIfNull(source); 2384ArgumentNullException.ThrowIfNull(keySelector); 2402/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2407ArgumentNullException.ThrowIfNull(source); 2408ArgumentNullException.ThrowIfNull(keySelector); 2422ArgumentNullException.ThrowIfNull(source); 2436/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2440ArgumentNullException.ThrowIfNull(source); 2453ArgumentNullException.ThrowIfNull(source); 2454ArgumentNullException.ThrowIfNull(selector); 2469/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2474ArgumentNullException.ThrowIfNull(source); 2475ArgumentNullException.ThrowIfNull(keySelector); 2492/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2500ArgumentNullException.ThrowIfNull(source); 2501ArgumentNullException.ThrowIfNull(keySelector); 2519/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 2524ArgumentNullException.ThrowIfNull(source); 2525ArgumentNullException.ThrowIfNull(keySelector); 2539ArgumentNullException.ThrowIfNull(source); 2551ArgumentNullException.ThrowIfNull(source); 2563ArgumentNullException.ThrowIfNull(source); 2575ArgumentNullException.ThrowIfNull(source); 2587ArgumentNullException.ThrowIfNull(source); 2599ArgumentNullException.ThrowIfNull(source); 2611ArgumentNullException.ThrowIfNull(source); 2623ArgumentNullException.ThrowIfNull(source); 2635ArgumentNullException.ThrowIfNull(source); 2647ArgumentNullException.ThrowIfNull(source); 2659ArgumentNullException.ThrowIfNull(source); 2660ArgumentNullException.ThrowIfNull(selector); 2672ArgumentNullException.ThrowIfNull(source); 2673ArgumentNullException.ThrowIfNull(selector); 2685ArgumentNullException.ThrowIfNull(source); 2686ArgumentNullException.ThrowIfNull(selector); 2698ArgumentNullException.ThrowIfNull(source); 2699ArgumentNullException.ThrowIfNull(selector); 2711ArgumentNullException.ThrowIfNull(source); 2712ArgumentNullException.ThrowIfNull(selector); 2724ArgumentNullException.ThrowIfNull(source); 2725ArgumentNullException.ThrowIfNull(selector); 2737ArgumentNullException.ThrowIfNull(source); 2738ArgumentNullException.ThrowIfNull(selector); 2750ArgumentNullException.ThrowIfNull(source); 2751ArgumentNullException.ThrowIfNull(selector); 2763ArgumentNullException.ThrowIfNull(source); 2764ArgumentNullException.ThrowIfNull(selector); 2776ArgumentNullException.ThrowIfNull(source); 2777ArgumentNullException.ThrowIfNull(selector); 2789ArgumentNullException.ThrowIfNull(source); 2801ArgumentNullException.ThrowIfNull(source); 2813ArgumentNullException.ThrowIfNull(source); 2825ArgumentNullException.ThrowIfNull(source); 2837ArgumentNullException.ThrowIfNull(source); 2849ArgumentNullException.ThrowIfNull(source); 2861ArgumentNullException.ThrowIfNull(source); 2873ArgumentNullException.ThrowIfNull(source); 2885ArgumentNullException.ThrowIfNull(source); 2897ArgumentNullException.ThrowIfNull(source); 2909ArgumentNullException.ThrowIfNull(source); 2910ArgumentNullException.ThrowIfNull(selector); 2922ArgumentNullException.ThrowIfNull(source); 2923ArgumentNullException.ThrowIfNull(selector); 2935ArgumentNullException.ThrowIfNull(source); 2936ArgumentNullException.ThrowIfNull(selector); 2948ArgumentNullException.ThrowIfNull(source); 2949ArgumentNullException.ThrowIfNull(selector); 2961ArgumentNullException.ThrowIfNull(source); 2962ArgumentNullException.ThrowIfNull(selector); 2974ArgumentNullException.ThrowIfNull(source); 2975ArgumentNullException.ThrowIfNull(selector); 2987ArgumentNullException.ThrowIfNull(source); 2988ArgumentNullException.ThrowIfNull(selector); 3000ArgumentNullException.ThrowIfNull(source); 3001ArgumentNullException.ThrowIfNull(selector); 3013ArgumentNullException.ThrowIfNull(source); 3014ArgumentNullException.ThrowIfNull(selector); 3026ArgumentNullException.ThrowIfNull(source); 3027ArgumentNullException.ThrowIfNull(selector); 3039ArgumentNullException.ThrowIfNull(source); 3040ArgumentNullException.ThrowIfNull(func); 3052ArgumentNullException.ThrowIfNull(source); 3053ArgumentNullException.ThrowIfNull(func); 3065ArgumentNullException.ThrowIfNull(source); 3066ArgumentNullException.ThrowIfNull(func); 3067ArgumentNullException.ThrowIfNull(selector); 3095ArgumentNullException.ThrowIfNull(source); 3096ArgumentNullException.ThrowIfNull(keySelector); 3097ArgumentNullException.ThrowIfNull(func); 3125ArgumentNullException.ThrowIfNull(source); 3126ArgumentNullException.ThrowIfNull(keySelector); 3127ArgumentNullException.ThrowIfNull(seedSelector); 3128ArgumentNullException.ThrowIfNull(func); 3140ArgumentNullException.ThrowIfNull(source); 3153ArgumentNullException.ThrowIfNull(source); 3165ArgumentNullException.ThrowIfNull(source); 3177ArgumentNullException.ThrowIfNull(source);
System.Memory (17)
System\Text\EncodingExtensions.cs (16)
36ArgumentNullException.ThrowIfNull(encoding); 37ArgumentNullException.ThrowIfNull(writer); 72ArgumentNullException.ThrowIfNull(encoding); 73ArgumentNullException.ThrowIfNull(writer); 102ArgumentNullException.ThrowIfNull(encoding); 144ArgumentNullException.ThrowIfNull(encoding); 227ArgumentNullException.ThrowIfNull(encoding); 228ArgumentNullException.ThrowIfNull(writer); 263ArgumentNullException.ThrowIfNull(encoding); 264ArgumentNullException.ThrowIfNull(writer); 293ArgumentNullException.ThrowIfNull(encoding); 335ArgumentNullException.ThrowIfNull(encoding); 416ArgumentNullException.ThrowIfNull(encoder); 417ArgumentNullException.ThrowIfNull(writer); 509ArgumentNullException.ThrowIfNull(decoder); 510ArgumentNullException.ThrowIfNull(writer);
System\ThrowHelper.cs (1)
30private static ArgumentNullException CreateArgumentNullException(ExceptionArgument argument) { return new ArgumentNullException(argument.ToString()); }
System.Memory.Data (5)
System\BinaryData.cs (5)
142ArgumentNullException.ThrowIfNull(data); 238ArgumentNullException.ThrowIfNull(stream); 266ArgumentNullException.ThrowIfNull(stream); 326ArgumentNullException.ThrowIfNull(path); 352ArgumentNullException.ThrowIfNull(path);
System.Net.Http (45)
System\Net\Http\ByteArrayContent.cs (2)
19ArgumentNullException.ThrowIfNull(content); 27ArgumentNullException.ThrowIfNull(content);
System\Net\Http\DelegatingHandler.cs (3)
28ArgumentNullException.ThrowIfNull(value); 47ArgumentNullException.ThrowIfNull(request); 55ArgumentNullException.ThrowIfNull(request);
System\Net\Http\FormUrlEncodedContent.cs (1)
28ArgumentNullException.ThrowIfNull(nameValueCollection);
System\Net\Http\Headers\HttpHeaders.cs (2)
110ArgumentNullException.ThrowIfNull(values); 200ArgumentNullException.ThrowIfNull(values);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (2)
83ArgumentNullException.ThrowIfNull(array); 183ArgumentNullException.ThrowIfNull(item);
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
150/// <exception cref="ArgumentNullException"><paramref name="input"/> is a <see langword="null"/> reference.</exception>
System\Net\Http\Headers\ObjectCollection.cs (2)
14ArgumentNullException.ThrowIfNull(item); 198ArgumentNullException.ThrowIfNull(collection);
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
25ArgumentNullException.ThrowIfNull(product);
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
26ArgumentNullException.ThrowIfNull(entityTag);
System\Net\Http\HttpClient.cs (3)
44ArgumentNullException.ThrowIfNull(value); 58ArgumentNullException.ThrowIfNull(value); 554ArgumentNullException.ThrowIfNull(request);
System\Net\Http\HttpClientHandler.cs (3)
134ArgumentNullException.ThrowIfNull(value); 362ArgumentNullException.ThrowIfNull(request); 369ArgumentNullException.ThrowIfNull(request);
System\Net\Http\HttpContent.cs (2)
313ArgumentNullException.ThrowIfNull(stream); 343ArgumentNullException.ThrowIfNull(stream);
System\Net\Http\HttpMessageInvoker.cs (3)
23ArgumentNullException.ThrowIfNull(handler); 34ArgumentNullException.ThrowIfNull(request); 66ArgumentNullException.ThrowIfNull(request);
System\Net\Http\HttpRequestMessage.cs (3)
41ArgumentNullException.ThrowIfNull(value); 91ArgumentNullException.ThrowIfNull(value); 127ArgumentNullException.ThrowIfNull(method);
System\Net\Http\HttpResponseMessage.cs (1)
31ArgumentNullException.ThrowIfNull(value);
System\Net\Http\MessageProcessingHandler.cs (2)
33ArgumentNullException.ThrowIfNull(request); 45ArgumentNullException.ThrowIfNull(request);
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (2)
73ArgumentNullException.ThrowIfNull(request); 74ArgumentNullException.ThrowIfNull(callback);
System\Net\Http\MultipartContent.cs (1)
98ArgumentNullException.ThrowIfNull(content);
System\Net\Http\MultipartFormDataContent.cs (3)
28ArgumentNullException.ThrowIfNull(content); 37ArgumentNullException.ThrowIfNull(content); 45ArgumentNullException.ThrowIfNull(content);
System\Net\Http\SocketsHttpHandler\HttpConnectionResponseContent.cs (2)
39ArgumentNullException.ThrowIfNull(stream); 53ArgumentNullException.ThrowIfNull(stream);
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (2)
573ArgumentNullException.ThrowIfNull(request); 603ArgumentNullException.ThrowIfNull(request);
System\Net\Http\StreamContent.cs (2)
22ArgumentNullException.ThrowIfNull(content); 30ArgumentNullException.ThrowIfNull(content);
System\Net\Http\StringContent.cs (1)
92ArgumentNullException.ThrowIfNull(content);
System.Net.Http.Json (50)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
41ArgumentNullException.ThrowIfNull(client);
System\Net\Http\Json\HttpClientJsonExtensions.Delete.cs (12)
30/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 45/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 60/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 75/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 90/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 103/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 116/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 129/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 141/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 155/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 169/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 183/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception>
System\Net\Http\Json\HttpClientJsonExtensions.Get.AsyncEnumerable.cs (7)
28/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 48/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 68/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 86/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 103/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 121/// <exception cref="ArgumentNullException">The <paramref name="client"/> is <see langword="null"/>.</exception> 149ArgumentNullException.ThrowIfNull(client);
System\Net\Http\Json\HttpClientJsonExtensions.Patch.cs (10)
24/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 29ArgumentNullException.ThrowIfNull(client); 45/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 50ArgumentNullException.ThrowIfNull(client); 65/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 80/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 96/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 99ArgumentNullException.ThrowIfNull(client); 115/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 118ArgumentNullException.ThrowIfNull(client);
System\Net\Http\Json\HttpClientJsonExtensions.Post.cs (4)
18ArgumentNullException.ThrowIfNull(client); 28ArgumentNullException.ThrowIfNull(client); 46ArgumentNullException.ThrowIfNull(client); 54ArgumentNullException.ThrowIfNull(client);
System\Net\Http\Json\HttpClientJsonExtensions.Put.cs (4)
18ArgumentNullException.ThrowIfNull(client); 28ArgumentNullException.ThrowIfNull(client); 46ArgumentNullException.ThrowIfNull(client); 54ArgumentNullException.ThrowIfNull(client);
System\Net\Http\Json\HttpContentJsonExtensions.AsyncEnumerable.cs (5)
25/// <exception cref="ArgumentNullException"> 45/// <exception cref="ArgumentNullException"> 55ArgumentNullException.ThrowIfNull(content); 69/// <exception cref="ArgumentNullException"> 77ArgumentNullException.ThrowIfNull(content);
System\Net\Http\Json\HttpContentJsonExtensions.cs (4)
32ArgumentNullException.ThrowIfNull(content); 63ArgumentNullException.ThrowIfNull(content); 104ArgumentNullException.ThrowIfNull(content); 111ArgumentNullException.ThrowIfNull(content);
System\Net\Http\Json\JsonContent.cs (3)
68ArgumentNullException.ThrowIfNull(inputType); 84ArgumentNullException.ThrowIfNull(jsonTypeInfo); 98ArgumentNullException.ThrowIfNull(jsonTypeInfo);
System.Net.HttpListener (17)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
115ArgumentNullException.ThrowIfNull(buffer);
System\Net\HttpListener.cs (4)
64ArgumentNullException.ThrowIfNull(value); 86ArgumentNullException.ThrowIfNull(value); 109ArgumentNullException.ThrowIfNull(uriPrefix); 223ArgumentNullException.ThrowIfNull(uriPrefix);
System\Net\HttpListenerPrefixCollection.cs (2)
41ArgumentNullException.ThrowIfNull(array); 57ArgumentNullException.ThrowIfNull(array);
System\Net\HttpListenerResponse.cs (3)
156ArgumentNullException.ThrowIfNull(value); 187ArgumentNullException.ThrowIfNull(cookie); 252ArgumentNullException.ThrowIfNull(cookie);
System\Net\HttpResponseStream.cs (1)
70ArgumentNullException.ThrowIfNull(asyncResult);
System\Net\Managed\ChunkedInputStream.cs (1)
154ArgumentNullException.ThrowIfNull(asyncResult);
System\Net\Managed\HttpListener.Managed.cs (1)
305ArgumentNullException.ThrowIfNull(asyncResult);
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
358ArgumentNullException.ThrowIfNull(asyncResult);
System\Net\Managed\HttpListenerResponse.Managed.cs (2)
64ArgumentNullException.ThrowIfNull(value); 116ArgumentNullException.ThrowIfNull(responseEntity);
System\Net\Managed\HttpRequestStream.Managed.cs (1)
166ArgumentNullException.ThrowIfNull(asyncResult);
System.Net.Mail (35)
System\Net\DelegatedStream.cs (1)
17ArgumentNullException.ThrowIfNull(stream);
System\Net\Mail\AlternateViewCollection.cs (2)
48ArgumentNullException.ThrowIfNull(item); 55ArgumentNullException.ThrowIfNull(item);
System\Net\Mail\Attachment.cs (2)
87ArgumentNullException.ThrowIfNull(content); 123ArgumentNullException.ThrowIfNull(content);
System\Net\Mail\AttachmentCollection.cs (2)
48ArgumentNullException.ThrowIfNull(item); 55ArgumentNullException.ThrowIfNull(item);
System\Net\Mail\LinkedResourceCollection.cs (2)
47ArgumentNullException.ThrowIfNull(item); 54ArgumentNullException.ThrowIfNull(item);
System\Net\Mail\MailAddressCollection.cs (2)
28ArgumentNullException.ThrowIfNull(item); 35ArgumentNullException.ThrowIfNull(item);
System\Net\Mail\MailMessage.cs (3)
63ArgumentNullException.ThrowIfNull(from); 64ArgumentNullException.ThrowIfNull(to); 78ArgumentNullException.ThrowIfNull(value);
System\Net\Mail\MailPriority.cs (2)
90ArgumentNullException.ThrowIfNull(value); 238ArgumentNullException.ThrowIfNull(value);
System\Net\Mail\MailWriter.cs (1)
27ArgumentNullException.ThrowIfNull(headers);
System\Net\Mail\SmtpAuthenticationManager.cs (1)
21ArgumentNullException.ThrowIfNull(module);
System\Net\Mail\SmtpClient.cs (1)
448ArgumentNullException.ThrowIfNull(message);
System\Net\Mail\SmtpFailedRecipientsException.cs (2)
43ArgumentNullException.ThrowIfNull(innerExceptions); 53ArgumentNullException.ThrowIfNull(innerExceptions);
System\Net\Mail\SmtpTransport.cs (3)
33ArgumentNullException.ThrowIfNull(authenticationModules); 115ArgumentNullException.ThrowIfNull(sender); 116ArgumentNullException.ThrowIfNull(recipients);
System\Net\Mime\BaseWriter.cs (3)
29ArgumentNullException.ThrowIfNull(stream); 44ArgumentNullException.ThrowIfNull(name); 45ArgumentNullException.ThrowIfNull(value);
System\Net\Mime\ContentDisposition.cs (1)
59ArgumentNullException.ThrowIfNull(disposition);
System\Net\Mime\MimeBasePart.cs (2)
114ArgumentNullException.ThrowIfNull(value); 172ArgumentNullException.ThrowIfNull(value);
System\Net\Mime\MimePart.cs (3)
106ArgumentNullException.ThrowIfNull(stream); 121ArgumentNullException.ThrowIfNull(stream); 136ArgumentNullException.ThrowIfNull(stream);
System\Net\Mime\MimeWriter.cs (2)
23ArgumentNullException.ThrowIfNull(boundary); 30ArgumentNullException.ThrowIfNull(headers);
System.Net.NameResolution (12)
System\Net\Dns.cs (12)
44ArgumentNullException.ThrowIfNull(address); 71ArgumentNullException.ThrowIfNull(hostNameOrAddress); 156ArgumentNullException.ThrowIfNull(address); 183ArgumentNullException.ThrowIfNull(asyncResult); 201ArgumentNullException.ThrowIfNull(hostNameOrAddress); 259ArgumentNullException.ThrowIfNull(asyncResult); 267ArgumentNullException.ThrowIfNull(hostName); 286ArgumentNullException.ThrowIfNull(asyncResult); 296ArgumentNullException.ThrowIfNull(address); 309ArgumentNullException.ThrowIfNull(address); 320ArgumentNullException.ThrowIfNull(hostName); 553ArgumentNullException.ThrowIfNull(hostName);
System.Net.NetworkInformation (1)
src\libraries\Common\src\System\IO\StringParser.cs (1)
35ArgumentNullException.ThrowIfNull(buffer);
System.Net.Ping (18)
System\Net\NetworkInformation\Ping.cs (18)
48ArgumentNullException.ThrowIfNull(buffer); 62ArgumentNullException.ThrowIfNull(address); 183/// <exception cref="ArgumentNullException"><paramref name="hostNameOrAddress"/> is <see langword="null"/> or is an empty string ("").</exception> 207/// <exception cref="ArgumentNullException"><paramref name="hostNameOrAddress"/> is <see langword="null"/> or is an empty string ("").</exception> 228/// <exception cref="ArgumentNullException"><paramref name="address"/> is <see langword="null"/>.</exception> 251/// <exception cref="ArgumentNullException"><paramref name="address"/> is <see langword="null"/>.</exception> 280/// <exception cref="ArgumentNullException"><paramref name="hostNameOrAddress"/> is <see langword="null"/> or is an empty string ("").</exception> 281/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 310/// <exception cref="ArgumentNullException"><paramref name="address"/> is <see langword="null"/>.</exception> 311/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 344/// <exception cref="ArgumentNullException"><paramref name="hostNameOrAddress"/> is <see langword="null"/> or is an empty string ("").</exception> 345/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 389/// <exception cref="ArgumentNullException"><paramref name="address"/> is <see langword="null"/>.</exception> 390/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 440/// <exception cref="ArgumentNullException"><paramref name="address"/> is <see langword="null"/>.</exception> 441/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 472/// <exception cref="ArgumentNullException"><paramref name="hostNameOrAddress"/> is <see langword="null"/> or is an empty string ("").</exception> 473/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception>
System.Net.Primitives (30)
System\Net\CookieCollection.cs (2)
69ArgumentNullException.ThrowIfNull(cookie); 84ArgumentNullException.ThrowIfNull(cookies);
System\Net\CookieContainer.cs (10)
183ArgumentNullException.ThrowIfNull(cookie); 537ArgumentNullException.ThrowIfNull(cookies); 547ArgumentNullException.ThrowIfNull(uri); 548ArgumentNullException.ThrowIfNull(cookie); 558ArgumentNullException.ThrowIfNull(uri); 559ArgumentNullException.ThrowIfNull(cookies); 641ArgumentNullException.ThrowIfNull(uri); 827ArgumentNullException.ThrowIfNull(uri); 863ArgumentNullException.ThrowIfNull(uri); 864ArgumentNullException.ThrowIfNull(cookieHeader);
System\Net\CredentialCache.cs (6)
26ArgumentNullException.ThrowIfNull(uriPrefix); 27ArgumentNullException.ThrowIfNull(authType); 51ArgumentNullException.ThrowIfNull(authenticationType); 129ArgumentNullException.ThrowIfNull(uriPrefix); 130ArgumentNullException.ThrowIfNull(authType); 148ArgumentNullException.ThrowIfNull(authenticationType);
System\Net\IPAddress.cs (2)
288ArgumentNullException.ThrowIfNull(ipString); 569ArgumentNullException.ThrowIfNull(address);
System\Net\IPEndPoint.cs (4)
49ArgumentNullException.ThrowIfNull(address); 68ArgumentNullException.ThrowIfNull(value); 132ArgumentNullException.ThrowIfNull(s); 156ArgumentNullException.ThrowIfNull(socketAddress);
System\Net\IPNetwork.cs (6)
43/// <exception cref="ArgumentNullException">The specified <paramref name="baseAddress"/> is <see langword="null"/>.</exception> 48ArgumentNullException.ThrowIfNull(baseAddress); 82/// <exception cref="ArgumentNullException">The specified <paramref name="address"/> is <see langword="null"/>.</exception> 85ArgumentNullException.ThrowIfNull(address); 133/// <exception cref="ArgumentNullException">The specified string is <see langword="null"/>.</exception> 137ArgumentNullException.ThrowIfNull(s);
System.Net.Requests (19)
System\Net\AuthenticationManager.cs (3)
26ArgumentNullException.ThrowIfNull(authenticationModule); 31ArgumentNullException.ThrowIfNull(authenticationModule); 36ArgumentNullException.ThrowIfNull(authenticationScheme);
System\Net\FtpWebRequest.cs (4)
326ArgumentNullException.ThrowIfNull(value); 682ArgumentNullException.ThrowIfNull(asyncResult); 803ArgumentNullException.ThrowIfNull(asyncResult); 1537ArgumentNullException.ThrowIfNull(value);
System\Net\HttpWebRequest.cs (4)
378ArgumentNullException.ThrowIfNull(value); 804ArgumentNullException.ThrowIfNull(value); 1520ArgumentNullException.ThrowIfNull(rangeSpecifier); 1547ArgumentNullException.ThrowIfNull(rangeSpecifier);
System\Net\ServicePoint\ServicePointManager.cs (1)
109ArgumentNullException.ThrowIfNull(address);
System\Net\WebRequest.cs (7)
154ArgumentNullException.ThrowIfNull(requestUriString); 172ArgumentNullException.ThrowIfNull(requestUri); 191ArgumentNullException.ThrowIfNull(requestUri); 199ArgumentNullException.ThrowIfNull(requestUriString); 207ArgumentNullException.ThrowIfNull(requestUri); 235ArgumentNullException.ThrowIfNull(prefix); 236ArgumentNullException.ThrowIfNull(creator);
System.Net.Security (11)
System\Net\Security\CipherSuitesPolicy.cs (1)
21ArgumentNullException.ThrowIfNull(allowedCipherSuites);
System\Net\Security\NegotiateAuthentication.cs (2)
36ArgumentNullException.ThrowIfNull(clientOptions); 52ArgumentNullException.ThrowIfNull(serverOptions);
System\Net\Security\NegotiateStream.cs (2)
640ArgumentNullException.ThrowIfNull(credential); 641ArgumentNullException.ThrowIfNull(servicePrincipalName);
System\Net\Security\SslStream.cs (4)
334ArgumentNullException.ThrowIfNull(sslClientAuthenticationOptions); 368ArgumentNullException.ThrowIfNull(sslServerAuthenticationOptions); 396ArgumentNullException.ThrowIfNull(sslClientAuthenticationOptions); 435ArgumentNullException.ThrowIfNull(sslServerAuthenticationOptions);
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (1)
57ArgumentNullException.ThrowIfNull(customChannelBinding);
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
17ArgumentNullException.ThrowIfNull(items);
System.Net.ServerSentEvents (2)
System\Net\ServerSentEvents\SseParser.cs (2)
23/// <exception cref="ArgumentNullException"><paramref name="sseStream"/> is null.</exception> 36/// <exception cref="ArgumentNullException"><paramref name="sseStream"/> or <paramref name="itemParser"/> is null.</exception>
System.Net.Sockets (87)
src\libraries\Common\src\System\Net\RangeValidationHelpers.cs (1)
19ArgumentNullException.ThrowIfNull(segment.Array, nameof(segment));
System\Net\Sockets\MulticastOption.cs (8)
17ArgumentNullException.ThrowIfNull(group); 18ArgumentNullException.ThrowIfNull(mcint); 26ArgumentNullException.ThrowIfNull(group); 38ArgumentNullException.ThrowIfNull(group); 51ArgumentNullException.ThrowIfNull(value); 91ArgumentNullException.ThrowIfNull(group); 104ArgumentNullException.ThrowIfNull(group); 116ArgumentNullException.ThrowIfNull(value);
System\Net\Sockets\NetworkStream.cs (3)
47ArgumentNullException.ThrowIfNull(socket); 473ArgumentNullException.ThrowIfNull(asyncResult); 536ArgumentNullException.ThrowIfNull(asyncResult);
System\Net\Sockets\SendPacketsElement.cs (3)
30ArgumentNullException.ThrowIfNull(filepath); 50ArgumentNullException.ThrowIfNull(fileStream); 74ArgumentNullException.ThrowIfNull(buffer);
System\Net\Sockets\Socket.cs (40)
105/// <exception cref="ArgumentNullException"><paramref name="handle"/> is null.</exception> 239ArgumentNullException.ThrowIfNull(handle); 793ArgumentNullException.ThrowIfNull(localEP); 835ArgumentNullException.ThrowIfNull(remoteEP); 879ArgumentNullException.ThrowIfNull(address); 904ArgumentNullException.ThrowIfNull(host); 935ArgumentNullException.ThrowIfNull(addresses); 1142ArgumentNullException.ThrowIfNull(buffers); 1348ArgumentNullException.ThrowIfNull(remoteEP); 1406/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1423/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1431ArgumentNullException.ThrowIfNull(remoteEP); 1466/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1474ArgumentNullException.ThrowIfNull(socketAddress); 1629ArgumentNullException.ThrowIfNull(buffers); 1735/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception> 1747ArgumentNullException.ThrowIfNull(remoteEP); 1912/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1927/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 2010/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 2018ArgumentNullException.ThrowIfNull(receivedAddress); 2114ArgumentNullException.ThrowIfNull(optionValue); 2384/// <exception cref="ArgumentNullException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter is <see langword="null"/> or empty.</exception> 2426/// <exception cref="ArgumentNullException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter is <see langword="null"/> or empty.</exception> 2578ArgumentNullException.ThrowIfNull(remoteEP); 2688ArgumentNullException.ThrowIfNull(endPoint); 2728ArgumentNullException.ThrowIfNull(endPoint); 2837ArgumentNullException.ThrowIfNull(e); 2886ArgumentNullException.ThrowIfNull(e); 2891ArgumentNullException.ThrowIfNull(e.RemoteEndPoint, "remoteEP"); 2982ArgumentNullException.ThrowIfNull(e); 3026ArgumentNullException.ThrowIfNull(e); 3038ArgumentNullException.ThrowIfNull(e); 3063ArgumentNullException.ThrowIfNull(e); 3088ArgumentNullException.ThrowIfNull(e); 3145ArgumentNullException.ThrowIfNull(e); 3192ArgumentNullException.ThrowIfNull(e); 3217ArgumentNullException.ThrowIfNull(e); 3250ArgumentNullException.ThrowIfNull(e); 3951ArgumentNullException.ThrowIfNull(remoteEndPoint, remoteEndPointArgumentName);
System\Net\Sockets\Socket.Tasks.cs (8)
165ArgumentNullException.ThrowIfNull(addresses); 240ArgumentNullException.ThrowIfNull(host); 437ArgumentNullException.ThrowIfNull(receivedAddress); 666ArgumentNullException.ThrowIfNull(remoteEP); 696ArgumentNullException.ThrowIfNull(socketAddress); 815ArgumentNullException.ThrowIfNull(buffer); 823ArgumentNullException.ThrowIfNull(buffer.Array, nameof(buffer.Array)); 837ArgumentNullException.ThrowIfNull(buffers);
System\Net\Sockets\TCPClient.cs (5)
47ArgumentNullException.ThrowIfNull(localEP); 59ArgumentNullException.ThrowIfNull(hostname); 130ArgumentNullException.ThrowIfNull(hostname); 149ArgumentNullException.ThrowIfNull(address); 166ArgumentNullException.ThrowIfNull(remoteEP);
System\Net\Sockets\TCPListener.cs (2)
27ArgumentNullException.ThrowIfNull(localEP); 38ArgumentNullException.ThrowIfNull(localaddr);
System\Net\Sockets\UDPClient.cs (13)
85ArgumentNullException.ThrowIfNull(localEP); 317ArgumentNullException.ThrowIfNull(datagram); 397ArgumentNullException.ThrowIfNull(multicastAddr); 441ArgumentNullException.ThrowIfNull(multicastAddr); 461ArgumentNullException.ThrowIfNull(multicastAddr); 482ArgumentNullException.ThrowIfNull(multicastAddr); 510ArgumentNullException.ThrowIfNull(multicastAddr); 668ArgumentNullException.ThrowIfNull(hostname); 692ArgumentNullException.ThrowIfNull(hostname); 807ArgumentNullException.ThrowIfNull(addr); 824ArgumentNullException.ThrowIfNull(endPoint); 860ArgumentNullException.ThrowIfNull(dgram); 940ArgumentNullException.ThrowIfNull(dgram);
System\Net\Sockets\UdpReceiveResult.cs (2)
23ArgumentNullException.ThrowIfNull(buffer); 24ArgumentNullException.ThrowIfNull(remoteEndPoint);
System\Net\Sockets\UnixDomainSocketEndPoint.cs (2)
24/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception> 33ArgumentNullException.ThrowIfNull(path);
System.Net.WebClient (31)
System\Net\WebClient.cs (31)
147ArgumentNullException.ThrowIfNull(value); 284ArgumentNullException.ThrowIfNull(address); 324ArgumentNullException.ThrowIfNull(address); 325ArgumentNullException.ThrowIfNull(fileName); 363ArgumentNullException.ThrowIfNull(address); 396ArgumentNullException.ThrowIfNull(address); 434ArgumentNullException.ThrowIfNull(address); 435ArgumentNullException.ThrowIfNull(data); 558ArgumentNullException.ThrowIfNull(address); 559ArgumentNullException.ThrowIfNull(fileName); 629ArgumentNullException.ThrowIfNull(address); 630ArgumentNullException.ThrowIfNull(data); 666ArgumentNullException.ThrowIfNull(address); 667ArgumentNullException.ThrowIfNull(data); 690ArgumentNullException.ThrowIfNull(address); 780ArgumentNullException.ThrowIfNull(address); 800ArgumentNullException.ThrowIfNull(address); 1195ArgumentNullException.ThrowIfNull(address); 1233ArgumentNullException.ThrowIfNull(address); 1292ArgumentNullException.ThrowIfNull(address); 1318ArgumentNullException.ThrowIfNull(address); 1344ArgumentNullException.ThrowIfNull(address); 1345ArgumentNullException.ThrowIfNull(fileName); 1370ArgumentNullException.ThrowIfNull(address); 1371ArgumentNullException.ThrowIfNull(data); 1419ArgumentNullException.ThrowIfNull(address); 1420ArgumentNullException.ThrowIfNull(data); 1458ArgumentNullException.ThrowIfNull(address); 1459ArgumentNullException.ThrowIfNull(fileName); 1495ArgumentNullException.ThrowIfNull(address); 1496ArgumentNullException.ThrowIfNull(data);
System.Net.WebProxy (2)
System\Net\WebProxy.cs (2)
103ArgumentNullException.ThrowIfNull(destination); 197ArgumentNullException.ThrowIfNull(host);
System.Net.WebSockets (9)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
115ArgumentNullException.ThrowIfNull(buffer);
System\Net\WebSockets\WebSocket.cs (4)
134ArgumentNullException.ThrowIfNull(stream); 161ArgumentNullException.ThrowIfNull(stream); 162ArgumentNullException.ThrowIfNull(options); 188ArgumentNullException.ThrowIfNull(innerStream);
System\Net\WebSockets\WebSocketStream.cs (4)
36ArgumentNullException.ThrowIfNull(webSocket); 52ArgumentNullException.ThrowIfNull(webSocket); 72ArgumentNullException.ThrowIfNull(webSocket); 87ArgumentNullException.ThrowIfNull(webSocket);
System.Net.WebSockets.Client (4)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
115ArgumentNullException.ThrowIfNull(buffer);
System\Net\WebSockets\ClientWebSocket.cs (1)
96ArgumentNullException.ThrowIfNull(uri);
System\Net\WebSockets\ClientWebSocketOptions.cs (2)
55ArgumentNullException.ThrowIfNull(value); 127ArgumentNullException.ThrowIfNull(value);
System.ObjectModel (15)
System\Collections\CollectionHelpers.cs (1)
12ArgumentNullException.ThrowIfNull(array);
System\Collections\Generic\DebugView.cs (1)
14ArgumentNullException.ThrowIfNull(collection);
System\Collections\ObjectModel\KeyedCollection.cs (4)
74ArgumentNullException.ThrowIfNull(key); 94ArgumentNullException.ThrowIfNull(key); 134ArgumentNullException.ThrowIfNull(key); 290ArgumentNullException.ThrowIfNull(collection);
System\Collections\ObjectModel\ObservableCollection.cs (2)
46/// <exception cref="ArgumentNullException"> collection is a null reference </exception> 60/// <exception cref="ArgumentNullException"> list is a null reference </exception>
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (3)
117ArgumentNullException.ThrowIfNull(changedItems); 194ArgumentNullException.ThrowIfNull(newItems); 195ArgumentNullException.ThrowIfNull(oldItems);
System\ComponentModel\TypeConverterAttribute.cs (2)
37ArgumentNullException.ThrowIfNull(type); 49ArgumentNullException.ThrowIfNull(typeName);
System\ComponentModel\TypeDescriptionProviderAttribute.cs (2)
16ArgumentNullException.ThrowIfNull(typeName); 26ArgumentNullException.ThrowIfNull(type);
System.Private.CoreLib (1688)
src\libraries\Common\src\System\IO\StringParser.cs (1)
35ArgumentNullException.ThrowIfNull(buffer);
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (8)
24/// <exception cref="ArgumentNullException"><paramref name="task"/> is null.</exception> 37ArgumentNullException.ThrowIfNull(task); 47/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 66/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 70ArgumentNullException.ThrowIfNull(asyncResult); 84/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 92ArgumentNullException.ThrowIfNull(asyncResult);
src\libraries\Common\src\System\TimeProvider.cs (2)
138/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 163ArgumentNullException.ThrowIfNull(callback);
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (4)
42ArgumentNullException.ThrowIfNull(result, argName); 84ArgumentNullException.ThrowIfNull(functionHandle); 190ArgumentNullException.ThrowIfNull(assembly); 266ArgumentNullException.ThrowIfNull(functionHandle);
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (2)
23ArgumentNullException.ThrowIfNull(type); 95ArgumentNullException.ThrowIfNull(type);
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (12)
54/// <exception cref="ArgumentNullException">The <paramref name="innerException"/> argument 59ArgumentNullException.ThrowIfNull(innerException); 69/// <exception cref="ArgumentNullException">The <paramref name="innerExceptions"/> argument 83/// <exception cref="ArgumentNullException">The <paramref name="innerExceptions"/> argument 98/// <exception cref="ArgumentNullException">The <paramref name="innerExceptions"/> argument 113/// <exception cref="ArgumentNullException">The <paramref name="innerExceptions"/> argument 145/// <exception cref="ArgumentNullException">The <paramref name="innerExceptionInfos"/> argument 163/// <exception cref="ArgumentNullException">The <paramref name="innerExceptionInfos"/> argument 186/// <exception cref="ArgumentNullException">The <paramref name="info"/> argument is null.</exception> 205/// <exception cref="ArgumentNullException">The <paramref name="info"/> argument is null.</exception> 260/// <exception cref="ArgumentNullException">The <paramref name="predicate"/> argument is 264ArgumentNullException.ThrowIfNull(predicate);
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (3)
39ArgumentNullException.ThrowIfNull(name); 57/// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/></exception> 60ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (7)
109ArgumentNullException.ThrowIfNull(friendlyName); 120ArgumentNullException.ThrowIfNull(assemblyFile); 177ArgumentNullException.ThrowIfNull(domain); 277ArgumentNullException.ThrowIfNull(principal); 289ArgumentNullException.ThrowIfNull(assemblyName); 297ArgumentNullException.ThrowIfNull(assemblyName); 312ArgumentNullException.ThrowIfNull(assemblyName);
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (2)
16ArgumentNullException.ThrowIfNull(version); 17ArgumentNullException.ThrowIfNull(publicKeyToken);
src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (4)
102/// <exception cref="ArgumentNullException"><paramref name="argument"/> is null.</exception> 115/// <exception cref="ArgumentNullException"><paramref name="argument"/> is null.</exception> 128ArgumentNullException.ThrowIfNull(argument, paramName); 135ArgumentNullException.ThrowIfNull(argument, paramName);
src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (3)
51/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 72/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> 84/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
src\libraries\System.Private.CoreLib\src\System\Array.cs (21)
76ArgumentNullException.ThrowIfNull(elementType); 90ArgumentNullException.ThrowIfNull(elementType); 106ArgumentNullException.ThrowIfNull(elementType); 122ArgumentNullException.ThrowIfNull(elementType); 123ArgumentNullException.ThrowIfNull(lengths); 147ArgumentNullException.ThrowIfNull(elementType); 148ArgumentNullException.ThrowIfNull(lengths); 149ArgumentNullException.ThrowIfNull(lowerBounds); 176ArgumentNullException.ThrowIfNull(lengths); 198/// <exception cref="ArgumentNullException"><paramref name="arrayType"/> is null.</exception> 208ArgumentNullException.ThrowIfNull(arrayType); 230/// <exception cref="ArgumentNullException"><para><paramref name="arrayType"/> is null.</para> 245ArgumentNullException.ThrowIfNull(arrayType); 246ArgumentNullException.ThrowIfNull(lengths); 277/// <exception cref="ArgumentNullException"><para><paramref name="arrayType"/> is null.</para> 297ArgumentNullException.ThrowIfNull(arrayType); 298ArgumentNullException.ThrowIfNull(lengths); 299ArgumentNullException.ThrowIfNull(lowerBounds); 434ArgumentNullException.ThrowIfNull(sourceArray); 435ArgumentNullException.ThrowIfNull(destinationArray); 658/// <exception cref="ArgumentNullException"><paramref name="array"/> is null.</exception>
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (16)
401/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 426/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 464/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 502/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 540/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 575/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 605/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 635/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 665/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 702/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 730/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 758/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 786/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 842/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 859/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 874/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
222ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (3)
19ArgumentNullException.ThrowIfNull(src); 20ArgumentNullException.ThrowIfNull(dst); 58ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
116ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (1)
26ArgumentNullException.ThrowIfNull(writer);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (21)
53ArgumentNullException.ThrowIfNull(c); 144ArgumentNullException.ThrowIfNull(list); 295ArgumentNullException.ThrowIfNull(list); 305ArgumentNullException.ThrowIfNull(list); 406ArgumentNullException.ThrowIfNull(c); 487ArgumentNullException.ThrowIfNull(list); 496ArgumentNullException.ThrowIfNull(list); 591ArgumentNullException.ThrowIfNull(c); 649ArgumentNullException.ThrowIfNull(list); 658ArgumentNullException.ThrowIfNull(list); 683ArgumentNullException.ThrowIfNull(type); 820ArgumentNullException.ThrowIfNull(array); 893ArgumentNullException.ThrowIfNull(c); 1005ArgumentNullException.ThrowIfNull(c); 1062ArgumentNullException.ThrowIfNull(type); 2202ArgumentNullException.ThrowIfNull(c); 2279ArgumentNullException.ThrowIfNull(array); 2293ArgumentNullException.ThrowIfNull(array); 2400ArgumentNullException.ThrowIfNull(c); 2535ArgumentNullException.ThrowIfNull(type); 2646ArgumentNullException.ThrowIfNull(arrayList);
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (15)
80ArgumentNullException.ThrowIfNull(info); 105ArgumentNullException.ThrowIfNull(info); 129/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is null.</exception> 133ArgumentNullException.ThrowIfNull(bytes); 150/// <exception cref="ArgumentNullException"><paramref name="values"/> is null.</exception> 153ArgumentNullException.ThrowIfNull(values); 227/// <exception cref="ArgumentNullException"><paramref name="values"/> is null.</exception> 237ArgumentNullException.ThrowIfNull(values); 260/// <exception cref="ArgumentNullException"><paramref name="bits"/> is null.</exception> 263ArgumentNullException.ThrowIfNull(bits); 361/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 372/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 383/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 402ArgumentNullException.ThrowIfNull(value); 661ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (3)
25ArgumentNullException.ThrowIfNull(culture); 32ArgumentNullException.ThrowIfNull(info); 41ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
49ArgumentNullException.ThrowIfNull(obj);
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (3)
77/// <exception cref="ArgumentNullException">The <paramref name="collection"/> argument is null.</exception> 119/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in 429/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollection.cs (1)
30/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference (Nothing in
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollectionDebugView.cs (1)
23ArgumentNullException.ThrowIfNull(collection);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (6)
64/// <exception cref="ArgumentNullException"><paramref name="list"/> is null.</exception> 75/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="dictionary"/> is null.</exception> 95/// <exception cref="ArgumentNullException">The <paramref name="list"/> is null.</exception> 121/// <exception cref="ArgumentNullException">The <paramref name="list"/> is null.</exception> 162/// <exception cref="ArgumentNullException">The <paramref name="list"/> is null.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (1)
18ArgumentNullException.ThrowIfNull(comparison);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (7)
709/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 749/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 774/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 792/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 858/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 870/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 945/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (2)
27/// <exception cref="ArgumentNullException">The <paramref name="equals"/> delegate was null.</exception> 30ArgumentNullException.ThrowIfNull(equals);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ICollectionDebugView.cs (1)
14ArgumentNullException.ThrowIfNull(collection);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IReadOnlySet.cs (6)
23/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 30/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 44/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 51/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 58/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (3)
49ArgumentNullException.ThrowIfNull(collection); 97ArgumentNullException.ThrowIfNull(array); 123ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\QueueDebugView.cs (1)
14ArgumentNullException.ThrowIfNull(queue);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (13)
350ArgumentNullException.ThrowIfNull(d); 360ArgumentNullException.ThrowIfNull(d); 479ArgumentNullException.ThrowIfNull(key); 574ArgumentNullException.ThrowIfNull(array); 628ArgumentNullException.ThrowIfNull(key); 832ArgumentNullException.ThrowIfNull(key); 970ArgumentNullException.ThrowIfNull(key); 1018ArgumentNullException.ThrowIfNull(table); 1027ArgumentNullException.ThrowIfNull(info); 1191ArgumentNullException.ThrowIfNull(array); 1226ArgumentNullException.ThrowIfNull(array); 1309ArgumentNullException.ThrowIfNull(key); 1503ArgumentNullException.ThrowIfNull(hashtable);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (8)
32ArgumentNullException.ThrowIfNull(key); 48ArgumentNullException.ThrowIfNull(key); 99ArgumentNullException.ThrowIfNull(key); 136ArgumentNullException.ThrowIfNull(key); 150ArgumentNullException.ThrowIfNull(array); 179ArgumentNullException.ThrowIfNull(key); 305ArgumentNullException.ThrowIfNull(array); 417ArgumentNullException.ThrowIfNull(list);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
13ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (4)
26ArgumentNullException.ThrowIfNull(dictionary); 112ArgumentNullException.ThrowIfNull(key); 253ArgumentNullException.ThrowIfNull(collection); 309ArgumentNullException.ThrowIfNull(collection);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
23ArgumentNullException.ThrowIfNull(set);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (20)
170ArgumentNullException.ThrowIfNull(targetType); 231ArgumentNullException.ThrowIfNull(conversionType); 493ArgumentNullException.ThrowIfNull(value); 2315ArgumentNullException.ThrowIfNull(inArray); 2322ArgumentNullException.ThrowIfNull(inArray); 2334ArgumentNullException.ThrowIfNull(inArray); 2387ArgumentNullException.ThrowIfNull(inArray); 2388ArgumentNullException.ThrowIfNull(outArray); 2796ArgumentNullException.ThrowIfNull(inArray); 2923/// <exception cref="ArgumentNullException"><paramref name="s"/> is <code>null</code>.</exception> 2970/// <exception cref="ArgumentNullException">Passed string <paramref name="source"/> is null.</exception> 2973ArgumentNullException.ThrowIfNull(source); 3041/// <exception cref="ArgumentNullException"><paramref name="inArray"/> is <code>null</code>.</exception> 3045ArgumentNullException.ThrowIfNull(inArray); 3058/// <exception cref="ArgumentNullException"><paramref name="inArray"/> is <code>null</code>.</exception> 3064ArgumentNullException.ThrowIfNull(inArray); 3118/// <exception cref="ArgumentNullException"><paramref name="inArray"/> is <code>null</code>.</exception> 3122ArgumentNullException.ThrowIfNull(inArray); 3135/// <exception cref="ArgumentNullException"><paramref name="inArray"/> is <code>null</code>.</exception> 3141ArgumentNullException.ThrowIfNull(inArray);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (7)
245/// <exception cref="ArgumentNullException"> 288ArgumentNullException.ThrowIfNull(calendar); 355ArgumentNullException.ThrowIfNull(calendar); 501/// <exception cref="ArgumentNullException"> 541ArgumentNullException.ThrowIfNull(calendar); 696/// <exception cref="ArgumentNullException"> 760/// <exception cref="ArgumentNullException">
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (3)
177ArgumentNullException.ThrowIfNull(calendar); 628ArgumentNullException.ThrowIfNull(info); 636ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
201ArgumentNullException.ThrowIfNull(info); 210ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (4)
454ArgumentNullException.ThrowIfNull(match); 641ArgumentNullException.ThrowIfNull(index, nameof(indexes)); 793ArgumentNullException.ThrowIfNull(match); 835ArgumentNullException.ThrowIfNull(match);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (6)
520ArgumentNullException.ThrowIfNull(predicate); 540ArgumentNullException.ThrowIfNull(collection); 541ArgumentNullException.ThrowIfNull(predicate); 567ArgumentNullException.ThrowIfNull(predicate); 586ArgumentNullException.ThrowIfNull(collection); 587ArgumentNullException.ThrowIfNull(predicate);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (1)
24ArgumentNullException.ThrowIfNull(provider);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebuggerDisplayAttribute.cs (1)
38ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebuggerTypeProxyAttribute.cs (2)
16ArgumentNullException.ThrowIfNull(type); 37ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebuggerVisualizerAttribute.cs (6)
35ArgumentNullException.ThrowIfNull(visualizerObjectSource); 44ArgumentNullException.ThrowIfNull(visualizer); 53ArgumentNullException.ThrowIfNull(visualizer); 54ArgumentNullException.ThrowIfNull(visualizerObjectSource); 64ArgumentNullException.ThrowIfNull(visualizer); 83ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DiagnosticMethodInfo.cs (2)
52ArgumentNullException.ThrowIfNull(@delegate); 71ArgumentNullException.ThrowIfNull(frame);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (5)
83ArgumentNullException.ThrowIfNull(e); 93ArgumentNullException.ThrowIfNull(e); 104ArgumentNullException.ThrowIfNull(e); 117ArgumentNullException.ThrowIfNull(e); 140ArgumentNullException.ThrowIfNull(frames);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (4)
28ArgumentNullException.ThrowIfNull(Name); 29ArgumentNullException.ThrowIfNull(EventSource); 83ArgumentNullException.ThrowIfNull(DisplayName); 94ArgumentNullException.ThrowIfNull(DisplayUnits);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (6)
369ArgumentNullException.ThrowIfNull(eventSourceType); 454ArgumentNullException.ThrowIfNull(eventSourceType); 502ArgumentNullException.ThrowIfNull(eventSource); 1747ArgumentNullException.ThrowIfNull(eventSourceType); 4223ArgumentNullException.ThrowIfNull(eventSource); 4241ArgumentNullException.ThrowIfNull(eventSource);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\IncrementingPollingCounter.cs (1)
32ArgumentNullException.ThrowIfNull(totalValueProvider);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\PollingCounter.cs (1)
31ArgumentNullException.ThrowIfNull(metricProvider);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (3)
32ArgumentNullException.ThrowIfNull(key); 71ArgumentNullException.ThrowIfNull(key); 112ArgumentNullException.ThrowIfNull(key);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (5)
86ArgumentNullException.ThrowIfNull(name); 122ArgumentNullException.ThrowIfNull(defaultName); 176ArgumentNullException.ThrowIfNull(paramInfos); 191ArgumentNullException.ThrowIfNull(types); 206ArgumentNullException.ThrowIfNull(typeInfos);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (3)
26ArgumentNullException.ThrowIfNull(dataType); 41ArgumentNullException.ThrowIfNull(dataType); 42ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (24)
82/// <exception cref="ArgumentNullException"><paramref name="enumType"/> or <paramref name="value"/> is <see langword="null"/>.</exception> 89ArgumentNullException.ThrowIfNull(enumType); 246/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is null.</exception> 250ArgumentNullException.ThrowIfNull(enumType); 279/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is null.</exception> 283ArgumentNullException.ThrowIfNull(enumType); 301/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is null.</exception> 309ArgumentNullException.ThrowIfNull(enumType); 330/// <exception cref="ArgumentNullException"><paramref name="enumType" /> is null.</exception> 334ArgumentNullException.ThrowIfNull(enumType); 401ArgumentNullException.ThrowIfNull(flag); 513/// <exception cref="ArgumentNullException"><paramref name="enumType"/> or <paramref name="value"/> is <see langword="null"/>.</exception> 521ArgumentNullException.ThrowIfNull(enumType); 543/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <see langword="null"/>.</exception> 555/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <see langword="null"/>.</exception> 571/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <see langword="null"/>.</exception> 596/// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <see langword="null"/>.</exception> 612/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 635/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 1618/// <exception cref="ArgumentNullException">The <paramref name="enumType"/>, <paramref name="value"/>, or <paramref name="format"/> parameter is null.</exception> 1626ArgumentNullException.ThrowIfNull(value); 1627ArgumentNullException.ThrowIfNull(format); 2127ArgumentNullException.ThrowIfNull(enumType); 2195ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Environment.cs (3)
71ArgumentNullException.ThrowIfNull(variable); 81ArgumentNullException.ThrowIfNull(variable); 143ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Exception.cs (2)
47ArgumentNullException.ThrowIfNull(info); 106ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\FormattableString.cs (2)
61ArgumentNullException.ThrowIfNull(formattable); 80ArgumentNullException.ThrowIfNull(formattable);
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
63ArgumentNullException.ThrowIfNull(calendar);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (5)
66ArgumentNullException.ThrowIfNull(assembly); 84ArgumentNullException.ThrowIfNull(name); 85ArgumentNullException.ThrowIfNull(assembly); 114ArgumentNullException.ThrowIfNull(name); 126ArgumentNullException.ThrowIfNull(text);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
684ArgumentNullException.ThrowIfNull(source);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (1)
14ArgumentNullException.ThrowIfNull(source);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (1)
371ArgumentNullException.ThrowIfNull(source);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (11)
164ArgumentNullException.ThrowIfNull(name); 225ArgumentNullException.ThrowIfNull(textAndCompareCultureName); 374ArgumentNullException.ThrowIfNull(value); 394ArgumentNullException.ThrowIfNull(value); 721ArgumentNullException.ThrowIfNull(value); 748ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(ci); 1031ArgumentNullException.ThrowIfNull(name); 1068ArgumentNullException.ThrowIfNull(name); 1069ArgumentNullException.ThrowIfNull(altName); 1107ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (22)
360ArgumentNullException.ThrowIfNull(value); 390ArgumentNullException.ThrowIfNull(value); 475ArgumentNullException.ThrowIfNull(eraName); 609ArgumentNullException.ThrowIfNull(value); 695ArgumentNullException.ThrowIfNull(value); 716ArgumentNullException.ThrowIfNull(value); 750ArgumentNullException.ThrowIfNull(value); 792ArgumentNullException.ThrowIfNull(value); 812ArgumentNullException.ThrowIfNull(value); 846ArgumentNullException.ThrowIfNull(value); 882ArgumentNullException.ThrowIfNull(value); 994ArgumentNullException.ThrowIfNull(value); 1028ArgumentNullException.ThrowIfNull(value); 1068ArgumentNullException.ThrowIfNull(value); 1093ArgumentNullException.ThrowIfNull(value); 1113ArgumentNullException.ThrowIfNull(value); 1135ArgumentNullException.ThrowIfNull(value); 1156ArgumentNullException.ThrowIfNull(value); 1549ArgumentNullException.ThrowIfNull(dtfi); 1599ArgumentNullException.ThrowIfNull(patterns); 1662ArgumentNullException.ThrowIfNull(value); 1683ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationExtensions.cs (1)
10ArgumentNullException.ThrowIfNull(compareInfo);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (4)
61ArgumentNullException.ThrowIfNull(unicode); 68ArgumentNullException.ThrowIfNull(unicode); 108ArgumentNullException.ThrowIfNull(ascii); 115ArgumentNullException.ThrowIfNull(ascii);
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (16)
106ArgumentNullException.ThrowIfNull(nativeDig); 308ArgumentNullException.ThrowIfNull(value); 323ArgumentNullException.ThrowIfNull(value); 338ArgumentNullException.ThrowIfNull(value); 353ArgumentNullException.ThrowIfNull(value); 373ArgumentNullException.ThrowIfNull(value); 419ArgumentNullException.ThrowIfNull(value); 504ArgumentNullException.ThrowIfNull(value); 526ArgumentNullException.ThrowIfNull(value); 586ArgumentNullException.ThrowIfNull(value); 621ArgumentNullException.ThrowIfNull(value); 643ArgumentNullException.ThrowIfNull(value); 703ArgumentNullException.ThrowIfNull(value); 723ArgumentNullException.ThrowIfNull(value); 744ArgumentNullException.ThrowIfNull(value); 790ArgumentNullException.ThrowIfNull(nfi);
src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (1)
28ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Globalization\SortKey.cs (2)
48ArgumentNullException.ThrowIfNull(sortkey1); 49ArgumentNullException.ThrowIfNull(sortkey2);
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (5)
61ArgumentNullException.ThrowIfNull(value); 107/// <exception cref="ArgumentNullException"><paramref name="str"/> is null.</exception> 122/// <exception cref="ArgumentNullException"><paramref name="str"/> is null.</exception> 139/// <exception cref="ArgumentNullException"><paramref name="str"/> is null.</exception> 153/// <exception cref="ArgumentNullException"><paramref name="str"/> is null.</exception>
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (5)
97ArgumentNullException.ThrowIfNull(textInfo); 130ArgumentNullException.ThrowIfNull(value); 174ArgumentNullException.ThrowIfNull(str); 445ArgumentNullException.ThrowIfNull(str); 520ArgumentNullException.ThrowIfNull(str);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
541ArgumentNullException.Throw(argumentName);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (5)
125ArgumentNullException.ThrowIfNull(d); 268ArgumentNullException.ThrowIfNull(g); 335ArgumentNullException.ThrowIfNull(input); 400ArgumentNullException.ThrowIfNull(input); 401ArgumentNullException.ThrowIfNull(format);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
82ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (4)
41ArgumentNullException.ThrowIfNull(input); 42ArgumentNullException.ThrowIfNull(encoding); 296ArgumentNullException.ThrowIfNull(buffer); 415ArgumentNullException.ThrowIfNull(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (6)
47ArgumentNullException.ThrowIfNull(output); 48ArgumentNullException.ThrowIfNull(encoding); 158ArgumentNullException.ThrowIfNull(buffer); 219ArgumentNullException.ThrowIfNull(chars); 231ArgumentNullException.ThrowIfNull(chars); 348ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (5)
202ArgumentNullException.ThrowIfNull(path); 203ArgumentNullException.ThrowIfNull(searchPattern); 204ArgumentNullException.ThrowIfNull(enumerationOptions); 252ArgumentNullException.ThrowIfNull(path); 300/// <exception cref="ArgumentNullException"><paramref name="path"/> or <paramref name="pathToTarget"/> is <see langword="null"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (4)
18ArgumentNullException.ThrowIfNull(path); 76ArgumentNullException.ThrowIfNull(path); 188ArgumentNullException.ThrowIfNull(searchPattern); 189ArgumentNullException.ThrowIfNull(enumerationOptions);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerable.cs (2)
28ArgumentNullException.ThrowIfNull(directory); 29ArgumentNullException.ThrowIfNull(transform);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.cs (1)
33ArgumentNullException.ThrowIfNull(directory);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (56)
84ArgumentNullException.ThrowIfNull(path); 197/// <exception cref="ArgumentNullException"> 211ArgumentNullException.ThrowIfNull(fileHandle); 229/// <exception cref="ArgumentNullException"> 243ArgumentNullException.ThrowIfNull(fileHandle); 260/// <exception cref="ArgumentNullException"> 268ArgumentNullException.ThrowIfNull(fileHandle); 285/// <exception cref="ArgumentNullException"> 293ArgumentNullException.ThrowIfNull(fileHandle); 310/// <exception cref="ArgumentNullException"> 324ArgumentNullException.ThrowIfNull(fileHandle); 341/// <exception cref="ArgumentNullException"> 355ArgumentNullException.ThrowIfNull(fileHandle); 372/// <exception cref="ArgumentNullException"> 380ArgumentNullException.ThrowIfNull(fileHandle); 397/// <exception cref="ArgumentNullException"> 405ArgumentNullException.ThrowIfNull(fileHandle); 422/// <exception cref="ArgumentNullException"> 436ArgumentNullException.ThrowIfNull(fileHandle); 453/// <exception cref="ArgumentNullException"> 467ArgumentNullException.ThrowIfNull(fileHandle); 484/// <exception cref="ArgumentNullException"> 492ArgumentNullException.ThrowIfNull(fileHandle); 509/// <exception cref="ArgumentNullException"> 517ArgumentNullException.ThrowIfNull(fileHandle); 533/// <exception cref="ArgumentNullException"> 541ArgumentNullException.ThrowIfNull(fileHandle); 557/// <exception cref="ArgumentNullException"> 569ArgumentNullException.ThrowIfNull(fileHandle); 644/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception> 676/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception> 678/// <exception cref="ArgumentNullException"><paramref name="encoding"/> is <see langword="null"/>.</exception> 738ArgumentNullException.ThrowIfNull(bytes); 748/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 773/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 774/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is null.</exception> 787ArgumentNullException.ThrowIfNull(bytes); 798/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 826/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 827/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is null.</exception> 832ArgumentNullException.ThrowIfNull(bytes); 845/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 929ArgumentNullException.ThrowIfNull(contents); 955/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception> 987/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception> 989/// <exception cref="ArgumentNullException"><paramref name="encoding"/> is <see langword="null"/>.</exception> 1017ArgumentNullException.ThrowIfNull(contents); 1026ArgumentNullException.ThrowIfNull(sourceFileName); 1027ArgumentNullException.ThrowIfNull(destinationFileName); 1066ArgumentNullException.ThrowIfNull(path); 1073ArgumentNullException.ThrowIfNull(path); 1262ArgumentNullException.ThrowIfNull(bytes); 1274/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 1333ArgumentNullException.ThrowIfNull(contents); 1420/// <exception cref="ArgumentNullException"><paramref name="path"/> or <paramref name="pathToTarget"/> is <see langword="null"/>.</exception> 1457ArgumentNullException.ThrowIfNull(encoding);
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
184ArgumentNullException.ThrowIfNull(destinationFileName);
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (3)
185ArgumentNullException.ThrowIfNull(options); 564ArgumentNullException.ThrowIfNull(asyncResult); 587ArgumentNullException.ThrowIfNull(asyncResult);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (1)
152/// <exception cref="ArgumentNullException"><paramref name="pathToTarget"/> is <see langword="null"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (3)
63ArgumentNullException.ThrowIfNull(buffer); 83ArgumentNullException.ThrowIfNull(buffer); 745ArgumentNullException.ThrowIfNull(stream);
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (17)
301/// <exception cref="ArgumentNullException"> 306ArgumentNullException.ThrowIfNull(path); 346ArgumentNullException.ThrowIfNull(path1); 347ArgumentNullException.ThrowIfNull(path2); 354ArgumentNullException.ThrowIfNull(path1); 355ArgumentNullException.ThrowIfNull(path2); 356ArgumentNullException.ThrowIfNull(path3); 363ArgumentNullException.ThrowIfNull(path1); 364ArgumentNullException.ThrowIfNull(path2); 365ArgumentNullException.ThrowIfNull(path3); 366ArgumentNullException.ThrowIfNull(path4); 373ArgumentNullException.ThrowIfNull(paths); 392ArgumentNullException.ThrowIfNull(paths[i], nameof(paths)); 531ArgumentNullException.ThrowIfNull(paths); 853/// <exception cref="ArgumentNullException">Thrown if <paramref name="relativeTo"/> or <paramref name="path"/> is <c>null</c> or an empty string.</exception> 861ArgumentNullException.ThrowIfNull(relativeTo); 862ArgumentNullException.ThrowIfNull(path);
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (2)
38ArgumentNullException.ThrowIfNull(path); 39ArgumentNullException.ThrowIfNull(basePath);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (1)
57(e is ArgumentException && e is not ArgumentNullException);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (6)
363/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 830/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <see langword="null"/>.</exception> 930ArgumentNullException.ThrowIfNull(stream); 941/// <exception cref="ArgumentNullException"><paramref name="buffer"/> was null.</exception> 982/// <exception cref="ArgumentNullException"><paramref name="destination"/> was null.</exception> 988ArgumentNullException.ThrowIfNull(destination);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
218ArgumentNullException.ThrowIfNull(options); 348ArgumentNullException.ThrowIfNull(buffer); 427ArgumentNullException.ThrowIfNull(buffer); 1049ArgumentNullException.ThrowIfNull(buffer); 1260ArgumentNullException.ThrowIfNull(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (6)
175ArgumentNullException.ThrowIfNull(options); 372ArgumentNullException.ThrowIfNull(buffer); 559ArgumentNullException.Throw(format is null ? nameof(format) : nameof(arg)); // same as base logic 628ArgumentNullException.ThrowIfNull(arg); 731ArgumentNullException.ThrowIfNull(buffer); 883ArgumentNullException.ThrowIfNull(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (3)
88ArgumentNullException.ThrowIfNull(buffer); 289ArgumentNullException.ThrowIfNull(buffer); 307ArgumentNullException.ThrowIfNull(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (2)
40ArgumentNullException.ThrowIfNull(sb); 90ArgumentNullException.ThrowIfNull(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (6)
72ArgumentNullException.ThrowIfNull(buffer); 262ArgumentNullException.ThrowIfNull(buffer); 292ArgumentNullException.ThrowIfNull(buffer); 328ArgumentNullException.ThrowIfNull(reader); 392ArgumentNullException.ThrowIfNull(buffer); 405ArgumentNullException.ThrowIfNull(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (3)
21/// <exception cref="ArgumentNullException"><paramref name="writers"/> is <see langword="null"/> or it contains a <see langword="null"/>.</exception> 36ArgumentNullException.ThrowIfNull(writers); 52ArgumentNullException.ThrowIfNull(writer, nameof(writers));
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
146ArgumentNullException.ThrowIfNull(buffer); 760ArgumentNullException.ThrowIfNull(writer);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (3)
42ArgumentNullException.ThrowIfNull(buffer); 315ArgumentNullException.ThrowIfNull(array); 541ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (2)
82ArgumentNullException.ThrowIfNull(buffer); 153ArgumentNullException.ThrowIfNull(pointer);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (2)
115ArgumentNullException.ThrowIfNull(stream); 133ArgumentNullException.ThrowIfNull(destination);
src\libraries\System.Private.CoreLib\src\System\IParsable.cs (1)
17/// <exception cref="ArgumentNullException"><paramref name="s" /> is <c>null</c>.</exception>
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (4)
233/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is a null 274/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is 289/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is 301ArgumentNullException.ThrowIfNull(valueFactory);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (27)
158/// <exception cref="ArgumentNullException"><paramref name="text"/> is null.</exception> 2152/// <summary>Throws an <see cref="ArgumentNullException"/> for <paramref name="lowInclusive"/> or <paramref name="highInclusive"/> being null.</summary> 4149/// <exception cref="ArgumentNullException"> 4171/// <exception cref="ArgumentNullException"> 4196/// <exception cref="ArgumentNullException"> 4219/// <exception cref="ArgumentNullException"> 4241/// <exception cref="ArgumentNullException"> 4267/// <exception cref="ArgumentNullException"> 4326/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception> 4396/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception> 4771/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception> 4797/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception> 4821/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception> 4846/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception> 5568/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null"/>.</exception> 5669/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5673ArgumentNullException.ThrowIfNull(format); 5691/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5695ArgumentNullException.ThrowIfNull(format); 5715/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5719ArgumentNullException.ThrowIfNull(format); 5734/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5735/// <exception cref="ArgumentNullException"><paramref name="args"/> is null.</exception> 5739ArgumentNullException.ThrowIfNull(format); 5740ArgumentNullException.ThrowIfNull(args); 5754/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5758ArgumentNullException.ThrowIfNull(format);
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (3)
50ArgumentNullException.ThrowIfNull(output); 179ArgumentNullException.ThrowIfNull(output); 591ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Nullable.cs (1)
105ArgumentNullException.ThrowIfNull(nullableType);
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (3)
30ArgumentNullException.ThrowIfNull(value); 142ArgumentNullException.ThrowIfNull(value); 157ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
281/// <exception cref="ArgumentNullException"><paramref name="s" /> is <c>null</c>.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
223ArgumentNullException.ThrowIfNull(obj);
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (2)
62ArgumentNullException.ThrowIfNull(version); 125ArgumentNullException.ThrowIfNull(platform);
src\libraries\System.Private.CoreLib\src\System\Progress.cs (2)
47/// <exception cref="ArgumentNullException">The <paramref name="handler"/> is null (<see langword="Nothing" /> in Visual Basic).</exception> 50ArgumentNullException.ThrowIfNull(handler);
src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
167/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 299/// <exception cref="ArgumentNullException"><paramref name="choices" /> is <see langword="null" />.</exception> 309ArgumentNullException.ThrowIfNull(choices); 342/// <exception cref="ArgumentNullException"><paramref name="values" /> is <see langword="null" />.</exception> 349ArgumentNullException.ThrowIfNull(values);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (3)
259ArgumentNullException.ThrowIfNull(rawAssembly); 274ArgumentNullException.ThrowIfNull(path); 377ArgumentNullException.ThrowIfNull(assemblyFile);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyFileVersionAttribute.cs (1)
11ArgumentNullException.ThrowIfNull(version);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (2)
289ArgumentNullException.ThrowIfNull(reference); 290ArgumentNullException.ThrowIfNull(definition);
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (1)
51ArgumentNullException.ThrowIfNull(constructor);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (4)
15ArgumentNullException.ThrowIfNull(target); 22ArgumentNullException.ThrowIfNull(target); 29ArgumentNullException.ThrowIfNull(target); 36ArgumentNullException.ThrowIfNull(target);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (2)
18ArgumentNullException.ThrowIfNull(memberInfo); 33ArgumentNullException.ThrowIfNull(memberInfo);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (2)
20ArgumentNullException.ThrowIfNull(argumentType); 28ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (3)
40ArgumentNullException.ThrowIfNull(con); 41ArgumentNullException.ThrowIfNull(binaryAttribute); 50ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorBuilder.cs (3)
35ArgumentNullException.ThrowIfNull(con); 36ArgumentNullException.ThrowIfNull(binaryAttribute); 45ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (9)
67ArgumentNullException.ThrowIfNull(m); 87ArgumentNullException.ThrowIfNull(m); 109ArgumentNullException.ThrowIfNull(m); 128ArgumentNullException.ThrowIfNull(owner); 148ArgumentNullException.ThrowIfNull(owner); 170ArgumentNullException.ThrowIfNull(owner); 223ArgumentNullException.ThrowIfNull(name); 348ArgumentNullException.ThrowIfNull(attributeType); 370ArgumentNullException.ThrowIfNull(attributeType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EventBuilder.cs (3)
24ArgumentNullException.ThrowIfNull(con); 25ArgumentNullException.ThrowIfNull(binaryAttribute); 34ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldBuilder.cs (3)
19ArgumentNullException.ThrowIfNull(con); 20ArgumentNullException.ThrowIfNull(binaryAttribute); 29ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\GenericTypeParameterBuilder.cs (1)
20ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (4)
92ArgumentNullException.ThrowIfNull(excType); 139ArgumentNullException.ThrowIfNull(fld); 198/// <exception cref="ArgumentNullException"><paramref name="document"/> is <see langword="null"/>.</exception> 210ArgumentNullException.ThrowIfNull(document);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\LocalBuilder.cs (2)
20/// <exception cref="ArgumentNullException">The <paramref name="name"/> is null.</exception> 25ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (4)
24ArgumentNullException.ThrowIfNull(names); 53ArgumentNullException.ThrowIfNull(con); 54ArgumentNullException.ThrowIfNull(binaryAttribute); 68ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (6)
37/// <exception cref="ArgumentNullException"><paramref name="url"/> is <see langword="null"/>.</exception> 49/// <exception cref="ArgumentNullException"><paramref name="url"/> is <see langword="null"/>.</exception> 161ArgumentNullException.ThrowIfNull(arrayClass); 172ArgumentNullException.ThrowIfNull(con); 173ArgumentNullException.ThrowIfNull(binaryAttribute); 182ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ParameterBuilder.cs (3)
22ArgumentNullException.ThrowIfNull(con); 23ArgumentNullException.ThrowIfNull(binaryAttribute); 30ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\PropertyBuilder.cs (3)
24ArgumentNullException.ThrowIfNull(con); 25ArgumentNullException.ThrowIfNull(binaryAttribute); 34ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
217ArgumentNullException.ThrowIfNull(baseType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (9)
29ArgumentNullException.ThrowIfNull(interfaceType); 78ArgumentNullException.ThrowIfNull(type); 88ArgumentNullException.ThrowIfNull(names); 99ArgumentNullException.ThrowIfNull(data); 144ArgumentNullException.ThrowIfNull(methodInfoBody); 145ArgumentNullException.ThrowIfNull(methodInfoDeclaration); 274ArgumentNullException.ThrowIfNull(con); 275ArgumentNullException.ThrowIfNull(binaryAttribute); 284ArgumentNullException.ThrowIfNull(customBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (2)
39ArgumentNullException.ThrowIfNull(typeArguments); 43ArgumentNullException.ThrowIfNull(t, nameof(typeArguments));
src\libraries\System.Private.CoreLib\src\System\Reflection\IntrospectionExtensions.cs (1)
14ArgumentNullException.ThrowIfNull(type);
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (1)
53ArgumentNullException.ThrowIfNull(method);
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (4)
41ArgumentNullException.ThrowIfNull(name); 51ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(types); 56ArgumentNullException.ThrowIfNull(types[i], nameof(types));
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (8)
66/// <exception cref="ArgumentNullException">If the parameterInfo parameter is null</exception> 70ArgumentNullException.ThrowIfNull(parameterInfo); 189/// <exception cref="ArgumentNullException">If the propertyInfo parameter is null</exception> 193ArgumentNullException.ThrowIfNull(propertyInfo); 242/// <exception cref="ArgumentNullException">If the eventInfo parameter is null</exception> 246ArgumentNullException.ThrowIfNull(eventInfo); 257/// <exception cref="ArgumentNullException">If the fieldInfo parameter is null</exception> 261ArgumentNullException.ThrowIfNull(fieldInfo);
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (2)
37ArgumentNullException.ThrowIfNull(attributeType); 47ArgumentNullException.ThrowIfNull(attributeType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Pointer.cs (1)
25ArgumentNullException.ThrowIfNull(type);
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionContext.cs (1)
16ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeConstructorInfo.cs (1)
52ArgumentNullException.ThrowIfNull(declaringType);
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeReflectionExtensions.cs (11)
20ArgumentNullException.ThrowIfNull(type); 30ArgumentNullException.ThrowIfNull(type); 40ArgumentNullException.ThrowIfNull(type); 50ArgumentNullException.ThrowIfNull(type); 60ArgumentNullException.ThrowIfNull(type); 70ArgumentNullException.ThrowIfNull(type); 80ArgumentNullException.ThrowIfNull(type); 90ArgumentNullException.ThrowIfNull(type); 98ArgumentNullException.ThrowIfNull(method); 106ArgumentNullException.ThrowIfNull(typeInfo); 114ArgumentNullException.ThrowIfNull(del);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (1)
22ArgumentNullException.ThrowIfNull(typeArguments[i], nameof(typeArguments));
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
36ArgumentNullException.ThrowIfNull(delegatingType);
src\libraries\System.Private.CoreLib\src\System\Resources\NeutralResourcesLanguageAttribute.cs (2)
14ArgumentNullException.ThrowIfNull(cultureName); 22ArgumentNullException.ThrowIfNull(cultureName);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (12)
172ArgumentNullException.ThrowIfNull(baseName); 173ArgumentNullException.ThrowIfNull(resourceDir); 188ArgumentNullException.ThrowIfNull(baseName); 189ArgumentNullException.ThrowIfNull(assembly); 204ArgumentNullException.ThrowIfNull(baseName); 205ArgumentNullException.ThrowIfNull(assembly); 222ArgumentNullException.ThrowIfNull(resourceSource); 394ArgumentNullException.ThrowIfNull(culture); 528ArgumentNullException.ThrowIfNull(a); 597ArgumentNullException.ThrowIfNull(name); 663ArgumentNullException.ThrowIfNull(name); 743ArgumentNullException.ThrowIfNull(rm);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
123ArgumentNullException.ThrowIfNull(resourceName);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
124ArgumentNullException.ThrowIfNull(stream);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (2)
64ArgumentNullException.ThrowIfNull(reader); 202ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
268ArgumentNullException.ThrowIfNull(key);
src\libraries\System.Private.CoreLib\src\System\Resources\SatelliteContractVersionAttribute.cs (1)
17ArgumentNullException.ThrowIfNull(version);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilder.cs (2)
37/// <exception cref="ArgumentNullException">The <paramref name="stateMachine"/> argument was null (<see langword="Nothing" /> in Visual Basic).</exception> 116/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (2)
39/// <exception cref="ArgumentNullException">The <paramref name="stateMachine"/> argument was null (<see langword="Nothing" /> in Visual Basic).</exception> 505/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (3)
36/// <exception cref="ArgumentNullException">The <paramref name="stateMachine"/> argument was null (<see langword="Nothing" /> in Visual Basic).</exception> 44/// <exception cref="ArgumentNullException">The <paramref name="stateMachine"/> argument was null (<see langword="Nothing" /> in Visual Basic).</exception> 109/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (12)
52/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 66/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 91/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 115/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 142/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 160/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 208/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 227/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="valueFactory"/> are <see langword="null"/>.</exception> 236ArgumentNullException.ThrowIfNull(valueFactory); 259/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="valueFactory"/> are <see langword="null"/>.</exception> 269ArgumentNullException.ThrowIfNull(valueFactory); 305ArgumentNullException.ThrowIfNull(createValueCallback);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\FormattableStringFactory.cs (2)
19ArgumentNullException.ThrowIfNull(format); 20ArgumentNullException.ThrowIfNull(arguments);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\INotifyCompletion.cs (2)
20/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 31/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (2)
73ArgumentNullException.ThrowIfNull(code); 74ArgumentNullException.ThrowIfNull(backoutCode);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (10)
43/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 53/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 171/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 176ArgumentNullException.ThrowIfNull(continuation); 309/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 319/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 407/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 417/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 489/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 499/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TupleElementNamesAttribute.cs (1)
41ArgumentNullException.ThrowIfNull(transformNames);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (4)
54/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 62/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 71/// <exception cref="ArgumentNullException">The <paramref name="continuation"/> argument is null (<see langword="Nothing" /> in Visual Basic).</exception> 74ArgumentNullException.ThrowIfNull(continuation);
src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs (6)
32ArgumentNullException.ThrowIfNull(source); 64/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument was null.</exception> 70ArgumentNullException.ThrowIfNull(source); 83/// <exception cref="ArgumentNullException">The <paramref name="source"/> or <paramref name="stackTrace"/> argument was null.</exception> 97ArgumentNullException.ThrowIfNull(source); 98ArgumentNullException.ThrowIfNull(stackTrace);
src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionHandling.cs (3)
20/// <exception cref="ArgumentNullException">If handler is null</exception> 34ArgumentNullException.ThrowIfNull(handler); 54ArgumentNullException.ThrowIfNull(exception);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (6)
777ArgumentNullException.ThrowIfNull(instance); 968ArgumentNullException.ThrowIfNull(wrapper); 1388ArgumentNullException.ThrowIfNull(instance); 1412ArgumentNullException.ThrowIfNull(instance); 1443/// If the object cannot be created and <code>null</code> is returned, the call to <see cref="GetOrCreateObjectForComInstance(nint, CreateObjectFlags)"/> will throw a <see cref="ArgumentNullException"/>. 1457/// If the object cannot be created and <code>null</code> is returned, the call to <see cref="GetOrCreateObjectForComInstance(nint, CreateObjectFlags, object)"/> will throw a <see cref="ArgumentNullException"/>.
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Java\JavaMarshal.cs (2)
18ArgumentNullException.ThrowIfNull(markCrossReferences); 34ArgumentNullException.ThrowIfNull(obj);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (30)
45ArgumentNullException.ThrowIfNull(ptr); 63ArgumentNullException.ThrowIfNull(ptr); 82ArgumentNullException.ThrowIfNull(ptr); 92ArgumentNullException.ThrowIfNull(structure); 99ArgumentNullException.ThrowIfNull(structure); 108ArgumentNullException.ThrowIfNull(t); 135ArgumentNullException.ThrowIfNull(pUnk); 146ArgumentNullException.ThrowIfNull(pUnk); 153ArgumentNullException.ThrowIfNull(pUnk); 166ArgumentNullException.ThrowIfNull(arr); 175ArgumentNullException.ThrowIfNull(arr); 226ArgumentNullException.ThrowIfNull(source); 228ArgumentNullException.ThrowIfNull(destination); 276ArgumentNullException.ThrowIfNull(destination); 278ArgumentNullException.ThrowIfNull(source); 524ArgumentNullException.ThrowIfNull(m); 533ArgumentNullException.ThrowIfNull(c); 560ArgumentNullException.ThrowIfNull(structureType); 588ArgumentNullException.ThrowIfNull(ptr); 589ArgumentNullException.ThrowIfNull(structure); 596ArgumentNullException.ThrowIfNull(ptr); 599ArgumentNullException.ThrowIfNull(boxedStructure, nameof(structure)); 635ArgumentNullException.ThrowIfNull(m); 1051ArgumentNullException.ThrowIfNull(type); 1069ArgumentNullException.ThrowIfNull(type); 1094ArgumentNullException.ThrowIfNull(t); 1096ArgumentNullException.ThrowIfNull(ptr); 1119ArgumentNullException.ThrowIfNull(ptr); 1142ArgumentNullException.ThrowIfNull(d); 1236ArgumentNullException.ThrowIfNull(ptr);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.NoCom.cs (2)
201ArgumentNullException.ThrowIfNull(o); 208ArgumentNullException.ThrowIfNull(t);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
160ArgumentNullException.ThrowIfNull(progID);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (19)
37/// <exception cref="ArgumentNullException">If libraryPath is null</exception> 42ArgumentNullException.ThrowIfNull(libraryPath); 53/// <exception cref="ArgumentNullException">If libraryPath is null</exception> 56ArgumentNullException.ThrowIfNull(libraryPath); 80/// <exception cref="ArgumentNullException">If libraryPath or assembly is null</exception> 86ArgumentNullException.ThrowIfNull(libraryName); 87ArgumentNullException.ThrowIfNull(assembly); 117/// <exception cref="ArgumentNullException">If libraryPath or assembly is null</exception> 121ArgumentNullException.ThrowIfNull(libraryName); 122ArgumentNullException.ThrowIfNull(assembly); 154/// <exception cref="ArgumentNullException">If handle or name is null</exception> 158ArgumentNullException.ThrowIfNull(handle); 159ArgumentNullException.ThrowIfNull(name); 171/// <exception cref="ArgumentNullException">If handle or name is null</exception> 174ArgumentNullException.ThrowIfNull(handle); 175ArgumentNullException.ThrowIfNull(name); 199/// <exception cref="ArgumentNullException">If assembly or resolver is null</exception> 203ArgumentNullException.ThrowIfNull(assembly); 204ArgumentNullException.ThrowIfNull(resolver);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
619/// <exception cref="ArgumentNullException"><paramref name="s" /> is <c>null</c>.</exception> 636/// <exception cref="ArgumentNullException"><paramref name="s" /> is <c>null</c>.</exception> 648/// <exception cref="ArgumentNullException"><paramref name="s" /> is <c>null</c>.</exception> 666/// <exception cref="ArgumentNullException"><paramref name="s" /> is <c>null</c>.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.cs (2)
23/// <exception cref="ArgumentNullException"><paramref name="handler"/> is <see langword="null"/>.</exception> 40ArgumentNullException.ThrowIfNull(handler);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (2)
215ArgumentNullException.ThrowIfNull(array); 303ArgumentNullException.ThrowIfNull(array);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (3)
36ArgumentNullException.ThrowIfNull(componentAssemblyPath); 112ArgumentNullException.ThrowIfNull(assemblyName); 160ArgumentNullException.ThrowIfNull(unmanagedDllName);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (5)
306ArgumentNullException.ThrowIfNull(assemblyPath); 323ArgumentNullException.ThrowIfNull(assemblyName); 336ArgumentNullException.ThrowIfNull(assemblyPath); 354ArgumentNullException.ThrowIfNull(nativeImagePath); 383ArgumentNullException.ThrowIfNull(assembly);
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (9)
32ArgumentNullException.ThrowIfNull(type); 33ArgumentNullException.ThrowIfNull(converter); 61ArgumentNullException.ThrowIfNull(value); 72ArgumentNullException.ThrowIfNull(value); 84ArgumentNullException.ThrowIfNull(type); 135ArgumentNullException.ThrowIfNull(name); 136ArgumentNullException.ThrowIfNull(type); 285ArgumentNullException.ThrowIfNull(name); 337ArgumentNullException.ThrowIfNull(type);
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
98ArgumentNullException.ThrowIfNull(version);
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\TargetFrameworkAttribute.cs (1)
18ArgumentNullException.ThrowIfNull(frameworkName);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (8)
60ArgumentNullException.ThrowIfNull(attributeType); 100ArgumentNullException.ThrowIfNull(value); 193ArgumentNullException.ThrowIfNull(attributeType); 203ArgumentNullException.ThrowIfNull(value); 414ArgumentNullException.ThrowIfNull(name); 439ArgumentNullException.ThrowIfNull(providedArgs); 745ArgumentNullException.ThrowIfNull(genericArguments); 749ArgumentNullException.ThrowIfNull(genericArguments[i], null);
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValuesDebugView.cs (1)
14ArgumentNullException.ThrowIfNull(values);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
37ArgumentNullException.ThrowIfNull(value, nameof(values)); 48ArgumentNullException.ThrowIfNull(value, nameof(values));
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
27ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (10)
36ArgumentNullException.ThrowIfNull(tag); 46ArgumentNullException.ThrowIfNull(tag); 65ArgumentNullException.ThrowIfNull(value, nameof(Tag)); 193ArgumentNullException.ThrowIfNull(name); 194ArgumentNullException.ThrowIfNull(value); 207ArgumentNullException.ThrowIfNull(child); 475ArgumentNullException.ThrowIfNull(name); 506ArgumentNullException.ThrowIfNull(tag); 525ArgumentNullException.ThrowIfNull(tag); 548ArgumentNullException.ThrowIfNull(xml);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (5)
540ArgumentNullException.ThrowIfNull(value); 581ArgumentNullException.ThrowIfNull(value); 1101ArgumentNullException.ThrowIfNull(value); 1109ArgumentNullException.ThrowIfNull(value); 1159ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\String.cs (6)
99ArgumentNullException.ThrowIfNull(value); 212ArgumentNullException.Throw(nameof(value)); 271ArgumentNullException.Throw(nameof(value)); 399ArgumentNullException.ThrowIfNull(str); 418ArgumentNullException.ThrowIfNull(destination); 758ArgumentNullException.ThrowIfNull(s);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (21)
79ArgumentNullException.ThrowIfNull(args); 153ArgumentNullException.ThrowIfNull(values); 381ArgumentNullException.ThrowIfNull(values); 478ArgumentNullException.Throw(format is null ? nameof(format) : nameof(args)); 518ArgumentNullException.Throw(format is null ? nameof(format) : nameof(args)); 539ArgumentNullException.ThrowIfNull(format); 556/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 560ArgumentNullException.ThrowIfNull(format); 576/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 580ArgumentNullException.ThrowIfNull(format); 598/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 602ArgumentNullException.ThrowIfNull(format); 615/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 616/// <exception cref="ArgumentNullException"><paramref name="args"/> is null.</exception> 620ArgumentNullException.ThrowIfNull(format); 621ArgumentNullException.ThrowIfNull(args); 633/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 637ArgumentNullException.ThrowIfNull(format); 697ArgumentNullException.ThrowIfNull(value); 777ArgumentNullException.ThrowIfNull(value); 1512ArgumentNullException.ThrowIfNull(replacementText);
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
48ArgumentNullException.ThrowIfNull(culture); 55ArgumentNullException.ThrowIfNull(culture); 197ArgumentNullException.ThrowIfNull(obj); 270ArgumentNullException.ThrowIfNull(obj);
src\libraries\System.Private.CoreLib\src\System\StringNormalizationExtensions.cs (2)
32ArgumentNullException.ThrowIfNull(strInput); 66ArgumentNullException.ThrowIfNull(strInput);
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (2)
71/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 75ArgumentNullException.ThrowIfNull(format);
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (8)
36ArgumentNullException.ThrowIfNull(value); 99ArgumentNullException.ThrowIfNull(bytes); 161ArgumentNullException.ThrowIfNull(bytes); 162ArgumentNullException.ThrowIfNull(chars); 222ArgumentNullException.ThrowIfNull(bytes); 223ArgumentNullException.ThrowIfNull(chars); 273ArgumentNullException.ThrowIfNull(bytes); 274ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (10)
51ArgumentNullException.ThrowIfNull(bytes); 67ArgumentNullException.ThrowIfNull(bytes); 89ArgumentNullException.ThrowIfNull(bytes); 90ArgumentNullException.ThrowIfNull(chars); 118ArgumentNullException.ThrowIfNull(bytes); 119ArgumentNullException.ThrowIfNull(chars); 139ArgumentNullException.ThrowIfNull(bytes); 140ArgumentNullException.ThrowIfNull(chars); 171ArgumentNullException.ThrowIfNull(bytes); 172ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderReplacementFallback.cs (1)
23ArgumentNullException.ThrowIfNull(replacement);
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (8)
36ArgumentNullException.ThrowIfNull(value); 96ArgumentNullException.ThrowIfNull(chars); 158ArgumentNullException.ThrowIfNull(chars); 159ArgumentNullException.ThrowIfNull(bytes); 219ArgumentNullException.ThrowIfNull(chars); 220ArgumentNullException.ThrowIfNull(bytes); 272ArgumentNullException.ThrowIfNull(chars); 273ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (10)
46ArgumentNullException.ThrowIfNull(chars); 66ArgumentNullException.ThrowIfNull(chars); 79ArgumentNullException.ThrowIfNull(chars); 80ArgumentNullException.ThrowIfNull(bytes); 107ArgumentNullException.ThrowIfNull(chars); 108ArgumentNullException.ThrowIfNull(bytes); 125ArgumentNullException.ThrowIfNull(chars); 126ArgumentNullException.ThrowIfNull(bytes); 157ArgumentNullException.ThrowIfNull(chars); 158ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (1)
23ArgumentNullException.ThrowIfNull(replacement);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (24)
174ArgumentNullException.ThrowIfNull(bytes); 187ArgumentNullException.ThrowIfNull(srcEncoding); 188ArgumentNullException.ThrowIfNull(dstEncoding); 189ArgumentNullException.ThrowIfNull(bytes); 479ArgumentNullException.ThrowIfNull(value); 493ArgumentNullException.ThrowIfNull(value); 527ArgumentNullException.ThrowIfNull(chars); 552ArgumentNullException.ThrowIfNull(s); 573ArgumentNullException.ThrowIfNull(chars); 594ArgumentNullException.ThrowIfNull(chars); 626ArgumentNullException.ThrowIfNull(s); 640ArgumentNullException.ThrowIfNull(s); 696ArgumentNullException.ThrowIfNull(chars); 697ArgumentNullException.ThrowIfNull(bytes); 759ArgumentNullException.ThrowIfNull(bytes); 774ArgumentNullException.ThrowIfNull(bytes); 796ArgumentNullException.ThrowIfNull(bytes); 845ArgumentNullException.ThrowIfNull(bytes); 846ArgumentNullException.ThrowIfNull(chars); 906ArgumentNullException.ThrowIfNull(bytes); 1000ArgumentNullException.ThrowIfNull(bytes); 1081ArgumentNullException.ThrowIfNull(innerStream); 1082ArgumentNullException.ThrowIfNull(innerStreamEncoding); 1083ArgumentNullException.ThrowIfNull(outerStreamEncoding);
src\libraries\System.Private.CoreLib\src\System\Text\EncodingInfo.cs (3)
20ArgumentNullException.ThrowIfNull(provider); 21ArgumentNullException.ThrowIfNull(name); 22ArgumentNullException.ThrowIfNull(displayName);
src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
48ArgumentNullException.ThrowIfNull(provider);
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
33ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (24)
168ArgumentNullException.ThrowIfNull(info); 225ArgumentNullException.ThrowIfNull(info); 731ArgumentNullException.Throw(nameof(value)); 777ArgumentNullException.Throw(nameof(value)); 813ArgumentNullException.Throw(nameof(value)); 872ArgumentNullException.ThrowIfNull(destination); 1358ArgumentNullException.Throw(nameof(value)); 1450ArgumentNullException.Throw(format is null ? nameof(format) : nameof(args)); 1463/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1498ArgumentNullException.Throw(format is null ? nameof(format) : nameof(args)); 1512/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1521ArgumentNullException.ThrowIfNull(format); 1800/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1804ArgumentNullException.ThrowIfNull(format); 1820/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1824ArgumentNullException.ThrowIfNull(format); 1842/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1846ArgumentNullException.ThrowIfNull(format); 1859/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1860/// <exception cref="ArgumentNullException"><paramref name="args"/> is null.</exception> 1864ArgumentNullException.ThrowIfNull(format); 1865ArgumentNullException.ThrowIfNull(args); 1877/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 1881ArgumentNullException.ThrowIfNull(format);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (15)
87ArgumentNullException.ThrowIfNull(chars); 127ArgumentNullException.ThrowIfNull(chars); 143ArgumentNullException.ThrowIfNull(s); 144ArgumentNullException.ThrowIfNull(bytes); 181ArgumentNullException.ThrowIfNull(chars); 182ArgumentNullException.ThrowIfNull(bytes); 215ArgumentNullException.ThrowIfNull(chars); 216ArgumentNullException.ThrowIfNull(bytes); 234ArgumentNullException.ThrowIfNull(bytes); 258ArgumentNullException.ThrowIfNull(bytes); 273ArgumentNullException.ThrowIfNull(bytes); 274ArgumentNullException.ThrowIfNull(chars); 307ArgumentNullException.ThrowIfNull(bytes); 308ArgumentNullException.ThrowIfNull(chars); 326ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (15)
95ArgumentNullException.ThrowIfNull(chars); 135ArgumentNullException.ThrowIfNull(chars); 151ArgumentNullException.ThrowIfNull(s); 152ArgumentNullException.ThrowIfNull(bytes); 189ArgumentNullException.ThrowIfNull(chars); 190ArgumentNullException.ThrowIfNull(bytes); 223ArgumentNullException.ThrowIfNull(chars); 224ArgumentNullException.ThrowIfNull(bytes); 242ArgumentNullException.ThrowIfNull(bytes); 266ArgumentNullException.ThrowIfNull(bytes); 281ArgumentNullException.ThrowIfNull(bytes); 282ArgumentNullException.ThrowIfNull(chars); 315ArgumentNullException.ThrowIfNull(bytes); 316ArgumentNullException.ThrowIfNull(chars); 334ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (15)
131ArgumentNullException.ThrowIfNull(chars); 171ArgumentNullException.ThrowIfNull(chars); 187ArgumentNullException.ThrowIfNull(s); 188ArgumentNullException.ThrowIfNull(bytes); 225ArgumentNullException.ThrowIfNull(chars); 226ArgumentNullException.ThrowIfNull(bytes); 259ArgumentNullException.ThrowIfNull(chars); 260ArgumentNullException.ThrowIfNull(bytes); 278ArgumentNullException.ThrowIfNull(bytes); 302ArgumentNullException.ThrowIfNull(bytes); 317ArgumentNullException.ThrowIfNull(bytes); 318ArgumentNullException.ThrowIfNull(chars); 351ArgumentNullException.ThrowIfNull(bytes); 352ArgumentNullException.ThrowIfNull(chars); 370ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
16ArgumentNullException.ThrowIfNull(format);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (10)
132/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 156/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 159ArgumentNullException.ThrowIfNull(callback); 186/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 225/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 249/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 261/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 284/// <exception cref="ArgumentNullException"><paramref name="callback"/> is null.</exception> 289ArgumentNullException.ThrowIfNull(callback);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (4)
152/// <exception cref="ArgumentNullException"><paramref name="timeProvider"/> is null.</exception> 161ArgumentNullException.ThrowIfNull(timeProvider); 871/// <exception cref="ArgumentNullException"><paramref name="tokens"/> is null.</exception> 874ArgumentNullException.ThrowIfNull(tokens);
src\libraries\System.Private.CoreLib\src\System\Threading\CompressedStack.cs (1)
39ArgumentNullException.ThrowIfNull(compressedStack);
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (2)
116ArgumentNullException.ThrowIfNull(nativeOverlappedPtr); 124ArgumentNullException.ThrowIfNull(nativeOverlappedPtr);
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
48/// <exception cref="ArgumentNullException"><paramref name="timeProvider"/> is null</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (2)
490ArgumentNullException.ThrowIfNull(waitObject); 491ArgumentNullException.ThrowIfNull(callBack);
src\libraries\System.Private.CoreLib\src\System\Threading\PreAllocatedOverlapped.Unix.cs (3)
42/// <exception cref="ArgumentNullException"> 85/// <exception cref="ArgumentNullException"> 99ArgumentNullException.ThrowIfNull(callback);
src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (4)
259/// <exception cref="ArgumentNullException">The <paramref name="condition"/> argument is null.</exception> 279/// <exception cref="ArgumentNullException">The <paramref name="condition"/> argument is null.</exception> 304/// <exception cref="ArgumentNullException">The <paramref name="condition"/> argument is null.</exception> 314ArgumentNullException.ThrowIfNull(condition);
src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationContext.cs (1)
50ArgumentNullException.ThrowIfNull(waitHandles);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
102ArgumentNullException.ThrowIfNull(taskScheduler);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (30)
566ArgumentNullException.ThrowIfNull(timeProvider); 586ArgumentNullException.ThrowIfNull(timeProvider); 628/// <exception cref="ArgumentNullException"> 651/// <exception cref="ArgumentNullException"> 676/// <exception cref="ArgumentNullException"> 679/// <exception cref="ArgumentNullException"> 708/// <exception cref="ArgumentNullException"> 745/// <exception cref="ArgumentNullException"> 752/// <exception cref="ArgumentNullException"> 809/// <exception cref="ArgumentNullException"> 833/// <exception cref="ArgumentNullException"> 859/// <exception cref="ArgumentNullException"> 862/// <exception cref="ArgumentNullException"> 892/// <exception cref="ArgumentNullException"> 930/// <exception cref="ArgumentNullException"> 937/// <exception cref="ArgumentNullException"> 997/// <exception cref="ArgumentNullException"> 1023/// <exception cref="ArgumentNullException"> 1053/// <exception cref="ArgumentNullException"> 1056/// <exception cref="ArgumentNullException"> 1094/// <exception cref="ArgumentNullException"> 1141/// <exception cref="ArgumentNullException"> 1148/// <exception cref="ArgumentNullException"> 1211/// <exception cref="ArgumentNullException"> 1238/// <exception cref="ArgumentNullException"> 1270/// <exception cref="ArgumentNullException"> 1273/// <exception cref="ArgumentNullException"> 1313/// <exception cref="ArgumentNullException"> 1362/// <exception cref="ArgumentNullException"> 1369/// <exception cref="ArgumentNullException">
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (69)
246/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 270/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 299/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 333/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 336/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 367/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 393/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 424/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 460/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 463/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 554/// <exception cref="ArgumentNullException">The exception that is thrown when the 556/// <exception cref="ArgumentNullException">The exception that is thrown when the 575/// <exception cref="ArgumentNullException">The exception that is thrown when the 577/// <exception cref="ArgumentNullException">The exception that is thrown when the 606/// <exception cref="ArgumentNullException">The exception that is thrown when the 608/// <exception cref="ArgumentNullException">The exception that is thrown when the 610/// <exception cref="ArgumentNullException">The exception that is thrown when the 704/// <exception cref="ArgumentNullException">The exception that is thrown when the 706/// <exception cref="ArgumentNullException">The exception that is thrown when the 730/// <exception cref="ArgumentNullException">The exception that is thrown when the 732/// <exception cref="ArgumentNullException">The exception that is thrown when the 815/// <exception cref="ArgumentNullException">The exception that is thrown when the 817/// <exception cref="ArgumentNullException">The exception that is thrown when the 846/// <exception cref="ArgumentNullException">The exception that is thrown when the 848/// <exception cref="ArgumentNullException">The exception that is thrown when the 936/// <exception cref="ArgumentNullException">The exception that is thrown when the 938/// <exception cref="ArgumentNullException">The exception that is thrown when the 971/// <exception cref="ArgumentNullException">The exception that is thrown when the 973/// <exception cref="ArgumentNullException">The exception that is thrown when the 1065/// <exception cref="ArgumentNullException">The exception that is thrown when the 1067/// <exception cref="ArgumentNullException">The exception that is thrown when the 1104/// <exception cref="ArgumentNullException">The exception that is thrown when the 1106/// <exception cref="ArgumentNullException">The exception that is thrown when the 1340/// <exception cref="ArgumentNullException">The exception that is thrown when the 1342/// <exception cref="ArgumentNullException">The exception that is thrown when the 1365/// <exception cref="ArgumentNullException">The exception that is thrown when the 1367/// <exception cref="ArgumentNullException">The exception that is thrown when the 1394/// <exception cref="ArgumentNullException">The exception that is thrown when the 1396/// <exception cref="ArgumentNullException">The exception that is thrown when the 1433/// <exception cref="ArgumentNullException">The exception that is thrown when the 1435/// <exception cref="ArgumentNullException">The exception that is thrown when the 1437/// <exception cref="ArgumentNullException">The exception that is thrown when the 1471/// <exception cref="ArgumentNullException">The exception that is thrown when the 1473/// <exception cref="ArgumentNullException">The exception that is thrown when the 1497/// <exception cref="ArgumentNullException">The exception that is thrown when the 1499/// <exception cref="ArgumentNullException">The exception that is thrown when the 1528/// <exception cref="ArgumentNullException">The exception that is thrown when the 1530/// <exception cref="ArgumentNullException">The exception that is thrown when the 1569/// <exception cref="ArgumentNullException">The exception that is thrown when the 1571/// <exception cref="ArgumentNullException">The exception that is thrown when the 1573/// <exception cref="ArgumentNullException">The exception that is thrown when the 1710/// <exception cref="ArgumentNullException">The exception that is thrown when the 1712/// <exception cref="ArgumentNullException">The exception that is thrown when the 1735/// <exception cref="ArgumentNullException">The exception that is thrown when the 1737/// <exception cref="ArgumentNullException">The exception that is thrown when the 1764/// <exception cref="ArgumentNullException">The exception that is thrown when the 1766/// <exception cref="ArgumentNullException">The exception that is thrown when the 1803/// <exception cref="ArgumentNullException">The exception that is thrown when the 1805/// <exception cref="ArgumentNullException">The exception that is thrown when the 1807/// <exception cref="ArgumentNullException">The exception that is thrown when the 1841/// <exception cref="ArgumentNullException">The exception that is thrown when the 1843/// <exception cref="ArgumentNullException">The exception that is thrown when the 1867/// <exception cref="ArgumentNullException">The exception that is thrown when the 1869/// <exception cref="ArgumentNullException">The exception that is thrown when the 1898/// <exception cref="ArgumentNullException">The exception that is thrown when the 1900/// <exception cref="ArgumentNullException">The exception that is thrown when the 1939/// <exception cref="ArgumentNullException">The exception that is thrown when the 1941/// <exception cref="ArgumentNullException">The exception that is thrown when the 1943/// <exception cref="ArgumentNullException">The exception that is thrown when the
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (85)
352/// <exception cref="ArgumentNullException">The <paramref name="action"/> argument is null.</exception> 364/// <exception cref="ArgumentNullException">The <paramref name="action"/> argument is null.</exception> 381/// <exception cref="ArgumentNullException"> 402/// <exception cref="ArgumentNullException"> 422/// <exception cref="ArgumentNullException"> 436/// <exception cref="ArgumentNullException"> 456/// <exception cref="ArgumentNullException"> 478/// <exception cref="ArgumentNullException"> 931/// <exception cref="ArgumentNullException"> 1024/// <exception cref="ArgumentNullException">The <paramref name="scheduler"/> parameter 2806/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 2809ArgumentNullException.ThrowIfNull(timeProvider); 2825/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 2828ArgumentNullException.ThrowIfNull(timeProvider); 3638/// <exception cref="ArgumentNullException"> 3660/// <exception cref="ArgumentNullException"> 3684/// <exception cref="ArgumentNullException"> 3687/// <exception cref="ArgumentNullException"> 3716/// <exception cref="ArgumentNullException"> 3753/// <exception cref="ArgumentNullException"> 3760/// <exception cref="ArgumentNullException"> 3816/// <exception cref="ArgumentNullException"> 3839/// <exception cref="ArgumentNullException"> 3864/// <exception cref="ArgumentNullException"> 3867/// <exception cref="ArgumentNullException"> 3897/// <exception cref="ArgumentNullException"> 3935/// <exception cref="ArgumentNullException"> 3942/// <exception cref="ArgumentNullException"> 4001/// <exception cref="ArgumentNullException"> 4027/// <exception cref="ArgumentNullException"> 4057/// <exception cref="ArgumentNullException"> 4060/// <exception cref="ArgumentNullException"> 4092/// <exception cref="ArgumentNullException"> 4132/// <exception cref="ArgumentNullException"> 4139/// <exception cref="ArgumentNullException"> 4201/// <exception cref="ArgumentNullException"> 4228/// <exception cref="ArgumentNullException"> 4259/// <exception cref="ArgumentNullException"> 4262/// <exception cref="ArgumentNullException"> 4295/// <exception cref="ArgumentNullException"> 4336/// <exception cref="ArgumentNullException"> 4343/// <exception cref="ArgumentNullException"> 4691/// <exception cref="ArgumentNullException"> 4694/// <exception cref="ArgumentNullException"> 4723/// <exception cref="ArgumentNullException"> 4754/// <exception cref="ArgumentNullException"> 4802/// <exception cref="ArgumentNullException"> 4840/// <exception cref="ArgumentNullException"> 4885/// <exception cref="ArgumentNullException"> 4920/// <exception cref="ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception> 5175/// <exception cref="ArgumentNullException"> 5203/// <exception cref="ArgumentNullException"> 5238/// <exception cref="ArgumentNullException"> 5267/// <exception cref="ArgumentNullException"> 5300/// <exception cref="ArgumentNullException"> 5522/// <exception cref="ArgumentNullException"> 5537/// <exception cref="ArgumentNullException"> 5554/// <exception cref="ArgumentNullException"> 5569/// <exception cref="ArgumentNullException"> 5587/// <exception cref="ArgumentNullException"> 5602/// <exception cref="ArgumentNullException"> 5633/// <exception cref="ArgumentNullException"> 5649/// <exception cref="ArgumentNullException"> 5693/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 5724/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 5727ArgumentNullException.ThrowIfNull(timeProvider); 5923/// <exception cref="ArgumentNullException"> 5989/// <exception cref="ArgumentNullException"> 6229/// <exception cref="ArgumentNullException"> 6312/// <exception cref="ArgumentNullException"> 6502/// <exception cref="ArgumentNullException"> 6510ArgumentNullException.ThrowIfNull(tasks); 6577/// <exception cref="ArgumentNullException"> 6591/// <exception cref="ArgumentNullException"> 6596ArgumentNullException.ThrowIfNull(task1); 6597ArgumentNullException.ThrowIfNull(task2); 6694/// <exception cref="ArgumentNullException"> 6788/// <exception cref="ArgumentNullException"> 6796ArgumentNullException.ThrowIfNull(tasks); 6826/// <exception cref="ArgumentNullException"> 6842/// <exception cref="ArgumentNullException"> 6860/// <exception cref="ArgumentNullException"><paramref name="tasks"/> is null.</exception> 6864ArgumentNullException.ThrowIfNull(tasks); 6883ArgumentNullException.ThrowIfNull(tasks); 6965ArgumentNullException.ThrowIfNull(tasks);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (7)
80/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null.</exception> 97/// <exception cref="ArgumentNullException">The <paramref name="exceptions"/> argument is null.</exception> 124/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null.</exception> 152/// <exception cref="ArgumentNullException">The <paramref name="exceptions"/> argument is null.</exception> 293/// <exception cref="ArgumentNullException"><paramref name="completedTask"/> is <see langword="null"/>.</exception> 316/// <exception cref="ArgumentNullException"><paramref name="completedTask"/> is <see langword="null"/>.</exception> 324ArgumentNullException.ThrowIfNull(completedTask);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (7)
80/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null.</exception> 97/// <exception cref="ArgumentNullException">The <paramref name="exceptions"/> argument is null.</exception> 124/// <exception cref="ArgumentNullException">The <paramref name="exception"/> argument is null.</exception> 152/// <exception cref="ArgumentNullException">The <paramref name="exceptions"/> argument is null.</exception> 295/// <exception cref="ArgumentNullException"><paramref name="completedTask"/> is <see langword="null"/>.</exception> 318/// <exception cref="ArgumentNullException"><paramref name="completedTask"/> is <see langword="null"/>.</exception> 326ArgumentNullException.ThrowIfNull(completedTask);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExtensions.cs (2)
14ArgumentNullException.ThrowIfNull(task); 30ArgumentNullException.ThrowIfNull(task);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (172)
267/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref name="action"/> 289/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref name="action"/> 316/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 349/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 352/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 383/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 409/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 439/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 474/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 477/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 510/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 538/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 570/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 607/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 610/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 644/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 674/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 708/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 747/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 750/// <exception cref="ArgumentNullException">The exception that is thrown when the <paramref 786/// <exception cref="ArgumentNullException">The exception that is thrown when the 788/// <exception cref="ArgumentNullException">The exception that is thrown when the 809/// <exception cref="ArgumentNullException">The exception that is thrown when the 811/// <exception cref="ArgumentNullException">The exception that is thrown when the 838/// <exception cref="ArgumentNullException">The exception that is thrown when the 840/// <exception cref="ArgumentNullException">The exception that is thrown when the 842/// <exception cref="ArgumentNullException">The exception that is thrown when the 866/// <exception cref="ArgumentNullException">The exception that is thrown when the 868/// <exception cref="ArgumentNullException">The exception that is thrown when the 893/// <exception cref="ArgumentNullException">The exception that is thrown when the 895/// <exception cref="ArgumentNullException">The exception that is thrown when the 925/// <exception cref="ArgumentNullException">The exception that is thrown when the 927/// <exception cref="ArgumentNullException">The exception that is thrown when the 958/// <exception cref="ArgumentNullException">The exception that is thrown when the 960/// <exception cref="ArgumentNullException">The exception that is thrown when the 995/// <exception cref="ArgumentNullException">The exception that is thrown when the 997/// <exception cref="ArgumentNullException">The exception that is thrown when the 1031/// <exception cref="ArgumentNullException">The exception that is thrown when the 1033/// <exception cref="ArgumentNullException">The exception that is thrown when the 1072/// <exception cref="ArgumentNullException">The exception that is thrown when the 1074/// <exception cref="ArgumentNullException">The exception that is thrown when the 1112/// <exception cref="ArgumentNullException">The exception that is thrown when the 1114/// <exception cref="ArgumentNullException">The exception that is thrown when the 1147/// <exception cref="ArgumentNullException">The exception that is thrown when the 1149/// <exception cref="ArgumentNullException">The exception that is thrown when the 1172/// <exception cref="ArgumentNullException">The exception that is thrown when the 1174/// <exception cref="ArgumentNullException">The exception that is thrown when the 1202/// <exception cref="ArgumentNullException">The exception that is thrown when the 1204/// <exception cref="ArgumentNullException">The exception that is thrown when the 1206/// <exception cref="ArgumentNullException">The exception that is thrown when the 1230/// <exception cref="ArgumentNullException">The exception that is thrown when the 1232/// <exception cref="ArgumentNullException">The exception that is thrown when the 1259/// <exception cref="ArgumentNullException">The exception that is thrown when the 1261/// <exception cref="ArgumentNullException">The exception that is thrown when the 1293/// <exception cref="ArgumentNullException">The exception that is thrown when the 1295/// <exception cref="ArgumentNullException">The exception that is thrown when the 1326/// <exception cref="ArgumentNullException">The exception that is thrown when the 1328/// <exception cref="ArgumentNullException">The exception that is thrown when the 1363/// <exception cref="ArgumentNullException">The exception that is thrown when the 1365/// <exception cref="ArgumentNullException">The exception that is thrown when the 1399/// <exception cref="ArgumentNullException">The exception that is thrown when the 1401/// <exception cref="ArgumentNullException">The exception that is thrown when the 1441/// <exception cref="ArgumentNullException">The exception that is thrown when the 1443/// <exception cref="ArgumentNullException">The exception that is thrown when the 1482/// <exception cref="ArgumentNullException">The exception that is thrown when the 1484/// <exception cref="ArgumentNullException">The exception that is thrown when the 1690/// <exception cref="ArgumentNullException">The exception that is thrown when the 1692/// <exception cref="ArgumentNullException">The exception that is thrown when the 1700ArgumentNullException.ThrowIfNull(continuationAction); 1715/// <exception cref="ArgumentNullException">The exception that is thrown when the 1717/// <exception cref="ArgumentNullException">The exception that is thrown when the 1728ArgumentNullException.ThrowIfNull(continuationAction); 1744/// <exception cref="ArgumentNullException">The exception that is thrown when the 1746/// <exception cref="ArgumentNullException">The exception that is thrown when the 1762ArgumentNullException.ThrowIfNull(continuationAction); 1783/// <exception cref="ArgumentNullException">The exception that is thrown when the 1785/// <exception cref="ArgumentNullException">The exception that is thrown when the 1787/// <exception cref="ArgumentNullException">The exception that is thrown when the 1807ArgumentNullException.ThrowIfNull(continuationAction); 1821/// <exception cref="ArgumentNullException">The exception that is thrown when the 1823/// <exception cref="ArgumentNullException">The exception that is thrown when the 1831ArgumentNullException.ThrowIfNull(continuationAction); 1848/// <exception cref="ArgumentNullException">The exception that is thrown when the 1850/// <exception cref="ArgumentNullException">The exception that is thrown when the 1862ArgumentNullException.ThrowIfNull(continuationAction); 1879/// <exception cref="ArgumentNullException">The exception that is thrown when the 1881/// <exception cref="ArgumentNullException">The exception that is thrown when the 1898ArgumentNullException.ThrowIfNull(continuationAction); 1920/// <exception cref="ArgumentNullException">The exception that is thrown when the 1922/// <exception cref="ArgumentNullException">The exception that is thrown when the 1924/// <exception cref="ArgumentNullException">The exception that is thrown when the 1944ArgumentNullException.ThrowIfNull(continuationAction); 1961/// <exception cref="ArgumentNullException">The exception that is thrown when the 1963/// <exception cref="ArgumentNullException">The exception that is thrown when the 1971ArgumentNullException.ThrowIfNull(continuationFunction); 1991/// <exception cref="ArgumentNullException">The exception that is thrown when the 1993/// <exception cref="ArgumentNullException">The exception that is thrown when the 2004ArgumentNullException.ThrowIfNull(continuationFunction); 2024/// <exception cref="ArgumentNullException">The exception that is thrown when the 2026/// <exception cref="ArgumentNullException">The exception that is thrown when the 2042ArgumentNullException.ThrowIfNull(continuationFunction); 2067/// <exception cref="ArgumentNullException">The exception that is thrown when the 2069/// <exception cref="ArgumentNullException">The exception that is thrown when the 2071/// <exception cref="ArgumentNullException">The exception that is thrown when the 2091ArgumentNullException.ThrowIfNull(continuationFunction); 2110/// <exception cref="ArgumentNullException">The exception that is thrown when the 2112/// <exception cref="ArgumentNullException">The exception that is thrown when the 2120ArgumentNullException.ThrowIfNull(continuationFunction); 2140/// <exception cref="ArgumentNullException">The exception that is thrown when the 2142/// <exception cref="ArgumentNullException">The exception that is thrown when the 2154ArgumentNullException.ThrowIfNull(continuationFunction); 2175/// <exception cref="ArgumentNullException">The exception that is thrown when the 2177/// <exception cref="ArgumentNullException">The exception that is thrown when the 2194ArgumentNullException.ThrowIfNull(continuationFunction); 2220/// <exception cref="ArgumentNullException">The exception that is thrown when the 2222/// <exception cref="ArgumentNullException">The exception that is thrown when the 2224/// <exception cref="ArgumentNullException">The exception that is thrown when the 2244ArgumentNullException.ThrowIfNull(continuationFunction); 2406/// <exception cref="ArgumentNullException">The exception that is thrown when the 2408/// <exception cref="ArgumentNullException">The exception that is thrown when the 2416ArgumentNullException.ThrowIfNull(continuationAction); 2431/// <exception cref="ArgumentNullException">The exception that is thrown when the 2433/// <exception cref="ArgumentNullException">The exception that is thrown when the 2444ArgumentNullException.ThrowIfNull(continuationAction); 2460/// <exception cref="ArgumentNullException">The exception that is thrown when the 2462/// <exception cref="ArgumentNullException">The exception that is thrown when the 2478ArgumentNullException.ThrowIfNull(continuationAction); 2499/// <exception cref="ArgumentNullException">The exception that is thrown when the 2501/// <exception cref="ArgumentNullException">The exception that is thrown when the 2503/// <exception cref="ArgumentNullException">The exception that is thrown when the 2523ArgumentNullException.ThrowIfNull(continuationAction); 2541/// <exception cref="ArgumentNullException">The exception that is thrown when the 2543/// <exception cref="ArgumentNullException">The exception that is thrown when the 2551ArgumentNullException.ThrowIfNull(continuationFunction); 2570/// <exception cref="ArgumentNullException">The exception that is thrown when the 2572/// <exception cref="ArgumentNullException">The exception that is thrown when the 2583ArgumentNullException.ThrowIfNull(continuationFunction); 2603/// <exception cref="ArgumentNullException">The exception that is thrown when the 2605/// <exception cref="ArgumentNullException">The exception that is thrown when the 2621ArgumentNullException.ThrowIfNull(continuationFunction); 2646/// <exception cref="ArgumentNullException">The exception that is thrown when the 2648/// <exception cref="ArgumentNullException">The exception that is thrown when the 2650/// <exception cref="ArgumentNullException">The exception that is thrown when the 2670ArgumentNullException.ThrowIfNull(continuationFunction); 2688/// <exception cref="ArgumentNullException">The exception that is thrown when the 2690/// <exception cref="ArgumentNullException">The exception that is thrown when the 2698ArgumentNullException.ThrowIfNull(continuationFunction); 2718/// <exception cref="ArgumentNullException">The exception that is thrown when the 2720/// <exception cref="ArgumentNullException">The exception that is thrown when the 2732ArgumentNullException.ThrowIfNull(continuationFunction); 2753/// <exception cref="ArgumentNullException">The exception that is thrown when the 2755/// <exception cref="ArgumentNullException">The exception that is thrown when the 2772ArgumentNullException.ThrowIfNull(continuationFunction); 2798/// <exception cref="ArgumentNullException">The exception that is thrown when the 2800/// <exception cref="ArgumentNullException">The exception that is thrown when the 2802/// <exception cref="ArgumentNullException">The exception that is thrown when the 2822ArgumentNullException.ThrowIfNull(continuationFunction); 2837/// <exception cref="ArgumentNullException">The exception that is thrown when the 2839/// <exception cref="ArgumentNullException">The exception that is thrown when the 2847ArgumentNullException.ThrowIfNull(continuationAction); 2863/// <exception cref="ArgumentNullException">The exception that is thrown when the 2865/// <exception cref="ArgumentNullException">The exception that is thrown when the 2877ArgumentNullException.ThrowIfNull(continuationAction); 2894/// <exception cref="ArgumentNullException">The exception that is thrown when the 2896/// <exception cref="ArgumentNullException">The exception that is thrown when the 2913ArgumentNullException.ThrowIfNull(continuationAction); 2935/// <exception cref="ArgumentNullException">The exception that is thrown when the 2937/// <exception cref="ArgumentNullException">The exception that is thrown when the 2939/// <exception cref="ArgumentNullException">The exception that is thrown when the 2959ArgumentNullException.ThrowIfNull(continuationAction); 2968ArgumentNullException.ThrowIfNull(tasks); 2987ArgumentNullException.ThrowIfNull(tasks);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (3)
58/// <exception cref="ArgumentNullException">The <paramref name="task"/> argument is null.</exception> 97/// <exception cref="ArgumentNullException">The <paramref name="task"/> argument is 208/// <exception cref="ArgumentNullException">The <paramref name="task"/> argument is null.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (6)
133ArgumentNullException.ThrowIfNull(start); 142ArgumentNullException.ThrowIfNull(start); 153ArgumentNullException.ThrowIfNull(start); 162ArgumentNullException.ThrowIfNull(start); 284ArgumentNullException.ThrowIfNull(value); 722ArgumentNullException.ThrowIfNull(slot);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (4)
93/// <exception cref="ArgumentNullException"> 98ArgumentNullException.ThrowIfNull(valueFactory); 112/// <exception cref="ArgumentNullException"> 117ArgumentNullException.ThrowIfNull(valueFactory);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Portable.cs (4)
27ArgumentNullException.ThrowIfNull(callback); 37ArgumentNullException.ThrowIfNull(preAllocated); 61ArgumentNullException.ThrowIfNull(overlapped); 78ArgumentNullException.ThrowIfNull(overlapped);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (7)
47/// <exception cref="ArgumentNullException"> 76ArgumentNullException.ThrowIfNull(handle); 119/// <exception cref="ArgumentNullException"> 167/// <exception cref="ArgumentNullException"> 194/// <exception cref="ArgumentNullException"> 225/// <exception cref="ArgumentNullException"> 247/// <exception cref="ArgumentNullException">
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (3)
100ArgumentNullException.ThrowIfNull(queue); 906ArgumentNullException.ThrowIfNull(callback); 960ArgumentNullException.ThrowIfNull(notifyObject);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (3)
292ArgumentNullException.ThrowIfNull(waitHandles); 452ArgumentNullException.ThrowIfNull(toSignal); 453ArgumentNullException.ThrowIfNull(toWaitOn);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleExtensions.cs (2)
17ArgumentNullException.ThrowIfNull(waitHandle); 29ArgumentNullException.ThrowIfNull(waitHandle);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (6)
731ArgumentNullException.ThrowIfNull(s, ExceptionArgument.input); 745ArgumentNullException.ThrowIfNull(input, ExceptionArgument.input); 746ArgumentNullException.ThrowIfNull(format, ExceptionArgument.format); 760ArgumentNullException.ThrowIfNull(input, ExceptionArgument.input); 761ArgumentNullException.ThrowIfNull(format, ExceptionArgument.format); 773ArgumentNullException.ThrowIfNull(input, ExceptionArgument.input);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (2)
265ArgumentNullException.ThrowIfNull(info); 278ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (9)
661ArgumentNullException.ThrowIfNull(id); 707ArgumentNullException.ThrowIfNull(destinationTimeZone); 727ArgumentNullException.ThrowIfNull(destinationTimeZone); 753ArgumentNullException.ThrowIfNull(sourceTimeZone); 754ArgumentNullException.ThrowIfNull(destinationTimeZone); 866ArgumentNullException.ThrowIfNull(source); 947ArgumentNullException.ThrowIfNull(other); 1146ArgumentNullException.ThrowIfNull(info); 1159ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (2)
131ArgumentNullException.ThrowIfNull(info); 143ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\Type.cs (19)
189ArgumentNullException.ThrowIfNull(types); 193ArgumentNullException.ThrowIfNull(types[i], nameof(types)); 267/// <exception cref="ArgumentNullException"><paramref name="member"/> is <see langword="null"/>.</exception> 274ArgumentNullException.ThrowIfNull(member); 300ArgumentNullException.ThrowIfNull(name); 335ArgumentNullException.ThrowIfNull(name); 336ArgumentNullException.ThrowIfNull(types); 340ArgumentNullException.ThrowIfNull(types[i], nameof(types)); 379ArgumentNullException.ThrowIfNull(name); 381ArgumentNullException.ThrowIfNull(types); 384ArgumentNullException.ThrowIfNull(types[i], nameof(types)); 416ArgumentNullException.ThrowIfNull(name); 426ArgumentNullException.ThrowIfNull(name); 443ArgumentNullException.ThrowIfNull(name); 444ArgumentNullException.ThrowIfNull(types); 475ArgumentNullException.ThrowIfNull(o); 482ArgumentNullException.ThrowIfNull(args); 656ArgumentNullException.ThrowIfNull(genericTypeDefinition); 657ArgumentNullException.ThrowIfNull(typeArguments);
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (2)
22ArgumentNullException.ThrowIfNull(value); 68ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
121ArgumentNullException.ThrowIfNull(filter);
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (2)
18ArgumentNullException.ThrowIfNull(target); 19ArgumentNullException.ThrowIfNull(flds);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
81ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
36ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
285ArgumentNullException.ThrowIfNull(input);
src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (2)
59ArgumentNullException.ThrowIfNull(info); 71ArgumentNullException.ThrowIfNull(info);
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (2)
43ArgumentNullException.ThrowIfNull(info); 70ArgumentNullException.ThrowIfNull(info);
src\System\Attribute.CoreCLR.cs (20)
452ArgumentNullException.ThrowIfNull(element); 453ArgumentNullException.ThrowIfNull(attributeType); 473ArgumentNullException.ThrowIfNull(element); 490ArgumentNullException.ThrowIfNull(element); 491ArgumentNullException.ThrowIfNull(attributeType); 539ArgumentNullException.ThrowIfNull(element); 540ArgumentNullException.ThrowIfNull(attributeType); 557ArgumentNullException.ThrowIfNull(element); 576ArgumentNullException.ThrowIfNull(element); 577ArgumentNullException.ThrowIfNull(attributeType); 639ArgumentNullException.ThrowIfNull(element); 646ArgumentNullException.ThrowIfNull(element); 647ArgumentNullException.ThrowIfNull(attributeType); 662ArgumentNullException.ThrowIfNull(element); 663ArgumentNullException.ThrowIfNull(attributeType); 704ArgumentNullException.ThrowIfNull(element); 705ArgumentNullException.ThrowIfNull(attributeType); 720ArgumentNullException.ThrowIfNull(element); 732ArgumentNullException.ThrowIfNull(element); 733ArgumentNullException.ThrowIfNull(attributeType);
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (4)
38ArgumentNullException.ThrowIfNull(array); 63ArgumentNullException.ThrowIfNull(key); 69ArgumentNullException.ThrowIfNull(key); 86ArgumentNullException.ThrowIfNull(key);
src\System\Delegate.CoreCLR.cs (15)
39ArgumentNullException.ThrowIfNull(target); 40ArgumentNullException.ThrowIfNull(method); 59ArgumentNullException.ThrowIfNull(target); 60ArgumentNullException.ThrowIfNull(method); 227ArgumentNullException.ThrowIfNull(type); 228ArgumentNullException.ThrowIfNull(target); 229ArgumentNullException.ThrowIfNull(method); 262ArgumentNullException.ThrowIfNull(type); 263ArgumentNullException.ThrowIfNull(target); 264ArgumentNullException.ThrowIfNull(method); 298ArgumentNullException.ThrowIfNull(type); 299ArgumentNullException.ThrowIfNull(method); 333ArgumentNullException.ThrowIfNull(type); 334ArgumentNullException.ThrowIfNull(method); 369ArgumentNullException.ThrowIfNull(type);
src\System\GC.CoreCLR.cs (8)
158ArgumentNullException.ThrowIfNull(obj); 300ArgumentNullException.ThrowIfNull(obj, nameof(wo)); 355ArgumentNullException.ThrowIfNull(obj); 373ArgumentNullException.ThrowIfNull(obj); 661ArgumentNullException.ThrowIfNull(notification); 701/// <exception cref="ArgumentNullException">The <paramref name="callback"/> argument is null.</exception> 713ArgumentNullException.ThrowIfNull(callback); 773ArgumentNullException.ThrowIfNull(notification);
src\System\Reflection\Assembly.CoreCLR.cs (2)
29ArgumentNullException.ThrowIfNull(partialName); 50ArgumentNullException.ThrowIfNull(assemblyRef);
src\System\Reflection\Emit\CustomAttributeBuilder.cs (6)
57ArgumentNullException.ThrowIfNull(con); 58ArgumentNullException.ThrowIfNull(constructorArgs); 59ArgumentNullException.ThrowIfNull(namedProperties); 60ArgumentNullException.ThrowIfNull(propertyValues); 61ArgumentNullException.ThrowIfNull(namedFields); 62ArgumentNullException.ThrowIfNull(fieldValues);
src\System\Reflection\Emit\DynamicILGenerator.cs (12)
37ArgumentNullException.ThrowIfNull(localType); 57ArgumentNullException.ThrowIfNull(meth); 111ArgumentNullException.ThrowIfNull(con); 131ArgumentNullException.ThrowIfNull(type); 142ArgumentNullException.ThrowIfNull(field); 158ArgumentNullException.ThrowIfNull(str); 249ArgumentNullException.ThrowIfNull(methodInfo); 287ArgumentNullException.ThrowIfNull(signature); 357ArgumentNullException.ThrowIfNull(exceptionType); 895ArgumentNullException.ThrowIfNull(code); 912ArgumentNullException.ThrowIfNull(exceptions); 927ArgumentNullException.ThrowIfNull(localSignature);
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (1)
41ArgumentNullException.ThrowIfNull(name);
src\System\Reflection\Emit\RuntimeEventBuilder.cs (1)
50ArgumentNullException.ThrowIfNull(mdBuilder);
src\System\Reflection\Emit\RuntimeILGenerator.cs (8)
490ArgumentNullException.ThrowIfNull(meth); 607ArgumentNullException.ThrowIfNull(methodInfo); 641ArgumentNullException.ThrowIfNull(signature); 674ArgumentNullException.ThrowIfNull(con); 780ArgumentNullException.ThrowIfNull(labels); 825ArgumentNullException.ThrowIfNull(local); 1031ArgumentNullException.ThrowIfNull(exceptionType); 1184ArgumentNullException.ThrowIfNull(localType);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (4)
69ArgumentNullException.ThrowIfNull(mod); 75ArgumentNullException.ThrowIfNull(t, nameof(parameterTypes)); 135ArgumentNullException.ThrowIfNull(il); 529ArgumentNullException.ThrowIfNull(name, nameof(names));
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (6)
896ArgumentNullException.ThrowIfNull(type); 957ArgumentNullException.ThrowIfNull(method); 1174ArgumentNullException.ThrowIfNull(field); 1249ArgumentNullException.ThrowIfNull(stringConstant); 1259ArgumentNullException.ThrowIfNull(signature); 1271ArgumentNullException.ThrowIfNull(sigBytes);
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
71ArgumentNullException.ThrowIfNull(mdBuilder);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (6)
30ArgumentNullException.ThrowIfNull(con); 38ArgumentNullException.ThrowIfNull(customBuilder); 412ArgumentNullException.ThrowIfNull(interfaces[i], nameof(interfaces)); 994ArgumentNullException.ThrowIfNull(attributeType); 1007ArgumentNullException.ThrowIfNull(attributeType); 1044ArgumentNullException.ThrowIfNull(name, nameof(names));
src\System\Reflection\Emit\SignatureHelper.cs (6)
168ArgumentNullException.ThrowIfNull(module); 169ArgumentNullException.ThrowIfNull(type); 282ArgumentNullException.ThrowIfNull(t, nameof(optionalCustomModifiers)); 304ArgumentNullException.ThrowIfNull(t, nameof(requiredCustomModifiers)); 797ArgumentNullException.ThrowIfNull(argument); 825ArgumentNullException.ThrowIfNull(argument);
src\System\Reflection\MdImport.cs (1)
309ArgumentNullException.ThrowIfNull(module);
src\System\Reflection\MemberInfo.Internal.cs (1)
12ArgumentNullException.ThrowIfNull(other);
src\System\Reflection\Metadata\AssemblyExtensions.cs (1)
33ArgumentNullException.ThrowIfNull(assembly);
src\System\Reflection\Metadata\MetadataUpdater.cs (2)
34/// <exception cref="ArgumentNullException">The assembly argument is null.</exception> 41ArgumentNullException.ThrowIfNull(assembly);
src\System\Reflection\RuntimeAssembly.cs (4)
286ArgumentNullException.ThrowIfNull(type); 331ArgumentNullException.ThrowIfNull(attributeType); 341ArgumentNullException.ThrowIfNull(attributeType); 644ArgumentNullException.ThrowIfNull(culture);
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (2)
136ArgumentNullException.ThrowIfNull(attributeType); 146ArgumentNullException.ThrowIfNull(attributeType);
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
669ArgumentNullException.ThrowIfNull(customAttributeModule);
src\System\Reflection\RuntimeEventInfo.cs (2)
96ArgumentNullException.ThrowIfNull(attributeType); 106ArgumentNullException.ThrowIfNull(attributeType);
src\System\Reflection\RuntimeFieldInfo.cs (2)
67ArgumentNullException.ThrowIfNull(attributeType); 77ArgumentNullException.ThrowIfNull(attributeType);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (5)
179ArgumentNullException.ThrowIfNull(attributeType); 189ArgumentNullException.ThrowIfNull(attributeType); 381ArgumentNullException.ThrowIfNull(delegateType); 399ArgumentNullException.ThrowIfNull(methodInstantiation); 410ArgumentNullException.ThrowIfNull(methodInstantiationElem, null);
src\System\Reflection\RuntimeModule.cs (3)
360ArgumentNullException.ThrowIfNull(attributeType); 370ArgumentNullException.ThrowIfNull(attributeType); 465ArgumentNullException.ThrowIfNull(name);
src\System\Reflection\RuntimeParameterInfo.cs (2)
465ArgumentNullException.ThrowIfNull(attributeType); 478ArgumentNullException.ThrowIfNull(attributeType);
src\System\Reflection\RuntimePropertyInfo.cs (2)
144ArgumentNullException.ThrowIfNull(attributeType); 154ArgumentNullException.ThrowIfNull(attributeType);
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
52ArgumentNullException.ThrowIfNull(typeName);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
341ArgumentNullException.ThrowIfNull(type); 554/// <exception cref="ArgumentNullException">The specified type handle is <c>null</c>.</exception>
src\System\Runtime\ControlledExecution.CoreCLR.cs (2)
25/// <exception cref="ArgumentNullException">The <paramref name="action"/> argument is null.</exception> 45ArgumentNullException.ThrowIfNull(action);
src\System\Runtime\InteropServices\ComWrappers.CoreCLR.cs (1)
98catch (ArgumentNullException)
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (5)
43ArgumentNullException.ThrowIfNull(t); 246ArgumentNullException.ThrowIfNull(ptr); 247ArgumentNullException.ThrowIfNull(structure); 307ArgumentNullException.ThrowIfNull(ptr); 308ArgumentNullException.ThrowIfNull(structuretype);
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (1)
152ArgumentNullException.ThrowIfNull(assembly);
src\System\RuntimeType.CoreCLR.cs (10)
2715ArgumentNullException.ThrowIfNull(interfaceType); 2859ArgumentNullException.ThrowIfNull(name); 2896ArgumentNullException.ThrowIfNull(name); 2923ArgumentNullException.ThrowIfNull(name); 2966ArgumentNullException.ThrowIfNull(fullname); 3001ArgumentNullException.ThrowIfNull(fullname); 3030ArgumentNullException.ThrowIfNull(name); 3112ArgumentNullException.ThrowIfNull(member); 3267ArgumentNullException.ThrowIfNull(type); 3573ArgumentNullException.ThrowIfNull(typeArguments);
src\System\String.CoreCLR.cs (2)
41ArgumentNullException.ThrowIfNull(str); 51ArgumentNullException.ThrowIfNull(str);
src\System\StubHelpers.cs (1)
515ArgumentNullException.ThrowIfNull(handle);
src\System\Threading\Monitor.CoreCLR.cs (12)
35ArgumentNullException.ThrowIfNull(obj, null); 117ArgumentNullException.ThrowIfNull(obj, null); 156ArgumentNullException.ThrowIfNull(obj, null); 169ArgumentNullException.ThrowIfNull(obj, null); 194ArgumentNullException.ThrowIfNull(obj, null); 238ArgumentNullException.ThrowIfNull(obj, null); 253ArgumentNullException.ThrowIfNull(obj, null); 278ArgumentNullException.ThrowIfNull(obj, null); 285ArgumentNullException.ThrowIfNull(obj); 309ArgumentNullException.ThrowIfNull(obj); 325ArgumentNullException.ThrowIfNull(obj); 337ArgumentNullException.ThrowIfNull(obj);
System.Private.CoreLib.Generators (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
System.Private.DataContractSerialization (177)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
45ArgumentNullException.ThrowIfNull(type);
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (2)
44ArgumentNullException.ThrowIfNull(value); 54ArgumentNullException.ThrowIfNull(value);
System\Runtime\Serialization\DataContractSerializer.cs (1)
124ArgumentNullException.ThrowIfNull(type);
System\Runtime\Serialization\DataContractSet.cs (1)
38ArgumentNullException.ThrowIfNull(dataContractSet);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (3)
239ArgumentNullException.ThrowIfNull(stream); 292ArgumentNullException.ThrowIfNull(stream); 585ArgumentNullException.ThrowIfNull(type);
System\Runtime\Serialization\Json\DateTimeFormat.cs (2)
37ArgumentNullException.ThrowIfNull(formatString); 38ArgumentNullException.ThrowIfNull(formatProvider);
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
41ArgumentNullException.ThrowIfNull(encoding);
System\Runtime\Serialization\Json\JsonReaderWriterFactory.cs (1)
24ArgumentNullException.ThrowIfNull(buffer);
System\Runtime\Serialization\Json\XmlJsonReader.cs (5)
719ArgumentNullException.ThrowIfNull(buffer); 741ArgumentNullException.ThrowIfNull(chars); 777ArgumentNullException.ThrowIfNull(buffer); 800ArgumentNullException.ThrowIfNull(stream); 818ArgumentNullException.ThrowIfNull(array);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (15)
95ArgumentNullException.ThrowIfNull(indentChars); 219ArgumentNullException.ThrowIfNull(ns); 238ArgumentNullException.ThrowIfNull(stream); 239ArgumentNullException.ThrowIfNull(encoding); 358ArgumentNullException.ThrowIfNull(buffer); 374ArgumentNullException.ThrowIfNull(buffer); 400ArgumentNullException.ThrowIfNull(buffer); 672ArgumentNullException.ThrowIfNull(localName); 689ArgumentNullException.ThrowIfNull(buffer); 745ArgumentNullException.ThrowIfNull(localName); 829ArgumentNullException.ThrowIfNull(localName); 1021ArgumentNullException.ThrowIfNull(value); 1029ArgumentNullException.ThrowIfNull(value); 1056ArgumentNullException.ThrowIfNull(ws); 1371ArgumentNullException.ThrowIfNull(value);
System\Runtime\Serialization\XmlObjectSerializer.cs (15)
35ArgumentNullException.ThrowIfNull(stream); 46ArgumentNullException.ThrowIfNull(writer); 55ArgumentNullException.ThrowIfNull(writer); 64ArgumentNullException.ThrowIfNull(writer); 73ArgumentNullException.ThrowIfNull(writer); 96ArgumentNullException.ThrowIfNull(writer); 164ArgumentNullException.ThrowIfNull(writer); 184ArgumentNullException.ThrowIfNull(writer); 206ArgumentNullException.ThrowIfNull(writer); 272ArgumentNullException.ThrowIfNull(stream); 281ArgumentNullException.ThrowIfNull(reader); 297ArgumentNullException.ThrowIfNull(reader); 310ArgumentNullException.ThrowIfNull(reader); 352ArgumentNullException.ThrowIfNull(reader); 372ArgumentNullException.ThrowIfNull(reader);
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
21ArgumentNullException.ThrowIfNull(reader);
System\Runtime\Serialization\XmlSerializableServices.cs (4)
14ArgumentNullException.ThrowIfNull(xmlReader); 57ArgumentNullException.ThrowIfNull(xmlWriter); 68ArgumentNullException.ThrowIfNull(schemas); 69ArgumentNullException.ThrowIfNull(typeQName);
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
20ArgumentNullException.ThrowIfNull(writer);
System\Runtime\Serialization\XPathQueryGenerator.cs (2)
34ArgumentNullException.ThrowIfNull(type); 35ArgumentNullException.ThrowIfNull(pathToMember);
System\Runtime\Serialization\XsdDataContractExporter.cs (9)
106ArgumentNullException.ThrowIfNull(assemblies); 138ArgumentNullException.ThrowIfNull(types); 167ArgumentNullException.ThrowIfNull(type); 191ArgumentNullException.ThrowIfNull(type); 210ArgumentNullException.ThrowIfNull(type); 229ArgumentNullException.ThrowIfNull(type); 309ArgumentNullException.ThrowIfNull(assemblies); 347ArgumentNullException.ThrowIfNull(types); 382ArgumentNullException.ThrowIfNull(type);
System\Text\Base64Encoding.cs (9)
51ArgumentNullException.ThrowIfNull(chars); 103ArgumentNullException.ThrowIfNull(chars); 112ArgumentNullException.ThrowIfNull(bytes); 176ArgumentNullException.ThrowIfNull(chars); 185ArgumentNullException.ThrowIfNull(bytes); 259ArgumentNullException.ThrowIfNull(bytes); 268ArgumentNullException.ThrowIfNull(chars); 343ArgumentNullException.ThrowIfNull(bytes); 352ArgumentNullException.ThrowIfNull(chars);
System\Text\BinHexEncoding.cs (4)
26ArgumentNullException.ThrowIfNull(chars); 33ArgumentNullException.ThrowIfNull(bytes); 65ArgumentNullException.ThrowIfNull(bytes); 73ArgumentNullException.ThrowIfNull(chars);
System\Xml\UniqueId.cs (5)
67ArgumentNullException.ThrowIfNull(guid); 83ArgumentNullException.ThrowIfNull(value); 96ArgumentNullException.ThrowIfNull(chars); 200ArgumentNullException.ThrowIfNull(chars); 282ArgumentNullException.ThrowIfNull(buffer);
System\Xml\XmlBaseReader.cs (18)
112ArgumentNullException.ThrowIfNull(quotas); 511ArgumentNullException.ThrowIfNull(name); 559ArgumentNullException.ThrowIfNull(localName); 586ArgumentNullException.ThrowIfNull(localName); 967ArgumentNullException.ThrowIfNull(localName); 974ArgumentNullException.ThrowIfNull(localName); 980ArgumentNullException.ThrowIfNull(namespaceUri); 987ArgumentNullException.ThrowIfNull(namespaceUri); 1038ArgumentNullException.ThrowIfNull(localName); 1039ArgumentNullException.ThrowIfNull(namespaceUri); 1046ArgumentNullException.ThrowIfNull(localNames); 1047ArgumentNullException.ThrowIfNull(namespaceUri); 1087ArgumentNullException.ThrowIfNull(localNames); 1088ArgumentNullException.ThrowIfNull(namespaceUri); 1128ArgumentNullException.ThrowIfNull(chars); 1156ArgumentNullException.ThrowIfNull(buffer); 1344ArgumentNullException.ThrowIfNull(buffer); 1380ArgumentNullException.ThrowIfNull(buffer);
System\Xml\XmlBaseWriter.cs (14)
152ArgumentNullException.ThrowIfNull(ns); 176ArgumentNullException.ThrowIfNull(ns); 497ArgumentNullException.ThrowIfNull(localName); 805ArgumentNullException.ThrowIfNull(ns); 845ArgumentNullException.ThrowIfNull(localName); 963ArgumentNullException.ThrowIfNull(whitespace); 1001ArgumentNullException.ThrowIfNull(value); 1024ArgumentNullException.ThrowIfNull(chars); 1076ArgumentNullException.ThrowIfNull(chars); 1146ArgumentNullException.ThrowIfNull(value); 1171ArgumentNullException.ThrowIfNull(value); 1389ArgumentNullException.ThrowIfNull(value); 1439ArgumentNullException.ThrowIfNull(buffer); 1627ArgumentNullException.ThrowIfNull(stream);
System\Xml\XmlBinaryReader.cs (3)
46ArgumentNullException.ThrowIfNull(buffer); 65ArgumentNullException.ThrowIfNull(stream); 1227ArgumentNullException.ThrowIfNull(array);
System\Xml\XmlBinaryReaderSession.cs (3)
27ArgumentNullException.ThrowIfNull(value); 74ArgumentNullException.ThrowIfNull(value); 107ArgumentNullException.ThrowIfNull(value);
System\Xml\XmlBinaryWriter.cs (2)
1157ArgumentNullException.ThrowIfNull(stream); 1277ArgumentNullException.ThrowIfNull(array);
System\Xml\XmlBinaryWriterSession.cs (1)
30ArgumentNullException.ThrowIfNull(value);
System\Xml\XmlCanonicalWriter.cs (21)
59ArgumentNullException.ThrowIfNull(stream); 137ArgumentNullException.ThrowIfNull(value); 176ArgumentNullException.ThrowIfNull(prefix); 177ArgumentNullException.ThrowIfNull(localName); 207ArgumentNullException.ThrowIfNull(prefixBuffer); 215ArgumentNullException.ThrowIfNull(localNameBuffer); 333ArgumentNullException.ThrowIfNull(prefix); 334ArgumentNullException.ThrowIfNull(localName); 359ArgumentNullException.ThrowIfNull(prefix); 360ArgumentNullException.ThrowIfNull(ns); 383ArgumentNullException.ThrowIfNull(prefixBuffer); 391ArgumentNullException.ThrowIfNull(nsBuffer); 417ArgumentNullException.ThrowIfNull(prefix); 418ArgumentNullException.ThrowIfNull(localName); 434ArgumentNullException.ThrowIfNull(prefixBuffer); 442ArgumentNullException.ThrowIfNull(localNameBuffer); 485ArgumentNullException.ThrowIfNull(value); 504ArgumentNullException.ThrowIfNull(chars); 560ArgumentNullException.ThrowIfNull(chars); 579ArgumentNullException.ThrowIfNull(value); 597ArgumentNullException.ThrowIfNull(chars);
System\Xml\XmlDictionary.cs (1)
81ArgumentNullException.ThrowIfNull(value);
System\Xml\XmlDictionaryReader.cs (15)
24ArgumentNullException.ThrowIfNull(reader); 31ArgumentNullException.ThrowIfNull(buffer); 90ArgumentNullException.ThrowIfNull(buffer); 126ArgumentNullException.ThrowIfNull(encoding); 149ArgumentNullException.ThrowIfNull(encoding); 227ArgumentNullException.ThrowIfNull(localName); 234ArgumentNullException.ThrowIfNull(namespaceUri); 241ArgumentNullException.ThrowIfNull(namespaceUri); 291ArgumentNullException.ThrowIfNull(localNames); 292ArgumentNullException.ThrowIfNull(namespaceUri); 314ArgumentNullException.ThrowIfNull(localNames); 315ArgumentNullException.ThrowIfNull(namespaceUri); 611ArgumentNullException.ThrowIfNull(strings); 631ArgumentNullException.ThrowIfNull(strings); 1007ArgumentNullException.ThrowIfNull(array);
System\Xml\XmlDictionaryReaderQuotas.cs (1)
67ArgumentNullException.ThrowIfNull(quotas);
System\Xml\XmlDictionaryString.cs (4)
26ArgumentNullException.ThrowIfNull(dictionary); 27ArgumentNullException.ThrowIfNull(value); 105ArgumentNullException.ThrowIfNull(value); 129ArgumentNullException.ThrowIfNull(value);
System\Xml\XmlDictionaryWriter.cs (8)
72ArgumentNullException.ThrowIfNull(writer); 110ArgumentNullException.ThrowIfNull(namespaceUri); 162ArgumentNullException.ThrowIfNull(localName); 176ArgumentNullException.ThrowIfNull(value); 193ArgumentNullException.ThrowIfNull(value); 385ArgumentNullException.ThrowIfNull(reader); 438ArgumentNullException.ThrowIfNull(array); 839ArgumentNullException.ThrowIfNull(namespaceUri);
System\Xml\XmlUTF8TextReader.cs (2)
558ArgumentNullException.ThrowIfNull(buffer); 574ArgumentNullException.ThrowIfNull(stream);
System\Xml\XmlUTF8TextWriter.cs (2)
22ArgumentNullException.ThrowIfNull(stream); 23ArgumentNullException.ThrowIfNull(encoding);
System.Private.Uri (16)
System\Uri.cs (9)
368ArgumentNullException.ThrowIfNull(uriString); 382ArgumentNullException.ThrowIfNull(uriString); 397ArgumentNullException.ThrowIfNull(baseUri); 411ArgumentNullException.ThrowIfNull(uriString); 424ArgumentNullException.ThrowIfNull(uriString); 439ArgumentNullException.ThrowIfNull(baseUri); 543ArgumentNullException.ThrowIfNull(baseUri); 1843ArgumentNullException.ThrowIfNull(uri); 4977ArgumentNullException.ThrowIfNull(toUri);
System\UriBuilder.cs (1)
44ArgumentNullException.ThrowIfNull(uri);
System\UriExt.cs (2)
580ArgumentNullException.ThrowIfNull(stringToUnescape); 987ArgumentNullException.ThrowIfNull(uri);
System\UriHelper.cs (1)
184ArgumentNullException.ThrowIfNull(stringToEscape);
System\UriScheme.cs (3)
168ArgumentNullException.ThrowIfNull(uriParser); 169ArgumentNullException.ThrowIfNull(schemeName); 188ArgumentNullException.ThrowIfNull(schemeName);
System.Private.Windows.Core (15)
System\ArgumentValidation.cs (1)
12ArgumentNullException.ThrowIfNull(argument, paramName);
System\IO\StreamExtensions.cs (1)
17ArgumentNullException.ThrowIfNull(stream);
System\Private\Windows\Ole\DataObjectCore.cs (2)
12/// <exception cref="ArgumentNullException"><paramref name="data"/> or <paramref name="format"/> is null.</exception> 20ArgumentNullException.ThrowIfNull(data);
System\Private\Windows\Ole\DataStore.cs (2)
93ArgumentNullException.ThrowIfNull(format); 105ArgumentNullException.ThrowIfNull(data);
System\Private\Windows\Ole\DragDropHelper.cs (5)
126ArgumentNullException.ThrowIfNull(dataObject); 187ArgumentNullException.ThrowIfNull(dataObject); 235ArgumentNullException.ThrowIfNull(e); 251ArgumentNullException.ThrowIfNull(dataObject); 332ArgumentNullException.ThrowIfNull(dataObject);
System\Private\Windows\Ole\TypeBinder.cs (1)
96ArgumentNullException.ThrowIfNull(typeName);
System\Value.cs (2)
553ArgumentNullException.ThrowIfNull(array, nameof(segment)); 572ArgumentNullException.ThrowIfNull(array, nameof(segment));
Windows\Win32\System\Com\ComHelpers.cs (1)
288/// <exception cref="ArgumentNullException"><paramref name="unknown"/> is <see langword="null"/>.</exception>
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Nrbf\BinaryFormatterHelpers.cs (2)
29/// <exception cref="ArgumentNullException">Thrown when the specified object is <see langword="null"/>.</exception> 35ArgumentNullException.ThrowIfNull(@object);
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
347action.Should().Throw<ArgumentNullException>().WithParameterName("filePaths");
System\Private\Windows\Ole\TestDataObjectAdapter.cs (1)
54ArgumentNullException.ThrowIfNull(dataObject);
System.Private.Windows.Core.TestUtilities (7)
BinarySerialization.cs (3)
110/// <exception cref="ArgumentNullException">Thrown when the specified object is <see langword="null"/>.</exception> 117ArgumentNullException.ThrowIfNull(@object); 139/// <exception cref="ArgumentNullException">Thrown when the specified stream is <see langword="null"/>.</exception>
CustomConverter.cs (2)
15ArgumentNullException.ThrowIfNull(type); 16ArgumentNullException.ThrowIfNull(converter);
TestAccessor.cs (2)
95ArgumentNullException.ThrowIfNull(args); 96ArgumentNullException.ThrowIfNull(binder);
System.Private.Windows.GdiPlus (1)
System\Drawing\CoreImageExtensions.cs (1)
15ArgumentNullException.ThrowIfNull(stream);
System.Private.Xml (395)
System\Xml\Base64Decoder.cs (2)
42ArgumentNullException.ThrowIfNull(chars); 61ArgumentNullException.ThrowIfNull(str);
System\Xml\Base64Encoder.cs (1)
27ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Base64EncoderAsync.cs (1)
16ArgumentNullException.ThrowIfNull(buffer);
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
656ArgumentNullException.ThrowIfNull(name); 706ArgumentNullException.ThrowIfNull(name);
System\Xml\BinHexDecoder.cs (2)
42ArgumentNullException.ThrowIfNull(chars); 63ArgumentNullException.ThrowIfNull(str);
System\Xml\BinHexEncoder.cs (1)
12ArgumentNullException.ThrowIfNull(buffer);
System\Xml\BinHexEncoderAsync.cs (1)
12ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Cache\XPathDocumentIterator.cs (2)
65ArgumentNullException.ThrowIfNull(namespaceURI); 178ArgumentNullException.ThrowIfNull(namespaceURI);
System\Xml\Core\ReadContentAsBinaryHelper.cs (4)
65ArgumentNullException.ThrowIfNull(buffer); 108ArgumentNullException.ThrowIfNull(buffer); 151ArgumentNullException.ThrowIfNull(buffer); 194ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
15ArgumentNullException.ThrowIfNull(buffer); 59ArgumentNullException.ThrowIfNull(buffer); 103ArgumentNullException.ThrowIfNull(buffer); 147ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlCharCheckingReader.cs (2)
481ArgumentNullException.ThrowIfNull(buffer); 529ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
307ArgumentNullException.ThrowIfNull(buffer); 361ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlCharCheckingWriter.cs (1)
265ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
212ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlRawWriter.cs (1)
185ArgumentNullException.ThrowIfNull(value);
System\Xml\Core\XmlReader.cs (9)
935ArgumentNullException.ThrowIfNull(namespaceURI); 996ArgumentNullException.ThrowIfNull(namespaceURI); 1063ArgumentNullException.ThrowIfNull(namespaceURI); 1089ArgumentNullException.ThrowIfNull(str); 1097ArgumentNullException.ThrowIfNull(str); 1413ArgumentNullException.ThrowIfNull(namespaceURI); 1634ArgumentNullException.ThrowIfNull(input); 1664ArgumentNullException.ThrowIfNull(input); 1703ArgumentNullException.ThrowIfNull(input);
System\Xml\Core\XmlReaderSettings.cs (3)
345ArgumentNullException.ThrowIfNull(input); 368ArgumentNullException.ThrowIfNull(input); 391ArgumentNullException.ThrowIfNull(reader);
System\Xml\Core\XmlSubtreeReader.cs (1)
1582ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlTextEncoder.cs (2)
112ArgumentNullException.ThrowIfNull(array); 438ArgumentNullException.ThrowIfNull(array);
System\Xml\Core\XmlTextReaderImpl.cs (5)
1594ArgumentNullException.ThrowIfNull(buffer); 1641ArgumentNullException.ThrowIfNull(buffer); 1687ArgumentNullException.ThrowIfNull(buffer); 1734ArgumentNullException.ThrowIfNull(buffer); 1794ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlTextReaderImplAsync.cs (5)
390ArgumentNullException.ThrowIfNull(buffer); 446ArgumentNullException.ThrowIfNull(buffer); 511ArgumentNullException.ThrowIfNull(buffer); 567ArgumentNullException.ThrowIfNull(buffer); 619ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlValidatingReader.cs (2)
33ArgumentNullException.ThrowIfNull(xmlFragment); 41ArgumentNullException.ThrowIfNull(xmlFragment);
System\Xml\Core\XmlWellFormedWriter.cs (4)
1063ArgumentNullException.ThrowIfNull(buffer); 1089ArgumentNullException.ThrowIfNull(buffer); 1141ArgumentNullException.ThrowIfNull(buffer); 1231ArgumentNullException.ThrowIfNull(ns);
System\Xml\Core\XmlWellFormedWriterAsync.cs (3)
1001ArgumentNullException.ThrowIfNull(buffer); 1027ArgumentNullException.ThrowIfNull(buffer); 1079ArgumentNullException.ThrowIfNull(buffer);
System\Xml\Core\XmlWriter.cs (9)
245ArgumentNullException.ThrowIfNull(value); 315ArgumentNullException.ThrowIfNull(reader); 360ArgumentNullException.ThrowIfNull(reader); 424ArgumentNullException.ThrowIfNull(navigator); 615ArgumentNullException.ThrowIfNull(outputFileName); 643ArgumentNullException.ThrowIfNull(output); 662ArgumentNullException.ThrowIfNull(output); 681ArgumentNullException.ThrowIfNull(output); 691ArgumentNullException.ThrowIfNull(output);
System\Xml\Core\XmlWriterAsync.cs (3)
233ArgumentNullException.ThrowIfNull(reader); 282ArgumentNullException.ThrowIfNull(reader); 421ArgumentNullException.ThrowIfNull(navigator);
System\Xml\Core\XmlWriterSettings.cs (6)
125ArgumentNullException.ThrowIfNull(value); 149ArgumentNullException.ThrowIfNull(value); 334ArgumentNullException.ThrowIfNull(outputFileName); 362ArgumentNullException.ThrowIfNull(output); 437ArgumentNullException.ThrowIfNull(output); 483ArgumentNullException.ThrowIfNull(output);
System\Xml\Dom\DocumentXPathNavigator.cs (3)
43ArgumentNullException.ThrowIfNull(value); 1599ArgumentNullException.ThrowIfNull(lastSiblingToReplace); 1650ArgumentNullException.ThrowIfNull(lastSiblingToDelete);
System\Xml\Dom\XmlDocument.cs (1)
732ArgumentNullException.ThrowIfNull(target);
System\Xml\Dom\XmlNodeReader.cs (1)
1145ArgumentNullException.ThrowIfNull(node);
System\Xml\NameTable.cs (2)
56ArgumentNullException.ThrowIfNull(key); 117ArgumentNullException.ThrowIfNull(value);
System\Xml\Resolvers\XmlPreloadedResolver.cs (11)
227ArgumentNullException.ThrowIfNull(absoluteUri); 267ArgumentNullException.ThrowIfNull(absoluteUri); 284ArgumentNullException.ThrowIfNull(uri); 285ArgumentNullException.ThrowIfNull(value); 292ArgumentNullException.ThrowIfNull(uri); 293ArgumentNullException.ThrowIfNull(value); 304ArgumentNullException.ThrowIfNull(uri); 305ArgumentNullException.ThrowIfNull(value); 326ArgumentNullException.ThrowIfNull(uri); 327ArgumentNullException.ThrowIfNull(value); 343ArgumentNullException.ThrowIfNull(uri);
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
21ArgumentNullException.ThrowIfNull(absoluteUri);
System\Xml\Schema\DataTypeImplementation.cs (4)
570ArgumentNullException.ThrowIfNull(value); 1016ArgumentNullException.ThrowIfNull(value); 1279ArgumentNullException.ThrowIfNull(value); 3740ArgumentNullException.ThrowIfNull(nsmgr);
System\Xml\Schema\Inference\Infer.cs (1)
177ArgumentNullException.ThrowIfNull(instanceDocument);
System\Xml\Schema\Preprocessor.cs (1)
2057catch (ArgumentNullException)
System\Xml\Schema\XmlAtomicValue.cs (13)
83ArgumentNullException.ThrowIfNull(xmlType); 92ArgumentNullException.ThrowIfNull(xmlType); 101ArgumentNullException.ThrowIfNull(xmlType); 110ArgumentNullException.ThrowIfNull(xmlType); 119ArgumentNullException.ThrowIfNull(xmlType); 128ArgumentNullException.ThrowIfNull(xmlType); 129ArgumentNullException.ThrowIfNull(value); 137ArgumentNullException.ThrowIfNull(xmlType); 138ArgumentNullException.ThrowIfNull(value); 151ArgumentNullException.ThrowIfNull(xmlType); 152ArgumentNullException.ThrowIfNull(value); 160ArgumentNullException.ThrowIfNull(xmlType); 161ArgumentNullException.ThrowIfNull(value);
System\Xml\Schema\XmlSchema.cs (8)
61ArgumentNullException.ThrowIfNull(reader); 67ArgumentNullException.ThrowIfNull(stream); 73ArgumentNullException.ThrowIfNull(reader); 106ArgumentNullException.ThrowIfNull(stream); 116ArgumentNullException.ThrowIfNull(writer); 124ArgumentNullException.ThrowIfNull(writer); 134ArgumentNullException.ThrowIfNull(writer); 146ArgumentNullException.ThrowIfNull(writer);
System\Xml\Schema\XmlSchemaCollection.cs (7)
47ArgumentNullException.ThrowIfNull(nametable); 128ArgumentNullException.ThrowIfNull(reader); 164ArgumentNullException.ThrowIfNull(schema); 177ArgumentNullException.ThrowIfNull(schema); 204ArgumentNullException.ThrowIfNull(schema); 229ArgumentNullException.ThrowIfNull(array); 241ArgumentNullException.ThrowIfNull(array);
System\Xml\Schema\XmlSchemaDataType.cs (5)
30ArgumentNullException.ThrowIfNull(value); 31ArgumentNullException.ThrowIfNull(targetType); 38ArgumentNullException.ThrowIfNull(value); 39ArgumentNullException.ThrowIfNull(targetType); 40ArgumentNullException.ThrowIfNull(namespaceResolver);
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
191ArgumentNullException.ThrowIfNull(array); 244ArgumentNullException.ThrowIfNull(array);
System\Xml\Schema\XmlSchemaSet.cs (10)
89ArgumentNullException.ThrowIfNull(nameTable); 267ArgumentNullException.ThrowIfNull(schemaDocument); 299ArgumentNullException.ThrowIfNull(schemas); 379ArgumentNullException.ThrowIfNull(schema); 399ArgumentNullException.ThrowIfNull(schemaToRemove); 475ArgumentNullException.ThrowIfNull(schema); 577ArgumentNullException.ThrowIfNull(schema); 666ArgumentNullException.ThrowIfNull(schemas); 795ArgumentNullException.ThrowIfNull(reader); 1021ArgumentNullException.ThrowIfNull(schema);
System\Xml\Schema\XmlSchemaType.cs (2)
34ArgumentNullException.ThrowIfNull(qualifiedName); 65ArgumentNullException.ThrowIfNull(qualifiedName);
System\Xml\Schema\XmlSchemaValidator.cs (17)
164ArgumentNullException.ThrowIfNull(nameTable); 165ArgumentNullException.ThrowIfNull(schemas); 166ArgumentNullException.ThrowIfNull(namespaceResolver); 321ArgumentNullException.ThrowIfNull(schema); 379ArgumentNullException.ThrowIfNull(partialValidationType); 398ArgumentNullException.ThrowIfNull(localName); 399ArgumentNullException.ThrowIfNull(namespaceUri); 481ArgumentNullException.ThrowIfNull(attributeValue); 488ArgumentNullException.ThrowIfNull(attributeValue); 495ArgumentNullException.ThrowIfNull(localName); 496ArgumentNullException.ThrowIfNull(namespaceUri); 703ArgumentNullException.ThrowIfNull(defaultAttributes); 727ArgumentNullException.ThrowIfNull(elementValue); 734ArgumentNullException.ThrowIfNull(elementValue); 806ArgumentNullException.ThrowIfNull(elementValue); 813ArgumentNullException.ThrowIfNull(elementValue); 875ArgumentNullException.ThrowIfNull(typedValue);
System\Xml\Schema\XmlValueConverter.cs (103)
897ArgumentNullException.ThrowIfNull(value); 904ArgumentNullException.ThrowIfNull(value); 922ArgumentNullException.ThrowIfNull(value); 929ArgumentNullException.ThrowIfNull(value); 947ArgumentNullException.ThrowIfNull(value); 954ArgumentNullException.ThrowIfNull(value); 994ArgumentNullException.ThrowIfNull(value); 1014ArgumentNullException.ThrowIfNull(destinationType); 1029ArgumentNullException.ThrowIfNull(destinationType); 1044ArgumentNullException.ThrowIfNull(destinationType); 1059ArgumentNullException.ThrowIfNull(value); 1060ArgumentNullException.ThrowIfNull(destinationType); 1075ArgumentNullException.ThrowIfNull(value); 1076ArgumentNullException.ThrowIfNull(destinationType); 1163ArgumentNullException.ThrowIfNull(value); 1170ArgumentNullException.ThrowIfNull(value); 1207ArgumentNullException.ThrowIfNull(value); 1214ArgumentNullException.ThrowIfNull(value); 1243ArgumentNullException.ThrowIfNull(value); 1262ArgumentNullException.ThrowIfNull(destinationType); 1276ArgumentNullException.ThrowIfNull(value); 1277ArgumentNullException.ThrowIfNull(destinationType); 1291ArgumentNullException.ThrowIfNull(value); 1292ArgumentNullException.ThrowIfNull(destinationType); 1340ArgumentNullException.ThrowIfNull(value); 1356ArgumentNullException.ThrowIfNull(value); 1379ArgumentNullException.ThrowIfNull(value); 1396ArgumentNullException.ThrowIfNull(value); 1475ArgumentNullException.ThrowIfNull(value); 1494ArgumentNullException.ThrowIfNull(destinationType); 1508ArgumentNullException.ThrowIfNull(value); 1509ArgumentNullException.ThrowIfNull(destinationType); 1523ArgumentNullException.ThrowIfNull(value); 1524ArgumentNullException.ThrowIfNull(destinationType); 1566ArgumentNullException.ThrowIfNull(value); 1572ArgumentNullException.ThrowIfNull(value); 1636ArgumentNullException.ThrowIfNull(value); 1654ArgumentNullException.ThrowIfNull(destinationType); 1667ArgumentNullException.ThrowIfNull(value); 1668ArgumentNullException.ThrowIfNull(destinationType); 1681ArgumentNullException.ThrowIfNull(value); 1682ArgumentNullException.ThrowIfNull(destinationType); 1721ArgumentNullException.ThrowIfNull(value); 1763ArgumentNullException.ThrowIfNull(value); 1764ArgumentNullException.ThrowIfNull(destinationType); 1801ArgumentNullException.ThrowIfNull(value); 1802ArgumentNullException.ThrowIfNull(destinationType); 1950ArgumentNullException.ThrowIfNull(value); 1967ArgumentNullException.ThrowIfNull(value); 1968ArgumentNullException.ThrowIfNull(destinationType); 1980ArgumentNullException.ThrowIfNull(value); 1981ArgumentNullException.ThrowIfNull(destinationType); 2028ArgumentNullException.ThrowIfNull(value); 2034ArgumentNullException.ThrowIfNull(value); 2050ArgumentNullException.ThrowIfNull(value); 2056ArgumentNullException.ThrowIfNull(value); 2071ArgumentNullException.ThrowIfNull(value); 2078ArgumentNullException.ThrowIfNull(value); 2093ArgumentNullException.ThrowIfNull(value); 2099ArgumentNullException.ThrowIfNull(value); 2115ArgumentNullException.ThrowIfNull(value); 2121ArgumentNullException.ThrowIfNull(value); 2137ArgumentNullException.ThrowIfNull(value); 2143ArgumentNullException.ThrowIfNull(value); 2159ArgumentNullException.ThrowIfNull(value); 2165ArgumentNullException.ThrowIfNull(value); 2181ArgumentNullException.ThrowIfNull(value); 2187ArgumentNullException.ThrowIfNull(value); 2235ArgumentNullException.ThrowIfNull(value); 2270ArgumentNullException.ThrowIfNull(destinationType); 2280ArgumentNullException.ThrowIfNull(destinationType); 2290ArgumentNullException.ThrowIfNull(destinationType); 2300ArgumentNullException.ThrowIfNull(destinationType); 2310ArgumentNullException.ThrowIfNull(destinationType); 2320ArgumentNullException.ThrowIfNull(destinationType); 2330ArgumentNullException.ThrowIfNull(value); 2331ArgumentNullException.ThrowIfNull(destinationType); 2361ArgumentNullException.ThrowIfNull(value); 2362ArgumentNullException.ThrowIfNull(destinationType); 2546ArgumentNullException.ThrowIfNull(value); 2562ArgumentNullException.ThrowIfNull(value); 2577ArgumentNullException.ThrowIfNull(value); 2593ArgumentNullException.ThrowIfNull(value); 2609ArgumentNullException.ThrowIfNull(value); 2625ArgumentNullException.ThrowIfNull(value); 2641ArgumentNullException.ThrowIfNull(value); 2657ArgumentNullException.ThrowIfNull(value); 2680ArgumentNullException.ThrowIfNull(destinationType); 2690ArgumentNullException.ThrowIfNull(destinationType); 2700ArgumentNullException.ThrowIfNull(destinationType); 2710ArgumentNullException.ThrowIfNull(destinationType); 2720ArgumentNullException.ThrowIfNull(destinationType); 2730ArgumentNullException.ThrowIfNull(destinationType); 2740ArgumentNullException.ThrowIfNull(value); 2741ArgumentNullException.ThrowIfNull(destinationType); 2751ArgumentNullException.ThrowIfNull(value); 2752ArgumentNullException.ThrowIfNull(destinationType); 2876ArgumentNullException.ThrowIfNull(value); 2877ArgumentNullException.ThrowIfNull(destinationType); 2932ArgumentNullException.ThrowIfNull(value); 2933ArgumentNullException.ThrowIfNull(destinationType); 3174ArgumentNullException.ThrowIfNull(value); 3175ArgumentNullException.ThrowIfNull(destinationType);
System\Xml\Serialization\CodeIdentifier.cs (3)
29ArgumentNullException.ThrowIfNull(identifier); 54ArgumentNullException.ThrowIfNull(identifier); 79ArgumentNullException.ThrowIfNull(identifier);
System\Xml\Serialization\SoapReflectionImporter.cs (5)
50ArgumentNullException.ThrowIfNull(provider); 101ArgumentNullException.ThrowIfNull(members); 108ArgumentNullException.ThrowIfNull(members); 115ArgumentNullException.ThrowIfNull(members); 122ArgumentNullException.ThrowIfNull(members);
System\Xml\Serialization\TypeExtensions.cs (1)
19ArgumentNullException.ThrowIfNull(targetType);
System\Xml\Serialization\XmlAttributes.cs (1)
79ArgumentNullException.ThrowIfNull(provider);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
174ArgumentNullException.ThrowIfNull(type); 494ArgumentNullException.ThrowIfNull(provider.MethodName, nameof(provider.MethodName));
System\Xml\Serialization\XmlReflectionMember.cs (2)
39ArgumentNullException.ThrowIfNull(value); 52ArgumentNullException.ThrowIfNull(value);
System\Xml\Serialization\XmlSerializer.cs (7)
199ArgumentNullException.ThrowIfNull(xmlTypeMapping); 218ArgumentNullException.ThrowIfNull(type); 278ArgumentNullException.ThrowIfNull(type); 321ArgumentNullException.ThrowIfNull(xmlMapping); 670ArgumentNullException.ThrowIfNull(mappings); 671ArgumentNullException.ThrowIfNull(stream); 774ArgumentNullException.ThrowIfNull(type);
System\Xml\XmlConvert.cs (13)
301ArgumentNullException.ThrowIfNull(inArray); 448ArgumentNullException.ThrowIfNull(name); 495ArgumentNullException.ThrowIfNull(content); 505ArgumentNullException.ThrowIfNull(publicId); 521ArgumentNullException.ThrowIfNull(content); 780ArgumentNullException.ThrowIfNull(s); 956ArgumentNullException.ThrowIfNull(s); 1003ArgumentNullException.ThrowIfNull(s); 1055ArgumentNullException.ThrowIfNull(str); 1082catch (ArgumentNullException) { } 1240ArgumentNullException.ThrowIfNull(s); 1249ArgumentNullException.ThrowIfNull(s); 1256ArgumentNullException.ThrowIfNull(s);
System\Xml\XmlNamespacemanager.cs (4)
123ArgumentNullException.ThrowIfNull(prefix); 124ArgumentNullException.ThrowIfNull(uri); 190ArgumentNullException.ThrowIfNull(prefix); 191ArgumentNullException.ThrowIfNull(uri);
System\Xml\XmlResolver.cs (1)
81ArgumentNullException.ThrowIfNull(absoluteUri);
System\Xml\XPath\Internal\XPathAxisIterator.cs (2)
32ArgumentNullException.ThrowIfNull(name); 33ArgumentNullException.ThrowIfNull(namespaceURI);
System\Xml\XPath\XPathDocument.cs (5)
54ArgumentNullException.ThrowIfNull(nameTable); 71ArgumentNullException.ThrowIfNull(reader); 81ArgumentNullException.ThrowIfNull(textReader); 100ArgumentNullException.ThrowIfNull(stream); 154ArgumentNullException.ThrowIfNull(reader);
System\Xml\XPath\XPathNavigator.cs (14)
110ArgumentNullException.ThrowIfNull(typedValue); 566ArgumentNullException.ThrowIfNull(writer); 1300ArgumentNullException.ThrowIfNull(newNode); 1316ArgumentNullException.ThrowIfNull(newNode); 1420ArgumentNullException.ThrowIfNull(value); 1453ArgumentNullException.ThrowIfNull(newChild); 1462ArgumentNullException.ThrowIfNull(newChild); 1480ArgumentNullException.ThrowIfNull(newChild); 1489ArgumentNullException.ThrowIfNull(newChild); 1507ArgumentNullException.ThrowIfNull(newSibling); 1516ArgumentNullException.ThrowIfNull(newSibling); 1534ArgumentNullException.ThrowIfNull(newSibling); 1543ArgumentNullException.ThrowIfNull(newSibling); 1996ArgumentNullException.ThrowIfNull(xml);
System\Xml\XPath\XPathNavigatorKeyComparer.cs (1)
25ArgumentNullException.ThrowIfNull(obj);
System\Xml\XPath\XPathNavigatorReader.cs (2)
461ArgumentNullException.ThrowIfNull(localName); 560ArgumentNullException.ThrowIfNull(localName);
System\Xml\Xsl\Xslt\CompilerError.cs (1)
40ArgumentNullException.ThrowIfNull(value);
System\Xml\Xsl\XsltOld\NavigatorInput.cs (2)
209ArgumentNullException.ThrowIfNull(navigator); 210ArgumentNullException.ThrowIfNull(baseUri);
System\Xml\Xsl\XsltOld\TextOnlyOutput.cs (2)
29ArgumentNullException.ThrowIfNull(stream); 37ArgumentNullException.ThrowIfNull(writer);
System\Xml\Xsl\XsltOld\TextOutput.cs (2)
19ArgumentNullException.ThrowIfNull(stream); 28ArgumentNullException.ThrowIfNull(writer);
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
16ArgumentNullException.ThrowIfNull(writer);
System\Xml\Xslt\XslCompiledTransform.cs (36)
116ArgumentNullException.ThrowIfNull(stylesheetUri); 123ArgumentNullException.ThrowIfNull(stylesheetUri); 132ArgumentNullException.ThrowIfNull(stylesheet); 183ArgumentNullException.ThrowIfNull(compiledStylesheet); 227ArgumentNullException.ThrowIfNull(executeMethod); 228ArgumentNullException.ThrowIfNull(queryData); 244ArgumentNullException.ThrowIfNull(input); 245ArgumentNullException.ThrowIfNull(results); 252ArgumentNullException.ThrowIfNull(input); 253ArgumentNullException.ThrowIfNull(results); 260ArgumentNullException.ThrowIfNull(input); 261ArgumentNullException.ThrowIfNull(results); 269ArgumentNullException.ThrowIfNull(input); 270ArgumentNullException.ThrowIfNull(results); 282ArgumentNullException.ThrowIfNull(input); 283ArgumentNullException.ThrowIfNull(results); 290ArgumentNullException.ThrowIfNull(input); 291ArgumentNullException.ThrowIfNull(results); 298ArgumentNullException.ThrowIfNull(input); 299ArgumentNullException.ThrowIfNull(results); 307ArgumentNullException.ThrowIfNull(input); 308ArgumentNullException.ThrowIfNull(results); 323ArgumentNullException.ThrowIfNull(inputUri); 324ArgumentNullException.ThrowIfNull(results); 332ArgumentNullException.ThrowIfNull(inputUri); 333ArgumentNullException.ThrowIfNull(results); 341ArgumentNullException.ThrowIfNull(inputUri); 342ArgumentNullException.ThrowIfNull(results); 351ArgumentNullException.ThrowIfNull(inputUri); 352ArgumentNullException.ThrowIfNull(results); 361ArgumentNullException.ThrowIfNull(inputUri); 362ArgumentNullException.ThrowIfNull(resultsFile); 378ArgumentNullException.ThrowIfNull(input); 379ArgumentNullException.ThrowIfNull(results); 389ArgumentNullException.ThrowIfNull(input); 390ArgumentNullException.ThrowIfNull(results);
System\Xml\Xslt\XsltArgumentList.cs (5)
43ArgumentNullException.ThrowIfNull(name); 44ArgumentNullException.ThrowIfNull(namespaceUri); 45ArgumentNullException.ThrowIfNull(parameter); 55ArgumentNullException.ThrowIfNull(namespaceUri); 56ArgumentNullException.ThrowIfNull(extension);
System\Xml\Xslt\XslTransform.cs (12)
56ArgumentNullException.ThrowIfNull(stylesheet); 67ArgumentNullException.ThrowIfNull(stylesheet); 74ArgumentNullException.ThrowIfNull(stylesheet); 81ArgumentNullException.ThrowIfNull(stylesheet); 167ArgumentNullException.ThrowIfNull(input); 174ArgumentNullException.ThrowIfNull(input); 180ArgumentNullException.ThrowIfNull(input); 187ArgumentNullException.ThrowIfNull(input); 194ArgumentNullException.ThrowIfNull(input); 201ArgumentNullException.ThrowIfNull(input); 208ArgumentNullException.ThrowIfNull(input); 215ArgumentNullException.ThrowIfNull(input);
System.Private.Xml.Linq (139)
System\Xml\Linq\Extensions.cs (18)
26ArgumentNullException.ThrowIfNull(source); 43ArgumentNullException.ThrowIfNull(source); 60ArgumentNullException.ThrowIfNull(source); 77ArgumentNullException.ThrowIfNull(source); 96ArgumentNullException.ThrowIfNull(source); 115ArgumentNullException.ThrowIfNull(source); 125ArgumentNullException.ThrowIfNull(source); 154ArgumentNullException.ThrowIfNull(source); 171ArgumentNullException.ThrowIfNull(source); 188ArgumentNullException.ThrowIfNull(source); 207ArgumentNullException.ThrowIfNull(source); 226ArgumentNullException.ThrowIfNull(source); 245ArgumentNullException.ThrowIfNull(source); 260ArgumentNullException.ThrowIfNull(source); 275ArgumentNullException.ThrowIfNull(source); 291ArgumentNullException.ThrowIfNull(source); 314ArgumentNullException.ThrowIfNull(source); 331ArgumentNullException.ThrowIfNull(source);
System\Xml\Linq\XAttribute.cs (33)
51/// <exception cref="ArgumentNullException"> 56ArgumentNullException.ThrowIfNull(name); 57ArgumentNullException.ThrowIfNull(value); 70/// <exception cref="ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(other); 155/// <exception cref="ArgumentNullException"> 166ArgumentNullException.ThrowIfNull(value); 196/// <exception cref="ArgumentNullException"> 201ArgumentNullException.ThrowIfNull(value); 250/// <exception cref="ArgumentNullException"> 256ArgumentNullException.ThrowIfNull(attribute); 287/// <exception cref="ArgumentNullException"> 293ArgumentNullException.ThrowIfNull(attribute); 324/// <exception cref="ArgumentNullException"> 330ArgumentNullException.ThrowIfNull(attribute); 361/// <exception cref="ArgumentNullException"> 367ArgumentNullException.ThrowIfNull(attribute); 398/// <exception cref="ArgumentNullException"> 404ArgumentNullException.ThrowIfNull(attribute); 435/// <exception cref="ArgumentNullException"> 441ArgumentNullException.ThrowIfNull(attribute); 472/// <exception cref="ArgumentNullException"> 478ArgumentNullException.ThrowIfNull(attribute); 509/// <exception cref="ArgumentNullException"> 515ArgumentNullException.ThrowIfNull(attribute); 546/// <exception cref="ArgumentNullException"> 552ArgumentNullException.ThrowIfNull(attribute); 583/// <exception cref="ArgumentNullException"> 589ArgumentNullException.ThrowIfNull(attribute); 620/// <exception cref="ArgumentNullException"> 626ArgumentNullException.ThrowIfNull(attribute); 657/// <exception cref="ArgumentNullException"> 663ArgumentNullException.ThrowIfNull(attribute);
System\Xml\Linq\XCData.cs (2)
50ArgumentNullException.ThrowIfNull(writer); 69ArgumentNullException.ThrowIfNull(writer);
System\Xml\Linq\XComment.cs (7)
26/// <exception cref="ArgumentNullException"> 31ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(other); 70/// <exception cref="ArgumentNullException"> 81ArgumentNullException.ThrowIfNull(value); 96ArgumentNullException.ThrowIfNull(writer); 110ArgumentNullException.ThrowIfNull(writer);
System\Xml\Linq\XContainer.cs (1)
30ArgumentNullException.ThrowIfNull(other);
System\Xml\Linq\XDeclaration.cs (1)
53ArgumentNullException.ThrowIfNull(other);
System\Xml\Linq\XDocument.cs (4)
423ArgumentNullException.ThrowIfNull(reader); 455ArgumentNullException.ThrowIfNull(reader); 797ArgumentNullException.ThrowIfNull(writer); 827ArgumentNullException.ThrowIfNull(writer);
System\Xml\Linq\XDocumentType.cs (3)
38ArgumentNullException.ThrowIfNull(other); 146ArgumentNullException.ThrowIfNull(writer); 162ArgumentNullException.ThrowIfNull(writer);
System\Xml\Linq\XElement.cs (30)
60ArgumentNullException.ThrowIfNull(name); 130ArgumentNullException.ThrowIfNull(other); 275ArgumentNullException.ThrowIfNull(value); 316ArgumentNullException.ThrowIfNull(value); 497ArgumentNullException.ThrowIfNull(ns); 809ArgumentNullException.ThrowIfNull(reader); 837ArgumentNullException.ThrowIfNull(reader); 1163ArgumentNullException.ThrowIfNull(writer); 1179ArgumentNullException.ThrowIfNull(writer); 1285/// <exception cref="ArgumentNullException"> 1290ArgumentNullException.ThrowIfNull(value); 1303ArgumentNullException.ThrowIfNull(writer); 1317ArgumentNullException.ThrowIfNull(writer); 1359/// <exception cref="ArgumentNullException"> 1365ArgumentNullException.ThrowIfNull(element); 1402/// <exception cref="ArgumentNullException"> 1408ArgumentNullException.ThrowIfNull(element); 1445/// <exception cref="ArgumentNullException"> 1451ArgumentNullException.ThrowIfNull(element); 1494ArgumentNullException.ThrowIfNull(element); 1537ArgumentNullException.ThrowIfNull(element); 1580ArgumentNullException.ThrowIfNull(element); 1623ArgumentNullException.ThrowIfNull(element); 1666ArgumentNullException.ThrowIfNull(element); 1709ArgumentNullException.ThrowIfNull(element); 1752ArgumentNullException.ThrowIfNull(element); 1789/// <exception cref="ArgumentNullException"> 1795ArgumentNullException.ThrowIfNull(element); 1838ArgumentNullException.ThrowIfNull(element); 1880ArgumentNullException.ThrowIfNull(reader);
System\Xml\Linq\XNamespace.cs (3)
58ArgumentNullException.ThrowIfNull(localName); 118ArgumentNullException.ThrowIfNull(namespaceName); 143ArgumentNullException.ThrowIfNull(ns);
System\Xml\Linq\XNode.cs (2)
428ArgumentNullException.ThrowIfNull(reader); 466ArgumentNullException.ThrowIfNull(reader);
System\Xml\Linq\XNodeBuilder.cs (1)
168ArgumentNullException.ThrowIfNull(prefix);
System\Xml\Linq\XObject.cs (4)
82ArgumentNullException.ThrowIfNull(annotation); 120ArgumentNullException.ThrowIfNull(type); 200ArgumentNullException.ThrowIfNull(type); 261ArgumentNullException.ThrowIfNull(type);
System\Xml\Linq\XProcessingInstruction.cs (8)
26/// <exception cref="ArgumentNullException"> 31ArgumentNullException.ThrowIfNull(data); 45ArgumentNullException.ThrowIfNull(other); 61/// <exception cref="ArgumentNullException"> 72ArgumentNullException.ThrowIfNull(value); 96/// <exception cref="ArgumentNullException"> 122ArgumentNullException.ThrowIfNull(writer); 136ArgumentNullException.ThrowIfNull(writer);
System\Xml\Linq\XStreamingElement.cs (4)
26ArgumentNullException.ThrowIfNull(name); 64ArgumentNullException.ThrowIfNull(value); 159ArgumentNullException.ThrowIfNull(writer); 221ArgumentNullException.ThrowIfNull(writer);
System\Xml\Linq\XText.cs (5)
23ArgumentNullException.ThrowIfNull(value); 34ArgumentNullException.ThrowIfNull(other); 70ArgumentNullException.ThrowIfNull(value); 85ArgumentNullException.ThrowIfNull(writer); 108ArgumentNullException.ThrowIfNull(writer);
System\Xml\Schema\XNodeValidator.cs (10)
440ArgumentNullException.ThrowIfNull(source); 451ArgumentNullException.ThrowIfNull(source); 482ArgumentNullException.ThrowIfNull(source); 483ArgumentNullException.ThrowIfNull(schemas); 520ArgumentNullException.ThrowIfNull(source); 521ArgumentNullException.ThrowIfNull(partialValidationType); 522ArgumentNullException.ThrowIfNull(schemas); 559ArgumentNullException.ThrowIfNull(source); 560ArgumentNullException.ThrowIfNull(partialValidationType); 561ArgumentNullException.ThrowIfNull(schemas);
System\Xml\XPath\XNodeNavigator.cs (3)
925ArgumentNullException.ThrowIfNull(node); 960ArgumentNullException.ThrowIfNull(node); 1010ArgumentNullException.ThrowIfNull(node);
System.Reflection.Context (6)
System\Reflection\Context\CustomReflectionContext.cs (3)
25ArgumentNullException.ThrowIfNull(source); 33ArgumentNullException.ThrowIfNull(assembly); 40ArgumentNullException.ThrowIfNull(type);
System\Reflection\Context\Virtual\VirtualParameter.cs (2)
13ArgumentNullException.ThrowIfNull(member); 14ArgumentNullException.ThrowIfNull(parameterType);
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
20ArgumentNullException.ThrowIfNull(name);
System.Reflection.DispatchProxy (3)
System\Reflection\DispatchProxy.cs (3)
53/// <exception cref="System.ArgumentNullException"><paramref name="interfaceType"/> or <paramref name="proxyType"/> is null</exception> 60ArgumentNullException.ThrowIfNull(interfaceType); 61ArgumentNullException.ThrowIfNull(proxyType);
System.Reflection.Emit (44)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
217ArgumentNullException.ThrowIfNull(baseType);
System\Reflection\Emit\ArrayMethod.cs (1)
30ArgumentNullException.ThrowIfNull(_parameterTypes[i] = parameterTypes[i], nameof(parameterTypes));
System\Reflection\Emit\EventBuilderImpl.cs (4)
37ArgumentNullException.ThrowIfNull(mdBuilder); 46ArgumentNullException.ThrowIfNull(mdBuilder); 68ArgumentNullException.ThrowIfNull(mdBuilder); 76ArgumentNullException.ThrowIfNull(mdBuilder);
System\Reflection\Emit\ILGeneratorImpl.cs (10)
107ArgumentNullException.ThrowIfNull(exceptionType); 245ArgumentNullException.ThrowIfNull(localType); 423ArgumentNullException.ThrowIfNull(con); 524ArgumentNullException.ThrowIfNull(labels); 544ArgumentNullException.ThrowIfNull(local); 572ArgumentNullException.ThrowIfNull(signature); 592ArgumentNullException.ThrowIfNull(field); 600ArgumentNullException.ThrowIfNull(meth); 615ArgumentNullException.ThrowIfNull(cls); 623ArgumentNullException.ThrowIfNull(methodInfo);
System\Reflection\Emit\MethodBuilderImpl.cs (3)
70ArgumentNullException.ThrowIfNull(_parameterTypes[i] = parameterTypes[i], nameof(parameterTypes)); 123ArgumentNullException.ThrowIfNull(names); 228ArgumentNullException.ThrowIfNull(_parameterTypes[i] = parameterTypes[i], nameof(parameterTypes));
System\Reflection\Emit\PersistedAssemblyBuilder.cs (7)
32/// <exception cref="ArgumentNullException">The <paramref name="name"/> or <paramref name="name.Name"/> or <paramref name="coreAssembly"/> is null.</exception> 36ArgumentNullException.ThrowIfNull(name); 38ArgumentNullException.ThrowIfNull(coreAssembly); 77/// <exception cref="ArgumentNullException"><paramref name="stream"/> is null.</exception> 86/// <exception cref="ArgumentNullException"><paramref name="assemblyFileName"/> is null.</exception> 91ArgumentNullException.ThrowIfNull(assemblyFileName); 99ArgumentNullException.ThrowIfNull(stream);
System\Reflection\Emit\PropertyBuilderImpl.cs (3)
50ArgumentNullException.ThrowIfNull(mdBuilder); 79ArgumentNullException.ThrowIfNull(mdBuilder); 87ArgumentNullException.ThrowIfNull(mdBuilder);
System\Reflection\Emit\TypeBuilderImpl.cs (15)
80ArgumentNullException.ThrowIfNull(@interface, nameof(interfaces)); 234ArgumentNullException.ThrowIfNull(eventtype); 271ArgumentNullException.ThrowIfNull(name, nameof(names)); 660ArgumentNullException.ThrowIfNull(types); 664ArgumentNullException.ThrowIfNull(types[i], nameof(types)); 775ArgumentNullException.ThrowIfNull(name); 850ArgumentNullException.ThrowIfNull(name); 891ArgumentNullException.ThrowIfNull(name); 935ArgumentNullException.ThrowIfNull(name); 1001ArgumentNullException.ThrowIfNull(name); 1043ArgumentNullException.ThrowIfNull(name); 1105ArgumentNullException.ThrowIfNull(name); 1143ArgumentNullException.ThrowIfNull(name); 1167ArgumentNullException.ThrowIfNull(name); 1251ArgumentNullException.ThrowIfNull(interfaceType);
System.Reflection.Metadata (96)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
41/// <exception cref="ArgumentNullException"><paramref name="name"/> is null.</exception>
System\Reflection\Metadata\BlobBuilder.cs (14)
334/// <exception cref="ArgumentNullException"><paramref name="destination"/> is null.</exception> 349/// <exception cref="ArgumentNullException"><paramref name="destination"/> is default(<see cref="BlobWriter"/>).</exception> 364/// <exception cref="ArgumentNullException"><paramref name="destination"/> is null.</exception> 379/// <exception cref="ArgumentNullException"><paramref name="prefix"/> is null.</exception> 440/// <exception cref="ArgumentNullException"><paramref name="suffix"/> is null.</exception> 649/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 690/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 738/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 750/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 765/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 777/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 957/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 977/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 1063/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
System\Reflection\Metadata\BlobReader.cs (1)
29/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null and <paramref name="length"/> is greater than zero.</exception>
System\Reflection\Metadata\BlobWriter.cs (10)
133/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 156/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 167/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 187/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 198/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 212/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 223/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is null.</exception> 371/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 385/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 456/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (7)
128/// <exception cref="ArgumentNullException"><paramref name="fixedArguments"/> or <paramref name="namedArguments"/> is null.</exception> 248/// <exception cref="ArgumentNullException"><paramref name="returnType"/> or <paramref name="parameters"/> is null.</exception> 494/// <exception cref="ArgumentNullException"><paramref name="arrayType"/> or <paramref name="vector"/> is null.</exception> 539/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="scalar"/> is null.</exception> 742/// <exception cref="ArgumentNullException"><paramref name="type"/>, <paramref name="name"/> or <paramref name="literal"/> is null.</exception> 1040/// <exception cref="ArgumentNullException"><paramref name="elementType"/> or <paramref name="arrayShape"/> is null.</exception> 1271/// <exception cref="ArgumentNullException"><paramref name="sizes"/> is null.</exception>
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (4)
179/// <exception cref="ArgumentNullException">A label has default value.</exception> 191/// <exception cref="ArgumentNullException">A label has default value.</exception> 205/// <exception cref="ArgumentNullException">A label has default value.</exception> 225/// <exception cref="ArgumentNullException">A label has default value.</exception>
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (3)
37ArgumentNullException.ThrowIfNull(codeBuilder); 416/// <exception cref="ArgumentNullException"><paramref name="label"/> has default value.</exception> 474/// <exception cref="ArgumentNullException"><paramref name="label"/> has default value.</exception>
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (3)
15ArgumentNullException.ThrowIfNull(builder); 131/// <exception cref="ArgumentNullException"><paramref name="instructionEncoder"/> has default value.</exception> 154/// <exception cref="ArgumentNullException"><paramref name="instructionEncoder"/> has default value.</exception>
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (8)
186/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 207/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 235/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 271/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 299/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 317/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 440/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 496/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (11)
18/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 38/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 112/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 193/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 208/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 223/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 242/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 256/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 270/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 284/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception> 308/// <exception cref="ArgumentNullException"><paramref name="reader"/> is null.</exception>
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (2)
52/// <exception cref="ArgumentNullException"><paramref name="tablesAndHeaps"/> is null.</exception> 92/// <exception cref="ArgumentNullException"><paramref name="builder"/> is null.</exception>
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (2)
46/// <exception cref="ArgumentNullException"><paramref name="tablesAndHeaps"/> or <paramref name="typeSystemRowCounts"/> is null.</exception> 124/// <exception cref="ArgumentNullException"><paramref name="builder"/> is null.</exception>
System\Reflection\Metadata\MetadataReader.cs (1)
66/// <exception cref="ArgumentNullException"><paramref name="metadata"/> is null.</exception>
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
63/// <exception cref="ArgumentNullException">If <paramref name="assemblyFile"/> is null.</exception>
System\Reflection\Metadata\MetadataReaderProvider.cs (6)
50/// <exception cref="ArgumentNullException"><paramref name="start"/> is <see cref="IntPtr.Zero"/>.</exception> 64/// <exception cref="ArgumentNullException"><paramref name="start"/> is <see cref="IntPtr.Zero"/>.</exception> 93/// <exception cref="ArgumentNullException"><paramref name="image"/> is null.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="image"/> is null.</exception> 134/// <exception cref="ArgumentNullException"><paramref name="stream"/> is null.</exception> 159/// <exception cref="ArgumentNullException"><paramref name="stream"/> is null.</exception>
System\Reflection\Metadata\MetadataStringComparer.cs (4)
65ArgumentNullException.ThrowIfNull(value); 77ArgumentNullException.ThrowIfNull(value); 94ArgumentNullException.ThrowIfNull(value); 106ArgumentNullException.ThrowIfNull(value);
System\Reflection\Metadata\PEReaderExtensions.cs (4)
20/// <exception cref="ArgumentNullException"><paramref name="peReader"/> is null.</exception> 47/// <exception cref="ArgumentNullException"><paramref name="peReader"/> is null</exception> 61/// <exception cref="ArgumentNullException"><paramref name="peReader"/> is null</exception> 75/// <exception cref="ArgumentNullException"><paramref name="peReader"/> is null</exception>
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (3)
78/// <exception cref="ArgumentNullException"><paramref name="pdbPath"/> is null.</exception> 96/// <exception cref="ArgumentNullException"><paramref name="pdbPath"/> is null.</exception> 169/// <exception cref="ArgumentNullException"><paramref name="algorithmName"/> or <paramref name="checksum"/> is null.</exception>
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
18/// <exception cref="ArgumentNullException"><paramref name="debugMetadata"/> is null.</exception>
System\Reflection\PortableExecutable\PEHeaders.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 72/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception>
System\Reflection\PortableExecutable\PEReader.cs (7)
50/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is <see cref="IntPtr.Zero"/>.</exception> 68/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is <see cref="IntPtr.Zero"/>.</exception> 95/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 124/// <exception cref="ArgumentNullException"><paramref name="peStream"/> is null.</exception> 230/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> 511/// <exception cref="ArgumentNullException"><paramref name="sectionName"/> is null.</exception> 706/// <exception cref="ArgumentNullException"><paramref name="peImagePath"/> or <paramref name="pdbFileStreamProvider"/> is null.</exception>
System.Reflection.MetadataLoadContext (23)
System\Reflection\DefaultBinder.cs (2)
276ArgumentNullException.ThrowIfNull(match); 318ArgumentNullException.ThrowIfNull(match);
System\Reflection\MetadataLoadContext.Apis.cs (6)
108ArgumentNullException.ThrowIfNull(resolver); 129ArgumentNullException.ThrowIfNull(assemblyPath); 143ArgumentNullException.ThrowIfNull(assembly); 160ArgumentNullException.ThrowIfNull(assembly); 177ArgumentNullException.ThrowIfNull(assemblyName); 195ArgumentNullException.ThrowIfNull(assemblyName);
System\Reflection\PathAssemblyResolver.cs (2)
30/// <exception cref="System.ArgumentNullException">Thrown when assemblyPaths is null.</exception> 34ArgumentNullException.ThrowIfNull(assemblyPaths);
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.ManifestResources.cs (2)
17ArgumentNullException.ThrowIfNull(resourceName); 63ArgumentNullException.ThrowIfNull(name);
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
102ArgumentNullException.ThrowIfNull(name);
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (3)
64ArgumentNullException.ThrowIfNull(name); 102ArgumentNullException.ThrowIfNull(moduleName); 103ArgumentNullException.ThrowIfNull(rawModule);
System\Reflection\TypeLoading\General\Helpers.cs (1)
277ArgumentNullException.ThrowIfNull(other);
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
103ArgumentNullException.ThrowIfNull(typeArguments);
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (1)
172ArgumentNullException.ThrowIfNull(name);
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (2)
14ArgumentNullException.ThrowIfNull(name); 21ArgumentNullException.ThrowIfNull(name);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
92ArgumentNullException.ThrowIfNull(typeArguments);
System\Reflection\TypeLoading\Types\RoType.GetInterface.cs (1)
13ArgumentNullException.ThrowIfNull(name);
System.Reflection.TypeExtensions (53)
System\Reflection\TypeExtensions.cs (53)
17ArgumentNullException.ThrowIfNull(type); 26ArgumentNullException.ThrowIfNull(type); 36ArgumentNullException.ThrowIfNull(type); 51ArgumentNullException.ThrowIfNull(type); 61ArgumentNullException.ThrowIfNull(type); 72ArgumentNullException.ThrowIfNull(type); 81ArgumentNullException.ThrowIfNull(type); 91ArgumentNullException.ThrowIfNull(type); 101ArgumentNullException.ThrowIfNull(type); 112ArgumentNullException.ThrowIfNull(type); 121ArgumentNullException.ThrowIfNull(type); 131ArgumentNullException.ThrowIfNull(type); 139ArgumentNullException.ThrowIfNull(type); 148ArgumentNullException.ThrowIfNull(type); 164ArgumentNullException.ThrowIfNull(type); 181ArgumentNullException.ThrowIfNull(type); 196ArgumentNullException.ThrowIfNull(type); 212ArgumentNullException.ThrowIfNull(type); 222ArgumentNullException.ThrowIfNull(type); 233ArgumentNullException.ThrowIfNull(type); 244ArgumentNullException.ThrowIfNull(type); 253ArgumentNullException.ThrowIfNull(type); 263ArgumentNullException.ThrowIfNull(type); 274ArgumentNullException.ThrowIfNull(type); 284ArgumentNullException.ThrowIfNull(type); 293ArgumentNullException.ThrowIfNull(type); 303ArgumentNullException.ThrowIfNull(type); 313ArgumentNullException.ThrowIfNull(type); 324ArgumentNullException.ThrowIfNull(type); 335ArgumentNullException.ThrowIfNull(type); 347ArgumentNullException.ThrowIfNull(type); 355ArgumentNullException.ThrowIfNull(type); 363ArgumentNullException.ThrowIfNull(type); 375ArgumentNullException.ThrowIfNull(assembly); 383ArgumentNullException.ThrowIfNull(assembly); 391ArgumentNullException.ThrowIfNull(assembly); 403ArgumentNullException.ThrowIfNull(eventInfo); 411ArgumentNullException.ThrowIfNull(eventInfo); 419ArgumentNullException.ThrowIfNull(eventInfo); 427ArgumentNullException.ThrowIfNull(eventInfo); 435ArgumentNullException.ThrowIfNull(eventInfo); 443ArgumentNullException.ThrowIfNull(eventInfo); 461ArgumentNullException.ThrowIfNull(member); 484ArgumentNullException.ThrowIfNull(member); 519ArgumentNullException.ThrowIfNull(method); 531ArgumentNullException.ThrowIfNull(module); 539ArgumentNullException.ThrowIfNull(module); 551ArgumentNullException.ThrowIfNull(property); 559ArgumentNullException.ThrowIfNull(property); 567ArgumentNullException.ThrowIfNull(property); 575ArgumentNullException.ThrowIfNull(property); 583ArgumentNullException.ThrowIfNull(property); 591ArgumentNullException.ThrowIfNull(property);
System.Resources.Extensions (20)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (6)
51ArgumentNullException.ThrowIfNull(fileName); 65ArgumentNullException.ThrowIfNull(stream); 82ArgumentNullException.ThrowIfNull(name); 99ArgumentNullException.ThrowIfNull(name); 125ArgumentNullException.ThrowIfNull(name); 162ArgumentNullException.ThrowIfNull(name);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
122ArgumentNullException.ThrowIfNull(stream);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
195ArgumentNullException.ThrowIfNull(reader); 266ArgumentNullException.ThrowIfNull(key);
System\Resources\Extensions\PreserializedResourceWriter.cs (11)
73ArgumentNullException.ThrowIfNull(name); 74ArgumentNullException.ThrowIfNull(value); 75ArgumentNullException.ThrowIfNull(typeName); 121ArgumentNullException.ThrowIfNull(name); 122ArgumentNullException.ThrowIfNull(value); 123ArgumentNullException.ThrowIfNull(typeName); 140ArgumentNullException.ThrowIfNull(name); 141ArgumentNullException.ThrowIfNull(value); 167ArgumentNullException.ThrowIfNull(name); 168ArgumentNullException.ThrowIfNull(value); 169ArgumentNullException.ThrowIfNull(typeName);
System.Resources.Writer (10)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (6)
51ArgumentNullException.ThrowIfNull(fileName); 65ArgumentNullException.ThrowIfNull(stream); 82ArgumentNullException.ThrowIfNull(name); 99ArgumentNullException.ThrowIfNull(name); 125ArgumentNullException.ThrowIfNull(name); 162ArgumentNullException.ThrowIfNull(name);
System\Resources\ResourceWriter.core.cs (4)
27ArgumentNullException.ThrowIfNull(name); 37ArgumentNullException.ThrowIfNull(name); 38ArgumentNullException.ThrowIfNull(typeName); 39ArgumentNullException.ThrowIfNull(serializedData);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
37[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentNullException))]
System.Runtime.Caching (25)
System\Runtime\Caching\CacheEntryRemovedArguments.cs (2)
29ArgumentNullException.ThrowIfNull(source); 30ArgumentNullException.ThrowIfNull(cacheItem);
System\Runtime\Caching\CacheEntryUpdateArguments.cs (2)
51ArgumentNullException.ThrowIfNull(source); 52ArgumentNullException.ThrowIfNull(key);
System\Runtime\Caching\ChangeMonitor.cs (1)
224ArgumentNullException.ThrowIfNull(onChangedCallback);
System\Runtime\Caching\FileChangeNotificationSystem.cs (4)
98ArgumentNullException.ThrowIfNull(filePath); 99ArgumentNullException.ThrowIfNull(onChangedCallback); 143ArgumentNullException.ThrowIfNull(filePath); 144ArgumentNullException.ThrowIfNull(state);
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
162ArgumentNullException.ThrowIfNull(filePaths);
System\Runtime\Caching\MemoryCache.cs (13)
324ArgumentNullException.ThrowIfNull(name); 342ArgumentNullException.ThrowIfNull(name); 371ArgumentNullException.ThrowIfNull(key); 417ArgumentNullException.ThrowIfNull(keys); 465ArgumentNullException.ThrowIfNull(key); 572ArgumentNullException.ThrowIfNull(item); 610ArgumentNullException.ThrowIfNull(item); 621ArgumentNullException.ThrowIfNull(key); 667ArgumentNullException.ThrowIfNull(key); 675ArgumentNullException.ThrowIfNull(onUpdateCallback); 735ArgumentNullException.ThrowIfNull(key); 779ArgumentNullException.ThrowIfNull(keys); 807ArgumentNullException.ThrowIfNull(config);
System\Runtime\Caching\MemoryCacheEntry.cs (1)
115ArgumentNullException.ThrowIfNull(value);
System\Runtime\Caching\ObjectCache.cs (1)
32ArgumentNullException.ThrowIfNull(value);
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
682ArgumentNullException.ThrowIfNull(value);
System\Numerics\Complex.cs (1)
1470ArgumentNullException.ThrowIfNull(s);
System.Runtime.Serialization.Formatters (38)
System\Runtime\Serialization\FormatterConverter.cs (17)
13ArgumentNullException.ThrowIfNull(value); 20ArgumentNullException.ThrowIfNull(value); 27ArgumentNullException.ThrowIfNull(value); 34ArgumentNullException.ThrowIfNull(value); 42ArgumentNullException.ThrowIfNull(value); 49ArgumentNullException.ThrowIfNull(value); 56ArgumentNullException.ThrowIfNull(value); 64ArgumentNullException.ThrowIfNull(value); 71ArgumentNullException.ThrowIfNull(value); 79ArgumentNullException.ThrowIfNull(value); 86ArgumentNullException.ThrowIfNull(value); 94ArgumentNullException.ThrowIfNull(value); 101ArgumentNullException.ThrowIfNull(value); 108ArgumentNullException.ThrowIfNull(value); 115ArgumentNullException.ThrowIfNull(value); 122ArgumentNullException.ThrowIfNull(value); 129ArgumentNullException.ThrowIfNull(value);
System\Runtime\Serialization\FormatterServices.cs (9)
176ArgumentNullException.ThrowIfNull(type); 218ArgumentNullException.ThrowIfNull(obj); 219ArgumentNullException.ThrowIfNull(members); 220ArgumentNullException.ThrowIfNull(data); 260ArgumentNullException.ThrowIfNull(obj); 261ArgumentNullException.ThrowIfNull(members); 285ArgumentNullException.ThrowIfNull(innerSurrogate); 293ArgumentNullException.ThrowIfNull(assem); 315ArgumentNullException.ThrowIfNull(type);
System\Runtime\Serialization\ObjectIDGenerator.cs (2)
67ArgumentNullException.ThrowIfNull(obj); 99ArgumentNullException.ThrowIfNull(obj);
System\Runtime\Serialization\ObjectManager.cs (5)
664ArgumentNullException.ThrowIfNull(obj); 775ArgumentNullException.ThrowIfNull(obj); 931ArgumentNullException.ThrowIfNull(member); 949ArgumentNullException.ThrowIfNull(memberName); 970ArgumentNullException.ThrowIfNull(indices);
System\Runtime\Serialization\SurrogateSelector.cs (5)
17ArgumentNullException.ThrowIfNull(type); 18ArgumentNullException.ThrowIfNull(surrogate); 56ArgumentNullException.ThrowIfNull(selector); 147ArgumentNullException.ThrowIfNull(type); 168ArgumentNullException.ThrowIfNull(type);
System.Security.Claims (86)
System\Security\Claims\Claim.cs (16)
46/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 58/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 61ArgumentNullException.ThrowIfNull(reader); 146/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="value"/> is null.</exception> 167/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="value"/> is null.</exception> 188/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="value"/> is null.</exception> 209/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="value"/> is null.</exception> 230/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="value"/> is null.</exception> 253ArgumentNullException.ThrowIfNull(type); 254ArgumentNullException.ThrowIfNull(value); 275/// <exception cref="ArgumentNullException">if 'other' is null.</exception> 287/// <exception cref="ArgumentNullException">if 'other' is null.</exception> 290ArgumentNullException.ThrowIfNull(other); 402/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 413/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 416ArgumentNullException.ThrowIfNull(writer);
System\Security\Claims\ClaimsIdentity.cs (34)
201/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 204ArgumentNullException.ThrowIfNull(reader); 214/// <exception cref="ArgumentNullException"> 222ArgumentNullException.ThrowIfNull(reader); 233/// <exception cref="ArgumentNullException">if 'other' is null.</exception> 236ArgumentNullException.ThrowIfNull(other); 249/// <exception cref="ArgumentNullException"> 254ArgumentNullException.ThrowIfNull(other); 303/// <exception cref="ArgumentNullException">Thrown is the <paramref name="info"/> is null.</exception> 466/// <exception cref="ArgumentNullException">if 'claim' is null.</exception> 469ArgumentNullException.ThrowIfNull(claim); 486/// <exception cref="ArgumentNullException">if 'claims' is null.</exception> 489ArgumentNullException.ThrowIfNull(claims); 600/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 603ArgumentNullException.ThrowIfNull(match); 623/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 626ArgumentNullException.ThrowIfNull(type); 649/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 652ArgumentNullException.ThrowIfNull(match); 670/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 673ArgumentNullException.ThrowIfNull(type); 694/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 697ArgumentNullException.ThrowIfNull(match); 716/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 717/// <exception cref="ArgumentNullException">if 'value' is null.</exception> 720ArgumentNullException.ThrowIfNull(type); 721ArgumentNullException.ThrowIfNull(value); 761/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 764ArgumentNullException.ThrowIfNull(reader); 844ArgumentNullException.ThrowIfNull(reader); 853/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 864/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 867ArgumentNullException.ThrowIfNull(writer); 1004/// <exception cref="ArgumentNullException">Thrown if the info parameter is null.</exception>
System\Security\Claims\ClaimsPrincipal.cs (32)
62ArgumentNullException.ThrowIfNull(identities); 98/// <exception cref="ArgumentNullException">if 'identities' is null.</exception> 101ArgumentNullException.ThrowIfNull(identities); 110/// <exception cref="ArgumentNullException">if 'identity' is null.</exception> 113ArgumentNullException.ThrowIfNull(identity); 129/// <exception cref="ArgumentNullException">if 'principal' is null.</exception> 132ArgumentNullException.ThrowIfNull(principal); 157/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 160ArgumentNullException.ThrowIfNull(reader); 193/// <exception cref="ArgumentNullException">if 'identity' is null.</exception> 196ArgumentNullException.ThrowIfNull(identity); 205/// <exception cref="ArgumentNullException">if 'identities' is null.</exception> 208ArgumentNullException.ThrowIfNull(identities); 253/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 257ArgumentNullException.ThrowIfNull(reader); 280/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 283ArgumentNullException.ThrowIfNull(match); 307/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 310ArgumentNullException.ThrowIfNull(type); 334/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 337ArgumentNullException.ThrowIfNull(match); 362/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 365ArgumentNullException.ThrowIfNull(type); 390/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 393ArgumentNullException.ThrowIfNull(match); 416/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 417/// <exception cref="ArgumentNullException">if 'value' is null.</exception> 420ArgumentNullException.ThrowIfNull(type); 421ArgumentNullException.ThrowIfNull(value); 492/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 503/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 506ArgumentNullException.ThrowIfNull(writer);
System\Security\Claims\GenericIdentity.cs (3)
16ArgumentNullException.ThrowIfNull(name); 26ArgumentNullException.ThrowIfNull(name); 27ArgumentNullException.ThrowIfNull(type);
System\Security\Claims\GenericPrincipal.cs (1)
17ArgumentNullException.ThrowIfNull(identity);
System.Security.Cryptography (1112)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs (2)
140ArgumentNullException.ThrowIfNull(digestAlgorithm.Name, nameof(digestAlgorithm)); 181ArgumentNullException.ThrowIfNull(digestAlgorithm.Name, nameof(digestAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (11)
90/// <exception cref="ArgumentNullException">The <paramref name="key" /> parameter is null.</exception> 152/// <exception cref="ArgumentNullException"> 159ArgumentNullException.ThrowIfNull(nonce); 160ArgumentNullException.ThrowIfNull(plaintext); 161ArgumentNullException.ThrowIfNull(ciphertext); 162ArgumentNullException.ThrowIfNull(tag); 228/// <exception cref="ArgumentNullException"> 238ArgumentNullException.ThrowIfNull(nonce); 239ArgumentNullException.ThrowIfNull(ciphertext); 240ArgumentNullException.ThrowIfNull(tag); 241ArgumentNullException.ThrowIfNull(plaintext);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
12ArgumentNullException.ThrowIfNull(extension);
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (42)
73/// <exception cref="ArgumentNullException"> 78ArgumentNullException.ThrowIfNull(algorithm); 108/// <exception cref="ArgumentNullException"> 127ArgumentNullException.ThrowIfNull(data); 258/// <exception cref="ArgumentNullException"> 275ArgumentNullException.ThrowIfNull(data); 276ArgumentNullException.ThrowIfNull(signature); 356/// <exception cref="ArgumentNullException"> 368ArgumentNullException.ThrowIfNull(algorithm); 375/// <exception cref="ArgumentNullException"> 380ArgumentNullException.ThrowIfNull(source); 381ArgumentNullException.ThrowIfNull(password); 461/// <exception cref="ArgumentNullException"> 466ArgumentNullException.ThrowIfNull(source); 467ArgumentNullException.ThrowIfNull(passwordBytes); 543/// <exception cref="ArgumentNullException"> 548ArgumentNullException.ThrowIfNull(source); 606/// <exception cref="ArgumentNullException"> 611ArgumentNullException.ThrowIfNull(source); 673/// <exception cref="ArgumentNullException"> 678ArgumentNullException.ThrowIfNull(password); 679ArgumentNullException.ThrowIfNull(source); 796/// <exception cref="ArgumentNullException"> 801ArgumentNullException.ThrowIfNull(source); 945/// <exception cref="ArgumentNullException"> 952ArgumentNullException.ThrowIfNull(password); 970/// <exception cref="ArgumentNullException"> 989ArgumentNullException.ThrowIfNull(pbeParameters); 1012/// <exception cref="ArgumentNullException"> 1033ArgumentNullException.ThrowIfNull(pbeParameters); 1044/// <exception cref="ArgumentNullException"> 1049ArgumentNullException.ThrowIfNull(password); 1066/// <exception cref="ArgumentNullException"> 1085ArgumentNullException.ThrowIfNull(pbeParameters); 1113/// <exception cref="ArgumentNullException"> 1130ArgumentNullException.ThrowIfNull(pbeParameters); 1147/// <exception cref="ArgumentNullException"> 1156ArgumentNullException.ThrowIfNull(password); 1182/// <exception cref="ArgumentNullException"> 1203ArgumentNullException.ThrowIfNull(pbeParameters); 1240/// <exception cref="ArgumentNullException"> 1263ArgumentNullException.ThrowIfNull(pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (5)
34ArgumentNullException.ThrowIfNull(asnEncodedData); 41ArgumentNullException.ThrowIfNull(attribute); 86ArgumentNullException.ThrowIfNull(attribute); 135ArgumentNullException.ThrowIfNull(array); 153ArgumentNullException.ThrowIfNull(array);
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (3)
198ArgumentNullException.ThrowIfNull(rgbHash); 310ArgumentNullException.ThrowIfNull(rgbHash); 311ArgumentNullException.ThrowIfNull(rgbSignature);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (6)
23ArgumentNullException.ThrowIfNull(otherPartyPublicKey); 43ArgumentNullException.ThrowIfNull(otherPartyPublicKey); 59ArgumentNullException.ThrowIfNull(otherPartyPublicKey); 60ArgumentNullException.ThrowIfNull(prfLabel); 61ArgumentNullException.ThrowIfNull(prfSeed); 75ArgumentNullException.ThrowIfNull(otherPartyPublicKey);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs (1)
15ArgumentNullException.ThrowIfNull(pkeyHandle);
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (4)
24/// <exception cref="ArgumentNullException">if <paramref name="curve" /> is null.</exception> 84ArgumentNullException.ThrowIfNull(hash); 157ArgumentNullException.ThrowIfNull(hash); 158ArgumentNullException.ThrowIfNull(signature);
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (53)
53ArgumentNullException.ThrowIfNull(algorithm); 146/// <exception cref="ArgumentNullException"> 165ArgumentNullException.ThrowIfNull(data); 238/// <exception cref="ArgumentNullException"> 255ArgumentNullException.ThrowIfNull(data); 256ArgumentNullException.ThrowIfNull(signature); 457/// <exception cref="ArgumentNullException"> 474ArgumentNullException.ThrowIfNull(pbeParameters); 502/// <exception cref="ArgumentNullException"> 521ArgumentNullException.ThrowIfNull(pbeParameters); 538/// <exception cref="ArgumentNullException"> 543ArgumentNullException.ThrowIfNull(password); 569/// <exception cref="ArgumentNullException"> 590ArgumentNullException.ThrowIfNull(pbeParameters); 627/// <exception cref="ArgumentNullException"> 650ArgumentNullException.ThrowIfNull(pbeParameters); 667/// <exception cref="ArgumentNullException"> 676ArgumentNullException.ThrowIfNull(password); 694/// <exception cref="ArgumentNullException"> 713ArgumentNullException.ThrowIfNull(pbeParameters); 736/// <exception cref="ArgumentNullException"> 757ArgumentNullException.ThrowIfNull(pbeParameters); 768/// <exception cref="ArgumentNullException"> 775ArgumentNullException.ThrowIfNull(password); 939/// <exception cref="ArgumentNullException"> 951ArgumentNullException.ThrowIfNull(algorithm); 1016/// <exception cref="ArgumentNullException"> 1021ArgumentNullException.ThrowIfNull(source); 1067/// <exception cref="ArgumentNullException"> 1072ArgumentNullException.ThrowIfNull(source); 1181/// <exception cref="ArgumentNullException"> 1186ArgumentNullException.ThrowIfNull(password); 1187ArgumentNullException.ThrowIfNull(source); 1242/// <exception cref="ArgumentNullException"> 1247ArgumentNullException.ThrowIfNull(source); 1387/// <exception cref="ArgumentNullException"> 1392ArgumentNullException.ThrowIfNull(source); 1393ArgumentNullException.ThrowIfNull(password); 1400/// <exception cref="ArgumentNullException"> 1405ArgumentNullException.ThrowIfNull(source); 1406ArgumentNullException.ThrowIfNull(passwordBytes); 1439ArgumentNullException.ThrowIfNull(algorithm); 1451/// <exception cref="ArgumentNullException"> 1456ArgumentNullException.ThrowIfNull(algorithm); 1457ArgumentNullException.ThrowIfNull(source); 1489ArgumentNullException.ThrowIfNull(algorithm); 1501/// <exception cref="ArgumentNullException"> 1506ArgumentNullException.ThrowIfNull(algorithm); 1507ArgumentNullException.ThrowIfNull(source); 1539ArgumentNullException.ThrowIfNull(algorithm); 1551/// <exception cref="ArgumentNullException"> 1556ArgumentNullException.ThrowIfNull(algorithm); 1557ArgumentNullException.ThrowIfNull(source);
src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.cs (1)
35/// <exception cref="ArgumentNullException">
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (51)
56/// <exception cref="ArgumentNullException"> 61ArgumentNullException.ThrowIfNull(algorithm); 74/// <exception cref="ArgumentNullException"> 86ArgumentNullException.ThrowIfNull(algorithm); 228/// <exception cref="ArgumentNullException"> 234ArgumentNullException.ThrowIfNull(ciphertext); 326/// <exception cref="ArgumentNullException"> 338ArgumentNullException.ThrowIfNull(algorithm); 357/// <exception cref="ArgumentNullException"> 371ArgumentNullException.ThrowIfNull(source); 385/// <exception cref="ArgumentNullException"> 397ArgumentNullException.ThrowIfNull(algorithm); 415/// <exception cref="ArgumentNullException"> 429ArgumentNullException.ThrowIfNull(source); 442/// <exception cref="ArgumentNullException"> 454ArgumentNullException.ThrowIfNull(algorithm); 472/// <exception cref="ArgumentNullException"> 486ArgumentNullException.ThrowIfNull(source); 783/// <exception cref="ArgumentNullException"> 804ArgumentNullException.ThrowIfNull(pbeParameters); 836/// <exception cref="ArgumentNullException"> 857ArgumentNullException.ThrowIfNull(password); 882/// <exception cref="ArgumentNullException"> 903ArgumentNullException.ThrowIfNull(pbeParameters); 926/// <exception cref="ArgumentNullException"> 943ArgumentNullException.ThrowIfNull(pbeParameters); 966/// <exception cref="ArgumentNullException"> 983ArgumentNullException.ThrowIfNull(pbeParameters); 1006/// <exception cref="ArgumentNullException"> 1023ArgumentNullException.ThrowIfNull(password); 1040/// <exception cref="ArgumentNullException"> 1057ArgumentNullException.ThrowIfNull(pbeParameters); 1083/// <exception cref="ArgumentNullException"> 1098ArgumentNullException.ThrowIfNull(pbeParameters); 1124/// <exception cref="ArgumentNullException"> 1139ArgumentNullException.ThrowIfNull(password); 1192/// <exception cref="ArgumentNullException"> 1197ArgumentNullException.ThrowIfNull(source); 1242/// <exception cref="ArgumentNullException"> 1247ArgumentNullException.ThrowIfNull(source); 1358/// <exception cref="ArgumentNullException"> 1384ArgumentNullException.ThrowIfNull(password); 1385ArgumentNullException.ThrowIfNull(source); 1442/// <exception cref="ArgumentNullException"> 1447ArgumentNullException.ThrowIfNull(source); 1573/// <exception cref="ArgumentNullException"> 1578ArgumentNullException.ThrowIfNull(source); 1579ArgumentNullException.ThrowIfNull(password); 1585/// <exception cref="ArgumentNullException"> 1590ArgumentNullException.ThrowIfNull(source); 1591ArgumentNullException.ThrowIfNull(passwordBytes);
src\libraries\Common\src\System\Security\Cryptography\MLKemCng.cs (1)
36/// <exception cref="ArgumentNullException">
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (5)
43ArgumentNullException.ThrowIfNull(safeContents); 44ArgumentNullException.ThrowIfNull(pbeParameters); 87ArgumentNullException.ThrowIfNull(safeContents); 88ArgumentNullException.ThrowIfNull(pbeParameters); 116ArgumentNullException.ThrowIfNull(safeContents);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
92ArgumentNullException.ThrowIfNull(certificateType);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (7)
65ArgumentNullException.ThrowIfNull(safeBag); 77ArgumentNullException.ThrowIfNull(certificate); 89ArgumentNullException.ThrowIfNull(key); 102ArgumentNullException.ThrowIfNull(safeContents); 131ArgumentNullException.ThrowIfNull(key); 159ArgumentNullException.ThrowIfNull(key); 172ArgumentNullException.ThrowIfNull(secretType);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (6)
31ArgumentNullException.ThrowIfNull(algorithmId); 61ArgumentNullException.ThrowIfNull(privateKey); 103ArgumentNullException.ThrowIfNull(pbeParameters); 119ArgumentNullException.ThrowIfNull(pbeParameters); 143ArgumentNullException.ThrowIfNull(pbeParameters); 161ArgumentNullException.ThrowIfNull(pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
76ArgumentNullException.ThrowIfNull(asnEncodedData);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
78ArgumentNullException.ThrowIfNull(documentDescription);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
78ArgumentNullException.ThrowIfNull(documentName);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (13)
84ArgumentNullException.ThrowIfNull(data); 85ArgumentNullException.ThrowIfNull(padding); 113ArgumentNullException.ThrowIfNull(padding); 207ArgumentNullException.ThrowIfNull(data); 208ArgumentNullException.ThrowIfNull(padding); 233ArgumentNullException.ThrowIfNull(padding); 729ArgumentNullException.ThrowIfNull(hash); 731ArgumentNullException.ThrowIfNull(padding); 757ArgumentNullException.ThrowIfNull(padding); 780ArgumentNullException.ThrowIfNull(hash); 781ArgumentNullException.ThrowIfNull(signature); 824ArgumentNullException.ThrowIfNull(padding); 854ArgumentNullException.ThrowIfNull(padding);
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (61)
56/// <exception cref="ArgumentNullException"> 61ArgumentNullException.ThrowIfNull(algorithm); 162/// <exception cref="ArgumentNullException"> 181ArgumentNullException.ThrowIfNull(data); 250/// <exception cref="ArgumentNullException"> 267ArgumentNullException.ThrowIfNull(data); 268ArgumentNullException.ThrowIfNull(signature); 290/// <exception cref="ArgumentNullException"> 314ArgumentNullException.ThrowIfNull(hashAlgorithmOid); 350/// <exception cref="ArgumentNullException"> 373ArgumentNullException.ThrowIfNull(hash); 374ArgumentNullException.ThrowIfNull(hashAlgorithmOid); 400/// <exception cref="ArgumentNullException"> 419ArgumentNullException.ThrowIfNull(hashAlgorithmOid); 459/// <exception cref="ArgumentNullException"> 480ArgumentNullException.ThrowIfNull(hash); 481ArgumentNullException.ThrowIfNull(signature); 482ArgumentNullException.ThrowIfNull(hashAlgorithmOid); 718/// <exception cref="ArgumentNullException"> 735ArgumentNullException.ThrowIfNull(pbeParameters); 763/// <exception cref="ArgumentNullException"> 782ArgumentNullException.ThrowIfNull(pbeParameters); 799/// <exception cref="ArgumentNullException"> 804ArgumentNullException.ThrowIfNull(password); 830/// <exception cref="ArgumentNullException"> 851ArgumentNullException.ThrowIfNull(pbeParameters); 888/// <exception cref="ArgumentNullException"> 911ArgumentNullException.ThrowIfNull(pbeParameters); 928/// <exception cref="ArgumentNullException"> 937ArgumentNullException.ThrowIfNull(password); 955/// <exception cref="ArgumentNullException"> 974ArgumentNullException.ThrowIfNull(pbeParameters); 1004/// <exception cref="ArgumentNullException"> 1025ArgumentNullException.ThrowIfNull(pbeParameters); 1043/// <exception cref="ArgumentNullException"> 1050ArgumentNullException.ThrowIfNull(password); 1170/// <exception cref="ArgumentNullException"> 1182ArgumentNullException.ThrowIfNull(algorithm); 1241/// <exception cref="ArgumentNullException"> 1246ArgumentNullException.ThrowIfNull(source); 1309/// <exception cref="ArgumentNullException"> 1314ArgumentNullException.ThrowIfNull(source); 1423/// <exception cref="ArgumentNullException"> 1428ArgumentNullException.ThrowIfNull(password); 1429ArgumentNullException.ThrowIfNull(source); 1484/// <exception cref="ArgumentNullException"> 1489ArgumentNullException.ThrowIfNull(source); 1629/// <exception cref="ArgumentNullException"> 1634ArgumentNullException.ThrowIfNull(source); 1635ArgumentNullException.ThrowIfNull(password); 1642/// <exception cref="ArgumentNullException"> 1647ArgumentNullException.ThrowIfNull(source); 1648ArgumentNullException.ThrowIfNull(passwordBytes); 1669/// <exception cref="ArgumentNullException"> 1681ArgumentNullException.ThrowIfNull(algorithm); 1694/// <exception cref="ArgumentNullException"> 1699ArgumentNullException.ThrowIfNull(source); 1719/// <exception cref="ArgumentNullException"> 1731ArgumentNullException.ThrowIfNull(algorithm); 1744/// <exception cref="ArgumentNullException"> 1749ArgumentNullException.ThrowIfNull(source);
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (22)
49/// <exception cref="ArgumentNullException"> 72/// <exception cref="ArgumentNullException"> 95ArgumentNullException.ThrowIfNull(key); 110/// <exception cref="ArgumentNullException"> 142ArgumentNullException.ThrowIfNull(key); 143ArgumentNullException.ThrowIfNull(label); 144ArgumentNullException.ThrowIfNull(context); 163/// <exception cref="ArgumentNullException"> 203ArgumentNullException.ThrowIfNull(key); 204ArgumentNullException.ThrowIfNull(label); 205ArgumentNullException.ThrowIfNull(context); 224/// <exception cref="ArgumentNullException"> 257/// <exception cref="ArgumentNullException"> 288/// <exception cref="ArgumentNullException"> 329/// <exception cref="ArgumentNullException"> 366/// <exception cref="ArgumentNullException"> 381ArgumentNullException.ThrowIfNull(label); 382ArgumentNullException.ThrowIfNull(context); 417/// <exception cref="ArgumentNullException"> 493/// <exception cref="ArgumentNullException"> 516ArgumentNullException.ThrowIfNull(label); 517ArgumentNullException.ThrowIfNull(context);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\Pkcs12LoaderLimits.cs (2)
97/// <exception cref="ArgumentNullException"> 102ArgumentNullException.ThrowIfNull(copyFrom);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (13)
49/// <exception cref="ArgumentNullException"> 70/// <exception cref="ArgumentNullException"> 100/// <exception cref="ArgumentNullException"> 135ArgumentNullException.ThrowIfNull(data); 159/// <exception cref="ArgumentNullException"> 227/// <exception cref="ArgumentNullException"> 289/// <exception cref="ArgumentNullException"> 353/// <exception cref="ArgumentNullException"> 376ArgumentNullException.ThrowIfNull(data); 401/// <exception cref="ArgumentNullException"> 461/// <exception cref="ArgumentNullException"> 513/// <exception cref="ArgumentNullException"> 730ArgumentNullException.ThrowIfNull(argument, paramName);
System\Security\Cryptography\Aes.cs (2)
156/// <exception cref="ArgumentNullException"> 165ArgumentNullException.ThrowIfNull(ciphertext);
System\Security\Cryptography\AesCcm.cs (9)
29ArgumentNullException.ThrowIfNull(key); 37ArgumentNullException.ThrowIfNull(nonce); 38ArgumentNullException.ThrowIfNull(plaintext); 39ArgumentNullException.ThrowIfNull(ciphertext); 40ArgumentNullException.ThrowIfNull(tag); 58ArgumentNullException.ThrowIfNull(nonce); 59ArgumentNullException.ThrowIfNull(ciphertext); 60ArgumentNullException.ThrowIfNull(tag); 61ArgumentNullException.ThrowIfNull(plaintext);
System\Security\Cryptography\AesImplementation.cs (1)
249ArgumentNullException.ThrowIfNull(rgbKey);
System\Security\Cryptography\AsnEncodedData.cs (4)
37ArgumentNullException.ThrowIfNull(asnEncodedData); 84ArgumentNullException.ThrowIfNull(rawData); 112ArgumentNullException.ThrowIfNull(value); 119ArgumentNullException.ThrowIfNull(asnEncodedData);
System\Security\Cryptography\AsnEncodedDataCollection.cs (4)
26ArgumentNullException.ThrowIfNull(asnEncodedData); 35ArgumentNullException.ThrowIfNull(asnEncodedData); 68ArgumentNullException.ThrowIfNull(array); 86ArgumentNullException.ThrowIfNull(array);
System\Security\Cryptography\AsymmetricSignatureDeformatter.cs (1)
17ArgumentNullException.ThrowIfNull(hash);
System\Security\Cryptography\AsymmetricSignatureFormatter.cs (1)
17ArgumentNullException.ThrowIfNull(hash);
System\Security\Cryptography\CapiHelper.Unix.cs (1)
11ArgumentNullException.ThrowIfNull(hashAlg);
System\Security\Cryptography\ChaCha20Poly1305.cs (9)
34ArgumentNullException.ThrowIfNull(key); 52ArgumentNullException.ThrowIfNull(nonce); 53ArgumentNullException.ThrowIfNull(plaintext); 54ArgumentNullException.ThrowIfNull(ciphertext); 55ArgumentNullException.ThrowIfNull(tag); 73ArgumentNullException.ThrowIfNull(nonce); 74ArgumentNullException.ThrowIfNull(ciphertext); 75ArgumentNullException.ThrowIfNull(tag); 76ArgumentNullException.ThrowIfNull(plaintext);
System\Security\Cryptography\CngKeyCreationParameters.cs (1)
58ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\CngProperty.cs (2)
22ArgumentNullException.ThrowIfNull(name); 33ArgumentNullException.ThrowIfNull(name);
System\Security\Cryptography\CryptoConfig.cs (7)
313ArgumentNullException.ThrowIfNull(algorithm); 316ArgumentNullException.ThrowIfNull(names); 339ArgumentNullException.ThrowIfNull(name); 522ArgumentNullException.ThrowIfNull(oid); 523ArgumentNullException.ThrowIfNull(names); 549ArgumentNullException.ThrowIfNull(name); 574ArgumentNullException.ThrowIfNull(str);
System\Security\Cryptography\CryptographicOperations.cs (24)
74/// <exception cref="ArgumentNullException"> 93ArgumentNullException.ThrowIfNull(source); 103/// <exception cref="ArgumentNullException"> 139/// <exception cref="ArgumentNullException"> 175/// <exception cref="ArgumentNullException"> 207/// <exception cref="ArgumentNullException"> 241/// <exception cref="ArgumentNullException"> 284/// <exception cref="ArgumentNullException"> 335/// <exception cref="ArgumentNullException"> 376/// <exception cref="ArgumentNullException"> 395ArgumentNullException.ThrowIfNull(key); 396ArgumentNullException.ThrowIfNull(source); 407/// <exception cref="ArgumentNullException"> 444/// <exception cref="ArgumentNullException"> 485/// <exception cref="ArgumentNullException"> 523/// <exception cref="ArgumentNullException"> 544ArgumentNullException.ThrowIfNull(key); 555/// <exception cref="ArgumentNullException"> 591/// <exception cref="ArgumentNullException"> 632/// <exception cref="ArgumentNullException"> 660ArgumentNullException.ThrowIfNull(key); 675/// <exception cref="ArgumentNullException"> 724/// <exception cref="ArgumentNullException"> 761ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\CryptoStream.cs (2)
40ArgumentNullException.ThrowIfNull(transform); 744ArgumentNullException.ThrowIfNull(destination);
System\Security\Cryptography\DES.cs (1)
51ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\DesImplementation.cs (1)
60ArgumentNullException.ThrowIfNull(rgbKey);
System\Security\Cryptography\DSA.cs (30)
97ArgumentNullException.ThrowIfNull(data); 113/// <exception cref="ArgumentNullException"> 127ArgumentNullException.ThrowIfNull(data); 138ArgumentNullException.ThrowIfNull(data); 163/// <exception cref="ArgumentNullException"> 195ArgumentNullException.ThrowIfNull(data); 243ArgumentNullException.ThrowIfNull(data); 259/// <exception cref="ArgumentNullException"> 273ArgumentNullException.ThrowIfNull(data); 301ArgumentNullException.ThrowIfNull(data); 308ArgumentNullException.ThrowIfNull(data); 316ArgumentNullException.ThrowIfNull(signature); 335/// <exception cref="ArgumentNullException"> 368ArgumentNullException.ThrowIfNull(data); 376ArgumentNullException.ThrowIfNull(signature); 386ArgumentNullException.ThrowIfNull(data); 387ArgumentNullException.ThrowIfNull(signature); 402/// <exception cref="ArgumentNullException"> 413ArgumentNullException.ThrowIfNull(rgbHash); 646/// <exception cref="ArgumentNullException"> 664ArgumentNullException.ThrowIfNull(data); 665ArgumentNullException.ThrowIfNull(signature); 683/// <exception cref="ArgumentNullException"> 701ArgumentNullException.ThrowIfNull(data); 702ArgumentNullException.ThrowIfNull(signature); 796/// <exception cref="ArgumentNullException"> 807ArgumentNullException.ThrowIfNull(rgbHash); 808ArgumentNullException.ThrowIfNull(rgbSignature); 927ArgumentNullException.ThrowIfNull(pbeParameters); 950ArgumentNullException.ThrowIfNull(pbeParameters);
System\Security\Cryptography\DSA.Xml.cs (1)
130ArgumentNullException.ThrowIfNull(keyParameters.X, "inArray");
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (4)
230ArgumentNullException.ThrowIfNull(rgbHash); 249ArgumentNullException.ThrowIfNull(rgbHash); 250ArgumentNullException.ThrowIfNull(rgbSignature); 299ArgumentNullException.ThrowIfNull(keyBlob);
System\Security\Cryptography\DSAOpenSsl.cs (2)
29/// <exception cref="ArgumentNullException"><paramref name="pkeyHandle"/> is <c>null</c></exception> 41ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\DSASignatureDeformatter.cs (4)
14ArgumentNullException.ThrowIfNull(key); 21ArgumentNullException.ThrowIfNull(key); 37ArgumentNullException.ThrowIfNull(rgbHash); 38ArgumentNullException.ThrowIfNull(rgbSignature);
System\Security\Cryptography\DSASignatureFormatter.cs (3)
14ArgumentNullException.ThrowIfNull(key); 21ArgumentNullException.ThrowIfNull(key); 37ArgumentNullException.ThrowIfNull(rgbHash);
System\Security\Cryptography\ECAlgorithm.cs (4)
106/// <exception cref="ArgumentNullException"> 134ArgumentNullException.ThrowIfNull(pbeParameters); 186/// <exception cref="ArgumentNullException"> 206ArgumentNullException.ThrowIfNull(pbeParameters);
System\Security\Cryptography\ECCurve.cs (3)
78ArgumentNullException.ThrowIfNull(value, nameof(Oid)); 107ArgumentNullException.ThrowIfNull(oidFriendlyName); 119ArgumentNullException.ThrowIfNull(oidValue);
System\Security\Cryptography\ECDiffieHellman.cs (4)
38ArgumentNullException.ThrowIfNull(algorithm); 128/// <exception cref="ArgumentNullException"><paramref name="prfLabel"/> is null</exception> 129/// <exception cref="ArgumentNullException"><paramref name="prfSeed"/> is null</exception> 145/// <exception cref="ArgumentNullException">
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (2)
17/// <exception cref="ArgumentNullException"><paramref name="pkeyHandle"/> is <c>null</c></exception> 27ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (1)
21ArgumentNullException.ThrowIfNull(keyBlob);
System\Security\Cryptography\ECDsa.cs (33)
36ArgumentNullException.ThrowIfNull(algorithm); 43ArgumentNullException.ThrowIfNull(data); 52ArgumentNullException.ThrowIfNull(data); 77/// <exception cref="ArgumentNullException"> 109ArgumentNullException.ThrowIfNull(data); 189/// <exception cref="ArgumentNullException"> 203ArgumentNullException.ThrowIfNull(data); 220/// <exception cref="ArgumentNullException"> 234ArgumentNullException.ThrowIfNull(data); 271/// <exception cref="ArgumentNullException"> 282ArgumentNullException.ThrowIfNull(hash); 548ArgumentNullException.ThrowIfNull(data); 570/// <exception cref="ArgumentNullException"> 604/// <exception cref="ArgumentNullException"> 648/// <exception cref="ArgumentNullException"> 698/// <exception cref="ArgumentNullException"> 721ArgumentNullException.ThrowIfNull(data); 728ArgumentNullException.ThrowIfNull(data); 736ArgumentNullException.ThrowIfNull(signature); 755/// <exception cref="ArgumentNullException"> 788ArgumentNullException.ThrowIfNull(data); 796ArgumentNullException.ThrowIfNull(signature); 818/// <exception cref="ArgumentNullException"> 832ArgumentNullException.ThrowIfNull(data); 833ArgumentNullException.ThrowIfNull(signature); 917ArgumentNullException.ThrowIfNull(data); 918ArgumentNullException.ThrowIfNull(signature); 935/// <exception cref="ArgumentNullException"> 953ArgumentNullException.ThrowIfNull(data); 954ArgumentNullException.ThrowIfNull(signature); 1121/// <exception cref="ArgumentNullException"> 1132ArgumentNullException.ThrowIfNull(hash); 1133ArgumentNullException.ThrowIfNull(signature);
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
17/// <exception cref="ArgumentNullException"><paramref name="pkeyHandle"/> is <c>null</c></exception> 27ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\HashAlgorithm.cs (4)
47ArgumentNullException.ThrowIfNull(buffer); 78ArgumentNullException.ThrowIfNull(buffer); 121ArgumentNullException.ThrowIfNull(inputStream); 236ArgumentNullException.ThrowIfNull(inputBuffer);
System\Security\Cryptography\HashAlgorithmName.cs (3)
136/// <exception cref="ArgumentNullException"> 141ArgumentNullException.ThrowIfNull(oidValue); 182/// <exception cref="ArgumentNullException">
System\Security\Cryptography\HashProvider.cs (1)
17ArgumentNullException.ThrowIfNull(data);
System\Security\Cryptography\Helpers.cs (1)
353ArgumentNullException.ThrowIfNull(arg, paramName);
System\Security\Cryptography\HKDF.cs (5)
33ArgumentNullException.ThrowIfNull(ikm); 81/// <exception cref="ArgumentNullException"><paramref name="prk"/>is <see langword="null"/>.</exception> 85ArgumentNullException.ThrowIfNull(prk); 145/// <exception cref="ArgumentNullException"><paramref name="ikm"/>is <see langword="null"/>.</exception> 149ArgumentNullException.ThrowIfNull(ikm);
System\Security\Cryptography\HMAC.cs (1)
35ArgumentNullException.ThrowIfNull(value, nameof(HashName));
System\Security\Cryptography\HMACMD5.cs (17)
39ArgumentNullException.ThrowIfNull(key); 59ArgumentNullException.ThrowIfNull(value); 85/// <exception cref="ArgumentNullException"> 91ArgumentNullException.ThrowIfNull(key); 92ArgumentNullException.ThrowIfNull(source); 171/// <exception cref="ArgumentNullException"> 187ArgumentNullException.ThrowIfNull(source); 204/// <exception cref="ArgumentNullException"> 213ArgumentNullException.ThrowIfNull(source); 227/// <exception cref="ArgumentNullException"> 236ArgumentNullException.ThrowIfNull(key); 251/// <exception cref="ArgumentNullException"> 260ArgumentNullException.ThrowIfNull(source); 278/// <exception cref="ArgumentNullException"> 287ArgumentNullException.ThrowIfNull(key); 303/// <exception cref="ArgumentNullException"> 323ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA1.cs (17)
38ArgumentNullException.ThrowIfNull(key); 65ArgumentNullException.ThrowIfNull(value); 91/// <exception cref="ArgumentNullException"> 96ArgumentNullException.ThrowIfNull(key); 97ArgumentNullException.ThrowIfNull(source); 173/// <exception cref="ArgumentNullException"> 188ArgumentNullException.ThrowIfNull(source); 205/// <exception cref="ArgumentNullException"> 213ArgumentNullException.ThrowIfNull(source); 227/// <exception cref="ArgumentNullException"> 235ArgumentNullException.ThrowIfNull(key); 250/// <exception cref="ArgumentNullException"> 258ArgumentNullException.ThrowIfNull(source); 276/// <exception cref="ArgumentNullException"> 284ArgumentNullException.ThrowIfNull(key); 300/// <exception cref="ArgumentNullException"> 319ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA256.cs (17)
37ArgumentNullException.ThrowIfNull(key); 57ArgumentNullException.ThrowIfNull(value); 83/// <exception cref="ArgumentNullException"> 88ArgumentNullException.ThrowIfNull(key); 89ArgumentNullException.ThrowIfNull(source); 165/// <exception cref="ArgumentNullException"> 180ArgumentNullException.ThrowIfNull(source); 197/// <exception cref="ArgumentNullException"> 205ArgumentNullException.ThrowIfNull(source); 219/// <exception cref="ArgumentNullException"> 227ArgumentNullException.ThrowIfNull(key); 242/// <exception cref="ArgumentNullException"> 250ArgumentNullException.ThrowIfNull(source); 268/// <exception cref="ArgumentNullException"> 276ArgumentNullException.ThrowIfNull(key); 292/// <exception cref="ArgumentNullException"> 311ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA3_256.cs (18)
55/// <exception cref="ArgumentNullException"> 60ArgumentNullException.ThrowIfNull(key); 88ArgumentNullException.ThrowIfNull(value); 119/// <exception cref="ArgumentNullException"> 124ArgumentNullException.ThrowIfNull(key); 125ArgumentNullException.ThrowIfNull(source); 203/// <exception cref="ArgumentNullException"> 218ArgumentNullException.ThrowIfNull(source); 236/// <exception cref="ArgumentNullException"> 244ArgumentNullException.ThrowIfNull(source); 259/// <exception cref="ArgumentNullException"> 267ArgumentNullException.ThrowIfNull(key); 282/// <exception cref="ArgumentNullException"> 290ArgumentNullException.ThrowIfNull(source); 309/// <exception cref="ArgumentNullException"> 317ArgumentNullException.ThrowIfNull(key); 333/// <exception cref="ArgumentNullException"> 352ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA3_384.cs (18)
55/// <exception cref="ArgumentNullException"> 60ArgumentNullException.ThrowIfNull(key); 88ArgumentNullException.ThrowIfNull(value); 119/// <exception cref="ArgumentNullException"> 124ArgumentNullException.ThrowIfNull(key); 125ArgumentNullException.ThrowIfNull(source); 203/// <exception cref="ArgumentNullException"> 218ArgumentNullException.ThrowIfNull(source); 236/// <exception cref="ArgumentNullException"> 244ArgumentNullException.ThrowIfNull(source); 259/// <exception cref="ArgumentNullException"> 267ArgumentNullException.ThrowIfNull(key); 282/// <exception cref="ArgumentNullException"> 290ArgumentNullException.ThrowIfNull(source); 309/// <exception cref="ArgumentNullException"> 317ArgumentNullException.ThrowIfNull(key); 333/// <exception cref="ArgumentNullException"> 352ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA3_512.cs (18)
55/// <exception cref="ArgumentNullException"> 60ArgumentNullException.ThrowIfNull(key); 88ArgumentNullException.ThrowIfNull(value); 119/// <exception cref="ArgumentNullException"> 124ArgumentNullException.ThrowIfNull(key); 125ArgumentNullException.ThrowIfNull(source); 203/// <exception cref="ArgumentNullException"> 218ArgumentNullException.ThrowIfNull(source); 236/// <exception cref="ArgumentNullException"> 244ArgumentNullException.ThrowIfNull(source); 259/// <exception cref="ArgumentNullException"> 267ArgumentNullException.ThrowIfNull(key); 282/// <exception cref="ArgumentNullException"> 290ArgumentNullException.ThrowIfNull(source); 309/// <exception cref="ArgumentNullException"> 317ArgumentNullException.ThrowIfNull(key); 333/// <exception cref="ArgumentNullException"> 352ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA384.cs (17)
37ArgumentNullException.ThrowIfNull(key); 74ArgumentNullException.ThrowIfNull(value); 100/// <exception cref="ArgumentNullException"> 105ArgumentNullException.ThrowIfNull(key); 106ArgumentNullException.ThrowIfNull(source); 182/// <exception cref="ArgumentNullException"> 197ArgumentNullException.ThrowIfNull(source); 214/// <exception cref="ArgumentNullException"> 222ArgumentNullException.ThrowIfNull(source); 236/// <exception cref="ArgumentNullException"> 244ArgumentNullException.ThrowIfNull(key); 259/// <exception cref="ArgumentNullException"> 267ArgumentNullException.ThrowIfNull(source); 285/// <exception cref="ArgumentNullException"> 293ArgumentNullException.ThrowIfNull(key); 309/// <exception cref="ArgumentNullException"> 328ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\HMACSHA512.cs (17)
37ArgumentNullException.ThrowIfNull(key); 71ArgumentNullException.ThrowIfNull(value); 97/// <exception cref="ArgumentNullException"> 102ArgumentNullException.ThrowIfNull(key); 103ArgumentNullException.ThrowIfNull(source); 179/// <exception cref="ArgumentNullException"> 194ArgumentNullException.ThrowIfNull(source); 211/// <exception cref="ArgumentNullException"> 219ArgumentNullException.ThrowIfNull(source); 233/// <exception cref="ArgumentNullException"> 241ArgumentNullException.ThrowIfNull(key); 256/// <exception cref="ArgumentNullException"> 264ArgumentNullException.ThrowIfNull(source); 282/// <exception cref="ArgumentNullException"> 290ArgumentNullException.ThrowIfNull(key); 306/// <exception cref="ArgumentNullException"> 325ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\IncrementalHash.cs (5)
57/// <exception cref="ArgumentNullException"><paramref name="data"/> is <c>null</c>.</exception> 61ArgumentNullException.ThrowIfNull(data); 73/// <exception cref="ArgumentNullException"><paramref name="data"/> is <c>null</c>.</exception> 88ArgumentNullException.ThrowIfNull(data); 355ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\Kmac128.cs (19)
30/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 210/// <exception cref="ArgumentNullException"> 224ArgumentNullException.ThrowIfNull(key); 225ArgumentNullException.ThrowIfNull(source); 296/// <exception cref="ArgumentNullException"> 310ArgumentNullException.ThrowIfNull(key); 311ArgumentNullException.ThrowIfNull(source); 333/// <exception cref="ArgumentNullException"> 347ArgumentNullException.ThrowIfNull(source); 365/// <exception cref="ArgumentNullException"> 379ArgumentNullException.ThrowIfNull(source); 400/// <exception cref="ArgumentNullException"> 424ArgumentNullException.ThrowIfNull(key); 425ArgumentNullException.ThrowIfNull(source); 447/// <exception cref="ArgumentNullException"> 471ArgumentNullException.ThrowIfNull(source); 491/// <exception cref="ArgumentNullException"> 512ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\Kmac256.cs (19)
30/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 210/// <exception cref="ArgumentNullException"> 224ArgumentNullException.ThrowIfNull(key); 225ArgumentNullException.ThrowIfNull(source); 296/// <exception cref="ArgumentNullException"> 310ArgumentNullException.ThrowIfNull(key); 311ArgumentNullException.ThrowIfNull(source); 333/// <exception cref="ArgumentNullException"> 347ArgumentNullException.ThrowIfNull(source); 365/// <exception cref="ArgumentNullException"> 379ArgumentNullException.ThrowIfNull(source); 400/// <exception cref="ArgumentNullException"> 424ArgumentNullException.ThrowIfNull(key); 425ArgumentNullException.ThrowIfNull(source); 447/// <exception cref="ArgumentNullException"> 471ArgumentNullException.ThrowIfNull(source); 491/// <exception cref="ArgumentNullException"> 512ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\KmacXof128.cs (19)
30/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 210/// <exception cref="ArgumentNullException"> 224ArgumentNullException.ThrowIfNull(key); 225ArgumentNullException.ThrowIfNull(source); 296/// <exception cref="ArgumentNullException"> 310ArgumentNullException.ThrowIfNull(key); 311ArgumentNullException.ThrowIfNull(source); 333/// <exception cref="ArgumentNullException"> 347ArgumentNullException.ThrowIfNull(source); 365/// <exception cref="ArgumentNullException"> 379ArgumentNullException.ThrowIfNull(source); 400/// <exception cref="ArgumentNullException"> 424ArgumentNullException.ThrowIfNull(key); 425ArgumentNullException.ThrowIfNull(source); 447/// <exception cref="ArgumentNullException"> 471ArgumentNullException.ThrowIfNull(source); 491/// <exception cref="ArgumentNullException"> 512ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\KmacXof256.cs (19)
30/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 210/// <exception cref="ArgumentNullException"> 224ArgumentNullException.ThrowIfNull(key); 225ArgumentNullException.ThrowIfNull(source); 296/// <exception cref="ArgumentNullException"> 310ArgumentNullException.ThrowIfNull(key); 311ArgumentNullException.ThrowIfNull(source); 333/// <exception cref="ArgumentNullException"> 347ArgumentNullException.ThrowIfNull(source); 365/// <exception cref="ArgumentNullException"> 379ArgumentNullException.ThrowIfNull(source); 400/// <exception cref="ArgumentNullException"> 424ArgumentNullException.ThrowIfNull(key); 425ArgumentNullException.ThrowIfNull(source); 447/// <exception cref="ArgumentNullException"> 471ArgumentNullException.ThrowIfNull(source); 491/// <exception cref="ArgumentNullException"> 512ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\MD5.cs (10)
49/// <exception cref="ArgumentNullException"> 55ArgumentNullException.ThrowIfNull(source); 128/// <exception cref="ArgumentNullException"> 144ArgumentNullException.ThrowIfNull(source); 160/// <exception cref="ArgumentNullException"> 169ArgumentNullException.ThrowIfNull(source); 186/// <exception cref="ArgumentNullException"> 195ArgumentNullException.ThrowIfNull(source); 213/// <exception cref="ArgumentNullException"> 232ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\MLDsaOpenSsl.cs (1)
37/// <exception cref="ArgumentNullException">
System\Security\Cryptography\MLDsaOpenSsl.OpenSsl.cs (1)
25ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\MLKemOpenSsl.cs (1)
37/// <exception cref="ArgumentNullException">
System\Security\Cryptography\MLKemOpenSsl.OpenSsl.cs (1)
24ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\Oid.cs (3)
32ArgumentNullException.ThrowIfNull(oid); 42ArgumentNullException.ThrowIfNull(friendlyName); 53ArgumentNullException.ThrowIfNull(oidValue);
System\Security\Cryptography\OidCollection.cs (2)
74ArgumentNullException.ThrowIfNull(array); 92ArgumentNullException.ThrowIfNull(array);
System\Security\Cryptography\OidLookup.cs (2)
23ArgumentNullException.ThrowIfNull(oid); 61ArgumentNullException.ThrowIfNull(friendlyName);
System\Security\Cryptography\RandomNumberGenerator.cs (1)
440ArgumentNullException.ThrowIfNull(data);
System\Security\Cryptography\RandomNumberGeneratorImplementation.cs (2)
29ArgumentNullException.ThrowIfNull(data); 50ArgumentNullException.ThrowIfNull(data);
System\Security\Cryptography\RC2Implementation.cs (1)
59ArgumentNullException.ThrowIfNull(rgbKey);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (1)
149ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (6)
23/// <exception cref="ArgumentNullException"> 47ArgumentNullException.ThrowIfNull(password); 48ArgumentNullException.ThrowIfNull(salt); 134/// <exception cref="ArgumentNullException"> 166ArgumentNullException.ThrowIfNull(password); 167ArgumentNullException.ThrowIfNull(salt);
System\Security\Cryptography\RSA.cs (32)
138/// <exception cref="ArgumentNullException"> 163ArgumentNullException.ThrowIfNull(padding); 185/// <exception cref="ArgumentNullException"> 213ArgumentNullException.ThrowIfNull(padding); 229/// <exception cref="ArgumentNullException"> 250ArgumentNullException.ThrowIfNull(padding); 272/// <exception cref="ArgumentNullException"> 296ArgumentNullException.ThrowIfNull(padding); 374ArgumentNullException.ThrowIfNull(data); 386ArgumentNullException.ThrowIfNull(data); 395ArgumentNullException.ThrowIfNull(padding); 403ArgumentNullException.ThrowIfNull(data); 405ArgumentNullException.ThrowIfNull(padding); 414ArgumentNullException.ThrowIfNull(padding); 433/// <exception cref="ArgumentNullException"> 459ArgumentNullException.ThrowIfNull(padding); 486/// <exception cref="ArgumentNullException"> 522ArgumentNullException.ThrowIfNull(padding); 539/// <exception cref="ArgumentNullException"> 565ArgumentNullException.ThrowIfNull(padding); 588/// <exception cref="ArgumentNullException"> 624ArgumentNullException.ThrowIfNull(padding); 636ArgumentNullException.ThrowIfNull(data); 649ArgumentNullException.ThrowIfNull(data); 657ArgumentNullException.ThrowIfNull(signature); 659ArgumentNullException.ThrowIfNull(padding); 667ArgumentNullException.ThrowIfNull(data); 668ArgumentNullException.ThrowIfNull(signature); 670ArgumentNullException.ThrowIfNull(padding); 679ArgumentNullException.ThrowIfNull(padding); 807ArgumentNullException.ThrowIfNull(pbeParameters); 830ArgumentNullException.ThrowIfNull(pbeParameters);
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (22)
44ArgumentNullException.ThrowIfNull(rgb); 55ArgumentNullException.ThrowIfNull(data); 56ArgumentNullException.ThrowIfNull(padding); 66ArgumentNullException.ThrowIfNull(padding); 87ArgumentNullException.ThrowIfNull(rgb); 94ArgumentNullException.ThrowIfNull(data); 95ArgumentNullException.ThrowIfNull(padding); 105ArgumentNullException.ThrowIfNull(padding); 179ArgumentNullException.ThrowIfNull(padding); 193ArgumentNullException.ThrowIfNull(padding); 207ArgumentNullException.ThrowIfNull(padding); 230ArgumentNullException.ThrowIfNull(padding); 244ArgumentNullException.ThrowIfNull(padding); 258ArgumentNullException.ThrowIfNull(rgbHash); 274ArgumentNullException.ThrowIfNull(padding); 288ArgumentNullException.ThrowIfNull(padding); 302ArgumentNullException.ThrowIfNull(hash); 303ArgumentNullException.ThrowIfNull(signature); 310ArgumentNullException.ThrowIfNull(padding); 324ArgumentNullException.ThrowIfNull(rgbHash); 325ArgumentNullException.ThrowIfNull(rgbSignature); 345ArgumentNullException.ThrowIfNull(keyBlob);
System\Security\Cryptography\RSAOAEPKeyExchangeDeformatter.cs (2)
13ArgumentNullException.ThrowIfNull(key); 34ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\RSAOAEPKeyExchangeFormatter.cs (2)
15ArgumentNullException.ThrowIfNull(key); 57ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\RSAOpenSsl.cs (2)
58/// <exception cref="ArgumentNullException"><paramref name="pkeyHandle"/> is <c>null</c></exception> 70ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\RSAPKCS1KeyExchangeDeformatter.cs (2)
17ArgumentNullException.ThrowIfNull(key); 44ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\RSAPKCS1KeyExchangeFormatter.cs (2)
17ArgumentNullException.ThrowIfNull(key); 38ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\RSAPKCS1SignatureDeformatter.cs (4)
18ArgumentNullException.ThrowIfNull(key); 25ArgumentNullException.ThrowIfNull(key); 47ArgumentNullException.ThrowIfNull(rgbHash); 48ArgumentNullException.ThrowIfNull(rgbSignature);
System\Security\Cryptography\RSAPKCS1SignatureFormatter.cs (3)
19ArgumentNullException.ThrowIfNull(key); 26ArgumentNullException.ThrowIfNull(key); 48ArgumentNullException.ThrowIfNull(rgbHash);
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (3)
104/// <exception cref="ArgumentNullException"> 156/// <exception cref="ArgumentNullException"> 209/// <exception cref="ArgumentNullException">
System\Security\Cryptography\SHA1.cs (10)
48/// <exception cref="ArgumentNullException"> 53ArgumentNullException.ThrowIfNull(source); 123/// <exception cref="ArgumentNullException"> 138ArgumentNullException.ThrowIfNull(source); 154/// <exception cref="ArgumentNullException"> 162ArgumentNullException.ThrowIfNull(source); 179/// <exception cref="ArgumentNullException"> 187ArgumentNullException.ThrowIfNull(source); 205/// <exception cref="ArgumentNullException"> 223ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SHA256.cs (10)
47/// <exception cref="ArgumentNullException"> 52ArgumentNullException.ThrowIfNull(source); 123/// <exception cref="ArgumentNullException"> 138ArgumentNullException.ThrowIfNull(source); 154/// <exception cref="ArgumentNullException"> 162ArgumentNullException.ThrowIfNull(source); 179/// <exception cref="ArgumentNullException"> 187ArgumentNullException.ThrowIfNull(source); 205/// <exception cref="ArgumentNullException"> 223ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SHA3_256.cs (10)
67/// <exception cref="ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(source); 156/// <exception cref="ArgumentNullException"> 174ArgumentNullException.ThrowIfNull(source); 191/// <exception cref="ArgumentNullException"> 202ArgumentNullException.ThrowIfNull(source); 220/// <exception cref="ArgumentNullException"> 231ArgumentNullException.ThrowIfNull(source); 250/// <exception cref="ArgumentNullException"> 271ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SHA3_384.cs (10)
67/// <exception cref="ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(source); 157/// <exception cref="ArgumentNullException"> 175ArgumentNullException.ThrowIfNull(source); 192/// <exception cref="ArgumentNullException"> 203ArgumentNullException.ThrowIfNull(source); 221/// <exception cref="ArgumentNullException"> 232ArgumentNullException.ThrowIfNull(source); 251/// <exception cref="ArgumentNullException"> 272ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SHA3_512.cs (10)
67/// <exception cref="ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(source); 156/// <exception cref="ArgumentNullException"> 174ArgumentNullException.ThrowIfNull(source); 191/// <exception cref="ArgumentNullException"> 202ArgumentNullException.ThrowIfNull(source); 220/// <exception cref="ArgumentNullException"> 231ArgumentNullException.ThrowIfNull(source); 250/// <exception cref="ArgumentNullException"> 271ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SHA384.cs (10)
47/// <exception cref="ArgumentNullException"> 52ArgumentNullException.ThrowIfNull(source); 122/// <exception cref="ArgumentNullException"> 137ArgumentNullException.ThrowIfNull(source); 153/// <exception cref="ArgumentNullException"> 161ArgumentNullException.ThrowIfNull(source); 178/// <exception cref="ArgumentNullException"> 186ArgumentNullException.ThrowIfNull(source); 204/// <exception cref="ArgumentNullException"> 222ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SHA512.cs (10)
47/// <exception cref="ArgumentNullException"> 52ArgumentNullException.ThrowIfNull(source); 122/// <exception cref="ArgumentNullException"> 137ArgumentNullException.ThrowIfNull(source); 153/// <exception cref="ArgumentNullException"> 161ArgumentNullException.ThrowIfNull(source); 178/// <exception cref="ArgumentNullException"> 186ArgumentNullException.ThrowIfNull(source); 204/// <exception cref="ArgumentNullException"> 222ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\Shake128.cs (12)
57/// <exception cref="ArgumentNullException"> 63ArgumentNullException.ThrowIfNull(data); 279/// <exception cref="ArgumentNullException"> 288ArgumentNullException.ThrowIfNull(source); 343/// <exception cref="ArgumentNullException"> 352ArgumentNullException.ThrowIfNull(source); 372/// <exception cref="ArgumentNullException"> 381ArgumentNullException.ThrowIfNull(source); 402/// <exception cref="ArgumentNullException"> 417ArgumentNullException.ThrowIfNull(source); 446/// <exception cref="ArgumentNullException"> 458ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\Shake256.cs (12)
57/// <exception cref="ArgumentNullException"> 63ArgumentNullException.ThrowIfNull(data); 279/// <exception cref="ArgumentNullException"> 288ArgumentNullException.ThrowIfNull(source); 343/// <exception cref="ArgumentNullException"> 352ArgumentNullException.ThrowIfNull(source); 372/// <exception cref="ArgumentNullException"> 381ArgumentNullException.ThrowIfNull(source); 402/// <exception cref="ArgumentNullException"> 417ArgumentNullException.ThrowIfNull(source); 446/// <exception cref="ArgumentNullException"> 458ArgumentNullException.ThrowIfNull(source);
System\Security\Cryptography\SignatureDescription.cs (1)
21ArgumentNullException.ThrowIfNull(el);
System\Security\Cryptography\SlhDsaOpenSsl.cs (1)
35/// <exception cref="ArgumentNullException">
System\Security\Cryptography\SlhDsaOpenSsl.OpenSsl.cs (1)
22ArgumentNullException.ThrowIfNull(pkeyHandle);
System\Security\Cryptography\SymmetricAlgorithm.cs (16)
74ArgumentNullException.ThrowIfNull(value); 93ArgumentNullException.ThrowIfNull(value); 481/// <exception cref="ArgumentNullException"> 495ArgumentNullException.ThrowIfNull(ciphertext); 599/// <exception cref="ArgumentNullException"> 613ArgumentNullException.ThrowIfNull(plaintext); 718/// <exception cref="ArgumentNullException"> 736ArgumentNullException.ThrowIfNull(ciphertext); 737ArgumentNullException.ThrowIfNull(iv); 873/// <exception cref="ArgumentNullException"> 891ArgumentNullException.ThrowIfNull(plaintext); 892ArgumentNullException.ThrowIfNull(iv); 1029/// <exception cref="ArgumentNullException"> 1063ArgumentNullException.ThrowIfNull(ciphertext); 1064ArgumentNullException.ThrowIfNull(iv); 1269/// <exception cref="ArgumentNullException">
System\Security\Cryptography\TripleDES.cs (1)
51ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\TripleDesImplementation.cs (1)
52ArgumentNullException.ThrowIfNull(rgbKey);
System\Security\Cryptography\UniversalCryptoTransform.cs (3)
71ArgumentNullException.ThrowIfNull(inputBuffer); 80ArgumentNullException.ThrowIfNull(outputBuffer); 92ArgumentNullException.ThrowIfNull(inputBuffer);
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (2)
15ArgumentNullException.ThrowIfNull(certificate); 51ArgumentNullException.ThrowIfNull(certificate);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (39)
74ArgumentNullException.ThrowIfNull(subjectName); 75ArgumentNullException.ThrowIfNull(key); 101ArgumentNullException.ThrowIfNull(subjectName); 102ArgumentNullException.ThrowIfNull(key); 132ArgumentNullException.ThrowIfNull(subjectName); 133ArgumentNullException.ThrowIfNull(key); 135ArgumentNullException.ThrowIfNull(padding); 168ArgumentNullException.ThrowIfNull(subjectName); 169ArgumentNullException.ThrowIfNull(key); 171ArgumentNullException.ThrowIfNull(padding); 192/// <exception cref="ArgumentNullException"> 200ArgumentNullException.ThrowIfNull(subjectName); 201ArgumentNullException.ThrowIfNull(key); 220/// <exception cref="ArgumentNullException"> 228ArgumentNullException.ThrowIfNull(subjectName); 229ArgumentNullException.ThrowIfNull(key); 248/// <exception cref="ArgumentNullException"> 256ArgumentNullException.ThrowIfNull(subjectName); 257ArgumentNullException.ThrowIfNull(key); 276/// <exception cref="ArgumentNullException"> 284ArgumentNullException.ThrowIfNull(subjectName); 285ArgumentNullException.ThrowIfNull(key); 308ArgumentNullException.ThrowIfNull(subjectName); 309ArgumentNullException.ThrowIfNull(publicKey); 342ArgumentNullException.ThrowIfNull(subjectName); 343ArgumentNullException.ThrowIfNull(publicKey); 412/// <exception cref="ArgumentNullException"> 459ArgumentNullException.ThrowIfNull(signatureGenerator); 559/// <exception cref="ArgumentNullException"> 601ArgumentNullException.ThrowIfNull(signatureGenerator); 689/// <exception cref="ArgumentNullException"><paramref name="issuerCertificate"/> is null.</exception> 747/// <exception cref="ArgumentNullException"><paramref name="issuerCertificate"/> is null.</exception> 778ArgumentNullException.ThrowIfNull(issuerCertificate); 902/// <exception cref="ArgumentNullException"><paramref name="issuerName"/> is null.</exception> 903/// <exception cref="ArgumentNullException"><paramref name="generator"/> is null.</exception> 947/// <exception cref="ArgumentNullException"><paramref name="issuerName"/> is null.</exception> 948/// <exception cref="ArgumentNullException"><paramref name="generator"/> is null.</exception> 965ArgumentNullException.ThrowIfNull(issuerName); 966ArgumentNullException.ThrowIfNull(generator);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
25ArgumentNullException.ThrowIfNull(pkcs10Pem); 89ArgumentNullException.ThrowIfNull(pkcs10);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (6)
46/// <exception cref="ArgumentNullException"> 134ArgumentNullException.ThrowIfNull(issuerCertificate); 279/// <exception cref="ArgumentNullException"> 335ArgumentNullException.ThrowIfNull(issuerName); 336ArgumentNullException.ThrowIfNull(generator); 345ArgumentNullException.ThrowIfNull(authorityKeyIdentifier);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (2)
27/// <exception cref="ArgumentNullException"> 48ArgumentNullException.ThrowIfNull(uris);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (6)
57/// <exception cref="ArgumentNullException"> 68ArgumentNullException.ThrowIfNull(certificate); 90/// <exception cref="ArgumentNullException"> 104ArgumentNullException.ThrowIfNull(serialNumber); 222/// <exception cref="ArgumentNullException"> 227ArgumentNullException.ThrowIfNull(serialNumber);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (4)
30/// <exception cref="ArgumentNullException"> 45ArgumentNullException.ThrowIfNull(currentCrl); 218/// <exception cref="ArgumentNullException"> 233ArgumentNullException.ThrowIfNull(currentCrl);
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (2)
35ArgumentNullException.ThrowIfNull(certificate); 36ArgumentNullException.ThrowIfNull(privateKey);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (2)
32ArgumentNullException.ThrowIfNull(certificate); 33ArgumentNullException.ThrowIfNull(privateKey);
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
218ArgumentNullException.ThrowIfNull(keyValue);
System\Security\Cryptography\X509Certificates\MLDsaX509SignatureGenerator.cs (1)
40ArgumentNullException.ThrowIfNull(data);
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (2)
25ArgumentNullException.ThrowIfNull(subject); 26ArgumentNullException.ThrowIfNull(publicKey);
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
19ArgumentNullException.ThrowIfNull(extensions);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (2)
32ArgumentNullException.ThrowIfNull(certificate); 33ArgumentNullException.ThrowIfNull(privateKey);
System\Security\Cryptography\X509Certificates\SlhDsaX509SignatureGenerator.cs (1)
41ArgumentNullException.ThrowIfNull(data);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (2)
38ArgumentNullException.ThrowIfNull(uri); 45ArgumentNullException.ThrowIfNull(ipAddress);
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
90ArgumentNullException.ThrowIfNull(distinguishedName);
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (13)
46/// <exception cref="ArgumentNullException"> 64ArgumentNullException.ThrowIfNull(value); 80/// <exception cref="ArgumentNullException"> 98ArgumentNullException.ThrowIfNull(oid); 99ArgumentNullException.ThrowIfNull(value); 110/// <exception cref="ArgumentNullException"> 147/// <exception cref="ArgumentNullException"> 170/// <exception cref="ArgumentNullException"> 193/// <exception cref="ArgumentNullException"> 244/// <exception cref="ArgumentNullException"> 267/// <exception cref="ArgumentNullException"> 290/// <exception cref="ArgumentNullException"> 313/// <exception cref="ArgumentNullException">
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (5)
39/// <exception cref="ArgumentNullException"> 125/// <exception cref="ArgumentNullException"> 135ArgumentNullException.ThrowIfNull(accessMethodOid); 157/// <exception cref="ArgumentNullException"> 171ArgumentNullException.ThrowIfNull(accessMethodOid);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (18)
45/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 198ArgumentNullException.ThrowIfNull(subjectKeyIdentifier); 215/// <exception cref="ArgumentNullException"> 221ArgumentNullException.ThrowIfNull(subjectKeyIdentifier); 266/// <exception cref="ArgumentNullException"> 277ArgumentNullException.ThrowIfNull(issuerName); 278ArgumentNullException.ThrowIfNull(serialNumber); 298/// <exception cref="ArgumentNullException"> 309ArgumentNullException.ThrowIfNull(issuerName); 354/// <exception cref="ArgumentNullException"> 367ArgumentNullException.ThrowIfNull(keyIdentifier); 368ArgumentNullException.ThrowIfNull(issuerName); 369ArgumentNullException.ThrowIfNull(serialNumber); 396/// <exception cref="ArgumentNullException"> 408ArgumentNullException.ThrowIfNull(issuerName); 453/// <exception cref="ArgumentNullException"> 465ArgumentNullException.ThrowIfNull(certificate);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (6)
172ArgumentNullException.ThrowIfNull(fileName); 184ArgumentNullException.ThrowIfNull(fileName); 201ArgumentNullException.ThrowIfNull(fileName); 214ArgumentNullException.ThrowIfNull(cert); 390/// <exception cref="ArgumentNullException"> 410ArgumentNullException.ThrowIfNull(exportParameters);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (14)
421ArgumentNullException.ThrowIfNull(fileName); 745/// <exception cref="ArgumentNullException"><paramref name="privateKey" /> is <see langword="null"/>.</exception> 760ArgumentNullException.ThrowIfNull(privateKey); 839/// <exception cref="ArgumentNullException"> 851ArgumentNullException.ThrowIfNull(privateKey); 940/// <exception cref="ArgumentNullException"> 952ArgumentNullException.ThrowIfNull(privateKey); 1032/// <exception cref="ArgumentNullException"> 1044ArgumentNullException.ThrowIfNull(privateKey); 1103/// <exception cref="ArgumentNullException"> 1132ArgumentNullException.ThrowIfNull(certPemFilePath); 1172/// <exception cref="ArgumentNullException"> 1198ArgumentNullException.ThrowIfNull(certPemFilePath); 1621ArgumentNullException.ThrowIfNull(hostname);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (19)
50ArgumentNullException.ThrowIfNull(certificate); 57ArgumentNullException.ThrowIfNull(certificates); 79ArgumentNullException.ThrowIfNull(certificates); 152/// <exception cref="ArgumentNullException"> 170ArgumentNullException.ThrowIfNull(exportParameters); 192ArgumentNullException.ThrowIfNull(findValue); 207ArgumentNullException.ThrowIfNull(rawData); 230ArgumentNullException.ThrowIfNull(rawData); 280ArgumentNullException.ThrowIfNull(fileName); 291ArgumentNullException.ThrowIfNull(fileName); 317ArgumentNullException.ThrowIfNull(fileName); 330ArgumentNullException.ThrowIfNull(certificate); 337ArgumentNullException.ThrowIfNull(certificate); 344ArgumentNullException.ThrowIfNull(certificates); 366ArgumentNullException.ThrowIfNull(certificates); 408/// <exception cref="ArgumentNullException"> 413ArgumentNullException.ThrowIfNull(certPemFilePath); 659/// <exception cref="ArgumentNullException"> 689ArgumentNullException.ThrowIfNull(thumbprintHex);
System\Security\Cryptography\X509Certificates\X509CertificateCollection.cs (3)
33ArgumentNullException.ThrowIfNull(value); 46ArgumentNullException.ThrowIfNull(value); 56ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\X509Certificates\X509CertificateEnumerator.cs (1)
16ArgumentNullException.ThrowIfNull(mappings);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (1)
13ArgumentNullException.ThrowIfNull(data);
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
47ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
60ArgumentNullException.ThrowIfNull(array);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
56ArgumentNullException.ThrowIfNull(enhancedKeyUsages);
System\Security\Cryptography\X509Certificates\X509Extension.cs (1)
80ArgumentNullException.ThrowIfNull(asnEncodedData);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
66ArgumentNullException.ThrowIfNull(extension); 79ArgumentNullException.ThrowIfNull(array);
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (7)
20ArgumentNullException.ThrowIfNull(key); 27ArgumentNullException.ThrowIfNull(key); 28ArgumentNullException.ThrowIfNull(signaturePadding); 47/// <exception cref="ArgumentNullException"> 53ArgumentNullException.ThrowIfNull(key); 67/// <exception cref="ArgumentNullException"> 73ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\X509Certificates\X509Store.cs (4)
128ArgumentNullException.ThrowIfNull(certificate); 141ArgumentNullException.ThrowIfNull(certificates); 166ArgumentNullException.ThrowIfNull(certificate); 179ArgumentNullException.ThrowIfNull(certificates);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
148ArgumentNullException.ThrowIfNull(subjectKeyIdentifier); 156ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\XmlKeyHelper.cs (1)
17ArgumentNullException.ThrowIfNull(xmlString);
System.Security.Cryptography.Cose (127)
System\Security\Cryptography\Cose\CoseHeaderLabel.cs (2)
59/// <exception cref="ArgumentNullException"><paramref name="label"/> is <see langword="null"/>.</exception> 62ArgumentNullException.ThrowIfNull(label);
System\Security\Cryptography\Cose\CoseHeaderValue.cs (6)
48/// <exception cref="ArgumentNullException"><paramref name="encodedValue"/> is <see langword="null"/>.</exception> 51ArgumentNullException.ThrowIfNull(encodedValue); 82/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 85ArgumentNullException.ThrowIfNull(value); 112/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 116ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Cose\CoseKey.cs (6)
32ArgumentNullException.ThrowIfNull(key); 33ArgumentNullException.ThrowIfNull(signaturePadding); 34ArgumentNullException.ThrowIfNull(hashAlgorithm.Name); 47ArgumentNullException.ThrowIfNull(key); 48ArgumentNullException.ThrowIfNull(hashAlgorithm.Name); 61ArgumentNullException.ThrowIfNull(key);
System\Security\Cryptography\Cose\CoseMessage.cs (4)
91/// <exception cref="ArgumentNullException"><paramref name="cborPayload"/> is <see langword="null"/>.</exception> 95ArgumentNullException.ThrowIfNull(cborPayload); 176/// <exception cref="ArgumentNullException"><paramref name="cborPayload"/> is <see langword="null"/>.</exception> 180ArgumentNullException.ThrowIfNull(cborPayload);
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (28)
53/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 69ArgumentNullException.ThrowIfNull(detachedContent); 83/// <exception cref="ArgumentNullException"><paramref name="embeddedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 99ArgumentNullException.ThrowIfNull(embeddedContent); 113/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 140/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 166/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 187ArgumentNullException.ThrowIfNull(detachedContent); 207ArgumentNullException.ThrowIfNull(signer); 230/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 256ArgumentNullException.ThrowIfNull(detachedContent); 257ArgumentNullException.ThrowIfNull(signer); 298/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 326/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 345ArgumentNullException.ThrowIfNull(signer); 635/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 654/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 667ArgumentNullException.ThrowIfNull(signer); 683/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 696ArgumentNullException.ThrowIfNull(detachedContent); 707/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 720ArgumentNullException.ThrowIfNull(signer); 736/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 753ArgumentNullException.ThrowIfNull(detachedContent); 812/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 829ArgumentNullException.ThrowIfNull(detachedContent); 879/// <exception cref="ArgumentNullException"><paramref name="signature"/> is <see langword="null"/>.</exception> 883ArgumentNullException.ThrowIfNull(signature);
System\Security\Cryptography\Cose\CoseSign1Message.cs (47)
41/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 53ArgumentNullException.ThrowIfNull(detachedContent); 54ArgumentNullException.ThrowIfNull(signer); 66/// <exception cref="ArgumentNullException"><paramref name="embeddedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 78ArgumentNullException.ThrowIfNull(embeddedContent); 79ArgumentNullException.ThrowIfNull(signer); 91/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 103ArgumentNullException.ThrowIfNull(signer); 115/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 127ArgumentNullException.ThrowIfNull(signer); 139/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 155ArgumentNullException.ThrowIfNull(detachedContent); 156ArgumentNullException.ThrowIfNull(signer); 190/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 206ArgumentNullException.ThrowIfNull(detachedContent); 207ArgumentNullException.ThrowIfNull(signer); 239/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 261/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 276ArgumentNullException.ThrowIfNull(signer); 363/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 387ArgumentNullException.ThrowIfNull(key); 406/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 430ArgumentNullException.ThrowIfNull(key); 449/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 473ArgumentNullException.ThrowIfNull(key); 490/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 514ArgumentNullException.ThrowIfNull(key); 515ArgumentNullException.ThrowIfNull(detachedContent); 535/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 559ArgumentNullException.ThrowIfNull(key); 560ArgumentNullException.ThrowIfNull(detachedContent); 572/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 596ArgumentNullException.ThrowIfNull(key); 615/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 639ArgumentNullException.ThrowIfNull(key); 656/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 688ArgumentNullException.ThrowIfNull(key); 689ArgumentNullException.ThrowIfNull(detachedContent); 718/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 750ArgumentNullException.ThrowIfNull(key); 751ArgumentNullException.ThrowIfNull(detachedContent); 823/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 855ArgumentNullException.ThrowIfNull(key); 856ArgumentNullException.ThrowIfNull(detachedContent); 886/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 917ArgumentNullException.ThrowIfNull(key); 918ArgumentNullException.ThrowIfNull(detachedContent);
System\Security\Cryptography\Cose\CoseSignature.cs (28)
78/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 102ArgumentNullException.ThrowIfNull(key); 121/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 145ArgumentNullException.ThrowIfNull(key); 161/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 185ArgumentNullException.ThrowIfNull(key); 205/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 229ArgumentNullException.ThrowIfNull(key); 231ArgumentNullException.ThrowIfNull(detachedContent); 251/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 275ArgumentNullException.ThrowIfNull(key); 276ArgumentNullException.ThrowIfNull(detachedContent); 288/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 312ArgumentNullException.ThrowIfNull(key); 332/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 356ArgumentNullException.ThrowIfNull(key); 373/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 405ArgumentNullException.ThrowIfNull(key); 407ArgumentNullException.ThrowIfNull(detachedContent); 437/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 468ArgumentNullException.ThrowIfNull(key); 469ArgumentNullException.ThrowIfNull(detachedContent); 497/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 529ArgumentNullException.ThrowIfNull(key); 530ArgumentNullException.ThrowIfNull(detachedContent); 561/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 593ArgumentNullException.ThrowIfNull(key); 594ArgumentNullException.ThrowIfNull(detachedContent);
System\Security\Cryptography\Cose\CoseSigner.cs (6)
49/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 73ArgumentNullException.ThrowIfNull(key); 96/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 112ArgumentNullException.ThrowIfNull(key); 113ArgumentNullException.ThrowIfNull(signaturePadding); 128/// <exception cref="ArgumentNullException"></exception>
System.Security.Cryptography.Pkcs (62)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
12ArgumentNullException.ThrowIfNull(extension);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (5)
34ArgumentNullException.ThrowIfNull(asnEncodedData); 41ArgumentNullException.ThrowIfNull(attribute); 86ArgumentNullException.ThrowIfNull(attribute); 135ArgumentNullException.ThrowIfNull(array); 153ArgumentNullException.ThrowIfNull(array);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (5)
43ArgumentNullException.ThrowIfNull(safeContents); 44ArgumentNullException.ThrowIfNull(pbeParameters); 87ArgumentNullException.ThrowIfNull(safeContents); 88ArgumentNullException.ThrowIfNull(pbeParameters); 116ArgumentNullException.ThrowIfNull(safeContents);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
92ArgumentNullException.ThrowIfNull(certificateType);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (7)
65ArgumentNullException.ThrowIfNull(safeBag); 77ArgumentNullException.ThrowIfNull(certificate); 89ArgumentNullException.ThrowIfNull(key); 102ArgumentNullException.ThrowIfNull(safeContents); 131ArgumentNullException.ThrowIfNull(key); 159ArgumentNullException.ThrowIfNull(key); 172ArgumentNullException.ThrowIfNull(secretType);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (6)
31ArgumentNullException.ThrowIfNull(algorithmId); 61ArgumentNullException.ThrowIfNull(privateKey); 103ArgumentNullException.ThrowIfNull(pbeParameters); 119ArgumentNullException.ThrowIfNull(pbeParameters); 143ArgumentNullException.ThrowIfNull(pbeParameters); 161ArgumentNullException.ThrowIfNull(pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
76ArgumentNullException.ThrowIfNull(asnEncodedData);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
78ArgumentNullException.ThrowIfNull(documentDescription);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
78ArgumentNullException.ThrowIfNull(documentName);
System\Security\Cryptography\Pkcs\CmsRecipient.cs (3)
25ArgumentNullException.ThrowIfNull(rsaEncryptionPadding); 39ArgumentNullException.ThrowIfNull(rsaEncryptionPadding); 47ArgumentNullException.ThrowIfNull(certificate);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (4)
58ArgumentNullException.ThrowIfNull(recipient); 67ArgumentNullException.ThrowIfNull(recipient); 84ArgumentNullException.ThrowIfNull(array); 102ArgumentNullException.ThrowIfNull(array);
System\Security\Cryptography\Pkcs\ContentInfo.cs (3)
24ArgumentNullException.ThrowIfNull(contentType); 25ArgumentNullException.ThrowIfNull(content); 37ArgumentNullException.ThrowIfNull(encodedMessage);
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (10)
30ArgumentNullException.ThrowIfNull(contentInfo); 31ArgumentNullException.ThrowIfNull(encryptionAlgorithm); 87ArgumentNullException.ThrowIfNull(recipient); 94ArgumentNullException.ThrowIfNull(recipients); 125ArgumentNullException.ThrowIfNull(encodedMessage); 180ArgumentNullException.ThrowIfNull(recipientInfo); 187ArgumentNullException.ThrowIfNull(recipientInfo); 188ArgumentNullException.ThrowIfNull(extraStore); 195ArgumentNullException.ThrowIfNull(extraStore); 207ArgumentNullException.ThrowIfNull(recipientInfo);
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (2)
59ArgumentNullException.ThrowIfNull(array); 76ArgumentNullException.ThrowIfNull(array);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
172ArgumentNullException.ThrowIfNull(signerInfo);
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
127ArgumentNullException.ThrowIfNull(hashAlgorithmId); 156ArgumentNullException.ThrowIfNull(signerInfo);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
326ArgumentNullException.ThrowIfNull(policyId); 327ArgumentNullException.ThrowIfNull(hashAlgorithmId);
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
46ArgumentNullException.ThrowIfNull(contentInfo); 158ArgumentNullException.ThrowIfNull(encodedMessage); 303ArgumentNullException.ThrowIfNull(signer); 409ArgumentNullException.ThrowIfNull(signerInfo);
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
428ArgumentNullException.ThrowIfNull(counterSignerInfo); 454ArgumentNullException.ThrowIfNull(extraStore);
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
57ArgumentNullException.ThrowIfNull(array);
System.Security.Cryptography.ProtectedData (2)
System\Security\Cryptography\ProtectedData.cs (2)
20ArgumentNullException.ThrowIfNull(userData); 171ArgumentNullException.ThrowIfNull(encryptedData);
System.Security.Cryptography.Xml (82)
System\Security\Cryptography\Xml\CanonicalizationDispatcher.cs (2)
27ArgumentNullException.ThrowIfNull(node); 50ArgumentNullException.ThrowIfNull(node);
System\Security\Cryptography\Xml\CanonicalXml.cs (3)
17ArgumentNullException.ThrowIfNull(inputStream); 28ArgumentNullException.ThrowIfNull(document); 38ArgumentNullException.ThrowIfNull(nodeList);
System\Security\Cryptography\Xml\CipherData.cs (1)
101ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\CipherReference.cs (1)
73ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\DataObject.cs (2)
29ArgumentNullException.ThrowIfNull(data); 137ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\DSAKeyValue.cs (4)
28ArgumentNullException.ThrowIfNull(key); 42ArgumentNullException.ThrowIfNull(value); 142/// <exception cref="ArgumentNullException"> 150ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\EncryptedData.cs (1)
15ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
54ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
109ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\EncryptedXml.cs (28)
185ArgumentNullException.ThrowIfNull(cipherData); 269ArgumentNullException.ThrowIfNull(encryptedData); 306ArgumentNullException.ThrowIfNull(encryptedData); 392ArgumentNullException.ThrowIfNull(encryptedKey); 511ArgumentNullException.ThrowIfNull(keyName); 512ArgumentNullException.ThrowIfNull(keyObject); 530ArgumentNullException.ThrowIfNull(inputElement); 531ArgumentNullException.ThrowIfNull(certificate); 570ArgumentNullException.ThrowIfNull(inputElement); 571ArgumentNullException.ThrowIfNull(keyName); 671ArgumentNullException.ThrowIfNull(plaintext); 672ArgumentNullException.ThrowIfNull(symmetricAlgorithm); 712ArgumentNullException.ThrowIfNull(inputElement); 713ArgumentNullException.ThrowIfNull(symmetricAlgorithm); 722ArgumentNullException.ThrowIfNull(encryptedData); 723ArgumentNullException.ThrowIfNull(symmetricAlgorithm); 767ArgumentNullException.ThrowIfNull(inputElement); 768ArgumentNullException.ThrowIfNull(decryptedData); 835ArgumentNullException.ThrowIfNull(inputElement); 836ArgumentNullException.ThrowIfNull(encryptedData); 859ArgumentNullException.ThrowIfNull(keyData); 860ArgumentNullException.ThrowIfNull(symmetricAlgorithm); 883ArgumentNullException.ThrowIfNull(keyData); 884ArgumentNullException.ThrowIfNull(rsa); 901ArgumentNullException.ThrowIfNull(keyData); 902ArgumentNullException.ThrowIfNull(symmetricAlgorithm); 924ArgumentNullException.ThrowIfNull(keyData); 925ArgumentNullException.ThrowIfNull(rsa);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
84ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\EncryptionProperty.cs (2)
21ArgumentNullException.ThrowIfNull(elementProperty); 81ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (3)
17ArgumentNullException.ThrowIfNull(inputStream); 27ArgumentNullException.ThrowIfNull(document); 37ArgumentNullException.ThrowIfNull(nodeList);
System\Security\Cryptography\Xml\KeyInfo.cs (1)
65ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\KeyInfoName.cs (1)
53ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (1)
68ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (3)
52ArgumentNullException.ThrowIfNull(cert); 112ArgumentNullException.ThrowIfNull(certificate); 276ArgumentNullException.ThrowIfNull(element);
System\Security\Cryptography\Xml\Reference.cs (2)
211ArgumentNullException.ThrowIfNull(value); 340ArgumentNullException.ThrowIfNull(transform);
System\Security\Cryptography\Xml\ReferenceList.cs (2)
30ArgumentNullException.ThrowIfNull(value); 56ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\RSAKeyValue.cs (4)
23ArgumentNullException.ThrowIfNull(key); 37ArgumentNullException.ThrowIfNull(value); 97/// <exception cref="ArgumentNullException"> 105ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\Signature.cs (1)
136ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\SignedInfo.cs (2)
207ArgumentNullException.ThrowIfNull(value); 283ArgumentNullException.ThrowIfNull(reference);
System\Security\Cryptography\Xml\SignedXml.cs (6)
101ArgumentNullException.ThrowIfNull(document); 110ArgumentNullException.ThrowIfNull(elem); 228ArgumentNullException.ThrowIfNull(value); 434ArgumentNullException.ThrowIfNull(macAlg); 1013ArgumentNullException.ThrowIfNull(key); 1044ArgumentNullException.ThrowIfNull(macAlg);
System\Security\Cryptography\Xml\TransformChain.cs (1)
174ArgumentNullException.ThrowIfNull(value);
System\Security\Cryptography\Xml\Utils.cs (4)
36ArgumentNullException.ThrowIfNull(element); 45ArgumentNullException.ThrowIfNull(element); 193ArgumentNullException.ThrowIfNull(document); 214ArgumentNullException.ThrowIfNull(elem);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
81ArgumentNullException.ThrowIfNull(uri); 162ArgumentNullException.ThrowIfNull(document);
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (2)
94ArgumentNullException.ThrowIfNull(nodeList); 107ArgumentNullException.ThrowIfNull(doc);
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
272ArgumentNullException.ThrowIfNull(elem);
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WsFederationHttpBinding.cs (1)
24/// <exception cref="ArgumentNullException">if <paramref name="wsTrustTokenParameters"/> is null.</exception>
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
51/// <exception cref="ArgumentNullException">thrown if <paramref name="tokenRequirement"/> is null.</exception>
System.ServiceModel.Federation.Tests (2)
WSTrustChannelFactoryTest.cs (1)
21Assert.Equal(typeof(ArgumentNullException), ex.GetType());
WSTrustChannelTest.cs (1)
21Assert.Equal(typeof(ArgumentNullException), ex.GetType());
System.ServiceModel.Http.Tests (6)
Channels\HttpRequestMessagePropertyTest.cs (2)
67Assert.Throws<ArgumentNullException>(() => requestMsgProperty.Method = null); 83Assert.Throws<ArgumentNullException>(() => requestMsgProperty.QueryString = null);
ServiceModel\BasicHttpBindingTest.cs (2)
196Assert.Throws<ArgumentNullException>(() => binding.Namespace = value); 217Assert.Throws<ArgumentNullException>(() => binding.ReaderQuotas = null);
ServiceModel\BasicHttpsBindingTest.cs (2)
186Assert.Throws<ArgumentNullException>(() => binding.Namespace = value); 207Assert.Throws<ArgumentNullException>(() => binding.ReaderQuotas = null);
System.ServiceModel.NetTcp.Tests (2)
Channels\TcpConnectionPoolSettingsTest.cs (1)
32Assert.Throws<ArgumentNullException>(() => settings.GroupName = null);
ServiceModel\NetTcpBindingTest.cs (1)
103Assert.Throws<ArgumentNullException>(() => binding.Security = null);
System.ServiceModel.Primitives.Tests (23)
Channels\BinaryMessageEncodingBindingElementTest.cs (1)
82Assert.Throws<ArgumentNullException>(() => bindingElement.MessageVersion = null);
Channels\TextMessageEncodingBindingElementTest.cs (1)
53Assert.Throws<ArgumentNullException>(() => element.MessageVersion = null);
IdentityModel\SecurityTokenSerializerTest.cs (12)
57Assert.Throws<ArgumentNullException>(() => sts.CanReadKeyIdentifier(null)); 58Assert.Throws<ArgumentNullException>(() => sts.CanReadKeyIdentifierClause(null)); 59Assert.Throws<ArgumentNullException>(() => sts.CanReadToken(null)); 60Assert.Throws<ArgumentNullException>(() => sts.CanWriteKeyIdentifier(null)); 61Assert.Throws<ArgumentNullException>(() => sts.CanWriteKeyIdentifierClause(null)); 62Assert.Throws<ArgumentNullException>(() => sts.CanWriteToken(null)); 63Assert.Throws<ArgumentNullException>(() => sts.ReadToken(null, null)); 64Assert.Throws<ArgumentNullException>(() => sts.ReadKeyIdentifier(null)); 65Assert.Throws<ArgumentNullException>(() => sts.ReadKeyIdentifierClause(null)); 66Assert.Throws<ArgumentNullException>(() => sts.WriteToken(null, null)); 67Assert.Throws<ArgumentNullException>(() => sts.WriteKeyIdentifier(null, null)); 68Assert.Throws<ArgumentNullException>(() => sts.WriteKeyIdentifierClause(null, null));
ServiceModel\DuplexChannelFactoryTest.cs (1)
119Assert.Throws<ArgumentNullException>("uri", () =>
ServiceModel\DuplexClientBaseTest.cs (3)
47Assert.Throws<ArgumentNullException>("callbackInstance", () => { MyDuplexClientBase<IWcfDuplexService> duplexClientBase = new MyDuplexClientBase<IWcfDuplexService>(null, binding, endpoint); }); 55Assert.Throws<ArgumentNullException>("binding", () => { MyDuplexClientBase<IWcfDuplexService> duplexClientBase = new MyDuplexClientBase<IWcfDuplexService>(context, null, endpoint); }); 63Assert.Throws<ArgumentNullException>("remoteAddress", () => { MyDuplexClientBase<IWcfDuplexService> duplexClientBase = new MyDuplexClientBase<IWcfDuplexService>(context, binding, null); });
ServiceModel\MessageContractTest.cs (1)
60Assert.Throws<ArgumentNullException>(() => messageCA.WrapperName = wrapperName);
ServiceModel\SynchronizedCollection.cs (4)
76Assert.Throws<ArgumentNullException>("syncRoot", () => 81Assert.Throws<ArgumentNullException>("list", () => 86Assert.Throws<ArgumentNullException>("syncRoot", () => 91Assert.Throws<ArgumentNullException>("syncRoot", () =>
System.ServiceModel.Syndication (139)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (9)
40ArgumentNullException.ThrowIfNull(feedTypeToCreate); 73ArgumentNullException.ThrowIfNull(reader); 82ArgumentNullException.ThrowIfNull(reader); 89ArgumentNullException.ThrowIfNull(writer); 106ArgumentNullException.ThrowIfNull(writer); 481ArgumentNullException.ThrowIfNull(reader); 482ArgumentNullException.ThrowIfNull(feed); 491ArgumentNullException.ThrowIfNull(reader); 492ArgumentNullException.ThrowIfNull(feed);
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (5)
24ArgumentNullException.ThrowIfNull(itemTypeToCreate); 65ArgumentNullException.ThrowIfNull(reader); 74ArgumentNullException.ThrowIfNull(reader); 81ArgumentNullException.ThrowIfNull(writer); 98ArgumentNullException.ThrowIfNull(writer);
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (7)
24ArgumentNullException.ThrowIfNull(inlineDocumentType); 29ArgumentNullException.ThrowIfNull(referencedDocumentType); 59ArgumentNullException.ThrowIfNull(reader); 68ArgumentNullException.ThrowIfNull(reader); 75ArgumentNullException.ThrowIfNull(writer); 87ArgumentNullException.ThrowIfNull(reader); 99ArgumentNullException.ThrowIfNull(writer);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (6)
27ArgumentNullException.ThrowIfNull(documentTypeToCreate); 48ArgumentNullException.ThrowIfNull(reader); 57ArgumentNullException.ThrowIfNull(reader); 64ArgumentNullException.ThrowIfNull(writer); 76ArgumentNullException.ThrowIfNull(reader); 89ArgumentNullException.ThrowIfNull(writer);
System\ServiceModel\Syndication\CategoriesDocumentFormatter.cs (1)
20ArgumentNullException.ThrowIfNull(documentToWrite);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (3)
68ArgumentNullException.ThrowIfNull(readerOverUnparsedExtensions); 87ArgumentNullException.ThrowIfNull(writer); 101ArgumentNullException.ThrowIfNull(writer);
System\ServiceModel\Syndication\NullNotAllowedCollection.cs (2)
16ArgumentNullException.ThrowIfNull(item); 23ArgumentNullException.ThrowIfNull(item);
System\ServiceModel\Syndication\ReferencedCategoriesDocument.cs (1)
14ArgumentNullException.ThrowIfNull(link);
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (2)
36ArgumentNullException.ThrowIfNull(title); 37ArgumentNullException.ThrowIfNull(link);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (9)
33ArgumentNullException.ThrowIfNull(feedTypeToCreate); 73ArgumentNullException.ThrowIfNull(reader); 82ArgumentNullException.ThrowIfNull(reader); 89ArgumentNullException.ThrowIfNull(writer); 106ArgumentNullException.ThrowIfNull(writer); 133ArgumentNullException.ThrowIfNull(reader); 134ArgumentNullException.ThrowIfNull(feed); 143ArgumentNullException.ThrowIfNull(reader); 144ArgumentNullException.ThrowIfNull(feed);
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (5)
25ArgumentNullException.ThrowIfNull(itemTypeToCreate); 88ArgumentNullException.ThrowIfNull(reader); 97ArgumentNullException.ThrowIfNull(reader); 104ArgumentNullException.ThrowIfNull(writer); 121ArgumentNullException.ThrowIfNull(writer);
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (25)
21ArgumentNullException.ThrowIfNull(documentToWrite); 60ArgumentNullException.ThrowIfNull(document); 68ArgumentNullException.ThrowIfNull(inlineCategories); 75ArgumentNullException.ThrowIfNull(workspace); 92ArgumentNullException.ThrowIfNull(document); 99ArgumentNullException.ThrowIfNull(categories); 106ArgumentNullException.ThrowIfNull(collection); 113ArgumentNullException.ThrowIfNull(workspace); 120ArgumentNullException.ThrowIfNull(document); 127ArgumentNullException.ThrowIfNull(document); 134ArgumentNullException.ThrowIfNull(collection); 141ArgumentNullException.ThrowIfNull(categories); 148ArgumentNullException.ThrowIfNull(workspace); 155ArgumentNullException.ThrowIfNull(collection); 162ArgumentNullException.ThrowIfNull(document); 169ArgumentNullException.ThrowIfNull(workspace); 176ArgumentNullException.ThrowIfNull(categories); 183ArgumentNullException.ThrowIfNull(document); 190ArgumentNullException.ThrowIfNull(workspace); 197ArgumentNullException.ThrowIfNull(collection); 204ArgumentNullException.ThrowIfNull(categories); 211ArgumentNullException.ThrowIfNull(document); 218ArgumentNullException.ThrowIfNull(workspace); 225ArgumentNullException.ThrowIfNull(collection); 232ArgumentNullException.ThrowIfNull(categories);
System\ServiceModel\Syndication\SyndicationCategory.cs (1)
31ArgumentNullException.ThrowIfNull(source);
System\ServiceModel\Syndication\SyndicationContent.cs (2)
72ArgumentNullException.ThrowIfNull(writer); 99ArgumentNullException.ThrowIfNull(source);
System\ServiceModel\Syndication\SyndicationElementExtension.cs (6)
24ArgumentNullException.ThrowIfNull(xmlReader); 57ArgumentNullException.ThrowIfNull(dataContractExtension); 73ArgumentNullException.ThrowIfNull(xmlSerializerExtension); 118ArgumentNullException.ThrowIfNull(serializer); 132ArgumentNullException.ThrowIfNull(serializer); 164ArgumentNullException.ThrowIfNull(writer);
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (7)
66ArgumentNullException.ThrowIfNull(dataContractExtension); 74ArgumentNullException.ThrowIfNull(xmlSerializerExtension); 82ArgumentNullException.ThrowIfNull(xmlReader); 102ArgumentNullException.ThrowIfNull(serializer); 109ArgumentNullException.ThrowIfNull(serializer); 152ArgumentNullException.ThrowIfNull(item); 172ArgumentNullException.ThrowIfNull(item);
System\ServiceModel\Syndication\SyndicationFeed.cs (2)
72ArgumentNullException.ThrowIfNull(source); 411ArgumentNullException.ThrowIfNull(reader);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (35)
27ArgumentNullException.ThrowIfNull(feedToWrite); 60ArgumentNullException.ThrowIfNull(feed); 67ArgumentNullException.ThrowIfNull(item); 74ArgumentNullException.ThrowIfNull(feed); 81ArgumentNullException.ThrowIfNull(feed); 88ArgumentNullException.ThrowIfNull(item); 95ArgumentNullException.ThrowIfNull(feed); 102ArgumentNullException.ThrowIfNull(item); 109ArgumentNullException.ThrowIfNull(feed); 116ArgumentNullException.ThrowIfNull(item); 123ArgumentNullException.ThrowIfNull(category); 130ArgumentNullException.ThrowIfNull(link); 137ArgumentNullException.ThrowIfNull(person); 144ArgumentNullException.ThrowIfNull(feed); 155ArgumentNullException.ThrowIfNull(item); 166ArgumentNullException.ThrowIfNull(category); 177ArgumentNullException.ThrowIfNull(link); 188ArgumentNullException.ThrowIfNull(person); 204ArgumentNullException.ThrowIfNull(feed); 211ArgumentNullException.ThrowIfNull(item); 218ArgumentNullException.ThrowIfNull(category); 225ArgumentNullException.ThrowIfNull(link); 232ArgumentNullException.ThrowIfNull(person); 239ArgumentNullException.ThrowIfNull(feed); 246ArgumentNullException.ThrowIfNull(item); 253ArgumentNullException.ThrowIfNull(category); 260ArgumentNullException.ThrowIfNull(link); 267ArgumentNullException.ThrowIfNull(person); 274ArgumentNullException.ThrowIfNull(feed); 281ArgumentNullException.ThrowIfNull(item); 288ArgumentNullException.ThrowIfNull(category); 295ArgumentNullException.ThrowIfNull(link); 302ArgumentNullException.ThrowIfNull(person); 309ArgumentNullException.ThrowIfNull(feed); 412ArgumentNullException.ThrowIfNull(feed);
System\ServiceModel\Syndication\SyndicationItem.cs (3)
53ArgumentNullException.ThrowIfNull(source); 157ArgumentNullException.ThrowIfNull(reader); 178ArgumentNullException.ThrowIfNull(permalink);
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (2)
21ArgumentNullException.ThrowIfNull(itemToWrite); 40ArgumentNullException.ThrowIfNull(item);
System\ServiceModel\Syndication\SyndicationLink.cs (1)
40ArgumentNullException.ThrowIfNull(source);
System\ServiceModel\Syndication\SyndicationPerson.cs (1)
32ArgumentNullException.ThrowIfNull(source);
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
16ArgumentNullException.ThrowIfNull(url);
System\ServiceModel\Syndication\XmlSyndicationContent.cs (3)
22ArgumentNullException.ThrowIfNull(reader); 67ArgumentNullException.ThrowIfNull(extension); 136ArgumentNullException.ThrowIfNull(writer);
System.ServiceModel.UnixDomainSocket.Tests (1)
ServiceModel\UnixDomainSocketBindingTest.cs (1)
104Assert.Throws<ArgumentNullException>(() => binding.Security = null);
System.Text.Encoding.CodePages (20)
System\Text\DecoderNLS.cs (5)
82ArgumentNullException.ThrowIfNull(bytes); 122ArgumentNullException.ThrowIfNull(bytes); 123ArgumentNullException.ThrowIfNull(chars); 171ArgumentNullException.ThrowIfNull(bytes); 172ArgumentNullException.ThrowIfNull(chars);
System\Text\EncoderNLS.cs (5)
80ArgumentNullException.ThrowIfNull(chars); 111ArgumentNullException.ThrowIfNull(chars); 112ArgumentNullException.ThrowIfNull(bytes); 156ArgumentNullException.ThrowIfNull(chars); 157ArgumentNullException.ThrowIfNull(bytes);
System\Text\EncodingNLS.cs (10)
51ArgumentNullException.ThrowIfNull(chars); 73ArgumentNullException.ThrowIfNull(s); 100ArgumentNullException.ThrowIfNull(s); 101ArgumentNullException.ThrowIfNull(bytes); 137ArgumentNullException.ThrowIfNull(chars); 138ArgumentNullException.ThrowIfNull(bytes); 189ArgumentNullException.ThrowIfNull(bytes); 225ArgumentNullException.ThrowIfNull(bytes); 226ArgumentNullException.ThrowIfNull(chars); 277ArgumentNullException.ThrowIfNull(bytes);
System.Text.Json (354)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
26ArgumentNullException.ThrowIfNull(name);
System\Text\Json\Document\JsonDocument.cs (2)
95/// <exception cref="ArgumentNullException"> 106ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\Document\JsonDocument.Parse.cs (3)
124ArgumentNullException.ThrowIfNull(utf8Json); 213ArgumentNullException.ThrowIfNull(utf8Json); 351ArgumentNullException.ThrowIfNull(json);
System\Text\Json\Document\JsonElement.cs (6)
127/// <exception cref="ArgumentNullException"> 135ArgumentNullException.ThrowIfNull(propertyName); 246/// <exception cref="ArgumentNullException"> 255ArgumentNullException.ThrowIfNull(propertyName); 1536/// <exception cref="ArgumentNullException"> 1547ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\Document\JsonElement.Parse.cs (2)
110/// <exception cref="ArgumentNullException"><paramref name="json"/> is <see langword="null"/>.</exception> 115ArgumentNullException.ThrowIfNull(json);
System\Text\Json\Document\JsonProperty.cs (2)
103/// <exception cref="ArgumentNullException"> 117ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\JsonEncodedText.cs (2)
45/// <exception cref="ArgumentNullException"> 53ArgumentNullException.ThrowIfNull(value);
System\Text\Json\JsonException.cs (1)
85/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonArray.cs (1)
266ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\Nodes\JsonArray.IList.cs (3)
122/// <exception cref="ArgumentNullException"> 127ArgumentNullException.ThrowIfNull(match); 198/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonNode.cs (1)
232/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonNode.Parse.cs (4)
64/// <exception cref="ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(json); 120ArgumentNullException.ThrowIfNull(utf8Json); 146ArgumentNullException.ThrowIfNull(utf8Json);
System\Text\Json\Nodes\JsonNode.To.cs (1)
75/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonObject.cs (6)
118/// <exception cref="ArgumentNullException"> 135/// <exception cref="ArgumentNullException"> 143ArgumentNullException.ThrowIfNull(propertyName); 163ArgumentNullException.ThrowIfNull(writer); 231ArgumentNullException.ThrowIfNull(propertyName); 265ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Nodes\JsonObject.IDictionary.cs (12)
20/// <exception cref="ArgumentNullException"> 28ArgumentNullException.ThrowIfNull(propertyName); 39/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null.</exception> 51/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null.</exception> 83/// <exception cref="ArgumentNullException"> 116/// <exception cref="ArgumentNullException"> 121ArgumentNullException.ThrowIfNull(propertyName); 138/// <exception cref="ArgumentNullException"> 143ArgumentNullException.ThrowIfNull(propertyName); 171/// <exception cref="ArgumentNullException"> 224/// <exception cref="ArgumentNullException"> 229ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Nodes\JsonObject.IList.cs (5)
26ArgumentNullException.ThrowIfNull(propertyName); 52/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null.</exception> 55ArgumentNullException.ThrowIfNull(propertyName); 64/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null.</exception> 69ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Nodes\JsonValue.cs (1)
84ArgumentNullException.ThrowIfNull(jsonTypeInfo);
System\Text\Json\Nodes\JsonValueOfElement.cs (1)
199ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (1)
31ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\Nodes\JsonValueOfTPrimitive.cs (1)
44ArgumentNullException.ThrowIfNull(writer);
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
29ArgumentNullException.ThrowIfNull(options); 30ArgumentNullException.ThrowIfNull(type); 45ArgumentNullException.ThrowIfNull(typeInfo);
System\Text\Json\Serialization\ConfigurationList.cs (3)
37ArgumentNullException.ThrowIfNull(value); 50ArgumentNullException.ThrowIfNull(item); 87ArgumentNullException.ThrowIfNull(item);
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (1)
51ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (1)
18ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\Converters\Value\StringConverter.cs (1)
38ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (1)
48ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
110ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
638ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\JsonResumableConverterOfT.cs (2)
19ArgumentNullException.ThrowIfNull(options); 33ArgumentNullException.ThrowIfNull(options);
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
70ArgumentNullException.ThrowIfNull(inputType);
System\Text\Json\Serialization\JsonSerializer.Read.Document.cs (15)
19/// <exception cref="System.ArgumentNullException"> 33ArgumentNullException.ThrowIfNull(document); 47/// <exception cref="System.ArgumentNullException"> 61ArgumentNullException.ThrowIfNull(document); 62ArgumentNullException.ThrowIfNull(returnType); 76/// <exception cref="System.ArgumentNullException"> 88ArgumentNullException.ThrowIfNull(document); 89ArgumentNullException.ThrowIfNull(jsonTypeInfo); 102/// <exception cref="System.ArgumentNullException"> 111ArgumentNullException.ThrowIfNull(document); 112ArgumentNullException.ThrowIfNull(jsonTypeInfo); 126/// <exception cref="System.ArgumentNullException"> 157ArgumentNullException.ThrowIfNull(document); 158ArgumentNullException.ThrowIfNull(returnType); 159ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Read.Element.cs (9)
42/// <exception cref="System.ArgumentNullException"> 56ArgumentNullException.ThrowIfNull(returnType); 70/// <exception cref="System.ArgumentNullException"> 82ArgumentNullException.ThrowIfNull(jsonTypeInfo); 95/// <exception cref="System.ArgumentNullException"> 100ArgumentNullException.ThrowIfNull(jsonTypeInfo); 114/// <exception cref="System.ArgumentNullException"> 141ArgumentNullException.ThrowIfNull(returnType); 142ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (8)
54ArgumentNullException.ThrowIfNull(returnType); 67/// <exception cref="System.ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(jsonTypeInfo); 87/// <exception cref="System.ArgumentNullException"> 92ArgumentNullException.ThrowIfNull(jsonTypeInfo); 105/// <exception cref="System.ArgumentNullException"> 132ArgumentNullException.ThrowIfNull(returnType); 133ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (7)
44/// <exception cref="System.ArgumentNullException"> 60ArgumentNullException.ThrowIfNull(returnType); 80ArgumentNullException.ThrowIfNull(jsonTypeInfo); 98ArgumentNullException.ThrowIfNull(jsonTypeInfo); 111/// <exception cref="System.ArgumentNullException"> 129ArgumentNullException.ThrowIfNull(returnType); 130ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (37)
30/// <exception cref="System.ArgumentNullException"> 49ArgumentNullException.ThrowIfNull(utf8Json); 63/// <exception cref="System.ArgumentNullException"> 81ArgumentNullException.ThrowIfNull(utf8Json); 98/// <exception cref="System.ArgumentNullException"> 118ArgumentNullException.ThrowIfNull(utf8Json); 119ArgumentNullException.ThrowIfNull(returnType); 133/// <exception cref="System.ArgumentNullException"> 152ArgumentNullException.ThrowIfNull(utf8Json); 153ArgumentNullException.ThrowIfNull(returnType); 170/// <exception cref="System.ArgumentNullException"> 183ArgumentNullException.ThrowIfNull(utf8Json); 184ArgumentNullException.ThrowIfNull(jsonTypeInfo); 200/// <exception cref="System.ArgumentNullException"> 212ArgumentNullException.ThrowIfNull(utf8Json); 213ArgumentNullException.ThrowIfNull(jsonTypeInfo); 227/// <exception cref="System.ArgumentNullException"> 239ArgumentNullException.ThrowIfNull(utf8Json); 240ArgumentNullException.ThrowIfNull(jsonTypeInfo); 253/// <exception cref="System.ArgumentNullException"> 264ArgumentNullException.ThrowIfNull(utf8Json); 265ArgumentNullException.ThrowIfNull(jsonTypeInfo); 282/// <exception cref="System.ArgumentNullException"> 304ArgumentNullException.ThrowIfNull(utf8Json); 305ArgumentNullException.ThrowIfNull(returnType); 306ArgumentNullException.ThrowIfNull(context); 320/// <exception cref="System.ArgumentNullException"> 341ArgumentNullException.ThrowIfNull(utf8Json); 342ArgumentNullException.ThrowIfNull(returnType); 343ArgumentNullException.ThrowIfNull(context); 358/// <exception cref="System.ArgumentNullException"> 381/// <exception cref="System.ArgumentNullException"> 398ArgumentNullException.ThrowIfNull(utf8Json); 413/// <exception cref="System.ArgumentNullException"> 434/// <exception cref="System.ArgumentNullException"> 449ArgumentNullException.ThrowIfNull(utf8Json); 450ArgumentNullException.ThrowIfNull(jsonTypeInfo);
System\Text\Json\Serialization\JsonSerializer.Read.String.cs (24)
25/// <exception cref="System.ArgumentNullException"> 49ArgumentNullException.ThrowIfNull(json); 94/// <exception cref="System.ArgumentNullException"> 118ArgumentNullException.ThrowIfNull(json); 119ArgumentNullException.ThrowIfNull(returnType); 132/// <exception cref="System.ArgumentNullException"> 156ArgumentNullException.ThrowIfNull(returnType); 171/// <exception cref="System.ArgumentNullException"> 193ArgumentNullException.ThrowIfNull(json); 194ArgumentNullException.ThrowIfNull(jsonTypeInfo); 207/// <exception cref="System.ArgumentNullException"> 229ArgumentNullException.ThrowIfNull(jsonTypeInfo); 241/// <exception cref="System.ArgumentNullException"> 259ArgumentNullException.ThrowIfNull(json); 260ArgumentNullException.ThrowIfNull(jsonTypeInfo); 272/// <exception cref="System.ArgumentNullException"> 286ArgumentNullException.ThrowIfNull(jsonTypeInfo); 299/// <exception cref="System.ArgumentNullException"> 329ArgumentNullException.ThrowIfNull(json); 330ArgumentNullException.ThrowIfNull(returnType); 331ArgumentNullException.ThrowIfNull(context); 344/// <exception cref="System.ArgumentNullException"> 374ArgumentNullException.ThrowIfNull(returnType); 375ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (7)
72/// <exception cref="ArgumentNullException"> 114ArgumentNullException.ThrowIfNull(returnType); 161ArgumentNullException.ThrowIfNull(jsonTypeInfo); 207ArgumentNullException.ThrowIfNull(jsonTypeInfo); 220/// <exception cref="ArgumentNullException"> 264ArgumentNullException.ThrowIfNull(returnType); 265ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (7)
43/// <exception cref="System.ArgumentNullException"> 68/// <exception cref="ArgumentNullException"> 73ArgumentNullException.ThrowIfNull(jsonTypeInfo); 85/// <exception cref="ArgumentNullException"> 93ArgumentNullException.ThrowIfNull(jsonTypeInfo); 109/// <exception cref="System.ArgumentNullException"> 122ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (7)
43/// <exception cref="ArgumentNullException"> 65/// <exception cref="ArgumentNullException"> 70ArgumentNullException.ThrowIfNull(jsonTypeInfo); 82/// <exception cref="ArgumentNullException"> 90ArgumentNullException.ThrowIfNull(jsonTypeInfo); 111/// <exception cref="ArgumentNullException"> 116ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (7)
43/// <exception cref="ArgumentNullException"> 65/// <exception cref="ArgumentNullException"> 70ArgumentNullException.ThrowIfNull(jsonTypeInfo); 82/// <exception cref="ArgumentNullException"> 90ArgumentNullException.ThrowIfNull(jsonTypeInfo); 111/// <exception cref="ArgumentNullException"> 116ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (7)
44/// <exception cref="ArgumentNullException"> 66/// <exception cref="ArgumentNullException"> 71ArgumentNullException.ThrowIfNull(jsonTypeInfo); 83/// <exception cref="ArgumentNullException"> 91ArgumentNullException.ThrowIfNull(jsonTypeInfo); 112/// <exception cref="ArgumentNullException"> 117ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (13)
24/// <exception cref="ArgumentNullException"> 33ArgumentNullException.ThrowIfNull(utf8Json); 34ArgumentNullException.ThrowIfNull(jsonTypeInfo); 49/// <exception cref="ArgumentNullException"> 64ArgumentNullException.ThrowIfNull(utf8Json); 78/// <exception cref="ArgumentNullException"> 90ArgumentNullException.ThrowIfNull(utf8Json); 91ArgumentNullException.ThrowIfNull(jsonTypeInfo); 109/// <exception cref="ArgumentNullException"> 123ArgumentNullException.ThrowIfNull(utf8Json); 124ArgumentNullException.ThrowIfNull(context); 144/// <exception cref="ArgumentNullException"> 160ArgumentNullException.ThrowIfNull(utf8Json);
System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs (26)
32/// <exception cref="ArgumentNullException"> 47ArgumentNullException.ThrowIfNull(utf8Json); 60/// <exception cref="ArgumentNullException"> 74ArgumentNullException.ThrowIfNull(utf8Json); 92/// <exception cref="ArgumentNullException"> 108ArgumentNullException.ThrowIfNull(utf8Json); 125/// <exception cref="ArgumentNullException"> 140ArgumentNullException.ThrowIfNull(utf8Json); 156/// <exception cref="ArgumentNullException"> 165ArgumentNullException.ThrowIfNull(utf8Json); 166ArgumentNullException.ThrowIfNull(jsonTypeInfo); 179/// <exception cref="ArgumentNullException"> 187ArgumentNullException.ThrowIfNull(utf8Json); 188ArgumentNullException.ThrowIfNull(jsonTypeInfo); 202/// <exception cref="ArgumentNullException"> 214ArgumentNullException.ThrowIfNull(utf8Json); 215ArgumentNullException.ThrowIfNull(jsonTypeInfo); 227/// <exception cref="ArgumentNullException"> 238ArgumentNullException.ThrowIfNull(utf8Json); 239ArgumentNullException.ThrowIfNull(jsonTypeInfo); 257/// <exception cref="ArgumentNullException"> 271ArgumentNullException.ThrowIfNull(utf8Json); 272ArgumentNullException.ThrowIfNull(context); 289/// <exception cref="ArgumentNullException"> 302ArgumentNullException.ThrowIfNull(utf8Json); 303ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (7)
50/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 85ArgumentNullException.ThrowIfNull(jsonTypeInfo); 97/// <exception cref="ArgumentNullException"> 109ArgumentNullException.ThrowIfNull(jsonTypeInfo); 130/// <exception cref="ArgumentNullException"> 139ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs (13)
19/// <exception cref="ArgumentNullException"> 33ArgumentNullException.ThrowIfNull(writer); 49/// <exception cref="ArgumentNullException"> 64ArgumentNullException.ThrowIfNull(writer); 78/// <exception cref="ArgumentNullException"> 83ArgumentNullException.ThrowIfNull(writer); 84ArgumentNullException.ThrowIfNull(jsonTypeInfo); 96/// <exception cref="ArgumentNullException"> 104ArgumentNullException.ThrowIfNull(writer); 105ArgumentNullException.ThrowIfNull(jsonTypeInfo); 121/// <exception cref="ArgumentNullException"> 134ArgumentNullException.ThrowIfNull(writer); 135ArgumentNullException.ThrowIfNull(context);
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (4)
48/// <exception cref="ArgumentNullException"><paramref name="type"/> is <see langword="null"/>.</exception> 57ArgumentNullException.ThrowIfNull(type); 73/// <exception cref="ArgumentNullException"><paramref name="type"/> is <see langword="null"/>.</exception> 82ArgumentNullException.ThrowIfNull(type);
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
43ArgumentNullException.ThrowIfNull(typeToConvert);
System\Text\Json\Serialization\JsonSerializerOptions.cs (3)
119/// <exception cref="System.ArgumentNullException"> 124ArgumentNullException.ThrowIfNull(options); 775/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="options"/> is <see langword="null"/>.</exception> 53ArgumentNullException.ThrowIfNull(type); 54ArgumentNullException.ThrowIfNull(options);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (3)
87ArgumentNullException.ThrowIfNull(createRangeFunc); 152ArgumentNullException.ThrowIfNull(createRangeFunc); 399ArgumentNullException.ThrowIfNull(addFunc);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (3)
285ArgumentNullException.ThrowIfNull(options); 299ArgumentNullException.ThrowIfNull(underlyingTypeInfo); 315ArgumentNullException.ThrowIfNull(options);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs (7)
25ArgumentNullException.ThrowIfNull(options); 26ArgumentNullException.ThrowIfNull(propertyInfo); 54/// <exception cref="ArgumentNullException">Thrown when <paramref name="options"/> or <paramref name="objectInfo"/> is null.</exception> 59ArgumentNullException.ThrowIfNull(options); 60ArgumentNullException.ThrowIfNull(objectInfo); 73ArgumentNullException.ThrowIfNull(options); 74ArgumentNullException.ThrowIfNull(converter);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
78ArgumentNullException.ThrowIfNull(collectionInfo);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
778/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 800ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (8)
896/// <exception cref="ArgumentNullException"><paramref name="options"/> is null.</exception> 911ArgumentNullException.ThrowIfNull(options); 923/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="options"/> is null.</exception> 939ArgumentNullException.ThrowIfNull(type); 940ArgumentNullException.ThrowIfNull(options); 981/// <exception cref="ArgumentNullException"><paramref name="propertyType"/> or <paramref name="name"/> is null.</exception> 988ArgumentNullException.ThrowIfNull(propertyType); 989ArgumentNullException.ThrowIfNull(name);
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (3)
28ArgumentNullException.ThrowIfNull(resolvers); 70ArgumentNullException.ThrowIfNull(resolver); 71ArgumentNullException.ThrowIfNull(modifier);
System\Text\Json\Writer\JsonWriterOptions.cs (1)
144/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.cs (10)
214/// <exception cref="ArgumentNullException"> 219ArgumentNullException.ThrowIfNull(bufferWriter); 232/// <exception cref="ArgumentNullException"> 237ArgumentNullException.ThrowIfNull(utf8Json); 289/// <exception cref="ArgumentNullException"> 326/// <exception cref="ArgumentNullException"> 845/// <exception cref="ArgumentNullException"> 854ArgumentNullException.ThrowIfNull(propertyName); 868/// <exception cref="ArgumentNullException"> 877ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (2)
39/// <exception cref="ArgumentNullException"> 50ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (2)
43/// <exception cref="ArgumentNullException"> 55ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (2)
42/// <exception cref="ArgumentNullException"> 54ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (2)
42/// <exception cref="ArgumentNullException"> 54ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (2)
44/// <exception cref="ArgumentNullException"> 56ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (2)
44/// <exception cref="ArgumentNullException"> 56ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (2)
42/// <exception cref="ArgumentNullException"> 54ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (4)
65/// <exception cref="ArgumentNullException"> 76ArgumentNullException.ThrowIfNull(propertyName); 160/// <exception cref="ArgumentNullException"> 171ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (4)
42/// <exception cref="ArgumentNullException"> 54ArgumentNullException.ThrowIfNull(propertyName); 130/// <exception cref="ArgumentNullException"> 142ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (10)
61/// <exception cref="ArgumentNullException"> 72ArgumentNullException.ThrowIfNull(propertyName); 444/// <exception cref="ArgumentNullException"> 455ArgumentNullException.ThrowIfNull(propertyName); 467/// <exception cref="ArgumentNullException"> 484ArgumentNullException.ThrowIfNull(propertyName); 624/// <exception cref="ArgumentNullException"> 635ArgumentNullException.ThrowIfNull(propertyName); 711/// <exception cref="ArgumentNullException"> 722ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (4)
43/// <exception cref="ArgumentNullException"> 56ArgumentNullException.ThrowIfNull(propertyName); 135/// <exception cref="ArgumentNullException"> 148ArgumentNullException.ThrowIfNull(propertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (2)
21/// <exception cref="ArgumentNullException"> 29ArgumentNullException.ThrowIfNull(value);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (2)
17/// <exception cref="ArgumentNullException">Thrown if <paramref name="json"/> is <see langword="null"/>.</exception> 41ArgumentNullException.ThrowIfNull(json);
System.Text.Json.SourceGeneration (2)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
26ArgumentNullException.ThrowIfNull(name);
System.Text.RegularExpressions (19)
System\Text\RegularExpressions\CollectionDebuggerProxy.cs (1)
15ArgumentNullException.ThrowIfNull(collection);
System\Text\RegularExpressions\Regex.Count.cs (4)
13/// <exception cref="ArgumentNullException"><paramref name="input"/> is null.</exception> 63/// <exception cref="ArgumentNullException"><paramref name="input"/> or <paramref name="pattern"/> is null.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="input"/> or <paramref name="pattern"/> is null.</exception> 85/// <exception cref="ArgumentNullException"><paramref name="input"/> or <paramref name="pattern"/> is null.</exception>
System\Text\RegularExpressions\Regex.cs (3)
236ArgumentNullException.ThrowIfNull(assemblyname); 237ArgumentNullException.ThrowIfNull(regexinfos); 243ArgumentNullException.ThrowIfNull(regexinfos[i]);
System\Text\RegularExpressions\Regex.EnumerateMatches.cs (3)
24/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 42/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 62/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception>
System\Text\RegularExpressions\Regex.EnumerateSplits.cs (3)
33/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 59/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception>
System\Text\RegularExpressions\Regex.Match.cs (3)
23/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is <see langword="null"/></exception> 44/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is <see langword="null"/></exception> 62/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is <see langword="null"/></exception>
System\Text\RegularExpressions\RegexCompilationInfo.cs (2)
61ArgumentNullException.ThrowIfNull(value, nameof(Namespace)); 74ArgumentNullException.ThrowIfNull(value, nameof(Pattern));
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\System\ExceptionPolyfills.cs (1)
12extension(ArgumentNullException)
System.Threading.Channels (6)
System\Threading\Channels\Channel.cs (5)
18/// <exception cref="ArgumentNullException"><paramref name="options"/> is <see langword="null"/>.</exception> 21ArgumentNullException.ThrowIfNull(options); 49/// <exception cref="ArgumentNullException"><paramref name="options"/> is <see langword="null"/>.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="options"/> is <see langword="null"/>.</exception> 61ArgumentNullException.ThrowIfNull(options);
System\Threading\Channels\Channel.netcoreapp.cs (1)
31ArgumentNullException.ThrowIfNull(options);
System.Threading.RateLimiting (8)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
42ArgumentNullException.ThrowIfNull(options);
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
49ArgumentNullException.ThrowIfNull(options);
System\Threading\RateLimiting\PartitionedRateLimiter.cs (2)
52/// <exception cref="ArgumentNullException"><paramref name="limiters"/> is a null parameter.</exception> 57ArgumentNullException.ThrowIfNull(limiters);
System\Threading\RateLimiting\RateLimiter.cs (2)
31/// <exception cref="ArgumentNullException"><paramref name="limiters"/> is a null parameter.</exception> 35ArgumentNullException.ThrowIfNull(limiters);
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
53ArgumentNullException.ThrowIfNull(options);
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
51ArgumentNullException.ThrowIfNull(options);
System.Threading.Tasks.Dataflow (135)
Base\DataflowBlock.cs (72)
31/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 32/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 37ArgumentNullException.ThrowIfNull(source); 38ArgumentNullException.ThrowIfNull(target); 50/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 51/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 52/// <exception cref="System.ArgumentNullException">The <paramref name="predicate"/> is null (Nothing in Visual Basic).</exception> 68/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 69/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 70/// <exception cref="System.ArgumentNullException">The <paramref name="linkOptions"/> is null (Nothing in Visual Basic).</exception> 71/// <exception cref="System.ArgumentNullException">The <paramref name="predicate"/> is null (Nothing in Visual Basic).</exception> 78ArgumentNullException.ThrowIfNull(source); 79ArgumentNullException.ThrowIfNull(target); 80ArgumentNullException.ThrowIfNull(linkOptions); 81ArgumentNullException.ThrowIfNull(predicate); 239ArgumentNullException.ThrowIfNull(target); 258/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 285/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 288ArgumentNullException.ThrowIfNull(target); 768ArgumentNullException.ThrowIfNull(source); 783/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 800/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 817/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 838/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 845ArgumentNullException.ThrowIfNull(source); 860/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 874/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 895/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 914/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 927ArgumentNullException.ThrowIfNull(source); 1476ArgumentNullException.ThrowIfNull(exception); 1509ArgumentNullException.ThrowIfNull(target); 1510ArgumentNullException.ThrowIfNull(source); 1542ArgumentNullException.ThrowIfNull(exception); 1657/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1658/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1659/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1660/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 1694/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1695/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1696/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1697/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 1698/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 1704ArgumentNullException.ThrowIfNull(source1); 1705ArgumentNullException.ThrowIfNull(action1); 1706ArgumentNullException.ThrowIfNull(source2); 1707ArgumentNullException.ThrowIfNull(action2); 1708ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 1739/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1740/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1741/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1742/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 1743/// <exception cref="System.ArgumentNullException">The <paramref name="source3"/> is null (Nothing in Visual Basic).</exception> 1744/// <exception cref="System.ArgumentNullException">The <paramref name="action3"/> is null (Nothing in Visual Basic).</exception> 1781/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1782/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1783/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1784/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 1785/// <exception cref="System.ArgumentNullException">The <paramref name="source3"/> is null (Nothing in Visual Basic).</exception> 1786/// <exception cref="System.ArgumentNullException">The <paramref name="action3"/> is null (Nothing in Visual Basic).</exception> 1787/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 1794ArgumentNullException.ThrowIfNull(source1); 1795ArgumentNullException.ThrowIfNull(action1); 1796ArgumentNullException.ThrowIfNull(source2); 1797ArgumentNullException.ThrowIfNull(action2); 1798ArgumentNullException.ThrowIfNull(source3); 1799ArgumentNullException.ThrowIfNull(action3); 1800ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 2153/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 2156ArgumentNullException.ThrowIfNull(source); 2221ArgumentNullException.ThrowIfNull(observer); 2523ArgumentNullException.ThrowIfNull(target);
Base\DataflowBlock.IAsyncEnumerable.cs (2)
16/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 19ArgumentNullException.ThrowIfNull(source);
Blocks\ActionBlock.cs (11)
34/// <exception cref="System.ArgumentNullException">The <paramref name="action"/> is null (Nothing in Visual Basic).</exception> 42/// <exception cref="System.ArgumentNullException">The <paramref name="action"/> is null (Nothing in Visual Basic).</exception> 43/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 50/// <exception cref="System.ArgumentNullException">The <paramref name="action"/> is null (Nothing in Visual Basic).</exception> 58/// <exception cref="System.ArgumentNullException">The <paramref name="action"/> is null (Nothing in Visual Basic).</exception> 59/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 67/// <exception cref="System.ArgumentNullException">The <paramref name="action"/> is null (Nothing in Visual Basic).</exception> 68/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 71ArgumentNullException.ThrowIfNull(action); 72ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 234ArgumentNullException.ThrowIfNull(exception);
Blocks\BatchBlock.cs (3)
45/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 104ArgumentNullException.ThrowIfNull(exception); 303/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
Blocks\BatchedJoinBlock.cs (5)
53/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 159ArgumentNullException.ThrowIfNull(exception); 298/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 413ArgumentNullException.ThrowIfNull(exception); 613ArgumentNullException.ThrowIfNull(exception);
Blocks\BroadcastBlock.cs (5)
64/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 67ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 114ArgumentNullException.ThrowIfNull(exception); 1005ArgumentNullException.ThrowIfNull(target); 1006ArgumentNullException.ThrowIfNull(linkOptions);
Blocks\BufferBlock.cs (3)
45/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 48ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 149ArgumentNullException.ThrowIfNull(exception);
Blocks\JoinBlock.cs (7)
49/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 52ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 143ArgumentNullException.ThrowIfNull(exception); 270/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 273ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 364ArgumentNullException.ThrowIfNull(exception); 927ArgumentNullException.ThrowIfNull(exception);
Blocks\TransformBlock.cs (10)
46/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 57/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 58/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 65/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 76/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 77/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 89/// <exception cref="System.ArgumentNullException">The <paramref name="transformSync"/> and <paramref name="transformAsync"/> are both null (Nothing in Visual Basic).</exception> 90/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 93ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 335ArgumentNullException.ThrowIfNull(exception);
Blocks\TransformManyBlock.cs (7)
54/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 66/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 67/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 79/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 90/// <exception cref="System.ArgumentNullException">The <paramref name="transform"/> is null (Nothing in Visual Basic).</exception> 91/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 550ArgumentNullException.ThrowIfNull(exception);
Blocks\TransformManyBlock.IAsyncEnumerable.cs (3)
17/// <exception cref="ArgumentNullException">The <paramref name="transform"/> is <see langword="null" />.</exception> 29/// <exception cref="ArgumentNullException">The <paramref name="transform"/> or <paramref name="dataflowBlockOptions"/> is <see langword="null" />.</exception> 32ArgumentNullException.ThrowIfNull(transform);
Blocks\WriteOnceBlock.cs (5)
62/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 65ArgumentNullException.ThrowIfNull(dataflowBlockOptions); 208ArgumentNullException.ThrowIfNull(exception); 299ArgumentNullException.ThrowIfNull(target); 300ArgumentNullException.ThrowIfNull(linkOptions);
Internal\SourceCore.cs (2)
126ArgumentNullException.ThrowIfNull(target); 127ArgumentNullException.ThrowIfNull(linkOptions);
System.Threading.Tasks.Parallel (225)
System\Threading\Tasks\Parallel.cs (189)
145/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 169/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 171/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 193ArgumentNullException.ThrowIfNull(parallelOptions); 194ArgumentNullException.ThrowIfNull(actions); 378/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 390ArgumentNullException.ThrowIfNull(body); 404/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 416ArgumentNullException.ThrowIfNull(body); 431/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 433/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 452ArgumentNullException.ThrowIfNull(parallelOptions); 453ArgumentNullException.ThrowIfNull(body); 468/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 470/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 489ArgumentNullException.ThrowIfNull(parallelOptions); 490ArgumentNullException.ThrowIfNull(body); 503/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 539ArgumentNullException.ThrowIfNull(body); 552/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 566ArgumentNullException.ThrowIfNull(body); 581/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 583/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 604ArgumentNullException.ThrowIfNull(parallelOptions); 605ArgumentNullException.ThrowIfNull(body); 620/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 622/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 644ArgumentNullException.ThrowIfNull(parallelOptions); 645ArgumentNullException.ThrowIfNull(body); 663/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 665/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 667/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 696ArgumentNullException.ThrowIfNull(localInit); 697ArgumentNullException.ThrowIfNull(body); 698ArgumentNullException.ThrowIfNull(localFinally); 716/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 718/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 720/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 749ArgumentNullException.ThrowIfNull(localInit); 750ArgumentNullException.ThrowIfNull(body); 751ArgumentNullException.ThrowIfNull(localFinally); 771/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 773/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 775/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 777/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 813ArgumentNullException.ThrowIfNull(parallelOptions); 814ArgumentNullException.ThrowIfNull(localInit); 815ArgumentNullException.ThrowIfNull(body); 816ArgumentNullException.ThrowIfNull(localFinally); 836/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 838/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 840/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 842/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 878ArgumentNullException.ThrowIfNull(parallelOptions); 879ArgumentNullException.ThrowIfNull(localInit); 880ArgumentNullException.ThrowIfNull(body); 881ArgumentNullException.ThrowIfNull(localFinally); 1170/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1172/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1184ArgumentNullException.ThrowIfNull(source); 1185ArgumentNullException.ThrowIfNull(body); 1200/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1202/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1204/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1223ArgumentNullException.ThrowIfNull(source); 1224ArgumentNullException.ThrowIfNull(parallelOptions); 1225ArgumentNullException.ThrowIfNull(body); 1238/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1240/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1254ArgumentNullException.ThrowIfNull(source); 1255ArgumentNullException.ThrowIfNull(body); 1270/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1272/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1274/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1295ArgumentNullException.ThrowIfNull(source); 1296ArgumentNullException.ThrowIfNull(parallelOptions); 1297ArgumentNullException.ThrowIfNull(body); 1310/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1312/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1326ArgumentNullException.ThrowIfNull(source); 1327ArgumentNullException.ThrowIfNull(body); 1342/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1344/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1346/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1367ArgumentNullException.ThrowIfNull(source); 1368ArgumentNullException.ThrowIfNull(parallelOptions); 1369ArgumentNullException.ThrowIfNull(body); 1387/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1389/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1391/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1393/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1419ArgumentNullException.ThrowIfNull(source); 1420ArgumentNullException.ThrowIfNull(localInit); 1421ArgumentNullException.ThrowIfNull(body); 1422ArgumentNullException.ThrowIfNull(localFinally); 1442/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1444/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1446/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1448/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1450/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1484ArgumentNullException.ThrowIfNull(source); 1485ArgumentNullException.ThrowIfNull(parallelOptions); 1486ArgumentNullException.ThrowIfNull(localInit); 1487ArgumentNullException.ThrowIfNull(body); 1488ArgumentNullException.ThrowIfNull(localFinally); 1506/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1508/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1510/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1512/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1538ArgumentNullException.ThrowIfNull(source); 1539ArgumentNullException.ThrowIfNull(localInit); 1540ArgumentNullException.ThrowIfNull(body); 1541ArgumentNullException.ThrowIfNull(localFinally); 1561/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1563/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1565/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1567/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1569/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1602ArgumentNullException.ThrowIfNull(source); 1603ArgumentNullException.ThrowIfNull(parallelOptions); 1604ArgumentNullException.ThrowIfNull(localInit); 1605ArgumentNullException.ThrowIfNull(body); 1606ArgumentNullException.ThrowIfNull(localFinally); 1801/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1803/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1839ArgumentNullException.ThrowIfNull(source); 1840ArgumentNullException.ThrowIfNull(body); 1852/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1854/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1892ArgumentNullException.ThrowIfNull(source); 1893ArgumentNullException.ThrowIfNull(body); 1905/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1907/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1948ArgumentNullException.ThrowIfNull(source); 1949ArgumentNullException.ThrowIfNull(body); 1971/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 1973/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 1975/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 1977/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2026ArgumentNullException.ThrowIfNull(source); 2027ArgumentNullException.ThrowIfNull(localInit); 2028ArgumentNullException.ThrowIfNull(body); 2029ArgumentNullException.ThrowIfNull(localFinally); 2046/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 2048/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 2050/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2052/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2104ArgumentNullException.ThrowIfNull(source); 2105ArgumentNullException.ThrowIfNull(localInit); 2106ArgumentNullException.ThrowIfNull(body); 2107ArgumentNullException.ThrowIfNull(localFinally); 2126/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 2128/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2130/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 2174ArgumentNullException.ThrowIfNull(source); 2175ArgumentNullException.ThrowIfNull(parallelOptions); 2176ArgumentNullException.ThrowIfNull(body); 2190/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 2192/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2194/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 2240ArgumentNullException.ThrowIfNull(source); 2241ArgumentNullException.ThrowIfNull(parallelOptions); 2242ArgumentNullException.ThrowIfNull(body); 2256/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 2258/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2260/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 2309ArgumentNullException.ThrowIfNull(source); 2310ArgumentNullException.ThrowIfNull(parallelOptions); 2311ArgumentNullException.ThrowIfNull(body); 2335/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 2337/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2339/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 2341/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2343/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2400ArgumentNullException.ThrowIfNull(source); 2401ArgumentNullException.ThrowIfNull(parallelOptions); 2402ArgumentNullException.ThrowIfNull(localInit); 2403ArgumentNullException.ThrowIfNull(body); 2404ArgumentNullException.ThrowIfNull(localFinally); 2423/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="source"/> 2425/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2427/// <exception cref="System.ArgumentNullException">The exception that is thrown when the <paramref name="body"/> 2429/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2431/// <exception cref="System.ArgumentNullException">The exception that is thrown when the 2491ArgumentNullException.ThrowIfNull(source); 2492ArgumentNullException.ThrowIfNull(parallelOptions); 2493ArgumentNullException.ThrowIfNull(localInit); 2494ArgumentNullException.ThrowIfNull(body); 2495ArgumentNullException.ThrowIfNull(localFinally);
System\Threading\Tasks\Parallel.ForEachAsync.cs (36)
17/// <exception cref="ArgumentNullException">The <paramref name="body"/> argument is <see langword="null"/>.</exception> 23ArgumentNullException.ThrowIfNull(fromInclusive); 24ArgumentNullException.ThrowIfNull(toExclusive); 25ArgumentNullException.ThrowIfNull(body); 35/// <exception cref="ArgumentNullException">The <paramref name="body"/> argument is <see langword="null"/>.</exception> 41ArgumentNullException.ThrowIfNull(fromInclusive); 42ArgumentNullException.ThrowIfNull(toExclusive); 43ArgumentNullException.ThrowIfNull(body); 53/// <exception cref="ArgumentNullException">The <paramref name="body"/> argument is <see langword="null"/>.</exception> 59ArgumentNullException.ThrowIfNull(fromInclusive); 60ArgumentNullException.ThrowIfNull(toExclusive); 61ArgumentNullException.ThrowIfNull(parallelOptions); 62ArgumentNullException.ThrowIfNull(body); 75/// <exception cref="ArgumentNullException">The <paramref name="body"/> argument is <see langword="null"/>.</exception> 195/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 200ArgumentNullException.ThrowIfNull(source); 201ArgumentNullException.ThrowIfNull(body); 211/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216ArgumentNullException.ThrowIfNull(source); 217ArgumentNullException.ThrowIfNull(body); 227/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 231ArgumentNullException.ThrowIfNull(source); 232ArgumentNullException.ThrowIfNull(parallelOptions); 233ArgumentNullException.ThrowIfNull(body); 245/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 350/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 355ArgumentNullException.ThrowIfNull(source); 356ArgumentNullException.ThrowIfNull(body); 366/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 371ArgumentNullException.ThrowIfNull(source); 372ArgumentNullException.ThrowIfNull(body); 382/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 386ArgumentNullException.ThrowIfNull(source); 387ArgumentNullException.ThrowIfNull(parallelOptions); 388ArgumentNullException.ThrowIfNull(body); 400/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
System.Transactions.Local (22)
System\Transactions\Transaction.cs (9)
289ArgumentNullException.ThrowIfNull(superior); 488ArgumentNullException.ThrowIfNull(enlistmentNotification); 536ArgumentNullException.ThrowIfNull(singlePhaseNotification); 623ArgumentNullException.ThrowIfNull(enlistmentNotification); 662ArgumentNullException.ThrowIfNull(singlePhaseNotification); 903ArgumentNullException.ThrowIfNull(promotableSinglePhaseNotification); 949ArgumentNullException.ThrowIfNull(promotableNotification); 950ArgumentNullException.ThrowIfNull(enlistmentNotification); 988ArgumentNullException.ThrowIfNull(promotableNotification);
System\Transactions\TransactionInteropNonWindows.cs (9)
13ArgumentNullException.ThrowIfNull(transaction); 47ArgumentNullException.ThrowIfNull(transaction); 48ArgumentNullException.ThrowIfNull(whereabouts); 73ArgumentNullException.ThrowIfNull(cookie); 122ArgumentNullException.ThrowIfNull(transaction); 143ArgumentNullException.ThrowIfNull(propagationToken); 187ArgumentNullException.ThrowIfNull(transaction); 208ArgumentNullException.ThrowIfNull(transactionNative); 244ArgumentNullException.ThrowIfNull(propagationToken);
System\Transactions\TransactionManager.cs (3)
122ArgumentNullException.ThrowIfNull(value); 147ArgumentNullException.ThrowIfNull(recoveryInformation); 149ArgumentNullException.ThrowIfNull(enlistmentNotification);
System\Transactions\TransactionScope.cs (1)
469ArgumentNullException.ThrowIfNull(transactionToUse);
System.Web.HttpUtility (6)
System\Web\HttpUtility.cs (2)
85ArgumentNullException.ThrowIfNull(query); 86ArgumentNullException.ThrowIfNull(encoding);
System\Web\Util\HttpEncoder.cs (4)
58ArgumentNullException.ThrowIfNull(output); 111ArgumentNullException.ThrowIfNull(output); 121ArgumentNullException.ThrowIfNull(output); 603ArgumentNullException.ThrowIfNull(bytes);
System.Windows.Controls.Ribbon (81)
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
117ArgumentNullException.ThrowIfNull(value);
Microsoft\Windows\Controls\KeyTipService.cs (11)
61ArgumentNullException.ThrowIfNull(element); 70ArgumentNullException.ThrowIfNull(element); 99ArgumentNullException.ThrowIfNull(element); 105ArgumentNullException.ThrowIfNull(element); 120ArgumentNullException.ThrowIfNull(element); 126ArgumentNullException.ThrowIfNull(element); 412ArgumentNullException.ThrowIfNull(element); 418ArgumentNullException.ThrowIfNull(element); 1278ArgumentNullException.ThrowIfNull(element); 1284ArgumentNullException.ThrowIfNull(element); 1301ArgumentNullException.ThrowIfNull(visual);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
51ArgumentNullException.ThrowIfNull(starLayoutInfoProvider); 66ArgumentNullException.ThrowIfNull(starLayoutInfoProvider);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
30ArgumentNullException.ThrowIfNull(starLayoutInfoProvider); 40ArgumentNullException.ThrowIfNull(starLayoutInfoProvider);
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
117ArgumentNullException.ThrowIfNull(destinationType);
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (54)
45ArgumentNullException.ThrowIfNull(element); 54ArgumentNullException.ThrowIfNull(element); 76ArgumentNullException.ThrowIfNull(element); 85ArgumentNullException.ThrowIfNull(element); 111ArgumentNullException.ThrowIfNull(element); 120ArgumentNullException.ThrowIfNull(element); 145ArgumentNullException.ThrowIfNull(element); 154ArgumentNullException.ThrowIfNull(element); 170ArgumentNullException.ThrowIfNull(element); 179ArgumentNullException.ThrowIfNull(element); 195ArgumentNullException.ThrowIfNull(element); 204ArgumentNullException.ThrowIfNull(element); 220ArgumentNullException.ThrowIfNull(element); 229ArgumentNullException.ThrowIfNull(element); 245ArgumentNullException.ThrowIfNull(element); 254ArgumentNullException.ThrowIfNull(element); 270ArgumentNullException.ThrowIfNull(element); 279ArgumentNullException.ThrowIfNull(element); 309ArgumentNullException.ThrowIfNull(element); 318ArgumentNullException.ThrowIfNull(element); 337ArgumentNullException.ThrowIfNull(element); 346ArgumentNullException.ThrowIfNull(element); 365ArgumentNullException.ThrowIfNull(element); 374ArgumentNullException.ThrowIfNull(element); 393ArgumentNullException.ThrowIfNull(element); 402ArgumentNullException.ThrowIfNull(element); 421ArgumentNullException.ThrowIfNull(element); 430ArgumentNullException.ThrowIfNull(element); 449ArgumentNullException.ThrowIfNull(element); 458ArgumentNullException.ThrowIfNull(element); 477ArgumentNullException.ThrowIfNull(element); 486ArgumentNullException.ThrowIfNull(element); 505ArgumentNullException.ThrowIfNull(element); 514ArgumentNullException.ThrowIfNull(element); 533ArgumentNullException.ThrowIfNull(element); 542ArgumentNullException.ThrowIfNull(element); 563ArgumentNullException.ThrowIfNull(element); 574ArgumentNullException.ThrowIfNull(element); 600ArgumentNullException.ThrowIfNull(element); 609ArgumentNullException.ThrowIfNull(element); 646ArgumentNullException.ThrowIfNull(element); 652ArgumentNullException.ThrowIfNull(element); 735ArgumentNullException.ThrowIfNull(element); 745ArgumentNullException.ThrowIfNull(element); 767ArgumentNullException.ThrowIfNull(element); 773ArgumentNullException.ThrowIfNull(element); 796ArgumentNullException.ThrowIfNull(element); 805ArgumentNullException.ThrowIfNull(element); 824ArgumentNullException.ThrowIfNull(element); 833ArgumentNullException.ThrowIfNull(element); 853ArgumentNullException.ThrowIfNull(element); 862ArgumentNullException.ThrowIfNull(element); 875ArgumentNullException.ThrowIfNull(element); 884ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1498ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
275ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (4)
217ArgumentNullException.ThrowIfNull(element); 223ArgumentNullException.ThrowIfNull(element); 242ArgumentNullException.ThrowIfNull(element); 248ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (2)
100ArgumentNullException.ThrowIfNull(value); 101ArgumentNullException.ThrowIfNull(destinationType);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
37ArgumentNullException.ThrowIfNull(itemsControl); 776ArgumentNullException.ThrowIfNull(element);
System.Windows.Forms (435)
misc\CollectionHelper.cs (1)
16ArgumentNullException.ThrowIfNull(target);
System\Resources\ResXDataNode.cs (1)
78ArgumentNullException.ThrowIfNull(name);
System\Resources\ResXResourceWriter.cs (1)
251ArgumentNullException.ThrowIfNull(assemblyName);
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
18ArgumentNullException.ThrowIfNull(owningControl);
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
30ArgumentNullException.ThrowIfNull(owningControl);
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
31ArgumentNullException.ThrowIfNull(owner);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
113ArgumentNullException.ThrowIfNull(editorBaseType);
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
40ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Application.cs (2)
1345/// <exception cref="ArgumentNullException"><paramref name="font"/> is <see langword="null"/>.</exception> 1361ArgumentNullException.ThrowIfNull(font);
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
81ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (1)
16ArgumentNullException.ThrowIfNull(context);
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
27ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2Properties.cs (2)
40ArgumentNullException.ThrowIfNull(comObject); 41ArgumentNullException.ThrowIfNull(properties);
System\Windows\Forms\ContextMenuStrip.cs (1)
20ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\Control.ControlCollection.cs (2)
141ArgumentNullException.ThrowIfNull(controls); 421ArgumentNullException.ThrowIfNull(child);
System\Windows\Forms\Control.cs (5)
2421ArgumentNullException.ThrowIfNull(control); 4976ArgumentNullException.ThrowIfNull(bitmap); 5028ArgumentNullException.ThrowIfNull(asyncResult); 7152ArgumentNullException.ThrowIfNull(e); 8140ArgumentNullException.ThrowIfNull(e);
System\Windows\Forms\Control_InvokeAsync.cs (4)
32ArgumentNullException.ThrowIfNull(callback); 98ArgumentNullException.ThrowIfNull(callback); 163ArgumentNullException.ThrowIfNull(callback); 227ArgumentNullException.ThrowIfNull(callback);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeRendererBase.cs (4)
23ArgumentNullException.ThrowIfNull(graphics); 43ArgumentNullException.ThrowIfNull(graphics); 44ArgumentNullException.ThrowIfNull(paintImage); 45ArgumentNullException.ThrowIfNull(paintField);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (5)
118ArgumentNullException.ThrowIfNull(item); 193ArgumentNullException.ThrowIfNull(items); 266ArgumentNullException.ThrowIfNull(destination); 281ArgumentNullException.ThrowIfNull(destination); 312ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
9762ArgumentNullException.ThrowIfNull(dataGridViewCell); 10737ArgumentNullException.ThrowIfNull(dataGridViewColumn); 10999ArgumentNullException.ThrowIfNull(dataGridViewRow); 11236ArgumentNullException.ThrowIfNull(previousModes, nameof(e.PreviousModes)); 25343ArgumentNullException.ThrowIfNull(dataGridViewCurrentCell); 28161ArgumentNullException.ThrowIfNull(dataGridViewColumn); 28183ArgumentNullException.ThrowIfNull(comparer);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
151ArgumentNullException.ThrowIfNull(cellStyle); 216ArgumentNullException.ThrowIfNull(cellStyle); 287ArgumentNullException.ThrowIfNull(cellStyle); 609ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (15)
772ArgumentNullException.ThrowIfNull(dataGridViewAdvancedBorderStyleInput); 773ArgumentNullException.ThrowIfNull(dataGridViewAdvancedBorderStylePlaceholder); 831ArgumentNullException.ThrowIfNull(advancedBorderStyle); 2541ArgumentNullException.ThrowIfNull(graphics); 2542ArgumentNullException.ThrowIfNull(font); 2565ArgumentNullException.ThrowIfNull(graphics); 2566ArgumentNullException.ThrowIfNull(font); 2610ArgumentNullException.ThrowIfNull(graphics); 2611ArgumentNullException.ThrowIfNull(font); 3127ArgumentNullException.ThrowIfNull(graphics); 3128ArgumentNullException.ThrowIfNull(cellStyle); 3129ArgumentNullException.ThrowIfNull(advancedBorderStyle); 3531ArgumentNullException.ThrowIfNull(graphics); 3548ArgumentNullException.ThrowIfNull(graphics); 3717ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
190ArgumentNullException.ThrowIfNull(dataGridViewCells);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (1)
26ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
18ArgumentNullException.ThrowIfNull(e);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
41ArgumentNullException.ThrowIfNull(dataGridViewCellStyle); 376ArgumentNullException.ThrowIfNull(dataGridViewCellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (1)
36ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
446ArgumentNullException.ThrowIfNull(cellStyle); 508ArgumentNullException.ThrowIfNull(cellStyle); 646ArgumentNullException.ThrowIfNull(cellStyle); 1008ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (8)
90ArgumentNullException.ThrowIfNull(columnName); 176ArgumentNullException.ThrowIfNull(dataGridViewColumns); 335ArgumentNullException.ThrowIfNull(columnName); 718ArgumentNullException.ThrowIfNull(dataGridViewColumnStart); 791ArgumentNullException.ThrowIfNull(dataGridViewColumnStart); 879ArgumentNullException.ThrowIfNull(dataGridViewColumn); 989ArgumentNullException.ThrowIfNull(dataGridViewColumn); 1014ArgumentNullException.ThrowIfNull(columnName);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (1)
32ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
12ArgumentNullException.ThrowIfNull(e);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnEventArgs.cs (1)
10ArgumentNullException.ThrowIfNull(dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
213ArgumentNullException.ThrowIfNull(cellStyle); 489ArgumentNullException.ThrowIfNull(cellStyle); 724ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnStateChangedEventArgs.cs (1)
10ArgumentNullException.ThrowIfNull(dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (5)
730ArgumentNullException.ThrowIfNull(cellStyle); 833ArgumentNullException.ThrowIfNull(cellStyle); 1170ArgumentNullException.ThrowIfNull(cellStyle); 1405ArgumentNullException.ThrowIfNull(key); 1822ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (5)
58ArgumentNullException.ThrowIfNull(item); 103ArgumentNullException.ThrowIfNull(items); 127ArgumentNullException.ThrowIfNull(items); 204ArgumentNullException.ThrowIfNull(value); 220ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
527ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (4)
227ArgumentNullException.ThrowIfNull(cellStyle); 289ArgumentNullException.ThrowIfNull(cellStyle); 406ArgumentNullException.ThrowIfNull(cellStyle); 690ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (4)
422ArgumentNullException.ThrowIfNull(cellStyle); 489ArgumentNullException.ThrowIfNull(cellStyle); 544ArgumentNullException.ThrowIfNull(cellStyle); 845ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (8)
1099ArgumentNullException.ThrowIfNull(dataGridView); 1124ArgumentNullException.ThrowIfNull(values); 1188ArgumentNullException.ThrowIfNull(graphics); 1189ArgumentNullException.ThrowIfNull(cellStyle); 1423ArgumentNullException.ThrowIfNull(graphics); 1499ArgumentNullException.ThrowIfNull(graphics); 1692ArgumentNullException.ThrowIfNull(graphics); 1774ArgumentNullException.ThrowIfNull(values);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (7)
275ArgumentNullException.ThrowIfNull(values); 384ArgumentNullException.ThrowIfNull(dataGridViewRow); 714ArgumentNullException.ThrowIfNull(dataGridViewRows); 1355ArgumentNullException.ThrowIfNull(values); 1460ArgumentNullException.ThrowIfNull(dataGridViewRow); 1751ArgumentNullException.ThrowIfNull(dataGridViewRows); 2144ArgumentNullException.ThrowIfNull(dataGridViewRow);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowConverter.cs (1)
25ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (4)
185ArgumentNullException.ThrowIfNull(cellStyle); 244ArgumentNullException.ThrowIfNull(cellStyle); 517ArgumentNullException.ThrowIfNull(cellStyle); 586ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (4)
258ArgumentNullException.ThrowIfNull(cellStyle); 325ArgumentNullException.ThrowIfNull(cellStyle); 396ArgumentNullException.ThrowIfNull(cellStyle); 608ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
96ArgumentNullException.ThrowIfNull(dataGridViewCellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (4)
28ArgumentNullException.ThrowIfNull(cellStyle); 92ArgumentNullException.ThrowIfNull(cellStyle); 143ArgumentNullException.ThrowIfNull(cellStyle); 178ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
69ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (8)
138ArgumentNullException.ThrowIfNull(value); 273ArgumentNullException.ThrowIfNull(value); 284ArgumentNullException.ThrowIfNull(value); 297ArgumentNullException.ThrowIfNull(value); 305ArgumentNullException.ThrowIfNull(original); 306ArgumentNullException.ThrowIfNull(original._image, nameof(original)); 373ArgumentNullException.ThrowIfNull(images); 391ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
121ArgumentNullException.ThrowIfNull(propertyValues);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2098ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (2)
176ArgumentNullException.ThrowIfNull(items); 319ArgumentNullException.ThrowIfNull(destination);
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (11)
34ArgumentNullException.ThrowIfNull(value); 45ArgumentNullException.ThrowIfNull(value); 95ArgumentNullException.ThrowIfNull(item); 165ArgumentNullException.ThrowIfNull(value); 173ArgumentNullException.ThrowIfNull(items); 273ArgumentNullException.ThrowIfNull(destination); 284ArgumentNullException.ThrowIfNull(destination); 300ArgumentNullException.ThrowIfNull(value); 309ArgumentNullException.ThrowIfNull(value); 329ArgumentNullException.ThrowIfNull(item); 412ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
36ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
30ArgumentNullException.ThrowIfNull(item); 34ArgumentNullException.ThrowIfNull(subItem);
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
261ArgumentNullException.ThrowIfNull(values); 269ArgumentNullException.ThrowIfNull(header, nameof(values));
System\Windows\Forms\Controls\ListView\ListView.cs (1)
3825ArgumentNullException.ThrowIfNull(ch);
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (2)
218ArgumentNullException.ThrowIfNull(items); 225ArgumentNullException.ThrowIfNull(items);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
130ArgumentNullException.ThrowIfNull(values);
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
472ArgumentNullException.ThrowIfNull(info);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (6)
41ArgumentNullException.ThrowIfNull(value); 75ArgumentNullException.ThrowIfNull(value); 114ArgumentNullException.ThrowIfNull(group); 153ArgumentNullException.ThrowIfNull(groups); 164ArgumentNullException.ThrowIfNull(groups); 239ArgumentNullException.ThrowIfNull(group);
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
90ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (4)
117ArgumentNullException.ThrowIfNull(subItems); 125ArgumentNullException.ThrowIfNull(subItems[i], nameof(subItems)); 208ArgumentNullException.ThrowIfNull(subItems); 216ArgumentNullException.ThrowIfNull(subItems[i], nameof(subItems));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (5)
109ArgumentNullException.ThrowIfNull(item); 134ArgumentNullException.ThrowIfNull(items); 152ArgumentNullException.ThrowIfNull(items); 169ArgumentNullException.ThrowIfNull(items); 305ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (1)
43ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\ListView\ListViewLabelEditAccessibleObject.cs (1)
18ArgumentNullException.ThrowIfNull(owningListView);
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (1)
26ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
94ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4857ArgumentNullException.ThrowIfNull(dialog);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBox.cs (1)
15ArgumentNullException.ThrowIfNull(gridView);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
1790ArgumentNullException.ThrowIfNull(str); 1953ArgumentNullException.ThrowIfNull(characterSet); 2321ArgumentNullException.ThrowIfNull(data);
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
21ArgumentNullException.ThrowIfNull(value, nameof(value));
System\Windows\Forms\Controls\TabControl\TabControl.cs (7)
1003ArgumentNullException.ThrowIfNull(tabPage); 1014ArgumentNullException.ThrowIfNull(tabPageName); 1133ArgumentNullException.ThrowIfNull(item); 1170ArgumentNullException.ThrowIfNull(tabPage); 1663ArgumentNullException.ThrowIfNull(value); 1696ArgumentNullException.ThrowIfNull(tabPage); 1707ArgumentNullException.ThrowIfNull(tabPageName);
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
83ArgumentNullException.ThrowIfNull(value); 126ArgumentNullException.ThrowIfNull(pages); 136ArgumentNullException.ThrowIfNull(page); 161ArgumentNullException.ThrowIfNull(page); 317ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
121ArgumentNullException.ThrowIfNull(mask); 133ArgumentNullException.ThrowIfNull(maskedTextProvider); 346ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4069ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (2)
66ArgumentNullException.ThrowIfNull(service); 114ArgumentNullException.ThrowIfNull(key);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (3)
117ArgumentNullException.ThrowIfNull(toolStripItems); 137ArgumentNullException.ThrowIfNull(toolStripItems); 219ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (2)
29ArgumentNullException.ThrowIfNull(item); 52ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (10)
606ArgumentNullException.ThrowIfNull(targetForm); 616ArgumentNullException.ThrowIfNull(targetForm); 629ArgumentNullException.ThrowIfNull(sourceForm); 639ArgumentNullException.ThrowIfNull(sourceForm); 640ArgumentNullException.ThrowIfNull(key); 1070ArgumentNullException.ThrowIfNull(sourceToolStrip); 1071ArgumentNullException.ThrowIfNull(targetToolStrip); 1242ArgumentNullException.ThrowIfNull(sourceToolStrip); 1243ArgumentNullException.ThrowIfNull(targetName); 1255ArgumentNullException.ThrowIfNull(targetToolStrip);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
16ArgumentNullException.ThrowIfNull(parentItem);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
748ArgumentNullException.ThrowIfNull(toolStripToDrag);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (4)
41ArgumentNullException.ThrowIfNull(value); 50ArgumentNullException.ThrowIfNull(value); 70ArgumentNullException.ThrowIfNull(value); 134ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
49ArgumentNullException.ThrowIfNull(control);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (4)
74ArgumentNullException.ThrowIfNull(value); 90ArgumentNullException.ThrowIfNull(value); 206ArgumentNullException.ThrowIfNull(value); 284ArgumentNullException.ThrowIfNull(array);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (7)
614ArgumentNullException.ThrowIfNull(e); 635ArgumentNullException.ThrowIfNull(e); 801ArgumentNullException.ThrowIfNull(e); 845ArgumentNullException.ThrowIfNull(e); 890ArgumentNullException.ThrowIfNull(e); 1024ArgumentNullException.ThrowIfNull(e); 1166ArgumentNullException.ThrowIfNull(normalImage);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (13)
117ArgumentNullException.ThrowIfNull(e); 171ArgumentNullException.ThrowIfNull(e); 226ArgumentNullException.ThrowIfNull(e); 272ArgumentNullException.ThrowIfNull(e); 314ArgumentNullException.ThrowIfNull(e); 358ArgumentNullException.ThrowIfNull(e); 422ArgumentNullException.ThrowIfNull(e); 514ArgumentNullException.ThrowIfNull(e); 563ArgumentNullException.ThrowIfNull(e); 579ArgumentNullException.ThrowIfNull(e); 593ArgumentNullException.ThrowIfNull(e); 616ArgumentNullException.ThrowIfNull(e); 648ArgumentNullException.ThrowIfNull(e);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (4)
43ArgumentNullException.ThrowIfNull(value); 209ArgumentNullException.ThrowIfNull(nodes); 298ArgumentNullException.ThrowIfNull(node); 357ArgumentNullException.ThrowIfNull(node);
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (1)
41ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
52ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\TreeView\TreeViewImageKeyConverter.cs (1)
24ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Controls\TreeView\TreeViewLabelEditAccessibleObject.cs (1)
15ArgumentNullException.ThrowIfNull(owningTreeView);
System\Windows\Forms\Controls\UpDown\NumericUpDownAccelerationCollection.cs (3)
24ArgumentNullException.ThrowIfNull(acceleration); 119ArgumentNullException.ThrowIfNull(accelerations); 124ArgumentNullException.ThrowIfNull(acceleration);
System\Windows\Forms\DataBinding\BindingContext.cs (3)
109ArgumentNullException.ThrowIfNull(dataSource); 110ArgumentNullException.ThrowIfNull(listManager); 347ArgumentNullException.ThrowIfNull(binding);
System\Windows\Forms\DataBinding\BindingContext.HashKey.cs (1)
18ArgumentNullException.ThrowIfNull(dataSource);
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
63ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\DataBinding\BindingsCollection.cs (1)
48ArgumentNullException.ThrowIfNull(dataBinding);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
100ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (3)
147ArgumentNullException.ThrowIfNull(dataSource); 171ArgumentNullException.ThrowIfNull(dataBinding); 242ArgumentNullException.ThrowIfNull(dataBinding);
System\Windows\Forms\DataBinding\CurrencyManager.cs (2)
186ArgumentNullException.ThrowIfNull(tempList, nameof(dataSource)); 557ArgumentNullException.ThrowIfNull(key);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
66ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\DataBinding\ListManagerBindingsCollection.cs (2)
28ArgumentNullException.ThrowIfNull(dataBinding); 57ArgumentNullException.ThrowIfNull(dataBinding);
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
98ArgumentNullException.ThrowIfNull(filename);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (8)
321/// <exception cref="ArgumentNullException"> 354/// <exception cref="ArgumentNullException"> 388/// <exception cref="ArgumentNullException"> 400ArgumentNullException.ThrowIfNull(page); 453/// <exception cref="ArgumentNullException"> 483/// <exception cref="ArgumentNullException"> 519/// <exception cref="ArgumentNullException"> 530ArgumentNullException.ThrowIfNull(page);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButtonCollection.cs (4)
46/// <exception cref="ArgumentNullException"> 59ArgumentNullException.ThrowIfNull(item); 86/// <exception cref="ArgumentNullException"> 99ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (2)
103/// <exception cref="ArgumentNullException"><paramref name="image"/> is <see langword="null"/>.</exception> 121/// <exception cref="ArgumentNullException"><paramref name="icon"/> is <see langword="null"/>.</exception>
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (2)
605/// <exception cref="ArgumentNullException"> 620ArgumentNullException.ThrowIfNull(page);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogRadioButtonCollection.cs (4)
45/// <exception cref="ArgumentNullException"> 58ArgumentNullException.ThrowIfNull(item); 85/// <exception cref="ArgumentNullException"> 98ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (3)
74ArgumentNullException.ThrowIfNull(parentControl); 84ArgumentNullException.ThrowIfNull(container); 719ArgumentNullException.ThrowIfNull(control);
System\Windows\Forms\Help\HelpProvider.cs (10)
65ArgumentNullException.ThrowIfNull(ctl); 77ArgumentNullException.ThrowIfNull(ctl); 89ArgumentNullException.ThrowIfNull(ctl); 100ArgumentNullException.ThrowIfNull(ctl); 174ArgumentNullException.ThrowIfNull(ctl); 190ArgumentNullException.ThrowIfNull(ctl); 206ArgumentNullException.ThrowIfNull(ctl); 220ArgumentNullException.ThrowIfNull(ctl); 231ArgumentNullException.ThrowIfNull(ctl); 241ArgumentNullException.ThrowIfNull(ctl);
System\Windows\Forms\ImageIndexConverter.cs (1)
70ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\ImageKeyConverter.cs (1)
85ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Input\Cursor.cs (2)
94ArgumentNullException.ThrowIfNull(stream); 250ArgumentNullException.ThrowIfNull(graphics);
System\Windows\Forms\Input\InputLanguage.cs (1)
265ArgumentNullException.ThrowIfNull(culture);
System\Windows\Forms\Input\KeysConverter.cs (1)
221ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Forms\Internal\ItemArray.cs (1)
225ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Layout\LayoutEngine.cs (2)
27ArgumentNullException.ThrowIfNull(child); 42ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\Layout\TableLayout.cs (1)
25ArgumentNullException.ThrowIfNull(array);
System\Windows\Forms\NotifyIcon.cs (1)
69ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\OLE\Clipboard.cs (3)
43ArgumentNullException.ThrowIfNull(data); 436ArgumentNullException.ThrowIfNull(data); 445ArgumentNullException.ThrowIfNull(data);
System\Windows\Forms\OLE\DataObjectExtensions.cs (5)
13ArgumentNullException.ThrowIfNull(dataObject); 27/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception> 35/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception> 44/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception> 54/// <exception cref="ArgumentNullException">if the <paramref name="dataObject"/> is <see langword="null"/></exception>
System\Windows\Forms\Panels\FlowLayoutPanel.cs (2)
59ArgumentNullException.ThrowIfNull(control); 67ArgumentNullException.ThrowIfNull(control);
System\Windows\Forms\Panels\FlowLayoutSettings.cs (2)
47ArgumentNullException.ThrowIfNull(child); 58ArgumentNullException.ThrowIfNull(child);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
78ArgumentNullException.ThrowIfNull(propertyValues);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (10)
236ArgumentNullException.ThrowIfNull(control); 251ArgumentNullException.ThrowIfNull(control); 274ArgumentNullException.ThrowIfNull(control); 289ArgumentNullException.ThrowIfNull(control); 318ArgumentNullException.ThrowIfNull(control); 339ArgumentNullException.ThrowIfNull(control); 353ArgumentNullException.ThrowIfNull(control); 366ArgumentNullException.ThrowIfNull(control); 379ArgumentNullException.ThrowIfNull(control); 400ArgumentNullException.ThrowIfNull(control);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (3)
30ArgumentNullException.ThrowIfNull(style); 45ArgumentNullException.ThrowIfNull(style); 62ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Rendering\ControlPaint.cs (26)
147ArgumentNullException.ThrowIfNull(bitmap); 243ArgumentNullException.ThrowIfNull(bitmap); 302ArgumentNullException.ThrowIfNull(bitmap); 393ArgumentNullException.ThrowIfNull(graphics); 421ArgumentNullException.ThrowIfNull(g); 520ArgumentNullException.ThrowIfNull(graphics); 552ArgumentNullException.ThrowIfNull(graphics); 1022ArgumentNullException.ThrowIfNull(graphics); 1054ArgumentNullException.ThrowIfNull(graphics); 1143ArgumentNullException.ThrowIfNull(context); 1272ArgumentNullException.ThrowIfNull(graphics); 1316ArgumentNullException.ThrowIfNull(graphics); 1341ArgumentNullException.ThrowIfNull(graphics); 1411ArgumentNullException.ThrowIfNull(graphics); 1432ArgumentNullException.ThrowIfNull(graphics); 1481ArgumentNullException.ThrowIfNull(graphics); 1508ArgumentNullException.ThrowIfNull(graphics); 1557ArgumentNullException.ThrowIfNull(graphics); 1598ArgumentNullException.ThrowIfNull(graphics); 1599ArgumentNullException.ThrowIfNull(image); 1681ArgumentNullException.ThrowIfNull(graphics); 1870ArgumentNullException.ThrowIfNull(graphics); 1891ArgumentNullException.ThrowIfNull(graphics); 1948ArgumentNullException.ThrowIfNull(graphics); 1980ArgumentNullException.ThrowIfNull(dc); 2019ArgumentNullException.ThrowIfNull(graphics);
System\Windows\Forms\Rendering\TextRenderer.cs (13)
36/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 128/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 160/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 188/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 217/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 258/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 298ArgumentNullException.ThrowIfNull(dc); 455/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 474/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 499/// <exception cref="ArgumentNullException"><paramref name="dc"/> is null.</exception> 533ArgumentNullException.ThrowIfNull(dc);
System\Windows\Forms\Screen.cs (1)
267ArgumentNullException.ThrowIfNull(control);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
658ArgumentNullException.ThrowIfNull(e);
System\Windows\Forms\Timer.cs (1)
44ArgumentNullException.ThrowIfNull(container);
System\Windows\Forms\ToolTip\ToolTip.cs (10)
79ArgumentNullException.ThrowIfNull(cont); 1216ArgumentNullException.ThrowIfNull(control); 1307ArgumentNullException.ThrowIfNull(window); 1390ArgumentNullException.ThrowIfNull(window); 1404ArgumentNullException.ThrowIfNull(window); 1423ArgumentNullException.ThrowIfNull(window); 1443ArgumentNullException.ThrowIfNull(window); 1460ArgumentNullException.ThrowIfNull(window); 1476ArgumentNullException.ThrowIfNull(tool); 1722ArgumentNullException.ThrowIfNull(win);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (27)
78ArgumentNullException.ThrowIfNull(element); 136ArgumentNullException.ThrowIfNull(className); 188ArgumentNullException.ThrowIfNull(element); 213ArgumentNullException.ThrowIfNull(dc); 242ArgumentNullException.ThrowIfNull(dc); 269ArgumentNullException.ThrowIfNull(dc); 301ArgumentNullException.ThrowIfNull(g); 302ArgumentNullException.ThrowIfNull(image); 316ArgumentNullException.ThrowIfNull(g); 317ArgumentNullException.ThrowIfNull(imageList); 337ArgumentNullException.ThrowIfNull(dc); 338ArgumentNullException.ThrowIfNull(childControl); 373ArgumentNullException.ThrowIfNull(dc); 407ArgumentNullException.ThrowIfNull(dc); 429ArgumentNullException.ThrowIfNull(dc); 448ArgumentNullException.ThrowIfNull(dc); 532ArgumentNullException.ThrowIfNull(dc); 573ArgumentNullException.ThrowIfNull(dc); 600ArgumentNullException.ThrowIfNull(dc); 627ArgumentNullException.ThrowIfNull(dc); 660ArgumentNullException.ThrowIfNull(dc); 683ArgumentNullException.ThrowIfNull(dc); 706ArgumentNullException.ThrowIfNull(dc); 718ArgumentNullException.ThrowIfNull(dc); 740ArgumentNullException.ThrowIfNull(g); 741ArgumentNullException.ThrowIfNull(region); 752ArgumentNullException.ThrowIfNull(dc);
System.Windows.Forms.Design (213)
System\ComponentModel\Design\ByteViewer.cs (1)
611ArgumentNullException.ThrowIfNull(bytes);
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
184ArgumentNullException.ThrowIfNull(edSvc);
System\ComponentModel\Design\CollectionEditor.cs (1)
93ArgumentNullException.ThrowIfNull(itemType);
System\ComponentModel\Design\ComponentDesigner.cs (1)
377ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (2)
27ArgumentNullException.ThrowIfNull(propertyName); 78ArgumentNullException.ThrowIfNull(propertyName);
System\ComponentModel\Design\DesignerActionListCollection.cs (2)
29ArgumentNullException.ThrowIfNull(value); 39ArgumentNullException.ThrowIfNull(value);
System\ComponentModel\Design\DesignerActionService.cs (12)
65ArgumentNullException.ThrowIfNull(comp); 66ArgumentNullException.ThrowIfNull(designerActionListCollection); 117ArgumentNullException.ThrowIfNull(comp); 150ArgumentNullException.ThrowIfNull(component); 172ArgumentNullException.ThrowIfNull(component); 173ArgumentNullException.ThrowIfNull(actionLists); 266ArgumentNullException.ThrowIfNull(component); 267ArgumentNullException.ThrowIfNull(actionLists); 308ArgumentNullException.ThrowIfNull(comp); 322ArgumentNullException.ThrowIfNull(actionList); 341ArgumentNullException.ThrowIfNull(comp); 342ArgumentNullException.ThrowIfNull(actionList);
System\ComponentModel\Design\DesignerHost.cs (6)
182ArgumentNullException.ThrowIfNull(component); 500ArgumentNullException.ThrowIfNull(service); 930ArgumentNullException.ThrowIfNull(componentType); 996ArgumentNullException.ThrowIfNull(component); 1031ArgumentNullException.ThrowIfNull(component); 1038ArgumentNullException.ThrowIfNull(typeName);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
150ArgumentNullException.ThrowIfNull(service);
System\ComponentModel\Design\DesignSurface.cs (6)
63ArgumentNullException.ThrowIfNull(rootComponentType); 225ArgumentNullException.ThrowIfNull(loader); 240ArgumentNullException.ThrowIfNull(rootComponentType); 259ArgumentNullException.ThrowIfNull(component); 273ArgumentNullException.ThrowIfNull(type); 320ArgumentNullException.ThrowIfNull(owningComponent);
System\ComponentModel\Design\DesignSurfaceManager.cs (2)
254ArgumentNullException.ThrowIfNull(parentProvider); 406ArgumentNullException.ThrowIfNull(serviceType);
System\ComponentModel\Design\EventBindingService.cs (7)
110ArgumentNullException.ThrowIfNull(component); 111ArgumentNullException.ThrowIfNull(e); 122ArgumentNullException.ThrowIfNull(e); 174ArgumentNullException.ThrowIfNull(events); 199ArgumentNullException.ThrowIfNull(e); 230ArgumentNullException.ThrowIfNull(component); 231ArgumentNullException.ThrowIfNull(e);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
79ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\Design\ExtenderProviderService.cs (2)
30ArgumentNullException.ThrowIfNull(provider); 47ArgumentNullException.ThrowIfNull(provider);
System\ComponentModel\Design\MenuCommandService.cs (5)
75ArgumentNullException.ThrowIfNull(command); 118ArgumentNullException.ThrowIfNull(verb); 394ArgumentNullException.ThrowIfNull(serviceType); 485ArgumentNullException.ThrowIfNull(command); 514ArgumentNullException.ThrowIfNull(verb);
System\ComponentModel\Design\ObjectSelectorEditor.cs (1)
62ArgumentNullException.ThrowIfNull(treeView);
System\ComponentModel\Design\ReferenceService.cs (4)
211ArgumentNullException.ThrowIfNull(reference); 230ArgumentNullException.ThrowIfNull(reference); 249ArgumentNullException.ThrowIfNull(name); 284ArgumentNullException.ThrowIfNull(baseType);
System\ComponentModel\Design\SelectionService.cs (5)
57ArgumentNullException.ThrowIfNull(selection, nameof(selection)); 332ArgumentNullException.ThrowIfNull(component, nameof(component)); 393ArgumentNullException.ThrowIfNull(component, nameof(components)); 424ArgumentNullException.ThrowIfNull(comp, nameof(components)); 445ArgumentNullException.ThrowIfNull(comp, nameof(components));
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (2)
140ArgumentNullException.ThrowIfNull(host); 876ArgumentNullException.ThrowIfNull(name);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
328ArgumentNullException.ThrowIfNull(info);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.LocalServices.cs (1)
37ArgumentNullException.ThrowIfNull(serviceType);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.cs (15)
60ArgumentNullException.ThrowIfNull(store); 61ArgumentNullException.ThrowIfNull(value); 77ArgumentNullException.ThrowIfNull(store); 78ArgumentNullException.ThrowIfNull(value); 95ArgumentNullException.ThrowIfNull(store); 96ArgumentNullException.ThrowIfNull(owningObject); 97ArgumentNullException.ThrowIfNull(member); 119ArgumentNullException.ThrowIfNull(store); 120ArgumentNullException.ThrowIfNull(owningObject); 121ArgumentNullException.ThrowIfNull(member); 137ArgumentNullException.ThrowIfNull(store); 153ArgumentNullException.ThrowIfNull(store); 154ArgumentNullException.ThrowIfNull(container); 174ArgumentNullException.ThrowIfNull(store); 175ArgumentNullException.ThrowIfNull(container);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
1011ArgumentNullException.ThrowIfNull(dataType); 1106ArgumentNullException.ThrowIfNull(name); 1178ArgumentNullException.ThrowIfNull(name);
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (3)
33ArgumentNullException.ThrowIfNull(provider); 48ArgumentNullException.ThrowIfNull(provider); 49ArgumentNullException.ThrowIfNull(supportedCultures);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (10)
47ArgumentNullException.ThrowIfNull(manager); 48ArgumentNullException.ThrowIfNull(codeObject); 137ArgumentNullException.ThrowIfNull(manager); 138ArgumentNullException.ThrowIfNull(value); 229ArgumentNullException.ThrowIfNull(manager); 230ArgumentNullException.ThrowIfNull(owningObject); 231ArgumentNullException.ThrowIfNull(member); 265ArgumentNullException.ThrowIfNull(manager); 266ArgumentNullException.ThrowIfNull(owningObject); 267ArgumentNullException.ThrowIfNull(member);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (24)
35ArgumentNullException.ThrowIfNull(manager); 36ArgumentNullException.ThrowIfNull(type); 165ArgumentNullException.ThrowIfNull(manager); 166ArgumentNullException.ThrowIfNull(exceptionText); 1656ArgumentNullException.ThrowIfNull(manager); 1657ArgumentNullException.ThrowIfNull(value); 1752ArgumentNullException.ThrowIfNull(manager); 1856ArgumentNullException.ThrowIfNull(manager); 1857ArgumentNullException.ThrowIfNull(value); 1876ArgumentNullException.ThrowIfNull(manager); 1877ArgumentNullException.ThrowIfNull(value); 2056ArgumentNullException.ThrowIfNull(manager); 2057ArgumentNullException.ThrowIfNull(value); 2099ArgumentNullException.ThrowIfNull(manager); 2100ArgumentNullException.ThrowIfNull(statements); 2101ArgumentNullException.ThrowIfNull(value); 2102ArgumentNullException.ThrowIfNull(descriptor); 2245ArgumentNullException.ThrowIfNull(manager); 2246ArgumentNullException.ThrowIfNull(value); 2247ArgumentNullException.ThrowIfNull(propertyToSerialize); 2248ArgumentNullException.ThrowIfNull(statements); 2586ArgumentNullException.ThrowIfNull(manager); 2587ArgumentNullException.ThrowIfNull(value); 2588ArgumentNullException.ThrowIfNull(expression);
System\ComponentModel\Design\Serialization\CodeDomSerializerException.cs (2)
26ArgumentNullException.ThrowIfNull(manager); 31ArgumentNullException.ThrowIfNull(manager);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (7)
111ArgumentNullException.ThrowIfNull(method); 131ArgumentNullException.ThrowIfNull(manager); 132ArgumentNullException.ThrowIfNull(value); 298ArgumentNullException.ThrowIfNull(manager); 299ArgumentNullException.ThrowIfNull(targetType); 300ArgumentNullException.ThrowIfNull(originalCollection); 301ArgumentNullException.ThrowIfNull(valuesToSerialize);
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
50ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
107ArgumentNullException.ThrowIfNull(manager); 108ArgumentNullException.ThrowIfNull(value);
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (5)
25ArgumentNullException.ThrowIfNull(manager); 26ArgumentNullException.ThrowIfNull(typeDecl); 27ArgumentNullException.ThrowIfNull(value); 54ArgumentNullException.ThrowIfNull(manager); 55ArgumentNullException.ThrowIfNull(typeDecl);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (6)
426ArgumentNullException.ThrowIfNull(serializerType); 629ArgumentNullException.ThrowIfNull(property); 795ArgumentNullException.ThrowIfNull(name); 825ArgumentNullException.ThrowIfNull(value); 920ArgumentNullException.ThrowIfNull(instance); 921ArgumentNullException.ThrowIfNull(name);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (3)
25ArgumentNullException.ThrowIfNull(manager); 26ArgumentNullException.ThrowIfNull(value); 33ArgumentNullException.ThrowIfNull(statements);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (5)
85ArgumentNullException.ThrowIfNull(manager); 86ArgumentNullException.ThrowIfNull(value); 87ArgumentNullException.ThrowIfNull(statements); 362ArgumentNullException.ThrowIfNull(manager); 363ArgumentNullException.ThrowIfNull(value);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (4)
72ArgumentNullException.ThrowIfNull(manager); 73ArgumentNullException.ThrowIfNull(codeObject); 137ArgumentNullException.ThrowIfNull(manager); 138ArgumentNullException.ThrowIfNull(type);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
426ArgumentNullException.ThrowIfNull(culture);
System\ComponentModel\Design\Serialization\StatementContext.cs (4)
92ArgumentNullException.ThrowIfNull(statementOwner); 127ArgumentNullException.ThrowIfNull(statementOwner); 153ArgumentNullException.ThrowIfNull(statementOwners); 168ArgumentNullException.ThrowIfNull(owner);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (9)
40ArgumentNullException.ThrowIfNull(manager); 41ArgumentNullException.ThrowIfNull(declaration); 336ArgumentNullException.ThrowIfNull(manager); 337ArgumentNullException.ThrowIfNull(declaration); 338ArgumentNullException.ThrowIfNull(value); 355ArgumentNullException.ThrowIfNull(manager); 356ArgumentNullException.ThrowIfNull(declaration); 410ArgumentNullException.ThrowIfNull(manager); 411ArgumentNullException.ThrowIfNull(root);
System\ComponentModel\Design\SiteNestedContainer.cs (1)
73ArgumentNullException.ThrowIfNull(component);
System\ComponentModel\Design\TypeDescriptorFilterService.cs (6)
40ArgumentNullException.ThrowIfNull(component); 41ArgumentNullException.ThrowIfNull(attributes); 59ArgumentNullException.ThrowIfNull(component); 60ArgumentNullException.ThrowIfNull(events); 78ArgumentNullException.ThrowIfNull(component); 79ArgumentNullException.ThrowIfNull(properties);
System\ComponentModel\Design\UndoEngine.cs (1)
305ArgumentNullException.ThrowIfNull(serviceType);
System\Drawing\Design\ImageEditor.cs (2)
54ArgumentNullException.ThrowIfNull(e); 162ArgumentNullException.ThrowIfNull(stream);
System\Drawing\Design\ToolboxItem.cs (3)
450ArgumentNullException.ThrowIfNull(typeName); 747ArgumentNullException.ThrowIfNull(value); 851ArgumentNullException.ThrowIfNull(key);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (10)
87/// <exception cref="ArgumentNullException"> 140/// <exception cref="ArgumentNullException"> 163ArgumentNullException.ThrowIfNull(resourceList); 268ArgumentNullException.ThrowIfNull(resxFile); 301/// <exception cref="ArgumentNullException"> 313ArgumentNullException.ThrowIfNull(baseName); 314ArgumentNullException.ThrowIfNull(codeProvider); 821/// <exception cref="ArgumentNullException"> 830ArgumentNullException.ThrowIfNull(key); 831ArgumentNullException.ThrowIfNull(provider);
System\Windows\Forms\Design\Behavior\AdornerCollection.cs (1)
160/// <exception cref="ArgumentNullException"><paramref name="array"/> is <see langword="null"/>.</exception>
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
429ArgumentNullException.ThrowIfNull(behavior);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (4)
25ArgumentNullException.ThrowIfNull(manager); 26ArgumentNullException.ThrowIfNull(codeObject); 148ArgumentNullException.ThrowIfNull(manager); 149ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Design\ControlDesigner.cs (2)
581ArgumentNullException.ThrowIfNull(child); 582ArgumentNullException.ThrowIfNull(name);
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
16ArgumentNullException.ThrowIfNull(provider);
System\Windows\Forms\Design\DataGridViewColumnDataPropertyNameEditor.cs (1)
41ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Design\DesignerUtils.cs (4)
350ArgumentNullException.ThrowIfNull(provider); 626ArgumentNullException.ThrowIfNull(host); 830ArgumentNullException.ThrowIfNull(treeView); 847ArgumentNullException.ThrowIfNull(listView);
System\Windows\Forms\Design\EventHandlerService.cs (3)
43ArgumentNullException.ThrowIfNull(handlerType); 73ArgumentNullException.ThrowIfNull(handler); 88ArgumentNullException.ThrowIfNull(handler);
System\Windows\Forms\Design\FileNameEditor.cs (1)
53ArgumentNullException.ThrowIfNull(openFileDialog);
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (2)
23ArgumentNullException.ThrowIfNull(manager); 24ArgumentNullException.ThrowIfNull(codeObject);
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (2)
61ArgumentNullException.ThrowIfNull(value); 101ArgumentNullException.ThrowIfNull(values);
System.Windows.Forms.Design.Tests (120)
Serialization\TypeCodeDomSerializerTests.cs (4)
23Assert.Throws<ArgumentNullException>(() => underTest.Serialize(null, null, null)); 31Assert.Throws<ArgumentNullException>(() => underTest.Serialize(mockSerializationManager.Object, null, null)); 38Assert.Throws<ArgumentNullException>(() => underTest.Deserialize(null, null)); 46Assert.Throws<ArgumentNullException>(() => underTest.Deserialize(mockSerializationManager.Object, null));
System\ComponentModel\Design\ArrayEditorTests.cs (1)
50Assert.Throws<ArgumentNullException>(() => new SubArrayEditor(null));
System\ComponentModel\Design\ByteViewerTests.cs (3)
614Assert.Throws<ArgumentNullException>("path", () => control.SaveToFile(null)); 719Assert.Throws<ArgumentNullException>("bytes", () => control.SetBytes(null)); 883Assert.Throws<ArgumentNullException>("path", () => control.SetFile(null));
System\ComponentModel\Design\CollectionEditorTests.cs (2)
45Assert.Throws<ArgumentNullException>(() => new SubCollectionEditor(null)); 343Assert.Throws<ArgumentNullException>("itemType", () => editor.CreateInstance(null));
System\ComponentModel\Design\CollectionFormTests.cs (3)
35Assert.Throws<ArgumentNullException>("editor", () => new SubCollectionForm(null)); 712Assert.Throws<ArgumentNullException>("itemType", () => form.CreateInstance(null)); 823Assert.Throws<ArgumentNullException>("edSvc", () => form.ShowEditorDialog(null));
System\ComponentModel\Design\DesignerActionItemCollectionTests.cs (4)
40Assert.Throws<ArgumentNullException>("value", () => collection.Add(null)); 66Assert.Throws<ArgumentNullException>("value", () => collection.Insert(0, null)); 87Assert.Throws<ArgumentNullException>("value", () => collection.Remove(null)); 114Assert.Throws<ArgumentNullException>("value", () => collection[0] = null);
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (3)
34Assert.Throws<ArgumentNullException>("value", () => new DesignerActionListCollection(null)); 91Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerActionList[])null)); 92Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerActionListCollection)null));
System\ComponentModel\Design\DesignerActionServiceTests.cs (14)
105Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (DesignerActionListCollection)null)); 106Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (DesignerActionList)null)); 161Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (DesignerActionListCollection)null)); 248Assert.Throws<ArgumentNullException>("comp", () => service.Contains(null)); 388Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null)); 389Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null, ComponentActionsType.All)); 614Assert.Throws<ArgumentNullException>("component", () => service.GetComponentDesignerActions(null, null)); 621Assert.Throws<ArgumentNullException>("actionLists", () => service.GetComponentDesignerActions(new Component(), null)); 649Assert.Throws<ArgumentNullException>("component", () => service.GetComponentServiceActions(null, null)); 656Assert.Throws<ArgumentNullException>("actionLists", () => service.GetComponentServiceActions(new Component(), null)); 1031Assert.Throws<ArgumentNullException>("comp", () => service.Remove((IComponent)null)); 1032Assert.Throws<ArgumentNullException>("comp", () => service.Remove(null, null)); 1039Assert.Throws<ArgumentNullException>("actionList", () => service.Remove((DesignerActionList)null)); 1040Assert.Throws<ArgumentNullException>("actionList", () => service.Remove(new Component(), null));
System\ComponentModel\Design\DesignerHostTests.cs (8)
980Assert.Throws<ArgumentNullException>("key", () => service.GetValue(null)); 998Assert.Throws<ArgumentNullException>("key", () => service.GetValue(null)); 1045Assert.Throws<ArgumentNullException>("key", () => service.SetValue(null, new object())); 1595Assert.Throws<ArgumentNullException>("service", () => component.Site.GetService(null)); 1865Assert.Throws<ArgumentNullException>("componentType", () => host.CreateComponent(null)); 2275Assert.Throws<ArgumentNullException>("component", () => host.GetDesigner(null)); 2375Assert.Throws<ArgumentNullException>("service", () => host.GetService(null)); 2430Assert.Throws<ArgumentNullException>("typeName", () => host.GetType(null));
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (3)
34Assert.Throws<ArgumentNullException>("value", () => new DesignerVerbCollection(null)); 91Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerVerb[])null)); 92Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerVerbCollection)null));
System\ComponentModel\Design\DesignSurfaceTests.cs (11)
171Assert.Throws<ArgumentNullException>("rootComponentType", () => new DesignSurface((Type)null)); 172Assert.Throws<ArgumentNullException>("rootComponentType", () => new DesignSurface(mockServiceProvider.Object, null)); 321Assert.Throws<ArgumentNullException>("serviceType", () => container.RemoveService(null)); 924Assert.Throws<ArgumentNullException>("loader", () => surface.BeginLoad((DesignerLoader)null)); 946Assert.Throws<ArgumentNullException>("rootComponentType", () => surface.BeginLoad((Type)null)); 1010Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, true)); 1011Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, false)); 1071Assert.Throws<ArgumentNullException>("type", () => surface.CreateComponent(null)); 1127Assert.Throws<ArgumentNullException>("type", () => surface.CreateInstance(null)); 1155Assert.Throws<ArgumentNullException>("owningComponent", () => surface.CreateNestedContainer(null)); 1156Assert.Throws<ArgumentNullException>("owningComponent", () => surface.CreateNestedContainer(null, "name"));
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (2)
45Assert.Throws<ArgumentNullException>("provider", () => providerService.AddExtenderProvider(null)); 104Assert.Throws<ArgumentNullException>("provider", () => providerService.RemoveExtenderProvider(null));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (11)
683Assert.Throws<ArgumentNullException>("info", () => serializable.GetObjectData(null, default)); 892Assert.Throws<ArgumentNullException>("store", () => service.Serialize(null, new object())); 900Assert.Throws<ArgumentNullException>("value", () => service.Serialize(mockStore.Object, null)); 1100Assert.Throws<ArgumentNullException>("store", () => service.SerializeAbsolute(null, new object())); 1108Assert.Throws<ArgumentNullException>("value", () => service.SerializeAbsolute(mockStore.Object, null)); 1368Assert.Throws<ArgumentNullException>("store", () => service.SerializeMember(null, new DataClass(), member)); 1377Assert.Throws<ArgumentNullException>("owningObject", () => service.SerializeMember(store, null, member)); 1385Assert.Throws<ArgumentNullException>("member", () => service.SerializeMember(store, new DataClass(), null)); 1647Assert.Throws<ArgumentNullException>("store", () => service.SerializeMemberAbsolute(null, new DataClass(), member)); 1656Assert.Throws<ArgumentNullException>("owningObject", () => service.SerializeMemberAbsolute(store, null, member)); 1664Assert.Throws<ArgumentNullException>("member", () => service.SerializeMemberAbsolute(store, new DataClass(), null));
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (2)
85Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException("message", (IDesignerSerializationManager)null)); 86Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException(new InvalidOperationException(), (IDesignerSerializationManager)null));
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (12)
75Assert.Throws<ArgumentNullException>("provider", () => new DesignerSerializationManager(null)); 261Assert.Throws<ArgumentNullException>("property", () => iManager.Properties); 264Assert.Throws<ArgumentNullException>("property", () => iManager.Properties); 861Assert.Throws<ArgumentNullException>("name", () => iManager.GetInstance(null)); 960Assert.Throws<ArgumentNullException>("value", () => iManager.GetName(null)); 1149Assert.Throws<ArgumentNullException>("typeName", () => manager.GetRuntimeType(null)); 1294Assert.Throws<ArgumentNullException>("serializerType", () => manager.GetSerializer(objectType, null)); 1415Assert.Throws<ArgumentNullException>("serializerType", () => iManager.GetSerializer(objectType, null)); 1554Assert.Throws<ArgumentNullException>("typeName", () => manager.GetType(null)); 1642Assert.Throws<ArgumentNullException>("typeName", () => iManager.GetType(null)); 1937Assert.Throws<ArgumentNullException>("instance", () => iManager.SetName(null, "name")); 1946Assert.Throws<ArgumentNullException>("name", () => iManager.SetName(new object(), null));
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (3)
48Assert.Throws<ArgumentNullException>("expression", () => new ExpressionContext(null, typeof(int), new object(), new object())); 54Assert.Throws<ArgumentNullException>("expressionType", () => new ExpressionContext(new CodeExpression(), null, new object(), new object())); 60Assert.Throws<ArgumentNullException>("owner", () => new ExpressionContext(new CodeExpression(), typeof(int), null, new object()));
System\ComponentModel\Design\Serialization\RootContextTests.cs (2)
25Assert.Throws<ArgumentNullException>("expression", () => new RootContext(null, new object())); 32Assert.Throws<ArgumentNullException>("value", () => new RootContext(expression, null));
System\ComponentModel\Design\UndoUnitTests.cs (1)
47Assert.Throws<ArgumentNullException>("engine", () => new UndoUnit(null, "name"));
System\Drawing\Design\BitmapEditorTests.cs (1)
99Assert.Throws<ArgumentNullException>("stream", () => editor.LoadFromStream(null));
System\Drawing\Design\ImageEditorTests.cs (2)
53Assert.Throws<ArgumentNullException>("e", () => SubImageEditor.CreateFilterEntry(null)); 155Assert.Throws<ArgumentNullException>("stream", () => editor.LoadFromStream(null));
System\Drawing\Design\MetafileEditorTests.cs (1)
78Assert.Throws<ArgumentNullException>("stream", () => editor.LoadFromStream(null));
System\Drawing\Design\ToolboxItemCollectionTests.cs (2)
24Assert.Throws<ArgumentNullException>("c", () => new ToolboxItemCollection((ToolboxItem[])null)); 42Assert.Throws<ArgumentNullException>("c", () => new ToolboxItemCollection((ToolboxItemCollection)null));
System\Drawing\Design\ToolboxItemTests.cs (5)
307Assert.Throws<ArgumentNullException>("value", () => item.Properties.Add("IsTransient", null)); 1311Assert.Throws<ArgumentNullException>("typeName", () => item.GetType(mockDesignerHost.Object, null, null, false)); 1312Assert.Throws<ArgumentNullException>("typeName", () => item.GetType(null, null, null, false)); 1584Assert.Throws<ArgumentNullException>("value", () => item.ValidatePropertyValue(propertyName, null)); 1609Assert.Throws<ArgumentNullException>("value", () => item.ValidatePropertyType(propertyName, null, expectedType, allowNull: false));
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (12)
31Assert.Throws<ArgumentNullException>( 41Assert.Throws<ArgumentNullException>( 53Assert.Throws<ArgumentNullException>( 63Assert.Throws<ArgumentNullException>( 79Assert.Throws<ArgumentNullException>( 89Assert.Throws<ArgumentNullException>( 101Assert.Throws<ArgumentNullException>( 111Assert.Throws<ArgumentNullException>( 127Assert.Throws<ArgumentNullException>( 137Assert.Throws<ArgumentNullException>( 152Assert.Throws<ArgumentNullException>( 162Assert.Throws<ArgumentNullException>(
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
30action.Should().Throw<ArgumentNullException>();
System\Windows\Forms\Design\EventHandlerServiceTests.cs (3)
26Assert.Throws<ArgumentNullException>(() => service.GetHandler(null)); 94Assert.Throws<ArgumentNullException>(() => service.PopHandler(null)); 152Assert.Throws<ArgumentNullException>(() => service.PushHandler(null));
System\Windows\Forms\Design\FileNameEditorTests.cs (1)
59Assert.Throws<ArgumentNullException>("openFileDialog", () => editor.InitializeDialog(null));
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (3)
25act.Should().Throw<ArgumentNullException>().WithMessage("*manager*"); 32act.Should().Throw<ArgumentNullException>().WithMessage("*codeObject*"); 39act.Should().Throw<ArgumentNullException>().WithMessage("*value*");
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
383ArgumentNullException.ThrowIfNull(form);
System.Windows.Forms.Primitives (4)
System\Collections\Generic\WeakRefCollection.cs (1)
28ArgumentNullException.ThrowIfNull(value, nameof(value));
System\Windows\Forms\PaddingConverter.cs (1)
71ArgumentNullException.ThrowIfNull(propertyValues);
System\Windows\Forms\RefCountedCache.cs (1)
72ArgumentNullException.ThrowIfNull(key);
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
36ArgumentNullException.ThrowIfNull(instance);
System.Windows.Forms.Primitives.Tests (52)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (2)
62Assert.Throws<ArgumentNullException>(() => new UiaTextRange(enclosingElement, null, 0, 5)); 71Assert.Throws<ArgumentNullException>(() => new UiaTextRange(null, provider, 0, 5));
System\Windows\Forms\Internals\ArgumentValidationTests.cs (40)
12var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNull()); 21var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNull(paramName)); 38var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNullWithMessage(message)); 49var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNullWithMessage(message, paramName)); 67var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfZero()); 76var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfZero(paramName)); 92var exception = Assert.Throws<ArgumentNullException>(() => ArgumentValidation.ThrowIfNull(param)); 107var exception = Assert.Throws<ArgumentNullException>(() => ArgumentValidation.ThrowIfNull(param, "paramName")); 122var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmpty()); 130var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmpty()); 145var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmpty("paramName")); 153var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmpty("paramName")); 169var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmptyWithMessage(message)); 179var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmptyWithMessage(message)); 196var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmptyWithMessage(message, "paramName")); 206var exception = Assert.Throws<ArgumentNullException>(() => param.ThrowIfNullOrEmptyWithMessage(message, "paramName")); 223var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNullOrEmpty()); 231var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNullOrEmpty()); 247var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNullOrEmpty("paramName")); 255var exception = Assert.Throws<ArgumentNullException>(() => _ = param.OrThrowIfNullOrEmpty("paramName"));
System\Windows\Forms\NonNullCollectionTests.cs (10)
13Assert.Throws<ArgumentNullException>("items", () => new TestCollection(null!)); 19Assert.Throws<ArgumentNullException>("items", () => new TestCollection(new object[] { null! })); 26Assert.Throws<ArgumentNullException>("item", () => collection.Add(null!)); 43Assert.Throws<ArgumentNullException>("value", () => ((IList)collection).Add(null)); 60Assert.Throws<ArgumentNullException>("value", () => collection[0] = null!); 77Assert.Throws<ArgumentNullException>("value", () => ((IList)collection)[0] = null); 94Assert.Throws<ArgumentNullException>("item", () => collection.Insert(0, null!)); 111Assert.Throws<ArgumentNullException>("value", () => ((IList)collection).Insert(0, null)); 128Assert.Throws<ArgumentNullException>("items", () => collection.AddRange(null!)); 135Assert.Throws<ArgumentNullException>("items", () => collection.AddRange(new object[] { null! }));
System.Windows.Forms.Primitives.TestUtilities (4)
Metafiles\DataHelpers.cs (1)
14ArgumentNullException.ThrowIfNull(values);
Metafiles\EmfValidateHelper.cs (1)
22ArgumentNullException.ThrowIfNull(emf, nameof(emf));
Metafiles\Validators\EmfValidator.cs (2)
17ArgumentNullException.ThrowIfNull(state); 18ArgumentNullException.ThrowIfNull(validationSteps);
System.Windows.Forms.Tests (594)
BindingNavigatorTests.cs (2)
45ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => new BindingNavigator(nullContainer));
ContextMenuStripTests.cs (2)
29ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => new ContextMenuStrip(nullContainer));
MaskedTextBoxTests.cs (1)
224.Should().Throw<ArgumentNullException>();
misc\CollectionHelperTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => source.HashtableCopyTo(target: null, index: 0));
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
37AssertExtensions.Throws<ArgumentNullException>("graphics", () => new PaintValueEventArgs(null, new object(), null, Rectangle.Empty));
System\Drawing\Design\PropertyValueUIItemTests.cs (2)
33Assert.Throws<ArgumentNullException>("uiItemImage", () => new PropertyValueUIItem(null, Dummy_PropertyValueUIItemInvokeHandler, "tooltip")); 40Assert.Throws<ArgumentNullException>("handler", () => new PropertyValueUIItem(uiItemImage, null, "tooltip"));
System\Drawing\Design\UITypeEditorTests.cs (1)
147Assert.Throws<ArgumentNullException>("graphics", () => editor.PaintValue(new object(), null, Rectangle.Empty));
System\Resources\ResXResourceWriterTests.cs (1)
279Assert.Throws<ArgumentNullException>(() =>
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (3)
19Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(null, new ItemArray.Entry("A"), accessibleObject); }); 29Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(checkedListBox, null, accessibleObject); }); 38Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(checkedListBox, new ItemArray.Entry("A"), null); });
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new ListViewColumnHeaderAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (1)
13Assert.Throws<ArgumentNullException>(() => new ComboBox.ChildAccessibleObject(null, IntPtr.Zero));
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
122Assert.Throws<ArgumentNullException>("ownerControl", () => new Control.ControlAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
25Assert.Throws<ArgumentNullException>(() => new DataGridViewTextBoxEditingControlAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
19Assert.Throws<ArgumentNullException>(() => new ScrollBarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (1)
165action.Should().Throw<ArgumentNullException>();
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (2)
20Assert.Throws<ArgumentNullException>(() => new LinkAccessibleObject(link: null, linkLabel)); 26Assert.Throws<ArgumentNullException>(() => new LinkAccessibleObject(new Link(), owner: null));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (4)
24action.Should().Throw<ArgumentNullException>().WithParameterName("owningGroup"); 26action.Should().Throw<ArgumentNullException>().WithParameterName("owningGroup"); 31action.Should().Throw<ArgumentNullException>().WithParameterName("listView"); 33action.Should().Throw<ArgumentNullException>().WithParameterName("listView");
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (1)
18Assert.Throws<ArgumentNullException>(() => new SubListViewItemBaseAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new ListViewItemDetailsAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemListAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new ListViewItemListAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemTileAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new ListViewItemTileAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (4)
127Assert.Throws<ArgumentNullException>(() => new ListViewLabelEditAccessibleObject(null, labelEdit)); 133Assert.Throws<ArgumentNullException>(() => new ListViewLabelEditNativeWindow(null)); 142Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(null, labelEdit, labelEdit.AccessibilityObject)); 151Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(listView, labelEdit, null));
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new MonthCalendarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarChildAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new SubObject(null));
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>("ownerControl", () => new Panel.PanelAccessibleObject(owner: null));
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>("ownerControl", () => new PictureBox.PictureBoxAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
32Assert.Throws<ArgumentNullException>(() => new PropertyGridViewAccessibleObject(null, null));
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new RadioButtonAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new ScrollBar.ScrollBarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>("ownerControl", () => new Splitter.SplitterAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new ToolStripControlHostAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new ToolStripDropDownItemAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
41Assert.Throws<ArgumentNullException>("ownerItem", () => new ToolStripItem.ToolStripItemAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new ToolStripSplitButtonExAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
516Assert.Throws<ArgumentNullException>(() => new TrackBar.TrackBarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new SubTrackBarChildAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
33Assert.Throws<ArgumentNullException>(() => new TreeNodeAccessibleObject(null, control)); 42Assert.Throws<ArgumentNullException>(() => new TreeNodeAccessibleObject(node, null));
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
27Assert.Throws<ArgumentNullException>(() => new TreeViewAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (4)
126Assert.Throws<ArgumentNullException>(() => new TreeViewLabelEditAccessibleObject(null, labelEdit)); 132Assert.Throws<ArgumentNullException>(() => new TreeViewLabelEditNativeWindow(null)); 141Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(null, labelEdit, labelEdit.AccessibilityObject)); 150Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(treeView, labelEdit, null));
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (2)
28Assert.Throws<ArgumentNullException>(() => new UpDownBase.UpDownEdit.UpDownEditAccessibleObject(upDownEdit, null)); 35Assert.Throws<ArgumentNullException>(() => new UpDownBase.UpDownEdit.UpDownEditAccessibleObject(null, upDown));
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
18Assert.Throws<ArgumentNullException>(() => new ScrollBarAccessibleObject(null));
System\Windows\Forms\ApplicationTests.cs (2)
74Assert.Throws<ArgumentNullException>("value", () => Application.CurrentCulture = null); 243Assert.Throws<ArgumentNullException>("font", () => Application.SetDefaultFont(null));
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (2)
35Assert.Throws<ArgumentNullException>("value", () => collection.AddRange(null!)); 49Assert.Throws<ArgumentNullException>("value", () => collection.AddRange(null!));
System\Windows\Forms\AxHostTests.cs (2)
218Assert.Throws<ArgumentNullException>("g", () => new SubAxHost(null)); 219Assert.Throws<ArgumentNullException>("g", () => new SubAxHost(null, 0));
System\Windows\Forms\BindingContextTests.cs (15)
63Assert.Throws<ArgumentNullException>("dataSource", () => context.Add(null, source.CurrencyManager)); 108Assert.Throws<ArgumentNullException>("listManager", () => context.Add(1, null)); 154Assert.Throws<ArgumentNullException>("dataSource", () => context.AddCore(null, source.CurrencyManager)); 161Assert.Throws<ArgumentNullException>("listManager", () => context.AddCore(1, null)); 268Assert.Throws<ArgumentNullException>("dataSource", () => context.Remove(null)); 301Assert.Throws<ArgumentNullException>("dataSource", () => context.RemoveCore(null)); 398Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null)); 399Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, null)); 400Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, string.Empty)); 472Assert.Throws<ArgumentNullException>("dataSource", () => context[mockIListSource.Object]); 684Assert.Throws<ArgumentNullException>("dataSource", () => context[dataSource, "Property"]); 736Assert.Throws<ArgumentNullException>("dataSource", () => context[null]); 737Assert.Throws<ArgumentNullException>("dataSource", () => context[null, null]); 738Assert.Throws<ArgumentNullException>("dataSource", () => context[null, string.Empty]); 1017Assert.Throws<ArgumentNullException>("binding", () => BindingContext.UpdateBinding([], null));
System\Windows\Forms\BindingManagerBaseTests.cs (2)
36Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 107Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Remove(null));
System\Windows\Forms\BindingsCollectionTests.cs (2)
86Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 152Assert.Throws<ArgumentNullException>("dataBinding", () => collection.AddCore(null));
System\Windows\Forms\BindingSourceTests.cs (1)
526Assert.Throws<ArgumentNullException>("container", () => new SubBindingSource(null));
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
30Assert.Throws<ArgumentNullException>("owner", () => { new CheckedListBox.CheckedIndexCollection(null); });
System\Windows\Forms\ClipboardTests.cs (10)
95action.Should().Throw<ArgumentNullException>().WithParameterName("audioBytes"); 127action.Should().Throw<ArgumentNullException>().WithParameterName("audioStream"); 134action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 162action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 254action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 323action.Should().Throw<ArgumentNullException>().WithParameterName("filePaths"); 405action.Should().Throw<ArgumentNullException>().WithParameterName("image"); 422action.Should().Throw<ArgumentNullException>().WithParameterName("text"); 424action.Should().Throw<ArgumentNullException>().WithParameterName("text"); 1081clipboardSet.Should().Throw<ArgumentNullException>();
System\Windows\Forms\ColumnHeaderCollectionTests.cs (5)
24Assert.Throws<ArgumentNullException>("owner", () => new ListView.ColumnHeaderCollection(null)); 320Assert.Throws<ArgumentNullException>("ch", () => collection.Add((ColumnHeader)null)); 420Assert.Throws<ArgumentNullException>("values", () => collection.AddRange(null)); 428Assert.Throws<ArgumentNullException>("values", () => collection.AddRange([null])); 823Assert.Throws<ArgumentNullException>("ch", () => collection.Insert(1, (ColumnHeader)null));
System\Windows\Forms\ColumnHeaderConverterTests.cs (1)
125Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
37Assert.Throws<ArgumentNullException>(() => new ComboBox.ComboBoxUiaTextProvider(null));
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (6)
97Assert.Throws<ArgumentNullException>("item", () => comboBoxObjectCollection.Add(null)); 377Assert.Throws<ArgumentNullException>("items", () => comboBoxObjectCollection.AddRange(null)); 535Assert.Throws<ArgumentNullException>("destination", () => comboBoxObjectCollection.CopyTo(null, 1)); 773Assert.Throws<ArgumentNullException>("item", () => comboBoxObjectCollection.Insert(0, null)); 1143Assert.Throws<ArgumentNullException>("value", () => comboBoxObjectCollection.SetItemInternal(0, null)); 1320Assert.Throws<ArgumentNullException>("value", () => comboBoxObjectCollection[0] = null);
System\Windows\Forms\ControlBindingsCollectionTests.cs (8)
230Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember")); 231Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true)); 232Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged)); 233Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null")); 234Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString")); 235Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture)); 274Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 345Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Remove(null));
System\Windows\Forms\ControlPaintTests.cs (40)
84Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmap16Bit(null, Color.Red)); 195Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmapColorMask(null, IntPtr.Zero)); 263Assert.Throws<ArgumentNullException>("bitmap", () => ControlPaint.CreateHBitmapTransparencyMask(null)); 677Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, style)); 685Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Red, 1, style, Color.Red, 1, style, Color.Red, 1, style)); 804Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4))); 805Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4), style)); 806Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4), style, Border3DSide.All)); 807Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4)); 808Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4, style)); 809Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4, style, Border3DSide.All)); 852Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, new Rectangle(1, 2, 3, 4), state)); 853Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, 1, 2, 3, 4, state)); 936Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCaptionButton(null, new Rectangle(1, 2, 3, 4), CaptionButton.Close, state)); 937Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCaptionButton(null, 1, 2, 3, 4, CaptionButton.Close, state)); 1016Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCheckBox(null, new Rectangle(1, 2, 3, 4), state)); 1017Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCheckBox(null, 1, 2, 3, 4, state)); 1097Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawComboButton(null, new Rectangle(1, 2, 3, 4), state)); 1098Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawComboButton(null, 1, 2, 3, 4, state)); 1162Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawContainerGrabHandle(null, new Rectangle(1, 2, 3, 4))); 1221Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4))); 1222Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue)); 1260Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrabHandle(null, new Rectangle(1, 2, 3, 4), primary, enabled)); 1293Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrid(null, new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Red)); 1343Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawImageDisabled(null, image, 0, 0, Color.Red)); 1384Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawLockedFrame(null, new Rectangle(1, 2, 3, 4), primary)); 1472Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMenuGlyph(null, new Rectangle(1, 2, 3, 4), glyph)); 1473Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMenuGlyph(null, 1, 2, 3, 4, glyph)); 1558Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, new Rectangle(1, 2, 3, 4), state)); 1559Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, 1, 2, 3, 4, state)); 1638Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawRadioButton(null, new Rectangle(1, 2, 3, 4), state)); 1639Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawRadioButton(null, 1, 2, 3, 4, state)); 1776Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, new Rectangle(1, 2, 3, 4), ScrollButton.Up, state)); 1777Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, 1, 2, 3, 4, ScrollButton.Up, state)); 1849Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSelectionFrame(null, active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.Red)); 1894Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, new Rectangle(1, 2, 3, 4))); 1895Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, 1, 2, 3, 4)); 1943Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat())); 1979Assert.Throws<ArgumentNullException>("dc", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default)); 2007Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawVisualStyleBorder(null, new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\ControlTests.ControlCollection.cs (5)
30Assert.Throws<ArgumentNullException>("owner", () => new Control.ControlCollection(null)); 1281Assert.Throws<ArgumentNullException>("controls", () => collection.AddRange(null)); 1518Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 1519Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false)); 3415Assert.Throws<ArgumentNullException>("child", () => collection.SetChildIndex(null, 0));
System\Windows\Forms\ControlTests.Handlers.cs (2)
4172Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null)); 4773Assert.Throws<ArgumentNullException>("e", () => control.OnPrint(null));
System\Windows\Forms\ControlTests.Methods.cs (4)
1820dragDrop.Should().Throw<ArgumentNullException>("data"); 1828dragDrop.Should().Throw<ArgumentNullException>("data"); 1883Assert.Throws<ArgumentNullException>("bitmap", () => control.DrawToBitmap(null, new Rectangle(1, 2, 3, 4))); 4331Assert.Throws<ArgumentNullException>(() => control.InvokePaintBackground(otherControl, null));
System\Windows\Forms\CursorConverterTests.cs (1)
171Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\CursorTests.cs (6)
94Assert.Throws<ArgumentNullException>("stream", () => new Cursor((Stream)null)); 130Assert.Throws<ArgumentNullException>("path", () => new Cursor((string)null)); 167Assert.Throws<ArgumentNullException>("type", () => new Cursor((Type)null, "resource")); 176Assert.Throws<ArgumentNullException>("stream", () => new Cursor(type, resource)); 400Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new Rectangle(Point.Empty, cursor.Size))); 437Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new Rectangle(Point.Empty, cursor.Size)));
System\Windows\Forms\DataFormatsTests.cs (1)
111Assert.Throws<ArgumentNullException>("format", () => DataFormats.GetFormat(null));
System\Windows\Forms\DataGridView.DataGridViewControlCollectionTests.cs (1)
24Assert.Throws<ArgumentNullException>("owner", () => new DataGridView.DataGridViewControlCollection(null));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
49Assert.Throws<ArgumentNullException>("e", () => new DataGridViewCellMouseEventArgs(1, 2, 1, 2, null));
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (6)
48Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewCellPaintingEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All)); 55Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewCellPaintingEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All)); 64Assert.Throws<ArgumentNullException>("cellStyle", () => new DataGridViewCellPaintingEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, null, null, DataGridViewPaintParts.All)); 98Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None)); 148Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.PaintBackground(new Rectangle(1, 2, 3, 4), true)); 198Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.PaintContent(new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellStateChangedEventArgsTests.cs (1)
25Assert.Throws<ArgumentNullException>("dataGridViewCell", () => new DataGridViewCellStateChangedEventArgs(null, DataGridViewElementStates.None));
System\Windows\Forms\DataGridViewCellStyleTests.cs (2)
107Assert.Throws<ArgumentNullException>("dataGridViewCellStyle", () => new DataGridViewCellStyle(null)); 703Assert.Throws<ArgumentNullException>("dataGridViewCellStyle", () => style.ApplyStyle(null));
System\Windows\Forms\DataGridViewCellTests.cs (17)
3111Assert.Throws<ArgumentNullException>("dataGridViewAdvancedBorderStyleInput", () => cell.AdjustCellBorderStyle(null, controlAdvancedBorderStylePlaceholder, true, true, true, true)); 3143Assert.Throws<ArgumentNullException>("dataGridViewAdvancedBorderStylePlaceholder", () => cell.AdjustCellBorderStyle(controlAdvancedBorderStyleInput, null, true, true, true, true)); 3305Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => cell.BorderWidths(null)); 5283Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5284Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default, out widthTruncated)); 5294Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default)); 5295Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default, out widthTruncated)); 5350Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextPreferredSize(null, "text", SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default)); 5358Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", null, 0.2f, TextFormatFlags.Default)); 5406Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextSize(null, "text", SystemFonts.DefaultFont, TextFormatFlags.Default)); 5414Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextSize(graphics, "text", null, TextFormatFlags.Default)); 5452Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextWidth(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5460Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextWidth(graphics, "text", null, 10, TextFormatFlags.Default)); 6038Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintBorder(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle())); 6047Assert.Throws<ArgumentNullException>("cellStyle", () => cell.PaintBorder(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), null, new DataGridViewAdvancedBorderStyle())); 6083Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintErrorIcon(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, cellValueBoundsWidth, cellValueBoundsHeight), errorText)); 6164Assert.Throws<ArgumentNullException>("cellStyle", () => cell.ParseFormattedValue(1, null, new Int32Converter(), new Int32Converter()));
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (1)
332Assert.Throws<ArgumentNullException>("dataGridViewColumn", () => collection.Add(null));
System\Windows\Forms\DataGridViewColumnConverterTests.cs (1)
55action.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (1)
42Assert.Throws<ArgumentNullException>("e", () => new DataGridViewColumnDividerDoubleClickEventArgs(1, null));
System\Windows\Forms\DataGridViewColumnEventArgsTests.cs (1)
22Assert.Throws<ArgumentNullException>("dataGridViewColumn", () => new DataGridViewColumnEventArgs(null));
System\Windows\Forms\DataGridViewColumnStateChangedEventArgsTests.cs (1)
23Assert.Throws<ArgumentNullException>(() => new DataGridViewColumnStateChangedEventArgs(null, DataGridViewElementStates.Displayed));
System\Windows\Forms\DataGridViewComboBoxCell.ObjectCollectionTests.cs (6)
68action.Should().Throw<ArgumentNullException>(); 163action.Should().Throw<ArgumentNullException>(); 196action.Should().Throw<ArgumentNullException>(); 217actionNullDestination.Should().Throw<ArgumentNullException>(); 275action.Should().Throw<ArgumentNullException>(); 311actionNullItem.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DataGridViewEditingControlShowingEventArgsTests.cs (2)
21Assert.Throws<ArgumentNullException>(() => new DataGridViewEditingControlShowingEventArgs(control, cellStyle)); 39Assert.Throws<ArgumentNullException>("value", () => e.CellStyle = null);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4622Assert.Throws<ArgumentNullException>("cellStyle", () => cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null, DataGridViewPaintParts.All));
System\Windows\Forms\DataGridViewLinkCellTests.cs (1)
674ex.InnerException.Should().BeOfType<ArgumentNullException>();
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (2)
35Assert.Throws<ArgumentNullException>("e", () => new DataGridViewRowDividerDoubleClickEventArgs(-2, null)); 42Assert.Throws<ArgumentNullException>("e", () => new DataGridViewRowDividerDoubleClickEventArgs(1, null));
System\Windows\Forms\DataGridViewRowEventArgsTests.cs (1)
22Assert.Throws<ArgumentNullException>("dataGridViewRow", () => new DataGridViewRowEventArgs(null));
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (3)
44Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPostPaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 51Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPostPaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 60Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPostPaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false));
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (3)
45Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPrePaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 52Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPrePaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 61Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPrePaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false));
System\Windows\Forms\DataGridViewRowTests.cs (24)
4113Assert.Throws<ArgumentNullException>("dataGridView", () => row.CreateCells(null)); 4114Assert.Throws<ArgumentNullException>("dataGridView", () => row.CreateCells(null, Array.Empty<object>())); 4147Assert.Throws<ArgumentNullException>("values", () => row.CreateCells(control, null)); 4231Assert.Throws<ArgumentNullException>("graphics", () => row.DrawFocus(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, new DataGridViewCellStyle(), true)); 4247Assert.Throws<ArgumentNullException>("cellStyle", () => row.DrawFocus(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, null, true)); 4859Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4863Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4868Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4929Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4933Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4937Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4942Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4957Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, Rectangle.Empty, 1, DataGridViewElementStates.None, true, true)); 4971Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true)); 4985Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true)); 5252Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5266Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5280Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5294Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, new Rectangle(1, 2, 1000, 10000), new Rectangle(1, 2, 1000, 1000), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5573Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5588Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5603Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5618Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5727Assert.Throws<ArgumentNullException>("values", () => row.SetValues(null));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
971Assert.Throws<ArgumentNullException>("dataGridViewCellStyle", () => control.ApplyCellStyleToEditingControl(null));
System\Windows\Forms\DataObjectExtensionsTests.cs (6)
17tryGetData1.Should().Throw<ArgumentNullException>(); 19tryGetData2.Should().Throw<ArgumentNullException>(); 21tryGetData3.Should().Throw<ArgumentNullException>(); 23tryGetData4.Should().Throw<ArgumentNullException>(); 25tryGetData5.Should().Throw<ArgumentNullException>(); 27tryGetData6.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DataObjectTests.cs (12)
1096action.Should().Throw<ArgumentNullException>().WithParameterName("audioBytes"); 1154action.Should().Throw<ArgumentNullException>().WithParameterName("audioStream"); 1237((Action)(() => dataObject.SetData(null))).Should().Throw<ArgumentNullException>().WithParameterName("data"); 1567.Throw<ArgumentNullException>().WithParameterName("format"); 1569.Throw<ArgumentNullException>().WithParameterName("format"); 1571.Throw<ArgumentNullException>().WithParameterName("format"); 1573.Throw<ArgumentNullException>().WithParameterName("format"); 1663action.Should().Throw<ArgumentNullException>().WithParameterName("filePaths"); 1725action.Should().Throw<ArgumentNullException>().WithParameterName("image"); 1898.Throw<ArgumentNullException>().WithParameterName("textData"); 1900.Throw<ArgumentNullException>().WithParameterName("textData"); 3090dataObjectSet.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DragDropHelperTests.cs (6)
76Assert.Throws<ArgumentNullException>(nameof(dataObject), () => DragDropHelper.IsInDragLoop(dataObject)); 83Assert.Throws<ArgumentNullException>(nameof(dataObject), () => DragDropHelper.IsInDragLoop(dataObject)); 177Assert.Throws<ArgumentNullException>(nameof(dataObject), 185Assert.Throws<ArgumentNullException>(nameof(e), () => DragDropHelper.SetDragImage(new DataObject(), e)); 268Assert.Throws<ArgumentNullException>(nameof(dataObject), 345Assert.Throws<ArgumentNullException>(nameof(dataObject), () => DragDropHelper.SetInDragLoop(dataObject, true));
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
67Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None)); 68Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None, Color.Red, Color.Blue));
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
42Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont));
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (2)
40Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewItemEventArgs(null, new ListViewItem(), new Rectangle(1, 2, 3, 4), 0, ListViewItemStates.Default)); 48Assert.Throws<ArgumentNullException>("item", () => new DrawListViewItemEventArgs(graphics, null, new Rectangle(1, 2, 3, 4), 0, ListViewItemStates.Default));
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (3)
43Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 51Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 61Assert.Throws<ArgumentNullException>("subItem", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), new ListViewItem(), null, itemIndex, 0, new ColumnHeader(), ListViewItemStates.Default));
System\Windows\Forms\ErrorProviderTests.cs (9)
61Assert.Throws<ArgumentNullException>("parentControl", () => new ErrorProvider((ContainerControl)null)); 88Assert.Throws<ArgumentNullException>("container", () => new ErrorProvider((IContainer)null)); 587Assert.Throws<ArgumentNullException>("value", () => provider.Icon = null); 966Assert.Throws<ArgumentNullException>("control", () => provider.GetError(null)); 984Assert.Throws<ArgumentNullException>("control", () => provider.GetIconAlignment(null)); 1002Assert.Throws<ArgumentNullException>("control", () => provider.GetIconPadding(null)); 1066Assert.Throws<ArgumentNullException>("control", () => provider.SetError(null, value)); 1090Assert.Throws<ArgumentNullException>("control", () => provider.SetIconAlignment(null, value)); 1121Assert.Throws<ArgumentNullException>("control", () => provider.SetIconPadding(null, 0));
System\Windows\Forms\FlatButtonAppearanceConverterTests.cs (1)
29action1.Should().Throw<ArgumentNullException>();
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
261Assert.Throws<ArgumentNullException>("control", () => control.GetFlowBreak(null)); 419Assert.Throws<ArgumentNullException>("control", () => control.SetFlowBreak(null, value));
System\Windows\Forms\FlowLayoutSettingsTests.cs (2)
113Assert.Throws<ArgumentNullException>("child", () => settings.GetFlowBreak(null)); 239Assert.Throws<ArgumentNullException>("child", () => settings.SetFlowBreak(null, value));
System\Windows\Forms\Form.ControlCollectionTests.cs (1)
24Assert.Throws<ArgumentNullException>("owner", () => new Form.ControlCollection(null));
System\Windows\Forms\GroupBoxTests.cs (1)
1946Assert.Throws<ArgumentNullException>(() => control.OnPaint(null));
System\Windows\Forms\HelpProviderTests.cs (10)
99Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpKeyword(null)); 113Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpNavigator(null)); 127Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpString(null)); 141Assert.Throws<ArgumentNullException>("ctl", () => provider.GetShowHelp(null)); 170Assert.Throws<ArgumentNullException>("ctl", () => provider.ResetShowHelp(null)); 282Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpKeyword(null, "keyword")); 344Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpNavigator(null, navigator)); 418Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpString(null, "keyword")); 485Assert.Throws<ArgumentNullException>("ctl", () => provider.SetShowHelp(null, true)); 499Assert.Throws<ArgumentNullException>("ctl", () => provider.ShouldSerializeShowHelp(null));
System\Windows\Forms\ImageList.ImageCollectionTests.cs (7)
330Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 795Assert.Throws<ArgumentNullException>("value", () => collection.Add((Image)null)); 796Assert.Throws<ArgumentNullException>("value", () => collection.Add(null, Color.Transparent)); 798Assert.Throws<ArgumentNullException>("value", () => collection.Add((Icon)null)); 868Assert.Throws<ArgumentNullException>("images", () => collection.AddRange(null)); 876Assert.Throws<ArgumentNullException>("value", () => collection.AddRange([null])); 943Assert.Throws<ArgumentNullException>("value", () => collection.AddStrip(null));
System\Windows\Forms\ImageListTests.cs (1)
53Assert.Throws<ArgumentNullException>("container", () => new ImageList(null));
System\Windows\Forms\InputLanguageChangedEventArgsTests.cs (2)
32Assert.Throws<ArgumentNullException>("culture", () => new InputLanguageChangedEventArgs((CultureInfo)null, 0)); 73Assert.Throws<ArgumentNullException>("inputLanguage", () => new InputLanguageChangedEventArgs((InputLanguage)null, 0));
System\Windows\Forms\InputLanguageChangingEventArgsTests.cs (2)
33Assert.Throws<ArgumentNullException>("culture", () => new InputLanguageChangingEventArgs((CultureInfo)null, true)); 74Assert.Throws<ArgumentNullException>("inputLanguage", () => new InputLanguageChangingEventArgs((InputLanguage)null, true));
System\Windows\Forms\InputLanguageTests.cs (1)
105Assert.Throws<ArgumentNullException>("culture", () => InputLanguage.FromCulture(null));
System\Windows\Forms\ItemCheckedEventArgsTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => new ItemCheckedEventArgs(null));
System\Windows\Forms\Layout\FlowLayoutTests.cs (2)
34Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All)); 291Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\Layout\LayoutEngineTests.cs (2)
30Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All)); 51Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (21)
181Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 189Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 271Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null)); 279Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null)); 322Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 330Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 372Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null)); 380Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null)); 422Assert.Throws<ArgumentNullException>("control", () => settings.GetRowSpan(null)); 430Assert.Throws<ArgumentNullException>("control", () => settings.GetRowSpan(null)); 650Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default)); 658Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default)); 872Assert.Throws<ArgumentNullException>("control", () => settings.SetColumn(null, value)); 882Assert.Throws<ArgumentNullException>("control", () => settings.SetColumn(null, value)); 1103Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, value)); 1113Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, value)); 1114Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 1348Assert.Throws<ArgumentNullException>("control", () => settings.SetRow(null, value)); 1358Assert.Throws<ArgumentNullException>("control", () => settings.SetRow(null, value)); 1579Assert.Throws<ArgumentNullException>("control", () => settings.SetRowSpan(null, value)); 1589Assert.Throws<ArgumentNullException>("control", () => settings.SetRowSpan(null, value));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
252Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, 1)); 290Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\LinkAreaConverterTests.cs (2)
96Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null)); 132Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(null, null));
System\Windows\Forms\LinkConverterTests.cs (1)
105Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (5)
24Assert.Throws<ArgumentNullException>("owner", () => new ListBox.IntegerCollection(null)); 750Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((int[])null)); 751Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((ListBox.IntegerCollection)null)); 1047Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 1058Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0));
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (24)
51Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null)); 52Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null, new ListBox.ObjectCollection(owner))); 53Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null, Array.Empty<object>())); 80Assert.Throws<ArgumentNullException>("value", () => new ListBox.ObjectCollection(owner, (object[])null)); 81Assert.Throws<ArgumentNullException>("value", () => new ListBox.ObjectCollection(owner, (ListBox.ObjectCollection)null)); 1255Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 1270Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 2186Assert.Throws<ArgumentNullException>("item", () => collection.Add(null)); 3650Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((object[])null)); 3651Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((ListBox.ObjectCollection)null)); 3659Assert.Throws<ArgumentNullException>("item", () => collection.AddRange((object[])[null])); 3980Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null)); 4012Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 4023Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 4118Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null)); 5024Assert.Throws<ArgumentNullException>("item", () => collection.Insert(0, null)); 8060Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 8075Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 8991Assert.Throws<ArgumentNullException>("item", () => collection.Add(null)); 9302Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null)); 9334Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 9345Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 9440Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null)); 10346Assert.Throws<ArgumentNullException>("item", () => collection.Insert(0, null));
System\Windows\Forms\ListBox.SelectedIndexCollectionTests.cs (1)
23Assert.Throws<ArgumentNullException>("owner", () => new ListBox.SelectedIndexCollection(null!));
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (1)
28=> Assert.Throws<ArgumentNullException>("owner", () => new ListBox.SelectedObjectCollection(null!));
System\Windows\Forms\ListBoxTests.cs (2)
6065Assert.Throws<ArgumentNullException>("value", () => control.SetItemsCore(null)); 6075Assert.Throws<ArgumentNullException>("value", () => control.SetItemsCore(null));
System\Windows\Forms\ListControlTests.cs (1)
2069Assert.Throws<ArgumentNullException>("key", () => control.SelectedValue = null);
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (1)
13Assert.Throws<ArgumentNullException>("owner", () => { new ListView.CheckedIndexCollection(null); });
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (1)
13Assert.Throws<ArgumentNullException>("owner", () => { new ListView.CheckedListViewItemCollection(null); });
System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (2)
100Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllSubItems: true)); 101Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllSubItems: false));
System\Windows\Forms\ListView.SelectedListViewItemCollectionTests.cs (1)
13Assert.Throws<ArgumentNullException>("owner", () => { new ListView.SelectedListViewItemCollection(null); });
System\Windows\Forms\ListViewGroupCollectionTests.cs (7)
177Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 366Assert.Throws<ArgumentNullException>("value", () => collection["key"] = null); 482Assert.Throws<ArgumentNullException>("group", () => collection.Add(null)); 580Assert.Throws<ArgumentNullException>("groups", () => collection.AddRange((ListViewGroup[])null)); 581Assert.Throws<ArgumentNullException>("groups", () => collection.AddRange((ListViewGroupCollection)null)); 590Assert.Throws<ArgumentNullException>("group", () => collection.AddRange((ListViewGroup[])[group, null])); 866Assert.Throws<ArgumentNullException>("group", () => collection.Insert(index, null));
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
223Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ListViewGroupTests.cs (1)
1424Assert.Throws<ArgumentNullException>("info", () => iSerializable.GetObjectData(null, context));
System\Windows\Forms\ListViewItemConverterTests.cs (1)
278Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ListViewItemTests.cs (8)
833Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey")); 834Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 1)); 835Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey", new ListViewGroup())); 836Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 0, new ListViewGroup())); 843Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey")); 844Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1)); 845Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey", new ListViewGroup())); 846Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1, new ListViewGroup()));
System\Windows\Forms\ListViewSubItemCollectionTests.cs (7)
25Assert.Throws<ArgumentNullException>("owner", () => new ListViewItem.ListViewSubItemCollection(null)); 99Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 286Assert.Throws<ArgumentNullException>("item", () => collection.Add((ListViewItem.ListViewSubItem)null)); 419Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((ListViewItem.ListViewSubItem[])null)); 420Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null)); 421Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.Blue, SystemFonts.MenuFont)); 654Assert.Throws<ArgumentNullException>("item", () => collection.Insert(1, null));
System\Windows\Forms\ListViewSubItemConverterTests.cs (1)
91Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\MdiClient.ControlCollectionTests.cs (1)
24Assert.Throws<ArgumentNullException>("owner", () => new MdiClient.ControlCollection(null));
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (1)
32/// <exception cref="ArgumentNullException"></exception>
System\Windows\Forms\NotifyIconTests.cs (1)
50Assert.Throws<ArgumentNullException>("container", () => new NotifyIcon(null));
System\Windows\Forms\OpacityConverterTests.cs (1)
98Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\PaddingConverterTests.cs (2)
108Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null)); 180Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object, null));
System\Windows\Forms\PaintEventArgsTests.cs (1)
35Assert.Throws<ArgumentNullException>("graphics", () => new PaintEventArgs((Graphics)null, new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (1)
30Assert.Throws<ArgumentNullException>(() => new PrintPreviewControlAccessibleObject(null));
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
34Assert.Throws<ArgumentNullException>(() =>
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
28Assert.Throws<ArgumentNullException>(() =>
System\Windows\Forms\PropertyGridTests.cs (1)
2389Assert.Throws<ArgumentNullException>("items", () => control.SelectedGridItem = null);
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (1)
24Assert.Throws<ArgumentNullException>("owner", () => new ReadOnlyControlCollection(null, false));
System\Windows\Forms\RichTextBoxTests.cs (35)
8433Assert.Throws<ArgumentNullException>("str", () => control.Find((string)null)); 8434Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8436Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8437Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None)); 8438Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8439Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8440Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, 0, RichTextBoxFinds.None)); 8441Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8451Assert.Throws<ArgumentNullException>("str", () => control.Find((string)null)); 8452Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8454Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8455Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None)); 8456Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8457Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8458Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, 0, RichTextBoxFinds.None)); 8459Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8466Assert.Throws<ArgumentNullException>("characterSet", () => control.Find((char[])null)); 8467Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0)); 8468Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1)); 8469Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1)); 8470Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8471Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8472Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1, 0)); 8473Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8483Assert.Throws<ArgumentNullException>("characterSet", () => control.Find((char[])null)); 8484Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0)); 8485Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1)); 8486Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2)); 8487Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8488Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8489Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2, 0)); 8490Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8762Assert.Throws<ArgumentNullException>("data", () => control.LoadFile((Stream)null, RichTextBoxStreamType.RichText));
System\Windows\Forms\ScreenTests.cs (3)
87Assert.Throws<ArgumentNullException>("control", () => Screen.FromControl(null)); 168Assert.Throws<ArgumentNullException>("control", () => Screen.GetBounds(null)); 198Assert.Throws<ArgumentNullException>("control", () => Screen.GetWorkingArea(null));
System\Windows\Forms\ScrollableControlTests.cs (1)
1888Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
System\Windows\Forms\SplitContainer.SplitContainerTypedControlCollectionTests.cs (1)
24Assert.Throws<ArgumentNullException>("owner", () => new SplitContainer.SplitContainerTypedControlCollection(null, typeof(SplitterPanel), false));
System\Windows\Forms\StatusStripTests.cs (1)
1246Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
System\Windows\Forms\TabControl.ControlCollectionTests.cs (2)
28Assert.Throws<ArgumentNullException>("owner", () => new TabControl.ControlCollection(null)); 886Assert.Throws<ArgumentNullException>(() => collection.Add(null));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (11)
885Assert.Throws<ArgumentNullException>("value", () => collection.Add((TabPage)null)); 1163Assert.Throws<ArgumentNullException>("pages", () => collection.AddRange(null)); 1183Assert.Throws<ArgumentNullException>("owner", () => new TabControl.TabPageCollection(null)); 1224Assert.Throws<ArgumentNullException>("destinationArray", () => iList.CopyTo(null, 0)); 1278Assert.Throws<ArgumentNullException>("sourceArray", () => iList.CopyTo(array, 1)); 1573Assert.Throws<ArgumentNullException>("page", () => collection.Contains(null)); 1878Assert.Throws<ArgumentNullException>("page", () => collection.IndexOf(null)); 2909Assert.Throws<ArgumentNullException>("tabPage", () => collection.Insert(0, (TabPage)null)); 3673Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 3685Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 4693Assert.Throws<ArgumentNullException>("value", () => collection.Remove(null));
System\Windows\Forms\TabControlTests.cs (9)
3367Assert.Throws<ArgumentNullException>("tabPageName", () => control.DeselectTab((string)null)); 3376Assert.Throws<ArgumentNullException>("tabPage", () => control.DeselectTab(tabPageName)); 3389Assert.Throws<ArgumentNullException>("tabPage", () => control.DeselectTab(tabPageName)); 3897Assert.Throws<ArgumentNullException>("elementType", () => control.GetItems(null)); 3982Assert.Throws<ArgumentNullException>("item", () => control.GetToolTipText(null)); 5325Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab((TabPage)null)); 5492Assert.Throws<ArgumentNullException>("tabPageName", () => control.SelectTab((string)null)); 5501Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab(tabPageName)); 5515Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab(tabPageName));
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
39Assert.Throws<ArgumentNullException>("graphics", () => new TableLayoutCellPaintEventArgs(
System\Windows\Forms\TableLayoutControlCollectionTests.cs (2)
23Assert.Throws<ArgumentNullException>("container", () => new TableLayoutControlCollection(null)); 70Assert.Throws<ArgumentNullException>("control", () => collection.Add(null, 1, 2));
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (2)
187Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null)); 222Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(null, null));
System\Windows\Forms\TableLayoutPanelTests.cs (11)
657Assert.Throws<ArgumentNullException>("control", () => control.GetCellPosition(null)); 690Assert.Throws<ArgumentNullException>("control", () => control.GetColumn(null)); 705Assert.Throws<ArgumentNullException>("control", () => control.GetColumnSpan(null)); 943Assert.Throws<ArgumentNullException>("control", () => control.GetRow(null)); 1151Assert.Throws<ArgumentNullException>("control", () => control.GetRowSpan(null)); 1541Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null)); 1657Assert.Throws<ArgumentNullException>("control", () => control.SetCellPosition(null, default)); 1763Assert.Throws<ArgumentNullException>("control", () => control.SetColumn(null, 1)); 1875Assert.Throws<ArgumentNullException>("control", () => control.SetColumnSpan(null, value)); 1990Assert.Throws<ArgumentNullException>("control", () => control.SetRow(null, 1)); 2101Assert.Throws<ArgumentNullException>("control", () => control.SetRowSpan(null, value));
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (5)
55Assert.Throws<ArgumentNullException>("style", () => collection.Add(null)); 56Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Add(null)); 100Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Insert(index, null)); 160Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 161Assert.Throws<ArgumentNullException>("value", () => ((IList)collection)[index] = null);
System\Windows\Forms\TableLayoutStyleTests.cs (1)
158Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\TabPageTests.cs (1)
4256Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (1)
23Assert.Throws<ArgumentNullException>("owner", () => new TabPage.TabPageControlCollection(null));
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
29Assert.Throws<ArgumentNullException>(() => new TextBoxBaseUiaTextProvider(null));
System\Windows\Forms\TextRendererTests.cs (4)
393Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.DrawText(null, "text", SystemFonts.MenuFont, Point.Empty, Color.Red)); 566Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont)); 567Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400))); 568Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\TimerTests.cs (1)
41Assert.Throws<ArgumentNullException>("container", () => new Timer(null));
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new ToolStripArrowRenderEventArgs(null, toolStripButton, Rectangle.Empty, Color.Empty, ArrowDirection.Up));
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripContentPanelRenderEventArgs(g, toolStripContentPanel));
System\Windows\Forms\ToolStripControlHostTests.cs (5)
131Assert.Throws<ArgumentNullException>("c", () => new SubToolStripControlHost(null)); 132Assert.Throws<ArgumentNullException>("c", () => new SubToolStripControlHost(null, "name")); 2020Assert.Throws<ArgumentNullException>("service", () => c.Site.GetService(null)); 2123Assert.Throws<ArgumentNullException>("key", () => iDictionaryService.GetValue(null)); 2174Assert.Throws<ArgumentNullException>("key", () => iDictionaryService.SetValue(null, "value"));
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripGripRenderEventArgs(g, toolStrip));
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
99Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 100Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripItemImageRenderEventArgs(g, toolStripItem, Rectangle.Empty));
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripItemRenderEventArgs(g, toolStripItem));
System\Windows\Forms\ToolStripItemTests.cs (1)
10237Assert.Throws<ArgumentNullException>("data", () => item.DoDragDrop(null, DragDropEffects.All));
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
68Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top)); 69Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.TopLeft));
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (4)
92action.Should().Throw<ArgumentNullException>() 101action.Should().Throw<ArgumentNullException>() 129action.Should().Throw<ArgumentNullException>() 270action.Should().Throw<ArgumentNullException>()
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripPanelRenderEventArgs(g, toolStripPanel));
System\Windows\Forms\ToolStripRendererTests.cs (11)
25Assert.Throws<ArgumentNullException>("normalImage", () => ToolStripRenderer.CreateDisabledImage(null)); 74Assert.Throws<ArgumentNullException>("e", () => renderer.DrawArrow(null)); 234Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemCheck(null)); 267Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemImage(null)); 342Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemText(null)); 515Assert.Throws<ArgumentNullException>("e", () => renderer.DrawStatusStripSizingGrip(null)); 741Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderArrow(null)); 816Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemCheck(null)); 836Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemImage(null)); 858Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemText(null)); 935Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderStatusStripSizingGrip(null));
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripRenderEventArgs(g, toolStrip));
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (1)
26Assert.Throws<ArgumentNullException>(() => new ToolStripSeparatorRenderEventArgs(g, toolStripSeparator, true));
System\Windows\Forms\ToolStripSplitButton.ToolStripSplitButtonUiaProviderTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new ToolStripSplitButtonUiaProvider(null));
System\Windows\Forms\ToolStripTests.cs (4)
328Assert.Throws<ArgumentNullException>("toolStripItems", () => new ToolStrip(null)); 334Assert.Throws<ArgumentNullException>("value", () => new ToolStrip([null])); 6227Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null)); 7099Assert.Throws<ArgumentNullException>("item", () => control.SetItemLocation(null, Point.Empty));
System\Windows\Forms\ToolTipTests.cs (4)
78Assert.Throws<ArgumentNullException>("cont", () => new ToolTip(null)); 715Assert.Throws<ArgumentNullException>("control", () => toolTip.SetToolTip(null, caption)); 768Assert.Throws<ArgumentNullException>("window", () => toolTip.Show("text", null)); 769Assert.Throws<ArgumentNullException>("window", () => toolTip.Show("text", null, 1));
System\Windows\Forms\TreeNodeCollectionTests.cs (3)
88Assert.Throws<ArgumentNullException>(() => collection[0] = null); 340Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 341Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));
System\Windows\Forms\TreeNodeTests.cs (4)
236Assert.Throws<ArgumentNullException>("nodes", () => new TreeNode("text", null)); 237Assert.Throws<ArgumentNullException>("nodes", () => new TreeNode("text", 0, 0, null)); 243Assert.Throws<ArgumentNullException>("node", () => new TreeNode("text", [null])); 244Assert.Throws<ArgumentNullException>("node", () => new TreeNode("text", 0, 0, [null]));
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (1)
24Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(context: null, culture: null, new object(), destinationType: (Type)null!));
System\Windows\Forms\TypedControlCollectionTests.cs (1)
24Assert.Throws<ArgumentNullException>("owner", () => new TypedControlCollection(null, typeof(Panel), false));
System\Windows\Forms\UpDownBaseTests.cs (1)
2350Assert.Throws<ArgumentNullException>(() => control.OnPaint(null));
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (1)
30Assert.Throws<ArgumentNullException>("className", () => VisualStyleElement.CreateElement(null, 1, 2));
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (16)
41Assert.Throws<ArgumentNullException>("className", () => new VisualStyleRenderer(null, 0, 0)); 116Assert.Throws<ArgumentNullException>("element", () => VisualStyleRenderer.IsElementDefined(null)); 182Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4))); 183Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4))); 217Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawEdge(null, new Rectangle(1, 2, 3, 4), Edges.Top, EdgeStyle.Bump, EdgeEffects.FillInterior)); 297Assert.Throws<ArgumentNullException>("g", () => renderer.DrawImage(null, new Rectangle(1, 2, 3, 4), image)); 298Assert.Throws<ArgumentNullException>("g", () => renderer.DrawImage(null, new Rectangle(1, 2, 3, 4), imageList, 0)); 308Assert.Throws<ArgumentNullException>("image", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), null)); 318Assert.Throws<ArgumentNullException>("imageList", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), null, 0)); 395Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawParentBackground(null, new Rectangle(1, 2, 3, 4), childControl)); 493Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text")); 494Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", true)); 495Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", false)); 496Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", true, TextFormatFlags.Default)); 497Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", false, TextFormatFlags.Default)); 551Assert.Throws<ArgumentNullException>("element", () => renderer.SetParameters(null));
WebBrowserBaseTests.cs (1)
708Assert.Throws<ArgumentNullException>("bitmap", () => control.DrawToBitmap(null, new Rectangle(1, 2, 3, 4)));
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (1)
564ArgumentNullException.ThrowIfNull(form);
Infra\SendInput.cs (1)
72ArgumentNullException.ThrowIfNull(actions);
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
328ArgumentNullException.ThrowIfNull(parameters);
System\Windows\Input\Manipulations\ManipulationProcessor2D.cs (1)
313ArgumentNullException.ThrowIfNull(parameters);
System.Xaml (135)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (4)
29ArgumentNullException.ThrowIfNull(assembly, nameof(assembly)); 31ArgumentNullException.ThrowIfNull(fullName, nameof(Assembly.FullName)); 48ArgumentNullException.ThrowIfNull(assembly, nameof(assembly)); 97ArgumentNullException.ThrowIfNull(assembly, nameof(assembly));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (1)
20ArgumentNullException.ThrowIfNull(sourceType);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
442ArgumentNullException.ThrowIfNull(type);
System\Windows\Markup\ArrayExtension.cs (1)
43ArgumentNullException.ThrowIfNull(elements);
System\Windows\Markup\NameReferenceConverter.cs (2)
26ArgumentNullException.ThrowIfNull(context); 67ArgumentNullException.ThrowIfNull(context);
System\Windows\Markup\Reference.cs (1)
27ArgumentNullException.ThrowIfNull(serviceProvider);
System\Windows\Markup\StaticExtension.cs (1)
80ArgumentNullException.ThrowIfNull(serviceProvider);
System\Windows\Markup\TypeExtension.cs (1)
67ArgumentNullException.ThrowIfNull(serviceProvider);
System\Windows\Markup\ValueSerializer.cs (3)
105ArgumentNullException.ThrowIfNull(type); 165ArgumentNullException.ThrowIfNull(descriptor); 235ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Markup\XamlDeferLoadAttribute.cs (2)
11ArgumentNullException.ThrowIfNull(loaderType); 12ArgumentNullException.ThrowIfNull(contentType);
System\Xaml\AttachablePropertyServices.cs (1)
69ArgumentNullException.ThrowIfNull(name);
System\Xaml\Context\ServiceProviderContext.cs (5)
132ArgumentNullException.ThrowIfNull(properties); 148ArgumentNullException.ThrowIfNull(types); 166ArgumentNullException.ThrowIfNull(properties); 182ArgumentNullException.ThrowIfNull(types); 202ArgumentNullException.ThrowIfNull(properties);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (7)
47ArgumentNullException.ThrowIfNull(schemaContext); 53ArgumentNullException.ThrowIfNull(schemaContext); 59ArgumentNullException.ThrowIfNull(savedContext); 73ArgumentNullException.ThrowIfNull(schemaContext); 314ArgumentNullException.ThrowIfNull(xamlType); 573ArgumentNullException.ThrowIfNull(property); 895ArgumentNullException.ThrowIfNull(namespaceDeclaration);
System\Xaml\InfosetObjects\XamlObjectWriterSettings.cs (1)
19ArgumentNullException.ThrowIfNull(settings);
System\Xaml\InfosetObjects\XamlXmlReader.cs (24)
29ArgumentNullException.ThrowIfNull(xmlReader); 36ArgumentNullException.ThrowIfNull(xmlReader); 43ArgumentNullException.ThrowIfNull(schemaContext); 44ArgumentNullException.ThrowIfNull(xmlReader); 51ArgumentNullException.ThrowIfNull(schemaContext); 52ArgumentNullException.ThrowIfNull(xmlReader); 59ArgumentNullException.ThrowIfNull(fileName); 65ArgumentNullException.ThrowIfNull(fileName); 72ArgumentNullException.ThrowIfNull(fileName); 73ArgumentNullException.ThrowIfNull(schemaContext); 80ArgumentNullException.ThrowIfNull(fileName); 81ArgumentNullException.ThrowIfNull(schemaContext); 94ArgumentNullException.ThrowIfNull(stream); 100ArgumentNullException.ThrowIfNull(stream); 106ArgumentNullException.ThrowIfNull(stream); 107ArgumentNullException.ThrowIfNull(schemaContext); 114ArgumentNullException.ThrowIfNull(stream); 115ArgumentNullException.ThrowIfNull(schemaContext); 128ArgumentNullException.ThrowIfNull(textReader); 134ArgumentNullException.ThrowIfNull(textReader); 140ArgumentNullException.ThrowIfNull(textReader); 141ArgumentNullException.ThrowIfNull(schemaContext); 148ArgumentNullException.ThrowIfNull(textReader); 149ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\NameScope.cs (8)
28ArgumentNullException.ThrowIfNull(name); 29ArgumentNullException.ThrowIfNull(scopedElement); 67ArgumentNullException.ThrowIfNull(name); 170ArgumentNullException.ThrowIfNull(key); 175ArgumentNullException.ThrowIfNull(key); 176ArgumentNullException.ThrowIfNull(value); 184ArgumentNullException.ThrowIfNull(key); 191ArgumentNullException.ThrowIfNull(key);
System\Xaml\NameScopeDictionary.cs (4)
38ArgumentNullException.ThrowIfNull(name); 40ArgumentNullException.ThrowIfNull(scopedElement); 80ArgumentNullException.ThrowIfNull(name); 105ArgumentNullException.ThrowIfNull(name);
System\Xaml\Schema\XamlDirective.cs (3)
36ArgumentNullException.ThrowIfNull(xamlType); 37ArgumentNullException.ThrowIfNull(xamlNamespaces); 55ArgumentNullException.ThrowIfNull(xamlNamespace);
System\Xaml\Schema\XamlMemberInvoker.cs (2)
53ArgumentNullException.ThrowIfNull(instance); 72ArgumentNullException.ThrowIfNull(instance);
System\Xaml\Schema\XamlTypeInvoker.cs (4)
59ArgumentNullException.ThrowIfNull(instance); 93ArgumentNullException.ThrowIfNull(instance); 142ArgumentNullException.ThrowIfNull(contentType); 212ArgumentNullException.ThrowIfNull(instance);
System\Xaml\XamlBackgroundReader.cs (1)
38ArgumentNullException.ThrowIfNull(wrappedReader);
System\Xaml\XamlException.cs (4)
69ArgumentNullException.ThrowIfNull(info); 79ArgumentNullException.ThrowIfNull(info); 161ArgumentNullException.ThrowIfNull(info); 170ArgumentNullException.ThrowIfNull(info);
System\Xaml\XamlMember.cs (7)
54ArgumentNullException.ThrowIfNull(propertyInfo); 55ArgumentNullException.ThrowIfNull(schemaContext); 77ArgumentNullException.ThrowIfNull(eventInfo); 78ArgumentNullException.ThrowIfNull(schemaContext); 103ArgumentNullException.ThrowIfNull(schemaContext); 137ArgumentNullException.ThrowIfNull(adder); 138ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\XamlNodeList.cs (2)
23ArgumentNullException.ThrowIfNull(schemaContext); 29ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\XamlNodeQueue.cs (1)
24ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\XamlObjectReader.cs (1)
2871ArgumentNullException.ThrowIfNull(value);
System\Xaml\XamlSchemaContext.cs (10)
140ArgumentNullException.ThrowIfNull(xmlns); 259ArgumentNullException.ThrowIfNull(xamlNamespace); 260ArgumentNullException.ThrowIfNull(name); 276ArgumentNullException.ThrowIfNull(xamlTypeName); 311ArgumentNullException.ThrowIfNull(xamlNamespace); 312ArgumentNullException.ThrowIfNull(name); 382ArgumentNullException.ThrowIfNull(xamlNamespace); 543ArgumentNullException.ThrowIfNull(type); 550ArgumentNullException.ThrowIfNull(type); 568ArgumentNullException.ThrowIfNull(type);
System\Xaml\XamlServices.cs (13)
22ArgumentNullException.ThrowIfNull(xaml); 34ArgumentNullException.ThrowIfNull(fileName); 45ArgumentNullException.ThrowIfNull(stream); 56ArgumentNullException.ThrowIfNull(textReader); 67ArgumentNullException.ThrowIfNull(xmlReader); 79ArgumentNullException.ThrowIfNull(xamlReader); 96ArgumentNullException.ThrowIfNull(xamlReader); 98ArgumentNullException.ThrowIfNull(xamlWriter); 141ArgumentNullException.ThrowIfNull(fileName); 158ArgumentNullException.ThrowIfNull(stream); 168ArgumentNullException.ThrowIfNull(writer); 178ArgumentNullException.ThrowIfNull(writer); 187ArgumentNullException.ThrowIfNull(writer);
System\Xaml\XamlType.cs (2)
47ArgumentNullException.ThrowIfNull(unknownTypeNamespace); 68ArgumentNullException.ThrowIfNull(underlyingType);
System\Xaml\XamlTypeName.cs (11)
41ArgumentNullException.ThrowIfNull(xamlType); 87ArgumentNullException.ThrowIfNull(typeNameList); 88ArgumentNullException.ThrowIfNull(prefixLookup); 94ArgumentNullException.ThrowIfNull(typeName); 95ArgumentNullException.ThrowIfNull(namespaceResolver); 109ArgumentNullException.ThrowIfNull(typeNameList); 110ArgumentNullException.ThrowIfNull(namespaceResolver); 125ArgumentNullException.ThrowIfNull(typeName); 126ArgumentNullException.ThrowIfNull(namespaceResolver); 135ArgumentNullException.ThrowIfNull(typeNameList); 136ArgumentNullException.ThrowIfNull(namespaceResolver);
System\Xaml\XamlWriter.cs (1)
23ArgumentNullException.ThrowIfNull(reader);
System\Xaml\XamlXmlWriter.cs (6)
51ArgumentNullException.ThrowIfNull(stream); 70ArgumentNullException.ThrowIfNull(textWriter); 89ArgumentNullException.ThrowIfNull(xmlWriter); 162ArgumentNullException.ThrowIfNull(type); 187ArgumentNullException.ThrowIfNull(property); 226ArgumentNullException.ThrowIfNull(namespaceDeclaration);
System.Xaml.Tests (162)
System\Windows\Markup\ArrayExtensionTests.cs (2)
36Assert.Throws<ArgumentNullException>("arrayType", () => new ArrayExtension((Type)null!)); 64Assert.Throws<ArgumentNullException>("elements", () => new ArrayExtension((Array)null!));
System\Windows\Markup\NameReferenceConverterTests.cs (2)
70Assert.Throws<ArgumentNullException>("context", () => converter.ConvertFrom(null, CultureInfo.CurrentCulture, "name")); 162Assert.Throws<ArgumentNullException>("context", () => converter.ConvertTo(null, CultureInfo.CurrentCulture, "value", typeof(string)));
System\Windows\Markup\ReferenceTests.cs (1)
66Assert.Throws<ArgumentNullException>("serviceProvider", () => reference.ProvideValue(null));
System\Windows\Markup\StaticExtensionTests.cs (4)
35Assert.Throws<ArgumentNullException>("member", () => new StaticExtension(null)); 119Assert.Throws<ArgumentNullException>("serviceProvider", () => extension.ProvideValue(null)); 181Assert.Throws<ArgumentNullException>("value", () => extension.Member = null); 196Assert.Throws<ArgumentNullException>("value", () => extension.MemberType = null);
System\Windows\Markup\TypeExtensionTests.cs (5)
35Assert.Throws<ArgumentNullException>("typeName", () => new TypeExtension((string)null!)); 50Assert.Throws<ArgumentNullException>("type", () => new TypeExtension((Type)null!)); 90Assert.Throws<ArgumentNullException>("serviceProvider", () => extension.ProvideValue(null)); 141Assert.Throws<ArgumentNullException>("value", () => extension.TypeName = null); 157Assert.Throws<ArgumentNullException>("value", () => extension.Type = null);
System\Windows\Markup\ValueSerializerTests.cs (6)
206Assert.Throws<ArgumentNullException>("typeName", () => ValueSerializer.GetSerializerFor(typeof(ClassWithNullStringTypeConverterAttribute))); 207Assert.Throws<ArgumentNullException>("typeName", () => ValueSerializer.GetSerializerFor(typeof(ClassWithNullStringTypeConverterAttribute), null!)); 228Assert.Throws<ArgumentNullException>("type", () => ValueSerializer.GetSerializerFor((Type)null!)); 229Assert.Throws<ArgumentNullException>("type", () => ValueSerializer.GetSerializerFor((Type)null!, null)); 293Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((PropertyDescriptor)null!)); 294Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((PropertyDescriptor)null!, null));
System\Windows\Markup\XamlDeferLoadAttributeTests.cs (4)
26Assert.Throws<ArgumentNullException>("loaderType", () => new XamlDeferLoadAttribute(null!, typeof(int))); 32Assert.Throws<ArgumentNullException>("contentType", () => new XamlDeferLoadAttribute(typeof(int), null!)); 50Assert.Throws<ArgumentNullException>("loaderType", () => new XamlDeferLoadAttribute(null!, "contentType")); 56Assert.Throws<ArgumentNullException>("contentType", () => new XamlDeferLoadAttribute("loaderType", null!));
System\Windows\Markup\XDataTests.cs (2)
43Assert.Throws<ArgumentNullException>("s", () => data.XmlReader); 68Assert.Throws<ArgumentNullException>("s", () => data.XmlReader);
System\Windows\Markup\XmlnsCompatibleWithAttributeTests.cs (2)
23Assert.Throws<ArgumentNullException>("oldNamespace", () => new XmlnsCompatibleWithAttribute(null!, "newNamespace")); 29Assert.Throws<ArgumentNullException>("newNamespace", () => new XmlnsCompatibleWithAttribute("oldNamespace", null!));
System\Windows\Markup\XmlnsDefinitionAttributeTests.cs (2)
24Assert.Throws<ArgumentNullException>("xmlNamespace", () => new XmlnsDefinitionAttribute(null!, "clrNamespace")); 30Assert.Throws<ArgumentNullException>("clrNamespace", () => new XmlnsDefinitionAttribute("xmlNamespace", null!));
System\Windows\Markup\XmlnsPrefixAttributeTests.cs (2)
23Assert.Throws<ArgumentNullException>("xmlNamespace", () => new XmlnsPrefixAttribute(null!, "prefix")); 29Assert.Throws<ArgumentNullException>("prefix", () => new XmlnsPrefixAttribute("xmlNamespace", null!));
System\Xaml\Replacements\DateTimeConverter2Tests.cs (1)
112Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(DateTime.MinValue, null!));
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (1)
120Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(DateTimeOffset.MinValue, null!));
System\Xaml\Replacements\EventConverterTests.cs (1)
184Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(typeof(int), null!));
System\Xaml\Replacements\TypeListConverterTests.cs (1)
81Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(Array.Empty<Type>(), null!));
System\Xaml\Replacements\TypeTypeConverterTests.cs (1)
279Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(typeof(int), null!));
System\Xaml\Replacements\TypeUriConverterTests.cs (2)
60Assert.Throws<ArgumentNullException>("sourceType", () => converter.CanConvertFrom(null!)); 178Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new Uri("http://google.com"), null!));
System\Xaml\Schema\XamlMemberInvokerTests.cs (3)
45Assert.Throws<ArgumentNullException>("member", () => new XamlMemberInvoker(null)); 91Assert.Throws<ArgumentNullException>("instance", () => XamlMemberInvoker.UnknownInvoker.GetValue(null)); 137Assert.Throws<ArgumentNullException>("instance", () => XamlMemberInvoker.UnknownInvoker.SetValue(null, "value"));
System\Xaml\Schema\XamlTypeInvokerTests.cs (5)
36Assert.Throws<ArgumentNullException>("type", () => new XamlTypeInvoker(null)); 72Assert.Throws<ArgumentNullException>("instance", () => invoker.AddToCollection(null, 1)); 128Assert.Throws<ArgumentNullException>("instance", () => invoker.AddToDictionary(null, 1, 2)); 388Assert.Throws<ArgumentNullException>("contentType", () => invoker.GetAddMethod(null)); 521Assert.Throws<ArgumentNullException>("instance", () => invoker.GetItems(null));
System\Xaml\Schema\XamlTypeNameTests.cs (11)
78Assert.Throws<ArgumentNullException>("xamlType", () => new XamlTypeName(null)); 225Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.ToString(null, new CustomNamespacePrefixLookup())); 231Assert.Throws<ArgumentNullException>("prefixLookup", () => XamlTypeName.ToString(Array.Empty<XamlTypeName>(), null)); 317Assert.Throws<ArgumentNullException>("typeName", () => XamlTypeName.Parse(null, new CustomXamlNamespaceResolver())); 320Assert.Throws<ArgumentNullException>("typeName", () => XamlTypeName.TryParse(null, new CustomXamlNamespaceResolver(), out result)); 327Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.Parse("typeName", null)); 330Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.TryParse("typeName", null, out result)); 440Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.ParseList(null, new CustomXamlNamespaceResolver())); 443Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.TryParseList(null, new CustomXamlNamespaceResolver(), out result)); 450Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.ParseList("typeNameList", null)); 453Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.TryParseList("typeNameList", null, out result));
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (1)
277Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(type, null!));
System\Xaml\XamlBackgroundReaderTests.cs (2)
49Assert.Throws<ArgumentNullException>("wrappedReader", () => new XamlBackgroundReader(null)); 61Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlBackgroundReader(new SubXamlReaderWithLineInfo()));
System\Xaml\XamlDirectiveTests.cs (3)
42Assert.Throws<ArgumentNullException>("xamlType", () => new XamlDirective(new string[] { "namespace"}, "name", null, null, AllowedMemberLocations.Any)); 49Assert.Throws<ArgumentNullException>("xamlNamespaces", () => new XamlDirective(null, "name", type, null, AllowedMemberLocations.Any)); 76Assert.Throws<ArgumentNullException>("xamlNamespace", () => new XamlDirective(null, "name"));
System\Xaml\XamlDuplicateMemberExceptionTests.cs (2)
85Assert.Throws<ArgumentNullException>("info", () => new SubXamlDuplicateMemberException(null!, new StreamingContext())); 92Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlExceptionTests.cs (2)
75Assert.Throws<ArgumentNullException>("info", () => new SubXamlException(null!, new StreamingContext())); 82Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlInternalExceptionTests.cs (2)
55Assert.Throws<ArgumentNullException>("info", () => new SubXamlInternalException(null!, new StreamingContext())); 62Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlMemberTests.cs (30)
37Assert.Throws<ArgumentNullException>("name", () => new XamlMember(null, type, false)); 43Assert.Throws<ArgumentNullException>("declaringType", () => new XamlMember("name", null, false)); 98Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new XamlSchemaContext())); 99Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 154Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext())); 155Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 215Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new XamlSchemaContext())); 216Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 222Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new XamlSchemaContext())); 223Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 300Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new XamlSchemaContext())); 301Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 307Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new XamlSchemaContext())); 308Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 326Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo, null)); 327Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo, null)); 328Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo, null, XamlMemberInvoker.UnknownInvoker)); 329Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo, null, XamlMemberInvoker.UnknownInvoker)); 330Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null)); 331Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null, XamlMemberInvoker.UnknownInvoker)); 332Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo.Name, eventInfo.GetAddMethod(), null)); 333Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo.Name, eventInfo.GetAddMethod(), null, XamlMemberInvoker.UnknownInvoker)); 535Assert.Throws<ArgumentNullException>("typeName", () => member.LookupDeferringLoaderEntry()); 536Assert.Throws<ArgumentNullException>("typeName", () => member.DeferringLoader); 687Assert.Throws<ArgumentNullException>("key", () => member.LookupDependsOnEntry()); 688Assert.Throws<ArgumentNullException>("key", () => member.DependsOn); 1823Assert.Throws<ArgumentNullException>("typeName", () => member.LookupTypeConverterEntry()); 1824Assert.Throws<ArgumentNullException>("typeName", () => member.TypeConverter); 2172Assert.Throws<ArgumentNullException>("typeName", () => member.LookupValueSerializerEntry()); 2173Assert.Throws<ArgumentNullException>("typeName", () => member.ValueSerializer);
System\Xaml\XamlNodeListTests.cs (2)
33Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlNodeList(null)); 34Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlNodeList(null, 64));
System\Xaml\XamlNodeQueueTests.cs (1)
25Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlNodeQueue(null));
System\Xaml\XamlObjectEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>("instance", () => new XamlObjectEventArgs(null));
System\Xaml\XamlObjectReaderExceptionTests.cs (2)
55Assert.Throws<ArgumentNullException>("info", () => new SubXamlObjectReaderException(null!, new StreamingContext())); 62Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlObjectWriterExceptionTests.cs (2)
55Assert.Throws<ArgumentNullException>("info", () => new SubXamlObjectWriterException(null!, new StreamingContext())); 62Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlObjectWriterSettingsTests.cs (1)
73Assert.Throws<ArgumentNullException>("settings", () => new XamlObjectWriterSettings(null));
System\Xaml\XamlParseExceptionTests.cs (2)
55Assert.Throws<ArgumentNullException>("info", () => new SubXamlParseException(null!, new StreamingContext())); 62Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlSchemaContextTests.cs (5)
274Assert.Throws<ArgumentNullException>("xmlns", () => context.GetPreferredPrefix(null)); 950Assert.Throws<ArgumentNullException>("xamlNamespace", () => context.GetXamlDirective(null, "name")); 957Assert.Throws<ArgumentNullException>("name", () => context.GetXamlDirective("xamlNamespace", null)); 964Assert.Throws<ArgumentNullException>("xamlTypeName", () => context.GetXamlType((XamlTypeName)null!)); 1008Assert.Throws<ArgumentNullException>("type", () => context.GetXamlType((Type)null!));
System\Xaml\XamlSchemaExceptionTests.cs (2)
55Assert.Throws<ArgumentNullException>("info", () => new SubXamlSchemaException(null!, new StreamingContext())); 62Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
System\Xaml\XamlServicesTests.cs (15)
16Assert.Throws<ArgumentNullException>("xaml", () => XamlServices.Parse(null)); 22Assert.Throws<ArgumentNullException>("fileName", () => XamlServices.Load((string)null!)); 28Assert.Throws<ArgumentNullException>("stream", () => XamlServices.Load((Stream)null!)); 34Assert.Throws<ArgumentNullException>("textReader", () => XamlServices.Load((TextReader)null!)); 40Assert.Throws<ArgumentNullException>("xmlReader", () => XamlServices.Load((XmlReader)null!)); 46Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Load((XamlReader)null!)); 52Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Transform((XamlReader)null!, new XamlObjectWriter(new XamlSchemaContext()))); 53Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Transform((XamlReader)null!, new XamlObjectWriter(new XamlSchemaContext()), false)); 59Assert.Throws<ArgumentNullException>("xamlWriter", () => XamlServices.Transform(new XamlObjectReader(1), null)); 60Assert.Throws<ArgumentNullException>("xamlWriter", () => XamlServices.Transform(new XamlObjectReader(1), null, false)); 66Assert.Throws<ArgumentNullException>("fileName", () => XamlServices.Save((string)null!, 1)); 78Assert.Throws<ArgumentNullException>("stream", () => XamlServices.Save((Stream)null!, 1)); 84Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((TextWriter)null!, 1)); 90Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((XmlWriter)null!, 1)); 96Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((XamlWriter)null!, 1));
System\Xaml\XamlTypeTests.cs (26)
46Assert.Throws<ArgumentNullException>("unknownTypeNamespace", () => new XamlType(null, "unknownTypeName", Array.Empty<XamlType>(), new XamlSchemaContext())); 52Assert.Throws<ArgumentNullException>("unknownTypeName", () => new XamlType("unknownTypeNamespace", null, Array.Empty<XamlType>(), new XamlSchemaContext())); 76Assert.Throws<ArgumentNullException>("typeName", () => new SubXamlType(null!, Array.Empty<XamlType>(), new XamlSchemaContext())); 130Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new XamlSchemaContext())); 131Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new XamlSchemaContext(), XamlTypeInvoker.UnknownInvoker)); 145Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType("unknownTypeNamespace", "unknownTypeName", Array.Empty<XamlType>(), null)); 146Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType(typeof(int), null)); 147Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType(typeof(int), null, XamlTypeInvoker.UnknownInvoker)); 148Assert.Throws<ArgumentNullException>("schemaContext", () => new SubXamlType("typeName", Array.Empty<XamlType>(), null)); 622Assert.Throws<ArgumentNullException>("key", () => type.LookupAliasedPropertyEntry(null!)); 623Assert.Throws<ArgumentNullException>("key", () => type.GetAliasedProperty(null)); 1437Assert.Throws<ArgumentNullException>("type", () => type.LookupAllowedContentTypesEntry()); 1438Assert.Throws<ArgumentNullException>("type", () => type.AllowedContentTypes); 1688Assert.Throws<ArgumentNullException>("key", () => type.GetAttachableMember(null)); 1696Assert.Throws<ArgumentNullException>("key", () => type.GetAttachableMember(null)); 2225Assert.Throws<ArgumentNullException>("type", () => type.LookupContentWrappersEntry()); 2226Assert.Throws<ArgumentNullException>("type", () => type.ContentWrappers); 2494Assert.Throws<ArgumentNullException>("typeName", () => type.LookupDeferringLoaderEntry()); 2495Assert.Throws<ArgumentNullException>("typeName", () => type.DeferringLoader); 3659Assert.Throws<ArgumentNullException>("name", () => type.LookupMemberEntry(null!, false)); 3660Assert.Throws<ArgumentNullException>("key", () => type.GetMember(null)); 3668Assert.Throws<ArgumentNullException>("key", () => type.GetMember(null)); 4388Assert.Throws<ArgumentNullException>("typeName", () => type.LookupTypeConverterEntry()); 4389Assert.Throws<ArgumentNullException>("typeName", () => type.TypeConverter); 4794Assert.Throws<ArgumentNullException>("typeName", () => type.LookupValueSerializerEntry()); 4795Assert.Throws<ArgumentNullException>("typeName", () => type.ValueSerializer);
System\Xaml\XamlWriterTests.cs (1)
83Assert.Throws<ArgumentNullException>("reader", () => writer.WriteNode(null));
System\Xaml\XamlXmlWriterExceptionTests.cs (2)
55Assert.Throws<ArgumentNullException>("info", () => new SubXamlXmlWriterException(null!, new StreamingContext())); 62Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null, new StreamingContext()));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
14ArgumentNullException.ThrowIfNull(driver);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
14ArgumentNullException.ThrowIfNull(driver);
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
14ArgumentNullException.ThrowIfNull(driver);
Templates.Tests (1)
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
14ArgumentNullException.ThrowIfNull(driver);
Test.Utilities (31)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (3)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 62ArgumentNullException.ThrowIfNull(source);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Text.Analyzers (46)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
361catch (ArgumentNullException)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
86/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 145/// <exception cref="ArgumentNullException">
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 58/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1045/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
34/// <exception cref="ArgumentNullException">If items is null (default)</exception> 35/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (1)
42/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
src\Dependencies\Contracts\IReadOnlySet.cs (6)
37/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 45/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 53/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 61/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 77/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
42/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 116/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (6)
70/// <exception cref="ArgumentNullException"> 93/// <exception cref="ArgumentNullException"> 130/// <exception cref="ArgumentNullException"> 157/// <exception cref="ArgumentNullException"> 192/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (9)
41/// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> 61/// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> 388/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> 448/// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
92/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
38/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 111/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 216/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 276/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
82=> compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
441var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
UIAutomationClient (67)
MS\Internal\Automation\Misc.cs (4)
38ArgumentNullException.ThrowIfNull(a1); 39ArgumentNullException.ThrowIfNull(a2); 60ArgumentNullException.ThrowIfNull(el1); 61ArgumentNullException.ThrowIfNull(el2);
System\Windows\Automation\AndCondition.cs (2)
31ArgumentNullException.ThrowIfNull(conditions); 35ArgumentNullException.ThrowIfNull(condition, nameof(conditions));
System\Windows\Automation\Automation.cs (18)
90ArgumentNullException.ThrowIfNull(property); 103ArgumentNullException.ThrowIfNull(pattern); 125ArgumentNullException.ThrowIfNull(element); 126ArgumentNullException.ThrowIfNull(eventHandler); 193ArgumentNullException.ThrowIfNull(element); 194ArgumentNullException.ThrowIfNull(eventHandler); 217ArgumentNullException.ThrowIfNull(element); 218ArgumentNullException.ThrowIfNull(eventHandler); 219ArgumentNullException.ThrowIfNull(properties); 230ArgumentNullException.ThrowIfNull(property, nameof(properties)); 248ArgumentNullException.ThrowIfNull(element); 249ArgumentNullException.ThrowIfNull(eventHandler); 263ArgumentNullException.ThrowIfNull(element); 264ArgumentNullException.ThrowIfNull(eventHandler); 279ArgumentNullException.ThrowIfNull(element); 280ArgumentNullException.ThrowIfNull(eventHandler); 294ArgumentNullException.ThrowIfNull(eventHandler); 312ArgumentNullException.ThrowIfNull(eventHandler);
System\Windows\Automation\AutomationElement.cs (9)
452ArgumentNullException.ThrowIfNull(localImpl); 495ArgumentNullException.ThrowIfNull(property); 575ArgumentNullException.ThrowIfNull(pattern); 642ArgumentNullException.ThrowIfNull(property); 694ArgumentNullException.ThrowIfNull(pattern); 728ArgumentNullException.ThrowIfNull(request); 748ArgumentNullException.ThrowIfNull(condition); 771ArgumentNullException.ThrowIfNull(condition); 1283ArgumentNullException.ThrowIfNull(condition);
System\Windows\Automation\CacheRequest.cs (3)
242ArgumentNullException.ThrowIfNull(property); 260ArgumentNullException.ThrowIfNull(pattern); 337ArgumentNullException.ThrowIfNull(value, nameof(TreeFilter));
System\Windows\Automation\ClientSettings.cs (2)
42ArgumentNullException.ThrowIfNull(assemblyName); 53ArgumentNullException.ThrowIfNull(clientSideProviderDescription);
System\Windows\Automation\NotCondition.cs (1)
32ArgumentNullException.ThrowIfNull(condition);
System\Windows\Automation\OrCondition.cs (2)
31ArgumentNullException.ThrowIfNull(conditions); 35ArgumentNullException.ThrowIfNull(condition, nameof(conditions));
System\Windows\Automation\PropertyCondition.cs (1)
122ArgumentNullException.ThrowIfNull(property);
System\Windows\Automation\Text\TextRange.cs (4)
173ArgumentNullException.ThrowIfNull(attribute); 174ArgumentNullException.ThrowIfNull(value); // no text attributes can have null as a valid value 215ArgumentNullException.ThrowIfNull(text); 231ArgumentNullException.ThrowIfNull(attribute);
System\Windows\Automation\TextPattern.cs (1)
200ArgumentNullException.ThrowIfNull(childElement);
System\Windows\Automation\TreeWalker.cs (19)
35ArgumentNullException.ThrowIfNull(condition); 87ArgumentNullException.ThrowIfNull(element); 102ArgumentNullException.ThrowIfNull(element); 117ArgumentNullException.ThrowIfNull(element); 132ArgumentNullException.ThrowIfNull(element); 147ArgumentNullException.ThrowIfNull(element); 172ArgumentNullException.ThrowIfNull(element); 190ArgumentNullException.ThrowIfNull(element); 191ArgumentNullException.ThrowIfNull(request); 208ArgumentNullException.ThrowIfNull(element); 209ArgumentNullException.ThrowIfNull(request); 226ArgumentNullException.ThrowIfNull(element); 227ArgumentNullException.ThrowIfNull(request); 244ArgumentNullException.ThrowIfNull(element); 245ArgumentNullException.ThrowIfNull(request); 262ArgumentNullException.ThrowIfNull(element); 263ArgumentNullException.ThrowIfNull(request); 290ArgumentNullException.ThrowIfNull(element); 291ArgumentNullException.ThrowIfNull(request);
System\Windows\Automation\ValuePattern.cs (1)
72ArgumentNullException.ThrowIfNull(value);
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
747ArgumentNullException.ThrowIfNull(val);
UIAutomationProvider (8)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (8)
73ArgumentNullException.ThrowIfNull(el); 96ArgumentNullException.ThrowIfNull(element); 97ArgumentNullException.ThrowIfNull(e); 111ArgumentNullException.ThrowIfNull(eventId); 112ArgumentNullException.ThrowIfNull(provider); 113ArgumentNullException.ThrowIfNull(e); 163ArgumentNullException.ThrowIfNull(provider); 164ArgumentNullException.ThrowIfNull(e);
UIAutomationTypes (4)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
1687ArgumentNullException.ThrowIfNull(lf);
System\Windows\Automation\AutomationIdentifier.cs (1)
125ArgumentNullException.ThrowIfNull(obj);
System\Windows\Automation\StructureChangedEventArgs.cs (1)
75ArgumentNullException.ThrowIfNull(runtimeId);
System\Windows\Automation\WindowClosedEventArgs.cs (1)
31ArgumentNullException.ThrowIfNull(runtimeId);
WindowsBase.Tests (174)
System\Collections\Specialized\CollectionChangedEventManagerTests.cs (7)
177Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.AddHandler(null, null)); 178Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.AddHandler(source, null)); 341Assert.Throws<ArgumentNullException>("source", () => CollectionChangedEventManager.AddListener(null, listener)); 348Assert.Throws<ArgumentNullException>("listener", () => CollectionChangedEventManager.AddListener(source, null)); 443Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.RemoveHandler(null, null)); 444Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.RemoveHandler(source, null)); 537Assert.Throws<ArgumentNullException>("listener", () => CollectionChangedEventManager.RemoveListener(source, null));
System\ComponentModel\CurrentChangedEventManagerTests.cs (7)
190Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.AddHandler(null, null)); 191Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.AddHandler(source, null)); 354Assert.Throws<ArgumentNullException>("source", () => CurrentChangedEventManager.AddListener(null, listener)); 361Assert.Throws<ArgumentNullException>("listener", () => CurrentChangedEventManager.AddListener(source, null)); 464Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.RemoveHandler(null, null)); 465Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.RemoveHandler(source, null)); 557Assert.Throws<ArgumentNullException>("listener", () => CurrentChangedEventManager.RemoveListener(source, null));
System\ComponentModel\CurrentChangingEventManagerTests.cs (7)
181Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.AddHandler(null, null)); 182Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.AddHandler(source, null)); 345Assert.Throws<ArgumentNullException>("source", () => CurrentChangingEventManager.AddListener(null, listener)); 352Assert.Throws<ArgumentNullException>("listener", () => CurrentChangingEventManager.AddListener(source, null)); 447Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.RemoveHandler(null, null)); 448Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.RemoveHandler(source, null)); 539Assert.Throws<ArgumentNullException>("listener", () => CurrentChangingEventManager.RemoveListener(source, null));
System\ComponentModel\DependencyPropertyDescriptorTests.cs (3)
30Assert.Throws<ArgumentNullException>("property", () => DependencyPropertyDescriptor.FromProperty(null)); 60Assert.Throws<ArgumentNullException>("dependencyProperty", () => DependencyPropertyDescriptor.FromProperty(null, typeof(object))); 67Assert.Throws<ArgumentNullException>("targetType", () => DependencyPropertyDescriptor.FromProperty(property, null));
System\ComponentModel\ErrorsChangedEventManagerTests.cs (4)
163Assert.Throws<ArgumentNullException>("source", () => ErrorsChangedEventManager.AddHandler(null, handler)); 170Assert.Throws<ArgumentNullException>("handler", () => ErrorsChangedEventManager.AddHandler(source, null)); 248Assert.Throws<ArgumentNullException>("source", () => ErrorsChangedEventManager.RemoveHandler(null, handler)); 255Assert.Throws<ArgumentNullException>("handler", () => ErrorsChangedEventManager.RemoveHandler(source, null));
System\ComponentModel\PropertyChangedEventManagerTests.cs (9)
408Assert.Throws<ArgumentNullException>("handler", () => PropertyChangedEventManager.AddHandler(source, null, "propertyName")); 418Assert.Throws<ArgumentNullException>("key", () => PropertyChangedEventManager.AddHandler(source, handler, null)); 823Assert.Throws<ArgumentNullException>("source", () => PropertyChangedEventManager.AddListener(null, listener, "propertyName")); 826Assert.Throws<ArgumentNullException>("source", () => PropertyChangedEventManager.AddListener(null, listener, "propertyName")); 833Assert.Throws<ArgumentNullException>("listener", () => PropertyChangedEventManager.AddListener(source, null, "propertyName")); 1016Assert.Throws<ArgumentNullException>("key", () => PropertyChangedEventManager.RemoveHandler(source, handler, null)); 1022Assert.Throws<ArgumentNullException>("key", () => PropertyChangedEventManager.RemoveHandler(source, handler, null)); 1031Assert.Throws<ArgumentNullException>("handler", () => PropertyChangedEventManager.RemoveHandler(source, null, "propertyName")); 1248Assert.Throws<ArgumentNullException>("listener", () => PropertyChangedEventManager.RemoveListener(source, null, "propertyName"));
System\IO\Packaging\EncryptedPackageEnvelopeTests.cs (4)
13Assert.Throws<ArgumentNullException>("envelopeStream", () => EncryptedPackageEnvelope.Open((Stream)null!)); 33Assert.Throws<ArgumentNullException>("envelopeFileName", () => EncryptedPackageEnvelope.Open((string)null!)); 34Assert.Throws<ArgumentNullException>("envelopeFileName", () => EncryptedPackageEnvelope.Open(null!, FileAccess.Read)); 35Assert.Throws<ArgumentNullException>("envelopeFileName", () => EncryptedPackageEnvelope.Open(null!, FileAccess.Read, FileShare.Read));
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (9)
43Assert.Throws<ArgumentNullException>("package", () => new PackageDigitalSignatureManager(null)); 63Assert.Throws<ArgumentNullException>("certificate", () => PackageDigitalSignatureManager.VerifyCertificate(null)); 128Assert.Throws<ArgumentNullException>("value", () => manager.HashAlgorithm = null); 190Assert.Throws<ArgumentNullException>("value", () => manager.TimeFormat = null); 233Assert.Throws<ArgumentNullException>("certificate", () => manager.Countersign(null)); 234Assert.Throws<ArgumentNullException>("certificate", () => manager.Countersign(null, Array.Empty<Uri>())); 246Assert.Throws<ArgumentNullException>("signatures", () => manager.Countersign(c, null)); 262Assert.Throws<ArgumentNullException>("signatureUri", () => manager.GetSignature(null)); 319Assert.Throws<ArgumentNullException>("signatureUri", () => manager.RemoveSignature(null));
System\Security\RightsManagement\ContentGrantTests.cs (2)
69Assert.Throws<ArgumentNullException>("user", () => new ContentGrant(null, ContentRight.View)); 70Assert.Throws<ArgumentNullException>("user", () => new ContentGrant(null, ContentRight.View, DateTime.MinValue, DateTime.MaxValue));
System\Security\RightsManagement\ContentUserTests.cs (1)
30Assert.Throws<ArgumentNullException>("name", () => new ContentUser(null!, AuthenticationType.Windows));
System\Security\RightsManagement\PublishLicenseTests.cs (5)
100Assert.Throws<ArgumentNullException>("signedPublishLicense", () => new PublishLicense(null!)); 119Assert.Throws<ArgumentNullException>("uriString", () => new PublishLicense(PublishLicenseTemplate)); 327Assert.Throws<ArgumentNullException>("secureEnvironment", () => license.AcquireUseLicense(null)); 334Assert.Throws<ArgumentNullException>("secureEnvironment", () => license.AcquireUseLicenseNoUI(null)); 347Assert.Throws<ArgumentNullException>("cryptoProvider", () => license.DecryptUnsignedPublishLicense(null));
System\Security\RightsManagement\RightsManagementExceptionTests.cs (2)
233Assert.Throws<ArgumentNullException>("info", () => new SubRightsManagementException((SerializationInfo)null!, default)); 272Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null!, default));
System\Security\RightsManagement\SecureEnvironmentTests.cs (5)
32Assert.Throws<ArgumentNullException>("applicationManifest", () => SecureEnvironment.Create(null!, AuthenticationType.Windows, UserActivationMode.Permanent)); 33Assert.Throws<ArgumentNullException>("applicationManifest", () => SecureEnvironment.Create(null!, new ContentUser("name", AuthenticationType.Windows))); 74Assert.Throws<ArgumentNullException>("user", () => SecureEnvironment.Create("manifest", null!)); 145Assert.Throws<ArgumentNullException>("user", () => SecureEnvironment.IsUserActivated(null!)); 183Assert.Throws<ArgumentNullException>("user", () => SecureEnvironment.RemoveActivatedUser(null!));
System\Security\RightsManagement\UnsignedPublishLicenseTests.cs (2)
35Assert.Throws<ArgumentNullException>("publishLicenseTemplate", () => new UnsignedPublishLicense(null)); 127Assert.Throws<ArgumentNullException>("secureEnvironment", () => license.Sign(null!, out useLicense));
System\Security\RightsManagement\UseLicenseTests.cs (1)
11Assert.Throws<ArgumentNullException>("useLicense", () => new UseLicense(null!));
System\Windows\AttachedPropertyBrowsableForTypeAttributeTests.cs (1)
23Assert.Throws<ArgumentNullException>("targetType", () => new AttachedPropertyBrowsableForTypeAttribute(null!));
System\Windows\AttachedPropertyBrowsableWhenAttributePresentAttributeTests.cs (1)
22Assert.Throws<ArgumentNullException>("attributeType", () => new AttachedPropertyBrowsableWhenAttributePresentAttribute(null!));
System\Windows\DependencyObjectTests.cs (7)
410Assert.Throws<ArgumentNullException>("dp", () => obj.ClearValue((DependencyProperty)null!)); 773Assert.Throws<ArgumentNullException>("key", () => obj.ClearValue((DependencyPropertyKey)null!)); 1603Assert.Throws<ArgumentNullException>("dp", () => obj.GetValue(null!)); 1711Assert.Throws<ArgumentNullException>("dp", () => obj.InvalidateProperty(null!)); 2014Assert.Throws<ArgumentNullException>("dp", () => obj.ReadLocalValue(null!)); 2385Assert.Throws<ArgumentNullException>("dp", () => obj.SetValue((DependencyProperty)null!, true)); 2817Assert.Throws<ArgumentNullException>("key", () => obj.SetValue((DependencyPropertyKey)null!, true));
System\Windows\DependencyObjectTypeTests.cs (1)
44Assert.Throws<ArgumentNullException>("systemType", () => DependencyObjectType.FromSystemType(null!));
System\Windows\DependencyPropertyKeyTests.cs (2)
34Assert.Throws<ArgumentNullException>("forType", () => key.OverrideMetadata(null!, new PropertyMetadata())); 50Assert.Throws<ArgumentNullException>("typeMetadata", () => key.OverrideMetadata(typeof(int), null));
System\Windows\DependencyPropertyTests.cs (28)
216Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.Register(null, typeof(int), typeof(DependencyPropertyTests))); 228Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests))); 229Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata())); 230Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 256Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!)); 257Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata())); 258Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true)); 529Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttached(null, typeof(int), typeof(DependencyPropertyTests))); 530Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttached(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata())); 531Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttached(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 545Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests))); 546Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata())); 547Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 573Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!)); 574Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata())); 575Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true)); 815Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterReadOnly(null, typeof(int), typeof(DependencyObject), new PropertyMetadata())); 816Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterReadOnly(null, typeof(int), typeof(DependencyObject), new PropertyMetadata(), value => true)); 829Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyProperty), new PropertyMetadata())); 830Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyProperty), new PropertyMetadata(), value => true)); 855Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata())); 856Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true)); 1110Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttachedReadOnly(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata())); 1111Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttachedReadOnly(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 1124Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata())); 1125Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 1150Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata())); 1151Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true));
System\Windows\FreezableTests.cs (4)
806Assert.Throws<ArgumentNullException>("dp", () => obj.ClearValue((DependencyProperty)null!)); 1280Assert.Throws<ArgumentNullException>("key", () => obj.ClearValue((DependencyPropertyKey)null!)); 6164Assert.Throws<ArgumentNullException>("dp", () => obj.GetValue(null!)); 6798Assert.Throws<ArgumentNullException>("dp", () => obj.SetValue((DependencyProperty)null!, true));
System\Windows\Input\KeyConverterTests.cs (3)
223Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 224Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, Key.None, null!)); 225Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, Key.None, null!));
System\Windows\Input\ModifierKeysConverterTests.cs (3)
189Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 190Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, Key.None, null!)); 191Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, Key.None, null!));
System\Windows\Int32RectConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Int32Rect(), null!)); 101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Int32Rect(), null!));
System\Windows\Markup\ServiceProvidersTests.cs (4)
32Assert.Throws<ArgumentNullException>("serviceType", () => serviceProviders.AddService(null, new object())); 39Assert.Throws<ArgumentNullException>("service", () => serviceProviders.AddService(typeof(object), null)); 71Assert.Throws<ArgumentNullException>("key", () => serviceProviders.GetService(null)); 81Assert.Throws<ArgumentNullException>("key", () => serviceProviders.GetService(null));
System\Windows\Media\MatrixConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Matrix(), null!)); 101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Matrix(), null!));
System\Windows\NameScopeTests.cs (13)
35Assert.Throws<ArgumentNullException>("dependencyObject", () => NameScope.GetNameScope(null)); 62Assert.Throws<ArgumentNullException>("dependencyObject", () => NameScope.SetNameScope(null, nameScope)); 114Assert.Throws<ArgumentNullException>("key", () => nameScope[null]); 182Assert.Throws<ArgumentNullException>("key", () => nameScope.Add(null, scopedElement)); 208Assert.Throws<ArgumentNullException>("value", () => nameScope["name"] = null); 303Assert.Throws<ArgumentNullException>(() => nameScope.Add(null, scopedElement)); 329Assert.Throws<ArgumentNullException>("scopedElement", () => nameScope.Add("name", null!)); 673Assert.Throws<ArgumentNullException>("key", () => nameScope.ContainsKey(null!)); 900Assert.Throws<ArgumentNullException>("name", () => nameScope.RegisterName(null, scopedElement)); 926Assert.Throws<ArgumentNullException>("scopedElement", () => nameScope.RegisterName("name", null!)); 958Assert.Throws<ArgumentNullException>("key", () => nameScope.Remove(null)); 1122Assert.Throws<ArgumentNullException>("key", () => nameScope.TryGetValue(null, out object value)); 1145Assert.Throws<ArgumentNullException>("name", () => nameScope.UnregisterName(null));
System\Windows\PointConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Point(), null!)); 101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Point(), null!));
System\Windows\PropertyMetadataTests.cs (1)
499Assert.Throws<ArgumentNullException>("baseMetadata", () => metadata.Merge(null!, null!));
System\Windows\RectConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Rect(), null!)); 101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Rect(), null!));
System\Windows\SizeConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Size(), null!)); 101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Size(), null!));
System\Windows\SplashScreenTests.cs (5)
39Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(null)); 40Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(Assembly.GetEntryAssembly(), null)); 46Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(string.Empty)); 47Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(Assembly.GetEntryAssembly(), string.Empty)); 53Assert.Throws<ArgumentNullException>("resourceAssembly", () => new SplashScreen(null!, "resourceName"));
System\Windows\Threading\DispatcherPriorityAwaiterTests.cs (1)
131Assert.Throws<ArgumentNullException>(() => awaiter.OnCompleted(null));
System\Windows\Threading\DispatcherSynchronizationContextTests.cs (2)
42Assert.Throws<ArgumentNullException>("dispatcher", () => new DispatcherSynchronizationContext(null)); 43Assert.Throws<ArgumentNullException>("dispatcher", () => new DispatcherSynchronizationContext(null, DispatcherPriority.Normal));
System\Windows\Threading\DispatcherTests.cs (1)
27Assert.Throws<ArgumentNullException>("frame", () => Dispatcher.PushFrame(null!));
System\Windows\Threading\DispatcherTimerTests.cs (3)
108Assert.Throws<ArgumentNullException>("dispatcher", () => new DispatcherTimer(DispatcherPriority.Normal, null)); 109Assert.Throws<ArgumentNullException>("dispatcher", () => new DispatcherTimer(TimeSpan.Zero, DispatcherPriority.Normal, (s, e) => {}, null)); 130Assert.Throws<ArgumentNullException>("callback", () => new DispatcherTimer(TimeSpan.Zero, DispatcherPriority.Normal, null, Dispatcher.CurrentDispatcher));
System\Windows\VectorConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!)); 100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Vector(), null!)); 101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Vector(), null!));
System\Windows\WeakEventManagerTests.cs (6)
750Assert.Throws<ArgumentNullException>("key", () => SubWeakEventManager.GetCurrentManager(null!)); 1225Assert.Throws<ArgumentNullException>("handler", () => manager.ProtectedAddHandler(source, null!)); 1591Assert.Throws<ArgumentNullException>("listener", () => manager.ProtectedAddListener(source, null!)); 2129Assert.Throws<ArgumentNullException>("handler", () => manager.ProtectedRemoveHandler(source, null!)); 2554Assert.Throws<ArgumentNullException>("listener", () => manager.ProtectedRemoveListener(source, null!)); 2921Assert.Throws<ArgumentNullException>("key", () => SubWeakEventManager.SetCurrentManager(null!, new SubWeakEventManager()));
System\Windows\WeakEventManagerTTests.cs (2)
222Assert.Throws<ArgumentNullException>("handler", () => WeakEventManager<object, EventArgs>.AddHandler(new object(), "EventName", null)); 343Assert.Throws<ArgumentNullException>("handler", () => WeakEventManager<object, EventArgs>.RemoveHandler(new object(), "EventName", null));
xunit.assert (11)
AsyncCollectionAsserts.cs (2)
206 /// <exception cref="ArgumentNullException">Thrown when the collection is null</exception> 325 /// <exception cref="ArgumentNullException">Thrown when a null collection is passed</exception>
CollectionAsserts.cs (2)
457 /// <exception cref="ArgumentNullException">Thrown when the collection is null</exception> 535 /// <exception cref="ArgumentNullException">Thrown when a null collection is passed</exception>
Sdk\ArgumentFormatter.cs (1)
150 ArgumentNullException.ThrowIfNull(s);
Sdk\AssertEqualityComparer.cs (1)
399 ArgumentNullException.ThrowIfNull(comparer);
Sdk\AssertEqualityComparerAdapter.cs (1)
33 ArgumentNullException.ThrowIfNull(innerComparer);
Sdk\CollectionTracker.cs (3)
57 /// <exception cref="ArgumentNullException"></exception> 61 ArgumentNullException.ThrowIfNull(innerEnumerable); 492 ArgumentNullException.ThrowIfNull(castCollection);
StringAsserts.cs (1)
585 /// <exception cref="ArgumentNullException">Thrown when the string is null</exception>