5005 instantiations of ArgumentNullException
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\WorkloadTesting\TemplateCustomHive.cs (1)
24TemplatePackageIds = templatePackageIds ?? throw new ArgumentNullException(nameof(templatePackageIds));
Aspire.Hosting (20)
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\DistributedApplicationModel.cs (1)
18public IResourceCollection Resources { get; } = resources ?? throw new ArgumentNullException(nameof(resources));
ApplicationModel\DockerBuildArg.cs (1)
17public string Name { get; init; } = name ?? throw new ArgumentNullException(nameof(name));
ApplicationModel\EndpointReference.cs (1)
153public 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 (1)
35public DistributedApplicationExecutionContext ExecutionContext { get; } = executionContext ?? throw new ArgumentNullException(nameof(executionContext));
ApplicationModel\ExecutableResource.cs (2)
17public string Command { get; } = command ?? throw new ArgumentNullException(nameof(command)); 22public string WorkingDirectory { get; } = workingDirectory ?? throw new ArgumentNullException(nameof(workingDirectory));
ApplicationModel\ModelName.cs (2)
19throw new ArgumentNullException(nameof(target)); 23throw new ArgumentNullException(nameof(name));
ApplicationModel\ResourceNotificationService.cs (3)
45_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 59_logger = logger ?? throw new ArgumentNullException(nameof(logger)); 61_resourceLoggerService = resourceLoggerService ?? throw new ArgumentNullException(nameof(resourceLoggerService));
ApplicationModel\ResourceSnapshotAnnotation.cs (1)
14public CustomResourceSnapshot InitialSnapshot { get; } = initialSnapshot ?? throw new ArgumentNullException(nameof(initialSnapshot));
DefaultLaunchProfileAnnotation.cs (1)
14private readonly string _launchProfileName = launchProfileName ?? throw new ArgumentNullException(nameof(launchProfileName));
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.PostgreSQL (1)
AzurePostgresFlexibleServerDatabaseResource.cs (1)
45=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.Azure.Sql (1)
AzureSqlDatabaseResource.cs (1)
46=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
32=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.Keycloak (1)
KeycloakResource.cs (1)
37=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
74=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.NodeJs (1)
NodeAppResource.cs (1)
19=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.PostgreSQL (3)
PgAdminContainerResource.cs (1)
17=> argument ?? throw new ArgumentNullException(paramName);
PostgresDatabaseResource.cs (1)
34=> argument ?? throw new ArgumentNullException(paramName);
PostgresServerResource.cs (1)
100=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.Python (2)
PythonAppResource.cs (1)
20=> argument ?? throw new ArgumentNullException(paramName);
PythonProjectResource.cs (1)
21=> argument ?? throw new ArgumentNullException(paramName);
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
22private readonly Type _entryPoint = entryPoint ?? throw new ArgumentNullException(nameof(entryPoint));
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.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
72throw new ArgumentNullException(paramName, "Must not be null");
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\TemplateCustomHive.cs (1)
24TemplatePackageIds = templatePackageIds ?? throw new ArgumentNullException(nameof(templatePackageIds));
Binding.UDS.IntegrationTests (1)
.packages\corewcf.primitives\1.6.0\contentFiles\CoreWCFWebApplicationExtensions.cs (1)
18throw new ArgumentNullException(nameof(app));
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\RuntimeGraphCache.cs (1)
28throw new ArgumentNullException(nameof(runtimeJsonPath));
DesignSurfaceExt (1)
TypeDiscoveryService.cs (1)
24? 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));
Extensibility.MessageInterceptor.IntegrationTests (1)
AsyncResult.cs (1)
138throw new ArgumentNullException("result");
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));
illink (3)
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)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
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)
309=> throw new ArgumentNullException(paramName); 321=> 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 (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
38throw new ArgumentNullException(paramName);
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)
38Component = component ?? throw new ArgumentNullException(nameof(component)); 42_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)
72_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)
60_options = options ?? throw new ArgumentNullException(nameof(options)); 61Client = client ?? throw new ArgumentNullException(nameof(client)); 62Renderer = renderer ?? throw new ArgumentNullException(nameof(renderer)); 63Descriptors = descriptors ?? throw new ArgumentNullException(nameof(descriptors)); 64JSRuntime = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime)); 65_navigationManager = navigationManager ?? throw new ArgumentNullException(nameof(navigationManager)); 66_circuitHandlers = circuitHandlers ?? throw new ArgumentNullException(nameof(circuitHandlers)); 67_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)
820_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.Maui (4)
iOS\BlazorWebViewHandler.iOS.cs (2)
236 _messageReceivedAction = messageReceivedAction ?? throw new ArgumentNullException(nameof(messageReceivedAction)); 243 throw new ArgumentNullException(nameof(message));
iOS\IOSWebViewManager.cs (2)
105 _webView = webView ?? throw new ArgumentNullException(nameof(webView)); 214 _webView = webView ?? throw new ArgumentNullException(nameof(webView));
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)
38throw 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)
38throw 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)
38throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
38throw 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)
309=> throw new ArgumentNullException(paramName); 321=> 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)
38throw new ArgumentNullException(paramName);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
474ApplicationBuilder = 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.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.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)
1619ApplicationBuilder = 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)
170ApplicationBuilder = 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)
87EndpointConfigurations[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.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)
309=> throw new ArgumentNullException(paramName); 321=> 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.Build (17)
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)
226throw 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\IntrinsicFunctions.cs (1)
755throw new ArgumentNullException(nameof(keyName));
FileMatcher.cs (1)
1682throw 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)
37throw new ArgumentNullException(nameof(allItems)); 41_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)
187Exception value = new ArgumentNullException("The argument was null"); 207value = new ArgumentNullException("The argument was null", e); 230throw new ArgumentNullException("The argument was null", e);
BackEnd\MockHost.cs (2)
105throw new ArgumentNullException($"Attempted to create an override cache with a null {nameof(overrideConfigCache)}."); 109throw 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(response));
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
FileMatcher.cs (1)
1682throw new ArgumentNullException(nameof(pattern));
GenerateManifestBase.cs (1)
434throw 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)
383throw new ArgumentNullException(nameof(frameworkIdentifier));
ManifestUtil\EmbeddedManifestReader.cs (1)
65throw new ArgumentNullException(nameof(path));
ManifestUtil\Manifest.cs (1)
237throw new ArgumentNullException(nameof(searchPaths));
ManifestUtil\ManifestReader.cs (1)
115throw new ArgumentNullException(nameof(path));
ManifestUtil\mansign2.cs (4)
320_manifestDom = manifestDom ?? throw new ArgumentNullException(nameof(manifestDom)); 338throw new ArgumentNullException(nameof(signer)); 1111throw new ArgumentNullException(nameof(strongNameKey)); 1118throw 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)
74throw new ArgumentNullException(nameof(path)); 136throw new ArgumentNullException(nameof(path)); 149throw 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)
771throw new ArgumentNullException(nameof(expectedErrorMessage));
Microsoft.Build.Utilities.Core (4)
ErrorUtilities.cs (1)
585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
FileMatcher.cs (1)
1682throw new ArgumentNullException(nameof(pattern));
LockCheck.cs (1)
291throw 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 (309)
AdditionalTextFile.cs (1)
27throw new ArgumentNullException(nameof(compiler));
Collections\ImmutableHashSetExtensions.cs (2)
21throw new ArgumentNullException(nameof(set)); 23throw new ArgumentNullException(nameof(other));
Collections\Rope.cs (3)
31throw new ArgumentNullException(nameof(s)); 42throw new ArgumentNullException(nameof(r1)); 45throw new ArgumentNullException(nameof(r2));
CommandLine\AnalyzerConfigSet.cs (1)
181throw new ArgumentNullException(nameof(sourcePath));
CommandLine\CommandLineArguments.cs (3)
331throw new ArgumentNullException(nameof(outputFileName)); 351throw new ArgumentNullException(nameof(outputFileName)); 375throw 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)
352throw new ArgumentNullException(nameof(name)); 372throw new ArgumentNullException(nameof(container)); 377throw new ArgumentNullException(nameof(name)); 389=> CommonCreatePreprocessingSymbol(name ?? throw new ArgumentNullException(nameof(name))); 680throw new ArgumentNullException($"{nameof(references)}[{i}]"); 800throw new ArgumentNullException(nameof(references)); 830throw new ArgumentNullException(nameof(references)); 874throw new ArgumentNullException(nameof(oldReference)); 1306throw new ArgumentNullException(nameof(elementTypes)); 1323throw new ArgumentNullException($"{nameof(elementTypes)}[{i}]"); 1328throw new ArgumentNullException($"{nameof(elementLocations)}[{i}]"); 1423throw new ArgumentNullException(nameof(underlyingType)); 1464throw new ArgumentNullException(nameof(memberTypes)); 1469throw new ArgumentNullException(nameof(memberNames)); 1500throw new ArgumentNullException($"{nameof(memberTypes)}[{i}]"); 1505throw new ArgumentNullException($"{nameof(memberNames)}[{i}]"); 1510throw new ArgumentNullException($"{nameof(memberLocations)}[{i}]"); 1555throw new ArgumentNullException(nameof(returnType)); 1558throw new ArgumentNullException(nameof(leftType)); 1561throw new ArgumentNullException(nameof(rightType)); 1582throw new ArgumentNullException(nameof(returnType)); 1585throw new ArgumentNullException(nameof(operandType)); 1635throw new ArgumentNullException(nameof(symbol)); 1640throw new ArgumentNullException(nameof(within)); 2830throw new ArgumentNullException(nameof(peStream)); 3101throw new ArgumentNullException(nameof(baseline)); 3109throw new ArgumentNullException(nameof(edits)); 3114throw new ArgumentNullException(nameof(isAddedSymbol)); 3119throw new ArgumentNullException(nameof(metadataStream)); 3124throw new ArgumentNullException(nameof(ilStream)); 3129throw new ArgumentNullException(nameof(pdbStream)); 3801throw new ArgumentNullException(nameof(diagnostic)); 3831throw new ArgumentNullException(nameof(diagnostic));
Diagnostic\Diagnostic.cs (4)
151throw new ArgumentNullException(nameof(descriptor)); 263throw new ArgumentNullException(nameof(id)); 268throw new ArgumentNullException(nameof(category)); 273throw new ArgumentNullException(nameof(message));
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
112throw new ArgumentNullException(nameof(location));
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
46_descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor)); 183throw 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)
982throw new ArgumentNullException(nameof(otherActions));
DiagnosticAnalyzer\ShadowCopyAnalyzerAssemblyLoader.cs (1)
61throw 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)
368throw 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));
InternalUtilities\EnumerableExtensions.cs (19)
39throw new ArgumentNullException(nameof(source)); 44throw new ArgumentNullException(nameof(action)); 105throw new ArgumentNullException(nameof(source)); 115throw new ArgumentNullException(nameof(source)); 135throw new ArgumentNullException(nameof(source1)); 140throw new ArgumentNullException(nameof(source2)); 150throw new ArgumentNullException(nameof(source1)); 155throw new ArgumentNullException(nameof(source2)); 165throw new ArgumentNullException(nameof(source)); 175throw new ArgumentNullException(nameof(source)); 211throw new ArgumentNullException(nameof(source)); 222throw new ArgumentNullException(nameof(source)); 227throw new ArgumentNullException(nameof(predicate)); 238throw new ArgumentNullException(nameof(source)); 243throw new ArgumentNullException(nameof(predicate)); 254throw new ArgumentNullException(nameof(source)); 265throw new ArgumentNullException(nameof(source)); 547throw new ArgumentNullException(nameof(source)); 613throw new ArgumentNullException(nameof(sequence));
InternalUtilities\OneOrMany.cs (1)
42throw new ArgumentNullException(nameof(many));
InternalUtilities\StringExtensions.cs (2)
36throw new ArgumentNullException(nameof(source)); 41throw new ArgumentNullException(nameof(separator));
MetadataReference\AssemblyIdentity.cs (1)
526throw new ArgumentNullException(nameof(assembly));
MetadataReference\AssemblyIdentity.DisplayName.cs (2)
159throw new ArgumentNullException(nameof(displayName)); 218throw 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\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));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (3)
79_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 210throw new ArgumentNullException(nameof(keys)); 233throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
43throw new ArgumentNullException(nameof(value)); 122throw new ArgumentNullException(nameof(items)); 197throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
85throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
46throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (2)
405throw new ArgumentNullException(nameof(items)); 429throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
90throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (11)
18throw new ArgumentNullException(nameof(immutableList)); 20throw new ArgumentNullException(nameof(predicate)); 34throw new ArgumentNullException(nameof(immutableList)); 42throw new ArgumentNullException(nameof(builder)); 50throw new ArgumentNullException(nameof(immutableList)); 52throw new ArgumentNullException(nameof(predicate)); 75throw new ArgumentNullException(nameof(builder)); 87throw new ArgumentNullException(nameof(immutableList)); 89throw new ArgumentNullException(nameof(predicate)); 104throw new ArgumentNullException(nameof(immutableList)); 106throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
23_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\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));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
34throw new ArgumentNullException(nameof(transformer)); 75throw new ArgumentNullException(nameof(transformer)); 155throw new ArgumentNullException(nameof(transformer)); 196throw new ArgumentNullException(nameof(transformer)); 278throw new ArgumentNullException(nameof(transformer)); 321throw new ArgumentNullException(nameof(transformer)); 393throw new ArgumentNullException(nameof(valueFactory)); 397throw new ArgumentNullException(nameof(location)); 413throw new ArgumentNullException(nameof(valueFactory)); 417throw new ArgumentNullException(nameof(location)); 436throw new ArgumentNullException(nameof(location)); 461throw new ArgumentNullException(nameof(addValueFactory)); 463throw new ArgumentNullException(nameof(updateValueFactory)); 470throw new ArgumentNullException(nameof(location)); 499throw new ArgumentNullException(nameof(updateValueFactory)); 506throw new ArgumentNullException(nameof(location)); 538throw new ArgumentNullException(nameof(location)); 565throw new ArgumentNullException(nameof(location)); 592throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\SegmentedArray`1.cs (1)
351_ = comparer ?? throw new ArgumentNullException(nameof(comparer));
SymbolDisplay\SymbolDisplayPart.cs (1)
49throw new ArgumentNullException(nameof(text));
Syntax\GreenNode.cs (2)
521throw new ArgumentNullException(nameof(annotationKind)); 549throw new ArgumentNullException(nameof(annotationKinds));
Syntax\SeparatedSyntaxList.cs (4)
386throw new ArgumentNullException(nameof(node)); 401throw new ArgumentNullException(nameof(nodes)); 517throw new ArgumentNullException(nameof(newNode)); 538throw new ArgumentNullException(nameof(newNodes));
Syntax\SyntaxDiffer.cs (2)
49throw new ArgumentNullException(nameof(after)); 85throw new ArgumentNullException(nameof(after));
Syntax\SyntaxList`1.cs (4)
243throw new ArgumentNullException(nameof(node)); 263throw new ArgumentNullException(nameof(nodes)); 321throw new ArgumentNullException(nameof(nodeInList)); 326throw 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)
628throw new ArgumentNullException(nameof(annotations)); 659throw new ArgumentNullException(nameof(annotations)); 682throw new ArgumentNullException(nameof(annotationKind));
Syntax\SyntaxNodeOrTokenList.cs (3)
79throw new ArgumentNullException(nameof(nodesAndTokens)); 104throw new ArgumentNullException(nameof(nodesAndTokens)); 332throw new ArgumentNullException(nameof(nodesAndTokens));
Syntax\SyntaxToken.cs (3)
306throw new ArgumentNullException(nameof(annotations)); 336throw new ArgumentNullException(nameof(annotations)); 358throw new ArgumentNullException(nameof(annotationKind));
Syntax\SyntaxTokenList.cs (1)
357throw new ArgumentNullException(nameof(tokens));
Syntax\SyntaxTrivia.cs (3)
306throw new ArgumentNullException(nameof(annotations)); 335throw new ArgumentNullException(nameof(annotations)); 356throw new ArgumentNullException(nameof(annotationKind));
Syntax\SyntaxTriviaList.cs (1)
326throw 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)
42throw new ArgumentNullException(nameof(newText));
Text\TextChangeEventArgs.cs (1)
28throw new ArgumentNullException(nameof(changes));
Text\TextLine.cs (1)
38throw new ArgumentNullException(nameof(text));
Microsoft.CodeAnalysis.CodeStyle (120)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (4)
50throw new ArgumentNullException(nameof(descriptor)); 266throw new ArgumentNullException(nameof(descriptor)); 351throw new ArgumentNullException(nameof(messageFormat)); 356throw new ArgumentNullException(nameof(formatArguments));
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (4)
41diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 42options = options ?? throw new ArgumentNullException(nameof(options)); 96diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 97fadingOption = fadingOption ?? throw new ArgumentNullException(nameof(fadingOption));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
368throw 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\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (20)
39throw new ArgumentNullException(nameof(source)); 44throw new ArgumentNullException(nameof(action)); 105throw new ArgumentNullException(nameof(source)); 115throw new ArgumentNullException(nameof(source)); 135throw new ArgumentNullException(nameof(source1)); 140throw new ArgumentNullException(nameof(source2)); 150throw new ArgumentNullException(nameof(source1)); 155throw new ArgumentNullException(nameof(source2)); 165throw new ArgumentNullException(nameof(source)); 175throw new ArgumentNullException(nameof(source)); 211throw new ArgumentNullException(nameof(source)); 222throw new ArgumentNullException(nameof(source)); 227throw new ArgumentNullException(nameof(predicate)); 238throw new ArgumentNullException(nameof(source)); 243throw new ArgumentNullException(nameof(predicate)); 254throw new ArgumentNullException(nameof(source)); 265throw new ArgumentNullException(nameof(source)); 547throw new ArgumentNullException(nameof(source)); 613throw new ArgumentNullException(nameof(sequence)); 928throw new ArgumentNullException(nameof(source));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
42throw new ArgumentNullException(nameof(many));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
36throw new ArgumentNullException(nameof(source)); 41throw new ArgumentNullException(nameof(separator));
src\Dependencies\Collections\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));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (3)
79_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 210throw new ArgumentNullException(nameof(keys)); 233throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
43throw new ArgumentNullException(nameof(value)); 122throw new ArgumentNullException(nameof(items)); 197throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
85throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
46throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (2)
405throw new ArgumentNullException(nameof(items)); 429throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
90throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (11)
18throw new ArgumentNullException(nameof(immutableList)); 20throw new ArgumentNullException(nameof(predicate)); 34throw new ArgumentNullException(nameof(immutableList)); 42throw new ArgumentNullException(nameof(builder)); 50throw new ArgumentNullException(nameof(immutableList)); 52throw new ArgumentNullException(nameof(predicate)); 75throw new ArgumentNullException(nameof(builder)); 87throw new ArgumentNullException(nameof(immutableList)); 89throw new ArgumentNullException(nameof(predicate)); 104throw new ArgumentNullException(nameof(immutableList)); 106throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
23_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\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));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
34throw new ArgumentNullException(nameof(transformer)); 75throw new ArgumentNullException(nameof(transformer)); 155throw new ArgumentNullException(nameof(transformer)); 196throw new ArgumentNullException(nameof(transformer)); 278throw new ArgumentNullException(nameof(transformer)); 321throw new ArgumentNullException(nameof(transformer)); 393throw new ArgumentNullException(nameof(valueFactory)); 397throw new ArgumentNullException(nameof(location)); 413throw new ArgumentNullException(nameof(valueFactory)); 417throw new ArgumentNullException(nameof(location)); 436throw new ArgumentNullException(nameof(location)); 461throw new ArgumentNullException(nameof(addValueFactory)); 463throw new ArgumentNullException(nameof(updateValueFactory)); 470throw new ArgumentNullException(nameof(location)); 499throw new ArgumentNullException(nameof(updateValueFactory)); 506throw new ArgumentNullException(nameof(location)); 538throw new ArgumentNullException(nameof(location)); 565throw new ArgumentNullException(nameof(location)); 592throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\SegmentedArray`1.cs (1)
351_ = 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\Extensions\ICollectionExtensions.cs (1)
31throw new ArgumentNullException(nameof(collection));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
34throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 37this.Option = option ?? throw new ArgumentNullException(nameof(option)); 44this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
123private 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\ICollectionExtensions.cs (5)
18throw new ArgumentNullException(nameof(collection)); 33throw new ArgumentNullException(nameof(collection)); 45throw new ArgumentNullException(nameof(collection)); 57throw new ArgumentNullException(nameof(collection)); 70throw new ArgumentNullException(nameof(collection));
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)
100_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 236throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
129throw new ArgumentNullException(nameof(func)); 131throw 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)
161throw new ArgumentNullException(nameof(destination)); 178throw new ArgumentNullException(nameof(destination)); 198throw new ArgumentNullException(nameof(destination)); 469throw 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)
21=> (type ?? throw new ArgumentNullException(argName)).AssemblyQualifiedName ?? throw new ArgumentException("Invalid service type", argName);
Microsoft.CodeAnalysis.Collections.Package (52)
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)); 210throw new ArgumentNullException(nameof(keys)); 233throw new ArgumentNullException(nameof(items));
ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
43throw new ArgumentNullException(nameof(value)); 122throw new ArgumentNullException(nameof(items)); 197throw new ArgumentNullException(nameof(keys));
ImmutableSegmentedHashSet.cs (1)
85throw new ArgumentNullException(nameof(builder));
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));
ImmutableSegmentedListExtensions.cs (11)
18throw new ArgumentNullException(nameof(immutableList)); 20throw new ArgumentNullException(nameof(predicate)); 34throw new ArgumentNullException(nameof(immutableList)); 42throw new ArgumentNullException(nameof(builder)); 50throw new ArgumentNullException(nameof(immutableList)); 52throw new ArgumentNullException(nameof(predicate)); 75throw new ArgumentNullException(nameof(builder)); 87throw new ArgumentNullException(nameof(immutableList)); 89throw new ArgumentNullException(nameof(predicate)); 104throw new ArgumentNullException(nameof(immutableList)); 106throw new ArgumentNullException(nameof(selector));
Internal\ICollectionDebugView`1.cs (1)
23_collection = collection ?? throw new ArgumentNullException(nameof(collection));
Internal\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));
Internal\ThrowHelper.cs (1)
155return new ArgumentNullException(GetArgumentName(argument));
RoslynImmutableInterlocked.cs (19)
34throw new ArgumentNullException(nameof(transformer)); 75throw new ArgumentNullException(nameof(transformer)); 155throw new ArgumentNullException(nameof(transformer)); 196throw new ArgumentNullException(nameof(transformer)); 278throw new ArgumentNullException(nameof(transformer)); 321throw new ArgumentNullException(nameof(transformer)); 393throw new ArgumentNullException(nameof(valueFactory)); 397throw new ArgumentNullException(nameof(location)); 413throw new ArgumentNullException(nameof(valueFactory)); 417throw new ArgumentNullException(nameof(location)); 436throw new ArgumentNullException(nameof(location)); 461throw new ArgumentNullException(nameof(addValueFactory)); 463throw new ArgumentNullException(nameof(updateValueFactory)); 470throw new ArgumentNullException(nameof(location)); 499throw new ArgumentNullException(nameof(updateValueFactory)); 506throw new ArgumentNullException(nameof(location)); 538throw new ArgumentNullException(nameof(location)); 565throw new ArgumentNullException(nameof(location)); 592throw new ArgumentNullException(nameof(location));
SegmentedArray`1.cs (1)
351_ = 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)); 2301throw new ArgumentNullException(nameof(source)); 2306throw new ArgumentNullException(nameof(destination)); 2372throw new ArgumentNullException(nameof(elementType)); 2390throw new ArgumentNullException(nameof(elementType)); 2518throw new ArgumentNullException(nameof(syntaxTree)); 4072throw new ArgumentNullException(nameof(returnType)); 4077throw new ArgumentNullException(nameof(parameterTypes)); 4084throw new ArgumentNullException($"{nameof(parameterTypes)}[{i}]"); 4090throw new ArgumentNullException(nameof(parameterRefKinds)); 4136throw new ArgumentNullException($"{nameof(callingConventionTypes)}[{index}]"); 4607throw new ArgumentNullException(nameof(predicate)); 4625throw new ArgumentNullException(nameof(predicate)); 4646throw new ArgumentNullException(nameof(name)); 4672throw new ArgumentNullException(nameof(name));
Compilation\CSharpSemanticModel.cs (19)
283throw new ArgumentNullException(nameof(expression)); 403throw new ArgumentNullException(nameof(attribute)); 783throw new ArgumentNullException(nameof(constructorInitializer)); 855throw new ArgumentNullException(nameof(constructorInitializer)); 1364throw new ArgumentNullException(nameof(syntax)); 1378throw new ArgumentNullException(nameof(syntax)); 1819throw new ArgumentNullException(nameof(symbol)); 2830throw new ArgumentNullException(nameof(destination)); 2899throw new ArgumentNullException(nameof(destination)); 4955throw new ArgumentNullException(nameof(node)); 4982throw new ArgumentNullException(nameof(node)); 5003throw new ArgumentNullException(nameof(node)); 5308throw new ArgumentNullException(nameof(firstStatement)); 5313throw new ArgumentNullException(nameof(lastStatement)); 5333throw new ArgumentNullException(nameof(statement)); 5348throw new ArgumentNullException(nameof(firstStatement)); 5353throw new ArgumentNullException(nameof(lastStatement)); 5374throw new ArgumentNullException(nameof(statementOrExpression)); 5392throw new ArgumentNullException(nameof(node));
Compilation\MemberSemanticModel.cs (3)
195throw new ArgumentNullException(nameof(expression)); 436throw new ArgumentNullException(nameof(destination)); 494throw new ArgumentNullException(nameof(destination));
Compilation\SyntaxTreeSemanticModel.cs (9)
539throw new ArgumentNullException(nameof(destination)); 564throw new ArgumentNullException(nameof(destination)); 742throw new ArgumentNullException(nameof(expression)); 2138throw new ArgumentNullException(nameof(typeParameter)); 2202throw new ArgumentNullException(nameof(firstStatement)); 2207throw new ArgumentNullException(nameof(lastStatement)); 2238throw new ArgumentNullException(nameof(expression)); 2255throw new ArgumentNullException(nameof(constructorInitializer)); 2272throw 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)
220throw 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)
754throw new ArgumentNullException(nameof(receiverType)); 866throw new ArgumentNullException(nameof(typeArguments));
Symbols\ModuleSymbol.cs (2)
339throw new ArgumentNullException(nameof(namespaceSymbol)); 374throw new ArgumentNullException(nameof(namespaceSymbol));
Symbols\NamedTypeSymbol.cs (1)
1198throw 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)
342throw new ArgumentNullException(nameof(root)); 500throw new ArgumentNullException(nameof(text)); 557throw new ArgumentNullException(nameof(changes)); 601throw new ArgumentNullException(nameof(oldTree)); 616throw new ArgumentNullException(nameof(oldTree)); 778throw new ArgumentNullException(nameof(node));
Syntax\SyntaxFactory.cs (2)
195throw new ArgumentNullException(nameof(text)); 2319throw 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)
220throw 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)
217throw 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 (16)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
106=> _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
Extensibility\Completion\ExportCompletionProviderAttribute.cs (2)
17public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name)); 18public 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)
211throw new ArgumentNullException(nameof(session)); 459throw new ArgumentNullException(nameof(session)); 461throw new ArgumentNullException(nameof(item));
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)
29Text = text ?? throw new ArgumentNullException(nameof(text)); 30ClassificationName = 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)
75throw new ArgumentNullException(nameof(editorSnapshot)); 99throw new ArgumentNullException(nameof(editorSnapshot)); 189throw new ArgumentNullException(nameof(changes)); 292throw new ArgumentNullException(nameof(oldText)); 322throw new ArgumentNullException(nameof(oldText));
Extensions.TextBufferContainer.cs (1)
46throw new ArgumentNullException(nameof(buffer));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (13)
Adornments\AbstractAdornmentManagerProvider.cs (1)
47throw new ArgumentNullException(nameof(textView));
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
183_presentationSource = presentationSource ?? throw new ArgumentNullException(nameof(presentationSource));
Interactive\InteractiveEvaluator.cs (1)
132_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)
54throw new ArgumentNullException(nameof(symbol)); 57throw new ArgumentNullException(nameof(project)); 60throw new ArgumentNullException(nameof(peekResultFactory));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DebuggerDiagnosticFormatter.cs (1)
17throw 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)
83throw new ArgumentNullException(nameof(inspectionContext)); 146throw new ArgumentNullException(nameof(inspectionContext)); 156throw new ArgumentNullException(nameof(inspectionContext)); 166throw new ArgumentNullException(nameof(inspectionContext)); 205throw new ArgumentNullException(nameof(inspectionContext)); 244throw new ArgumentNullException(nameof(inspectionContext)); 386throw new ArgumentNullException(nameof(InspectionContext)); 567throw new ArgumentNullException(nameof(inspectionContext)); 626throw new ArgumentNullException(nameof(inspectionContext)); 652throw new ArgumentNullException(nameof(inspectionContext)); 674throw 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.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.Razor (3)
RazorDocumentServiceProviderWrapper.cs (1)
23_innerDocumentServiceProvider = innerDocumentServiceProvider ?? throw new ArgumentNullException(nameof(innerDocumentServiceProvider));
RazorDynamicFileInfoProviderWrapper.cs (1)
30_innerDynamicFileInfoProvider = innerDynamicFileInfoProvider ?? throw new ArgumentNullException(nameof(innerDynamicFileInfoProvider));
RazorSpanMappingServiceWrapper.cs (1)
22_razorSpanMappingService = razorSpanMappingService ?? throw new ArgumentNullException(nameof(razorSpanMappingService));
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)
16public 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)
36throw new ArgumentNullException(nameof(languages)); 45Name = 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)
51Name = name ?? throw new ArgumentNullException(nameof(name)); 52Languages = languages ?? throw new ArgumentNullException(nameof(languages)); 53Identifiers = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
ExternalAccess\UnitTesting\SolutionCrawler\ExportUnitTestingIncrementalAnalyzerProviderAttribute.cs (1)
23this.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)
18public 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)
50throw new ArgumentNullException(nameof(descriptor)); 266throw new ArgumentNullException(nameof(descriptor)); 351throw new ArgumentNullException(nameof(messageFormat)); 356throw new ArgumentNullException(nameof(formatArguments));
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (4)
41diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 42options = options ?? throw new ArgumentNullException(nameof(options)); 96diagnosticId = diagnosticId ?? throw new ArgumentNullException(nameof(diagnosticId)); 97fadingOption = 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 (3)
Interactive\Core\InteractiveHost.cs (2)
132throw new ArgumentNullException(nameof(output)); 137throw new ArgumentNullException(nameof(errorOutput));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
368throw new ArgumentNullException(paramName);
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)
152this.Type = type ?? throw new ArgumentNullException(nameof(type)); 153this.Constructor = constructor ?? throw new ArgumentNullException(nameof(constructor)); 259writer = 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)
25Elements = elements?.ToImmutableList() ?? throw new ArgumentNullException("elements"); 31Elements = 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.Remote.Workspaces (1)
CancellationTokenSourceExtensions.cs (1)
22throw new ArgumentNullException(nameof(cancellationTokenSource));
Microsoft.CodeAnalysis.Scripting (23)
CompilationErrorException.cs (1)
27throw new ArgumentNullException(nameof(diagnostics));
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
159throw new ArgumentNullException(nameof(dependency)); 186throw 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)
29throw new ArgumentNullException(nameof(options)); 66throw new ArgumentNullException(nameof(e));
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (3)
37throw new ArgumentNullException(nameof(type)); 96throw new ArgumentNullException(nameof(typeArguments)); 136throw new ArgumentNullException(nameof(arrayType));
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
398throw new ArgumentNullException(nameof(numberRadix));
Script.cs (2)
129throw new ArgumentNullException(nameof(code)); 554throw new ArgumentNullException(nameof(previousState));
ScriptState.cs (1)
87throw new ArgumentNullException(nameof(name));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
208throw new ArgumentNullException(nameof(displayName));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
173throw 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.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 (383)
CodeActions\CodeAction.cs (6)
516throw new ArgumentNullException(nameof(title)); 519throw new ArgumentNullException(nameof(createChangedDocument)); 551throw new ArgumentNullException(nameof(title)); 554throw new ArgumentNullException(nameof(createChangedSolution)); 576throw new ArgumentNullException(nameof(title)); 579throw 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)
48throw new ArgumentNullException(nameof(value)); 83throw new ArgumentNullException(nameof(additionalLanguages)); 87languages[0] = firstLanguage ?? throw new ArgumentNullException(nameof(firstLanguage));
CodeFixes\FixAllOccurrences\FixAllContext.cs (10)
161document ?? throw new ArgumentNullException(nameof(document)), 163codeFixProvider ?? throw new ArgumentNullException(nameof(codeFixProvider)), 167fixAllDiagnosticProvider ?? throw new ArgumentNullException(nameof(fixAllDiagnosticProvider))), 197project ?? throw new ArgumentNullException(nameof(project)), 198codeFixProvider ?? throw new ArgumentNullException(nameof(codeFixProvider)), 202fixAllDiagnosticProvider ?? throw new ArgumentNullException(nameof(fixAllDiagnosticProvider))), 229throw new ArgumentNullException(nameof(document)); 266throw new ArgumentNullException(nameof(document)); 287throw new ArgumentNullException(nameof(project)); 301throw new ArgumentNullException(nameof(project));
CodeFixes\FixAllOccurrences\FixAllProvider.cs (2)
82throw new ArgumentNullException(nameof(fixAllAsync)); 85throw 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)
82throw new ArgumentNullException(nameof(fixAllAsync)); 85throw 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)
65: this(root, (workspace ?? throw new ArgumentNullException(nameof(workspace))).Services.SolutionServices) 73: this(root, (services ?? throw new ArgumentNullException(nameof(services))).SolutionServices) 81: this(root ?? throw new ArgumentNullException(nameof(root)), 82SyntaxGenerator.GetGenerator(services ?? throw new ArgumentNullException(nameof(services)), root.Language)) 154throw new ArgumentNullException(nameof(computeReplacement)); 163throw new ArgumentNullException(nameof(computeReplacement)); 172throw new ArgumentNullException(nameof(computeReplacement)); 200throw new ArgumentNullException(nameof(newNodes)); 222throw new ArgumentNullException(nameof(newNodes)); 238throw new ArgumentNullException(nameof(node));
Editing\SyntaxGenerator.cs (3)
1897throw new ArgumentNullException(nameof(dottedName)); 1969throw new ArgumentNullException(nameof(elements)); 1995throw 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)); 161throw new ArgumentNullException(nameof(symbol)); 164throw 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)
24throw new ArgumentNullException(nameof(option)); 34throw 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)
47throw new ArgumentNullException(nameof(solution)); 50throw new ArgumentNullException(nameof(symbol)); 107throw 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)
330throw 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\ShadowCopyAnalyzerAssemblyLoader.cs (1)
61throw new ArgumentNullException(nameof(baseDirectory));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
368throw 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\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (20)
39throw new ArgumentNullException(nameof(source)); 44throw new ArgumentNullException(nameof(action)); 105throw new ArgumentNullException(nameof(source)); 115throw new ArgumentNullException(nameof(source)); 135throw new ArgumentNullException(nameof(source1)); 140throw new ArgumentNullException(nameof(source2)); 150throw new ArgumentNullException(nameof(source1)); 155throw new ArgumentNullException(nameof(source2)); 165throw new ArgumentNullException(nameof(source)); 175throw new ArgumentNullException(nameof(source)); 211throw new ArgumentNullException(nameof(source)); 222throw new ArgumentNullException(nameof(source)); 227throw new ArgumentNullException(nameof(predicate)); 238throw new ArgumentNullException(nameof(source)); 243throw new ArgumentNullException(nameof(predicate)); 254throw new ArgumentNullException(nameof(source)); 265throw new ArgumentNullException(nameof(source)); 547throw new ArgumentNullException(nameof(source)); 613throw new ArgumentNullException(nameof(sequence)); 928throw new ArgumentNullException(nameof(source));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
42throw new ArgumentNullException(nameof(many));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
36throw new ArgumentNullException(nameof(source)); 41throw new ArgumentNullException(nameof(separator));
src\Dependencies\Collections\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));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (3)
79_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 210throw new ArgumentNullException(nameof(keys)); 233throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
43throw new ArgumentNullException(nameof(value)); 122throw new ArgumentNullException(nameof(items)); 197throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
85throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
46throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (2)
405throw new ArgumentNullException(nameof(items)); 429throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
90throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (11)
18throw new ArgumentNullException(nameof(immutableList)); 20throw new ArgumentNullException(nameof(predicate)); 34throw new ArgumentNullException(nameof(immutableList)); 42throw new ArgumentNullException(nameof(builder)); 50throw new ArgumentNullException(nameof(immutableList)); 52throw new ArgumentNullException(nameof(predicate)); 75throw new ArgumentNullException(nameof(builder)); 87throw new ArgumentNullException(nameof(immutableList)); 89throw new ArgumentNullException(nameof(predicate)); 104throw new ArgumentNullException(nameof(immutableList)); 106throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
23_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\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));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
34throw new ArgumentNullException(nameof(transformer)); 75throw new ArgumentNullException(nameof(transformer)); 155throw new ArgumentNullException(nameof(transformer)); 196throw new ArgumentNullException(nameof(transformer)); 278throw new ArgumentNullException(nameof(transformer)); 321throw new ArgumentNullException(nameof(transformer)); 393throw new ArgumentNullException(nameof(valueFactory)); 397throw new ArgumentNullException(nameof(location)); 413throw new ArgumentNullException(nameof(valueFactory)); 417throw new ArgumentNullException(nameof(location)); 436throw new ArgumentNullException(nameof(location)); 461throw new ArgumentNullException(nameof(addValueFactory)); 463throw new ArgumentNullException(nameof(updateValueFactory)); 470throw new ArgumentNullException(nameof(location)); 499throw new ArgumentNullException(nameof(updateValueFactory)); 506throw new ArgumentNullException(nameof(location)); 538throw new ArgumentNullException(nameof(location)); 565throw new ArgumentNullException(nameof(location)); 592throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\SegmentedArray`1.cs (1)
351_ = 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\Extensions\ICollectionExtensions.cs (1)
31throw new ArgumentNullException(nameof(collection));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (3)
34throw new ArgumentNullException(CompilerExtensionsResources.A_language_name_must_be_specified_for_this_option); 37this.Option = option ?? throw new ArgumentNullException(nameof(option)); 44this.Option = option ?? throw new ArgumentNullException(nameof(option));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
123private 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\ICollectionExtensions.cs (5)
18throw new ArgumentNullException(nameof(collection)); 33throw new ArgumentNullException(nameof(collection)); 45throw new ArgumentNullException(nameof(collection)); 57throw new ArgumentNullException(nameof(collection)); 70throw new ArgumentNullException(nameof(collection));
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)
100_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 236throw new ArgumentNullException(nameof(reference));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
129throw new ArgumentNullException(nameof(func)); 131throw 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)
161throw new ArgumentNullException(nameof(destination)); 178throw new ArgumentNullException(nameof(destination)); 198throw new ArgumentNullException(nameof(destination)); 469throw 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)
21=> (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)
141throw new ArgumentNullException(nameof(textContainer)); 314throw new ArgumentNullException(nameof(textContainer));
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
1268throw new ArgumentNullException(nameof(projectReference)); 1285throw new ArgumentNullException(nameof(projectReference)); 1330throw new ArgumentNullException(nameof(projectReference));
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (2)
51_project = project ?? throw new ArgumentNullException(nameof(project)); 96throw 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)
510throw 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)
233id ?? throw new ArgumentNullException(nameof(id)), 235name ?? throw new ArgumentNullException(nameof(name)), 236assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)), 237language ?? throw new ArgumentNullException(nameof(language)), 335=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 341=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 344=> With(attributes: Attributes.With(assemblyName: assemblyName ?? throw new ArgumentNullException(nameof(assemblyName))));
Workspace\Solution\Solution.cs (53)
393throw new ArgumentNullException(nameof(assemblyName)); 458throw new ArgumentNullException(nameof(name)); 484throw new ArgumentNullException(nameof(options)); 500throw new ArgumentNullException(nameof(options)); 562throw new ArgumentNullException(nameof(documentIds)); 597[projectReference ?? throw new ArgumentNullException(nameof(projectReference))]); 645throw new ArgumentNullException(nameof(projectReference)); 695[metadataReference ?? throw new ArgumentNullException(nameof(metadataReference))]); 739throw new ArgumentNullException(nameof(metadataReference)); 775[analyzerReference ?? throw new ArgumentNullException(nameof(analyzerReference))]); 792throw new ArgumentNullException(nameof(analyzerReferences)); 826throw new ArgumentNullException(nameof(analyzerReference)); 866[analyzerReference ?? throw new ArgumentNullException(nameof(analyzerReference))]); 902throw new ArgumentNullException(nameof(analyzerReference)); 932throw new ArgumentNullException(nameof(documentId)); 935throw new ArgumentNullException(nameof(name)); 950throw new ArgumentNullException(nameof(documentId)); 953throw new ArgumentNullException(nameof(name)); 956throw new ArgumentNullException(nameof(text)); 969throw new ArgumentNullException(nameof(documentId)); 972throw new ArgumentNullException(nameof(name)); 975throw new ArgumentNullException(nameof(syntaxRoot)); 1001throw new ArgumentNullException(nameof(documentId)); 1004throw new ArgumentNullException(nameof(name)); 1007throw new ArgumentNullException(nameof(loader)); 1049throw new ArgumentNullException(nameof(documentId)); 1054throw new ArgumentNullException(nameof(name)); 1059throw new ArgumentNullException(nameof(text)); 1080throw new ArgumentNullException(nameof(documentId)); 1085throw new ArgumentNullException(nameof(name)); 1090throw new ArgumentNullException(nameof(text)); 1196throw new ArgumentNullException(nameof(name)); 1248throw new ArgumentNullException(nameof(text)); 1267throw new ArgumentNullException(nameof(text)); 1288throw new ArgumentNullException(nameof(text)); 1309throw new ArgumentNullException(nameof(textAndVersion)); 1330throw new ArgumentNullException(nameof(textAndVersion)); 1351throw new ArgumentNullException(nameof(textAndVersion)); 1380throw new ArgumentNullException(nameof(root)); 1425throw new ArgumentNullException(nameof(loader)); 1446throw new ArgumentNullException(nameof(loader)); 1467throw new ArgumentNullException(nameof(loader)); 1595throw new ArgumentNullException(nameof(documentIds)); 1600throw new ArgumentNullException(nameof(text)); 1662throw new ArgumentNullException(nameof(oldSolution)); 1712null => throw new ArgumentNullException(nameof(options)), 1727throw new ArgumentNullException(nameof(projectId)); 1740throw new ArgumentNullException(nameof(documentId)); 1753throw new ArgumentNullException(nameof(documentIds)); 1766throw new ArgumentNullException(nameof(documentId)); 1779throw new ArgumentNullException(nameof(documentIds)); 1792throw new ArgumentNullException(nameof(documentId)); 1805throw new ArgumentNullException(nameof(documentIds));
Workspace\Solution\SolutionCompilationState.cs (1)
1674throw new ArgumentNullException(nameof(documentInfos));
Workspace\Solution\SolutionInfo.cs (1)
102id ?? throw new ArgumentNullException(nameof(id)),
Workspace\Solution\SolutionState.cs (3)
341throw new ArgumentNullException(nameof(projectInfo)); 347throw new ArgumentNullException(nameof(language)); 351throw new ArgumentNullException(nameof(displayName));
Workspace\Solution\TextAndVersion.cs (1)
54=> new(text ?? throw new ArgumentNullException(nameof(text)), version, filePath, loadDiagnostic: null);
Workspace\Solution\TextLoader.cs (2)
189throw new ArgumentNullException(nameof(textAndVersion)); 205throw new ArgumentNullException(nameof(container));
Workspace\TextDocumentEventArgs.cs (1)
11public TextDocument Document { get; } = document ?? throw new ArgumentNullException(nameof(document));
Workspace\Workspace.cs (2)
185throw new ArgumentNullException(nameof(solution)); 574null => throw new ArgumentNullException(nameof(value)),
Workspace\Workspace_Editor.cs (3)
219throw new ArgumentNullException(nameof(container)); 239throw new ArgumentNullException(nameof(container)); 262throw new ArgumentNullException(nameof(documentId));
Workspace\Workspace_Events.cs (1)
49throw new ArgumentNullException(nameof(newSolution));
Workspace\Workspace_Registration.cs (4)
24throw new ArgumentNullException(nameof(textContainer)); 40throw new ArgumentNullException(nameof(textContainer)); 55throw new ArgumentNullException(nameof(textContainer)); 73throw 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)
47throw new ArgumentNullException(nameof(exportProvider)); 57throw new ArgumentNullException(nameof(assemblies));
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\MSBuildProjectLoader.cs (4)
112throw new ArgumentNullException(nameof(projectFileExtension)); 117throw new ArgumentNullException(nameof(language)); 167throw new ArgumentNullException(nameof(solutionFilePath)); 266throw new ArgumentNullException(nameof(projectFilePath));
MSBuild\MSBuildWorkspace.cs (4)
85throw new ArgumentNullException(nameof(properties)); 90throw new ArgumentNullException(nameof(hostServices)); 199throw new ArgumentNullException(nameof(solutionFilePath)); 247throw new ArgumentNullException(nameof(projectFilePath));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (76)
MSBuild\ProjectFile\ProjectFileLoader.cs (1)
22throw new ArgumentNullException(nameof(path));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
368throw new ArgumentNullException(paramName);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (19)
39throw new ArgumentNullException(nameof(source)); 44throw new ArgumentNullException(nameof(action)); 105throw new ArgumentNullException(nameof(source)); 115throw new ArgumentNullException(nameof(source)); 135throw new ArgumentNullException(nameof(source1)); 140throw new ArgumentNullException(nameof(source2)); 150throw new ArgumentNullException(nameof(source1)); 155throw new ArgumentNullException(nameof(source2)); 165throw new ArgumentNullException(nameof(source)); 175throw new ArgumentNullException(nameof(source)); 211throw new ArgumentNullException(nameof(source)); 222throw new ArgumentNullException(nameof(source)); 227throw new ArgumentNullException(nameof(predicate)); 238throw new ArgumentNullException(nameof(source)); 243throw new ArgumentNullException(nameof(predicate)); 254throw new ArgumentNullException(nameof(source)); 265throw new ArgumentNullException(nameof(source)); 547throw new ArgumentNullException(nameof(source)); 613throw new ArgumentNullException(nameof(sequence));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
42throw new ArgumentNullException(nameof(many));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
36throw new ArgumentNullException(nameof(source)); 41throw new ArgumentNullException(nameof(separator));
src\Dependencies\Collections\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));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (3)
79_dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); 210throw new ArgumentNullException(nameof(keys)); 233throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (3)
43throw new ArgumentNullException(nameof(value)); 122throw new ArgumentNullException(nameof(items)); 197throw new ArgumentNullException(nameof(keys));
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
85throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
46throw new ArgumentNullException(nameof(builder));
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (2)
405throw new ArgumentNullException(nameof(items)); 429throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
90throw new ArgumentNullException(nameof(items));
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (11)
18throw new ArgumentNullException(nameof(immutableList)); 20throw new ArgumentNullException(nameof(predicate)); 34throw new ArgumentNullException(nameof(immutableList)); 42throw new ArgumentNullException(nameof(builder)); 50throw new ArgumentNullException(nameof(immutableList)); 52throw new ArgumentNullException(nameof(predicate)); 75throw new ArgumentNullException(nameof(builder)); 87throw new ArgumentNullException(nameof(immutableList)); 89throw new ArgumentNullException(nameof(predicate)); 104throw new ArgumentNullException(nameof(immutableList)); 106throw new ArgumentNullException(nameof(selector));
src\Dependencies\Collections\Internal\ICollectionDebugView`1.cs (1)
23_collection = collection ?? throw new ArgumentNullException(nameof(collection));
src\Dependencies\Collections\Internal\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));
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
155return new ArgumentNullException(GetArgumentName(argument));
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (19)
34throw new ArgumentNullException(nameof(transformer)); 75throw new ArgumentNullException(nameof(transformer)); 155throw new ArgumentNullException(nameof(transformer)); 196throw new ArgumentNullException(nameof(transformer)); 278throw new ArgumentNullException(nameof(transformer)); 321throw new ArgumentNullException(nameof(transformer)); 393throw new ArgumentNullException(nameof(valueFactory)); 397throw new ArgumentNullException(nameof(location)); 413throw new ArgumentNullException(nameof(valueFactory)); 417throw new ArgumentNullException(nameof(location)); 436throw new ArgumentNullException(nameof(location)); 461throw new ArgumentNullException(nameof(addValueFactory)); 463throw new ArgumentNullException(nameof(updateValueFactory)); 470throw new ArgumentNullException(nameof(location)); 499throw new ArgumentNullException(nameof(updateValueFactory)); 506throw new ArgumentNullException(nameof(location)); 538throw new ArgumentNullException(nameof(location)); 565throw new ArgumentNullException(nameof(location)); 592throw new ArgumentNullException(nameof(location));
src\Dependencies\Collections\SegmentedArray`1.cs (1)
351_ = 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.AsmDiff (2)
MefHelpers.cs (2)
32if (contractType == null) throw new ArgumentNullException("contractType"); 70if (exportedInstance == null) throw new ArgumentNullException("exportedInstance");
Microsoft.DotNet.Build.Tasks.Feed (1)
src\BuildModelFactory.cs (1)
141throw new ArgumentNullException(nameof(artifacts));
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetUtility.cs (1)
75throw 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 (94)
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 (8)
68Client = client ?? throw new ArgumentNullException(nameof(client)); 86throw new ArgumentNullException(nameof(body)); 96throw new ArgumentNullException(nameof(idempotencyKey)); 281throw new ArgumentNullException(nameof(job)); 356throw new ArgumentNullException(nameof(job)); 431throw new ArgumentNullException(nameof(job)); 507throw new ArgumentNullException(nameof(job)); 577throw 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 (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)
159throw new ArgumentNullException("fileVerifier");
Verification\VsixVerifier.cs (1)
41throw new ArgumentNullException(nameof(packageSignature));
Microsoft.DotNet.VersionTools (22)
Automation\GitHubAuth.cs (1)
21throw new ArgumentNullException(nameof(authToken));
Automation\GitHubBranch.cs (2)
17throw new ArgumentNullException(nameof(name)); 23throw new ArgumentNullException(nameof(project));
Automation\GitHubProject.cs (1)
17throw new ArgumentNullException(nameof(name));
Automation\GitHubVersionsRepoUpdater.cs (4)
38throw new ArgumentNullException(nameof(gitHubAuth)); 44throw new ArgumentNullException(nameof(project)); 61throw new ArgumentNullException(nameof(packagePaths)); 65throw new ArgumentNullException(nameof(versionsRepoPath));
Automation\LocalVersionsRepoUpdater.cs (1)
30throw new ArgumentNullException(nameof(packagePaths));
Automation\NupkgInfo.cs (1)
29throw new ArgumentNullException(nameof(id));
Automation\NupkgInfoFactory.cs (1)
31throw new ArgumentNullException(nameof(path));
Automation\PullRequestCreator.cs (1)
29throw new ArgumentNullException(
BuildManifest\BuildManifestChange.cs (3)
35throw new ArgumentNullException(nameof(location)); 50throw new ArgumentNullException(nameof(applyModelChanges)); 55throw new ArgumentNullException(nameof(semaphorePaths));
BuildManifest\BuildManifestLocation.cs (1)
24throw new ArgumentNullException(nameof(gitHubProject));
BuildManifest\Model\BuildModel.cs (1)
15throw new ArgumentNullException(nameof(identity));
BuildManifest\Model\OrchestratedBuildModel.cs (1)
17throw new ArgumentNullException(nameof(identity));
Dependencies\DependencyReplacement.cs (1)
18throw new ArgumentNullException(nameof(content));
Dependencies\Submodule\SubmoduleDependencyInfo.cs (3)
78throw new ArgumentNullException(nameof(repository)); 82throw new ArgumentNullException(nameof(@ref)); 86throw new ArgumentNullException(nameof(commit));
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)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestData.cs (1)
29?? throw new ArgumentNullException("schema must not be null");
Microsoft.Extensions.AI.AzureAIInference (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Integration.Tests (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.Ollama (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AI.OpenAI (3)
src\Shared\ServerSentEvents\ThrowHelper.cs (1)
16throw new ArgumentNullException(parameterName);
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AmbientMetadata.Application (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.AsyncState (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Caching.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Caching.Hybrid (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Caching.Memory (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Caching.SqlServer (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
38throw new ArgumentNullException(paramName);
Microsoft.Extensions.Compliance.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Compliance.Redaction (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Compliance.Testing (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Configuration (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.CommandLine (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.FileExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.Ini (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.Json (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
27Source = source ?? throw new ArgumentNullException(nameof(source));
Microsoft.Extensions.Configuration.UserSecrets (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Configuration.Xml (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.DependencyInjection (5)
DefaultServiceProviderFactory.cs (1)
31_options = options ?? throw new ArgumentNullException(nameof(options));
ServiceCollectionContainerBuilderExtensions.cs (2)
50throw new ArgumentNullException(nameof(services)); 54throw new ArgumentNullException(nameof(options));
ServiceLookup\CallSiteFactory.cs (1)
662throw new ArgumentNullException(nameof(serviceType));
ServiceLookup\ConstantCallSite.cs (1)
15_serviceType = serviceType ?? throw new ArgumentNullException(nameof(serviceType));
Microsoft.Extensions.DependencyInjection.Abstractions (4)
ActivatorUtilities.cs (3)
54throw new ArgumentNullException(nameof(provider)); 436return Expression.Block(Expression.IfThen(Expression.Equal(serviceProvider, Expression.Constant(null)), Expression.Throw(Expression.Constant(new ArgumentNullException(nameof(serviceProvider))))), 444throw new ArgumentNullException("serviceProvider");
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.DependencyModel (4)
CollectionExtensions.cs (3)
17throw new ArgumentNullException(nameof(runtime)); 32throw new ArgumentNullException(nameof(runtime)); 56throw new ArgumentNullException(nameof(runtime));
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Diagnostics (9)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
16_configurations = configurations ?? throw new ArgumentNullException(nameof(configurations));
Metrics\Configuration\MetricsBuilderConfigurationExtensions.cs (2)
29throw new ArgumentNullException(nameof(builder)); 34throw new ArgumentNullException(nameof(configuration));
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));
Metrics\DefaultMeterFactory.cs (1)
23throw new ArgumentNullException(nameof(options));
Metrics\MetricsServiceExtensions.cs (2)
27throw new ArgumentNullException(nameof(services)); 55throw new ArgumentNullException(nameof(configure));
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> 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)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.Probes (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Diagnostics.Testing (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.FileProviders.Composite (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.FileProviders.Physical (3)
PhysicalFilesWatcher.cs (1)
80throw new ArgumentNullException(nameof(fileSystemWatcher), SR.Error_FileSystemWatcherRequiredWithoutPolling);
src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
18throw new ArgumentNullException(nameof(callback));
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.FileSystemGlobbing (2)
InMemoryDirectoryInfo.cs (1)
35throw new ArgumentNullException(nameof(rootDir));
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (1)
58_options = options?.Value ?? throw new ArgumentNullException(nameof(options));
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Hosting.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Hosting.Systemd (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Hosting.Testing (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Hosting.WindowsServices (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Http (2)
src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
18throw new ArgumentNullException(nameof(callback));
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
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)
88throw new ArgumentNullException(nameof(policy)); 102throw new ArgumentNullException(nameof(policySelector)); 113throw new ArgumentNullException(nameof(request)); 155throw new ArgumentNullException(nameof(request)); 160throw new ArgumentNullException(nameof(context));
Microsoft.Extensions.Http.Resilience (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Identity.Core (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
38throw new ArgumentNullException(paramName);
Microsoft.Extensions.Identity.Stores (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
38throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging (2)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
StaticFilterOptionsMonitor.cs (1)
13CurrentValue = currentValue ?? throw new ArgumentNullException(nameof(currentValue));
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.AzureAppServices (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
38throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.Debug (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.EventLog (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.EventSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Logging.TraceSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw 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)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Options (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Options.ConfigurationExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
Microsoft.Extensions.Options.Contextual (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Options.DataAnnotations (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw 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)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Telemetry (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Telemetry.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
418throw new ArgumentNullException("EM1", (Exception?)null);
Microsoft.Extensions.TimeProvider.Testing (2)
src\Shared\Throw\Throw.cs (2)
309=> throw new ArgumentNullException(paramName); 321=> 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.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 (56)
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));
ImageSources\iOS\ImageAnimationHelper.cs (1)
71 throw new ArgumentNullException(nameof(image));
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));
Platform\iOS\CALayerAutosizeObserver.cs (1)
18 _ = layer ?? throw new ArgumentNullException(nameof(layer));
Platform\iOS\ContainerViewController.cs (2)
82 _ = Context ?? throw new ArgumentNullException(nameof(Context)); 83 _ = _view ?? throw new ArgumentNullException(nameof(view));
Platform\iOS\MauiWebViewNavigationDelegate.cs (1)
21 _ = handler ?? throw new ArgumentNullException(nameof(handler));
Platform\iOS\MauiWebViewUIDelegate.cs (1)
16 _ = handler ?? throw new ArgumentNullException(nameof(handler));
Platform\iOS\MauiWKWebView.cs (1)
35 _ = handler ?? throw new ArgumentNullException(nameof(handler));
Platform\iOS\MenuExtensions.cs (1)
99 throw new ArgumentNullException(nameof(title), $"{menuElements} requires title text.");
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 (205)
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));
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (3)
624 throw new ArgumentNullException(nameof(before)); 626 throw new ArgumentNullException(nameof(page)); 666 throw new ArgumentNullException(nameof(page));
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
657 throw new ArgumentNullException(nameof(popTask));
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
53 ShellSection = shellSection ?? throw new ArgumentNullException(nameof(shellSection));
Compatibility\Handlers\VisualElementRenderer.cs (2)
91 _ = mapper ?? throw new ArgumentNullException(nameof(mapper)); 265 _ = view ?? throw new ArgumentNullException(nameof(view));
Compatibility\iOS\Extensions\CellExtensions.cs (1)
13 throw new ArgumentNullException(nameof(self));
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)
44 throw new ArgumentNullException(nameof(value), "Detail cannot be set to null once a value is set."); 95 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)));
Handlers\Items\iOS\CarouselViewController.cs (1)
685 throw new ArgumentNullException(nameof(layout), "LoopManager expects a UICollectionViewFlowLayout");
Handlers\Items\iOS\TemplateHelpers.cs (1)
16 throw new ArgumentNullException(nameof(view));
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)); 741 throw new ArgumentNullException($"{nameof(page)} cannot be null."); 744 throw new ArgumentNullException($"{nameof(before)} cannot be null."); 874 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)
338 throw new ArgumentNullException(nameof(cancel));
Platform\GestureManager\GesturePlatformManager.iOS.cs (3)
39 throw new ArgumentNullException(nameof(handler)); 44 throw new ArgumentNullException(nameof(handler.PlatformView)); 54 throw new ArgumentNullException(nameof(handler.VirtualView));
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)
267 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));
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.Compatibility (27)
iOS\CollectionView\CarouselViewController.cs (1)
499 throw new ArgumentNullException(nameof(layout), "LoopManager expects a UICollectionViewFlowLayout");
iOS\CollectionView\TemplateHelpers.cs (1)
15 throw new ArgumentNullException(nameof(view));
iOS\EventTracker.cs (1)
49 throw new ArgumentNullException(nameof(renderer));
iOS\Extensions\VisualElementExtensions.cs (1)
13 throw new ArgumentNullException(nameof(self));
iOS\FormsApplicationDelegate.cs (1)
135 throw new ArgumentNullException("application");
iOS\iOSAppLinks.cs (3)
15 throw new ArgumentNullException("AppLinkUri"); 22 throw new ArgumentNullException(nameof(uri)); 29 throw new ArgumentNullException("AppLinkUri");
iOS\RendererPool.cs (4)
24 throw new ArgumentNullException("renderer"); 27 throw new ArgumentNullException("oldElement"); 36 throw new ArgumentNullException("view"); 52 throw new ArgumentNullException("newElement");
iOS\Renderers\ButtonLayoutManager.cs (1)
40 _renderer = renderer ?? throw new ArgumentNullException(nameof(renderer));
iOS\Renderers\ImageElementManager.cs (8)
147 _ = renderer ?? throw new ArgumentNullException(nameof(renderer), $"{nameof(ImageElementManager)}.{nameof(SetImage)} {nameof(renderer)} cannot be null"); 148 _ = imageElement ?? throw new ArgumentNullException(nameof(imageElement), $"{nameof(ImageElementManager)}.{nameof(SetImage)} {nameof(imageElement)} cannot be null"); 305 _ = renderer ?? throw new ArgumentNullException(nameof(renderer)); 306 _ = imageSourceProperty ?? throw new ArgumentNullException(nameof(imageSourceProperty)); 307 _ = onSet ?? throw new ArgumentNullException(nameof(onSet)); 359 _ = bindable ?? throw new ArgumentNullException(nameof(bindable)); 360 _ = imageSourceProperty ?? throw new ArgumentNullException(nameof(imageSourceProperty)); 361 _ = onSet ?? throw new ArgumentNullException(nameof(onSet));
iOS\Renderers\NavigationRenderer.cs (3)
571 throw new ArgumentNullException("before"); 573 throw new ArgumentNullException("page"); 613 throw new ArgumentNullException("page");
iOS\Renderers\WkWebViewRenderer.cs (1)
706 throw new ArgumentNullException("renderer");
iOS\VisualElementPackager.cs (1)
29 throw new ArgumentNullException(nameof(renderer));
iOS\VisualElementTracker.cs (1)
48 Renderer = renderer ?? throw new ArgumentNullException("renderer");
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)
101 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 (62)
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\BPETokenizer.cs (5)
123throw new ArgumentNullException(nameof(vocabFile)); 173throw new ArgumentNullException(nameof(vocabStream)); 209throw new ArgumentNullException(nameof(vocabStream)); 628throw new ArgumentNullException(nameof(ids)); 700throw new ArgumentNullException(nameof(ids));
Model\CodeGenTokenizer.cs (8)
64this(vocabularyPath is null ? throw new ArgumentNullException(nameof(vocabularyPath)) : File.OpenRead(vocabularyPath), 65mergePath is null ? throw new ArgumentNullException(nameof(mergePath)) : File.OpenRead(mergePath), 105throw new ArgumentNullException(nameof(vocabularyStream)); 110throw new ArgumentNullException(nameof(mergeStream)); 1247throw new ArgumentNullException(nameof(ids)); 1348throw new ArgumentNullException(nameof(ids)); 1886throw new ArgumentNullException(nameof(vocabStream)); 1891throw 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\SentencePieceTokenizer.cs (3)
40this(modelProto is null ? throw new ArgumentNullException(nameof(modelProto)) : modelProto, specialTokens) 1543throw new ArgumentNullException(nameof(ids)); 1792throw new ArgumentNullException(nameof(ids));
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)); 1309throw new ArgumentNullException(nameof(vocabStream)); 1341throw new ArgumentNullException(nameof(vocabFilePath)); 1366throw new ArgumentNullException(nameof(modelName)); 1406throw new ArgumentNullException(nameof(modelName)); 1447throw 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\RegexPreTokenizer.cs (1)
31throw new ArgumentNullException(nameof(regex));
Tokenizer.cs (1)
368throw new ArgumentNullException(nameof(ids));
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 (2)
src\Common\tests\RetryHelper.cs (2)
33throw new ArgumentNullException(nameof(test)); 83throw new ArgumentNullException(nameof(test));
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)); 186throw 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 (43)
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)
63_title = title ?? throw new ArgumentNullException(nameof(title)); 64_helpString = helpString ?? throw new ArgumentNullException(nameof(helpString)); 65_description = description ?? throw new ArgumentNullException(nameof(description));
Progression\GraphNodeCreation.cs (5)
25throw new ArgumentNullException(nameof(symbol)); 30throw new ArgumentNullException(nameof(solution)); 66throw new ArgumentNullException(nameof(graph)); 71throw new ArgumentNullException(nameof(symbol)); 76throw new ArgumentNullException(nameof(solution));
ProjectSystem\VisualStudioWorkspaceImpl.cs (20)
293throw new ArgumentNullException(nameof(documentId)); 486throw new ArgumentNullException(nameof(projectId)); 491throw new ArgumentNullException(nameof(options)); 504throw new ArgumentNullException(nameof(projectId)); 509throw new ArgumentNullException(nameof(options)); 521throw new ArgumentNullException(nameof(projectId)); 526throw new ArgumentNullException(nameof(analyzerReference)); 543throw new ArgumentNullException(nameof(projectId)); 548throw new ArgumentNullException(nameof(analyzerReference)); 576throw new ArgumentNullException(nameof(projectId)); 581throw new ArgumentNullException(nameof(metadataReference)); 602throw new ArgumentNullException(nameof(projectId)); 607throw new ArgumentNullException(nameof(metadataReference)); 695throw new ArgumentNullException(nameof(projectId)); 700throw new ArgumentNullException(nameof(projectReference)); 735throw new ArgumentNullException(nameof(projectId)); 740throw new ArgumentNullException(nameof(projectReference)); 1005throw new ArgumentNullException(nameof(documentId)); 1081throw new ArgumentNullException(nameof(documentId)); 1165throw new ArgumentNullException(nameof(documentId));
ValueTracking\ValueTrackingToolWindow.cs (1)
40throw new ArgumentNullException(nameof(value));
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (2)
33throw new ArgumentNullException(nameof(projectId)); 38throw new ArgumentNullException(nameof(assemblyIdentity));
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (4)
39symbol ?? throw new ArgumentNullException(nameof(symbol)), 40newName ?? throw new ArgumentNullException(nameof(newName)), 41startingSolution ?? throw new ArgumentNullException(nameof(startingSolution)), 42updatedSolution ?? 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)
38throw 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 (4)
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);
Immutable\ImmutableDictionary.cs (1)
114throw new ArgumentNullException(nameof(array));
PresentationBuildTasks (37)
MS\Internal\MarkupCompiler\PathInternal.cs (2)
30throw new ArgumentNullException(nameof(relativeTo)); 36throw new ArgumentNullException(nameof(path));
MS\Internal\Tasks\TaskFileService.cs (8)
127throw new ArgumentNullException(nameof(srcFile)); 218throw new ArgumentNullException(nameof(srcFile)); 244throw new ArgumentNullException(nameof(fileName)); 266throw new ArgumentNullException(nameof(fileName)); 288throw new ArgumentNullException(nameof(destinationFile)); 293throw new ArgumentNullException(nameof(contentArray)); 332throw new ArgumentNullException(nameof(destinationFileBaseName)); 337throw new ArgumentNullException(nameof(contentArray));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
421throw new ArgumentNullException( nameof(parserContext));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlBrushSerializer.cs (1)
98throw new ArgumentNullException(nameof(writer));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlNodes.cs (4)
432throw new ArgumentNullException(nameof(typeFullName)); 436throw new ArgumentNullException(nameof(propertyName)); 2211throw new ArgumentNullException(nameof(typeFullName)); 2215throw new ArgumentNullException(nameof(propertyName));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (11)
75throw new ArgumentNullException( nameof(assemblyNames)); 106throw new ArgumentNullException( nameof(xmlNamespace)); 110throw new ArgumentNullException( nameof(localName)); 183throw new ArgumentNullException(nameof(assemblyName)); 187throw new ArgumentNullException(nameof(assemblyPath)); 4231throw new ArgumentNullException(nameof(xmlNamespace)); 4234throw new ArgumentNullException(nameof(assemblyName)); 4237throw new ArgumentNullException(nameof(clrNamespace)); 4275throw new ArgumentNullException(nameof(value)); 4294throw new ArgumentNullException(nameof(value)); 4313throw new ArgumentNullException(nameof(value));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (5)
338throw new ArgumentNullException( nameof(prefix)); 610throw new ArgumentNullException(nameof(xmlNamespace)); 613throw new ArgumentNullException(nameof(prefix)); 660throw new ArgumentNullException(nameof(xmlNamespace)); 665throw new ArgumentNullException(nameof(prefix));
src\Microsoft.DotNet.Wpf\src\WindowsBase\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
263throw new ArgumentNullException(testStringIdentifier);
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\FormatVersion.cs (4)
68throw new ArgumentNullException(nameof(featureId)); 70throw new ArgumentNullException(nameof(writerVersion)); 72throw new ArgumentNullException(nameof(readerVersion)); 74throw new ArgumentNullException(nameof(updaterVersion));
PresentationCore (68)
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (2)
363throw new ArgumentNullException(StrokeCollectionSerializer.ISFDebugMessage("input or compressed data was null in Compress")); 411throw new ArgumentNullException(StrokeCollectionSerializer.ISFDebugMessage("reader or compressedData was null in compress"));
MS\Internal\Media\VisualTreeUtils.cs (1)
211throw new ArgumentNullException(nameof(element));
MS\Internal\TextFormatting\FullTextLine.cs (1)
712throw new ArgumentNullException(nameof(collapsingPropertiesList));
MS\Internal\TextFormatting\TextFormatterImp.cs (2)
452throw new ArgumentNullException("paragraphProperties.DefaultTextRunProperties"); 455throw new ArgumentNullException("paragraphProperties.DefaultTextRunProperties.Typeface");
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (1)
381throw new ArgumentNullException(nameof(characterString));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (4)
91throw new ArgumentNullException(nameof(key)); 95throw new ArgumentNullException(nameof(resource)); 156throw new ArgumentNullException(nameof(key)); 192throw new ArgumentNullException(nameof(key));
System\Windows\DragDrop.cs (1)
894throw new ArgumentNullException(nameof(handle));
System\Windows\Ink\DrawingAttributes.cs (2)
591throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 620throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\Events.cs (1)
159throw new ArgumentNullException(nameof(oldProperty));
System\Windows\Ink\Stroke.cs (5)
587throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 618throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 633throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 650throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 668throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\StrokeCollection.cs (5)
449throw new ArgumentNullException(SR.EmptyScToReplace); 466throw new ArgumentNullException(SR.EmptyScToReplace); 470throw new ArgumentNullException(SR.EmptyScToReplaceWith); 618throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 675throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\StrokeCollection2.cs (2)
319throw new System.ArgumentNullException(SR.SCEraseShape); 323throw new System.ArgumentNullException(SR.SCErasePath);
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (2)
39throw new ArgumentNullException(nameof(plugIn), SR.Stylus_PlugInIsNull); 172throw new ArgumentNullException(nameof(plugIn), SR.Stylus_PlugInIsNull);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
291throw new ArgumentNullException("stylusPointDescription");
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
112throw new ArgumentNullException("stylusPointPropertyInfo");
System\Windows\InterOp\Imaging.cs (3)
55throw new ArgumentNullException(nameof(bitmap)); 78throw new ArgumentNullException(nameof(icon)); 107throw new ArgumentNullException(nameof(section));
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "BooleanKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ByteKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "CharKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ColorKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "DecimalKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "DoubleKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int16KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int32KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Int64KeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "MatrixKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "ObjectKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Point3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "PointKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "QuaternionKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "RectKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Rotation3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "SingleKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "SizeKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "StringKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
949throw new ArgumentNullException(nameof(collection));
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "Vector3DKeyFrameCollection[{0}]", index));
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
467throw new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "VectorKeyFrameCollection[{0}]", index));
System\Windows\Media\ColorTransformHelper.cs (2)
60throw new ArgumentNullException(nameof(sourceProfile)); 65throw new ArgumentNullException(nameof(destinationProfile));
System\Windows\Media\Fonts.cs (1)
103throw new ArgumentNullException(nameof(baseUri), SR.Format(SR.NullBaseUriParam, "baseUri", "location"));
System\Windows\Media\FormattedText.cs (1)
1282throw new ArgumentNullException(nameof(maxTextWidths));
System\Windows\Media\Generated\TextEffectCollection.cs (1)
936throw new ArgumentNullException(nameof(collection));
System\Windows\Media\Imaging\BitmapSource.cs (1)
714throw new ArgumentNullException(nameof(buffer));
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
840throw new ArgumentNullException(backwardsCompat ? "buffer" : "sourceBuffer"); 1055throw new ArgumentNullException(backwardsCompat ? "pixels" : "sourceBuffer");
System\Windows\Media\textformatting\TextCharacters.cs (3)
115throw new ArgumentNullException("textRunProperties.Typeface"); 120throw new ArgumentNullException("textRunProperties.CultureInfo"); 187throw new ArgumentNullException("characterBufferReference.CharacterBuffer");
System\Windows\Media\textformatting\TextEndOfLine.cs (1)
47throw new ArgumentNullException("textRunProperties.Typeface");
PresentationFramework (68)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
45throw new ArgumentNullException("annotation component");
MS\Internal\AppModel\ResourcePart.cs (1)
31throw new ArgumentNullException(nameof(rmWrapper));
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
41throw new ArgumentNullException(nameof(thisPtr));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
233throw new ArgumentNullException("anchorLocator.Parts");
System\Windows\Condition.cs (1)
278throw new ArgumentNullException(nameof(targetObject));
System\Windows\Controls\DataGridColumnCollection.cs (2)
41throw new ArgumentNullException(nameof(item), SR.DataGrid_NullColumn); 62throw new ArgumentNullException(nameof(item), SR.DataGrid_NullColumn);
System\Windows\Controls\TextRangeAdaptor.cs (1)
1656throw new ArgumentNullException(nameof(attributeId));
System\Windows\Controls\UIElementCollection.cs (2)
37throw new ArgumentNullException(SR.Format(SR.Panel_NoNullVisualParent, "visualParent", this.GetType())); 516throw new ArgumentNullException(SR.Format(SR.Panel_NoNullChildren, this.GetType()));
System\Windows\Controls\WebBrowser.cs (2)
171throw new ArgumentNullException(nameof(text)); 258throw new ArgumentNullException(nameof(scriptName));
System\Windows\ControlTemplate.cs (1)
133throw new ArgumentNullException(argName);
System\Windows\Data\BindingListCollectionView.cs (1)
1150throw new ArgumentNullException(nameof(value));
System\Windows\Data\ListCollectionView.cs (3)
1393throw new ArgumentNullException(nameof(value)); 1417throw new ArgumentNullException(nameof(value)); 1441throw new ArgumentNullException(nameof(value));
System\Windows\Documents\ValidationHelper.cs (2)
40throw new ArgumentNullException(paramName); 103throw new ArgumentNullException(paramName);
System\Windows\Documents\WpfPayload.cs (1)
485throw new ArgumentNullException("image.Source");
System\Windows\Markup\ParserContext.cs (2)
94throw new ArgumentNullException( nameof(xmlParserContext)); 421throw new ArgumentNullException( nameof(parserContext));
System\Windows\Markup\XamlNodes.cs (4)
432throw new ArgumentNullException(nameof(typeFullName)); 436throw new ArgumentNullException(nameof(propertyName)); 2211throw new ArgumentNullException(nameof(typeFullName)); 2215throw new ArgumentNullException(nameof(propertyName));
System\Windows\Markup\XamlTypeMapper.cs (20)
56throw new ArgumentNullException( nameof(assemblyNames)); 75throw new ArgumentNullException( nameof(assemblyNames)); 106throw new ArgumentNullException( nameof(xmlNamespace)); 110throw new ArgumentNullException( nameof(localName)); 140throw new ArgumentNullException(nameof(xmlNamespace)); 144throw new ArgumentNullException(nameof(clrNamespace)); 148throw new ArgumentNullException(nameof(assemblyName)); 183throw new ArgumentNullException(nameof(assemblyName)); 187throw new ArgumentNullException(nameof(assemblyPath)); 448throw new ArgumentNullException( nameof(localName)); 452throw new ArgumentNullException( nameof(xmlNamespace)); 1786throw new ArgumentNullException( nameof(ownerType)); 2156throw new ArgumentNullException( nameof(element)); 2160throw new ArgumentNullException( nameof(typeName)); 4231throw new ArgumentNullException(nameof(xmlNamespace)); 4234throw new ArgumentNullException(nameof(assemblyName)); 4237throw new ArgumentNullException(nameof(clrNamespace)); 4275throw new ArgumentNullException(nameof(value)); 4294throw new ArgumentNullException(nameof(value)); 4313throw new ArgumentNullException(nameof(value));
System\Windows\Markup\XmlAttributeProperties.cs (8)
186throw new ArgumentNullException( nameof(dependencyObject)); 199throw new ArgumentNullException( nameof(dependencyObject)); 220throw new ArgumentNullException( nameof(dependencyObject)); 233throw new ArgumentNullException( nameof(dependencyObject)); 258throw new ArgumentNullException( nameof(dependencyObject)); 271throw new ArgumentNullException( nameof(dependencyObject)); 295throw new ArgumentNullException( nameof(dependencyObject)); 311throw new ArgumentNullException( nameof(dependencyObject));
System\Windows\Markup\XmlnsDictionary.cs (7)
97throw new ArgumentNullException( nameof(xmlnsDictionary)); 338throw new ArgumentNullException( nameof(prefix)); 369throw new ArgumentNullException( nameof(xmlNamespace)); 610throw new ArgumentNullException(nameof(xmlNamespace)); 613throw new ArgumentNullException(nameof(prefix)); 660throw new ArgumentNullException(nameof(xmlNamespace)); 665throw 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)
250throw new ArgumentNullException(nameof(targetObject));
System\Windows\Standard\Verify.cs (3)
63throw new ArgumentNullException(name, errorMessage); 87throw new ArgumentNullException(name, errorMessage); 117throw new ArgumentNullException(name);
System\Windows\TemplateKey.cs (1)
160result = new ArgumentNullException(argName);
System\Windows\Trigger.cs (1)
286throw new ArgumentNullException(nameof(targetObject));
ReachFramework (1)
Serialization\Manager\XpsPackagingPolicy.cs (1)
1333throw new ArgumentNullException("CurrentFixedPageWriter");
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)
309=> throw new ArgumentNullException(paramName); 321=> throw new ArgumentNullException(paramName, message);
Shared.Tests (1)
JsonSchemaExporter\TestData.cs (1)
29?? throw new ArgumentNullException("schema must not be null");
System.CodeDom (96)
Microsoft\CSharp\CSharpCodeGenerator.cs (19)
536throw new ArgumentNullException(nameof(e)); 1238throw new ArgumentNullException(nameof(e)); 2700throw new ArgumentNullException(nameof(name)); 2720throw new ArgumentNullException(nameof(name)); 2907throw new ArgumentNullException(nameof(options)); 2924throw new ArgumentNullException(nameof(options)); 2941throw new ArgumentNullException(nameof(options)); 2958throw new ArgumentNullException(nameof(options)); 2975throw new ArgumentNullException(nameof(options)); 2979throw new ArgumentNullException(nameof(fileNames)); 3003throw new ArgumentNullException(nameof(options)); 3020throw new ArgumentNullException(nameof(options)); 3031throw new ArgumentNullException(nameof(options)); 3035throw new ArgumentNullException(nameof(fileName)); 3049throw new ArgumentNullException(nameof(options)); 3059throw new ArgumentNullException(nameof(options)); 3063throw new ArgumentNullException(nameof(ea)); 3106throw new ArgumentNullException(nameof(options)); 3110throw new ArgumentNullException(nameof(sources));
Microsoft\CSharp\CSharpCodeProvider.cs (1)
27throw new ArgumentNullException(nameof(providerOptions));
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
41throw new ArgumentNullException(nameof(destinationType));
Microsoft\VisualBasic\VBCodeProvider.cs (1)
27throw new ArgumentNullException(nameof(providerOptions));
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
41throw new ArgumentNullException(nameof(destinationType));
System\CodeDom\CodeAttributeArgumentCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeAttributeDeclarationCollection.cs (2)
36throw new ArgumentNullException(nameof(value)); 49throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeCatchClauseCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeCommentStatementCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeDirectiveCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeExpressionCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeGotoStatement.cs (1)
24throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeNamespaceCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeNamespaceImportCollection.cs (1)
43throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeParameterDeclarationExpressionCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeStatementCollection.cs (2)
36throw new ArgumentNullException(nameof(value)); 49throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeTypeDeclarationCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeTypeMemberCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\CodeTypeParameterCollection.cs (2)
36throw new ArgumentNullException(nameof(value)); 49throw new ArgumentNullException(nameof(value));
System\CodeDom\Compiler\CodeCompiler.cs (17)
15throw new ArgumentNullException(nameof(options)); 32throw new ArgumentNullException(nameof(options)); 49throw new ArgumentNullException(nameof(options)); 66throw new ArgumentNullException(nameof(options)); 83throw new ArgumentNullException(nameof(options)); 87throw new ArgumentNullException(nameof(fileNames)); 110throw new ArgumentNullException(nameof(options)); 131throw new ArgumentNullException(nameof(options)); 141throw new ArgumentNullException(nameof(options)); 145throw new ArgumentNullException(nameof(fileName)); 158throw new ArgumentNullException(nameof(options)); 168throw new ArgumentNullException(nameof(options)); 172throw new ArgumentNullException(nameof(ea)); 215throw new ArgumentNullException(nameof(options)); 219throw new ArgumentNullException(nameof(fileNames)); 247throw new ArgumentNullException(nameof(options)); 251throw new ArgumentNullException(nameof(sources));
System\CodeDom\Compiler\CodeDomProvider.cs (2)
93throw new ArgumentNullException(nameof(language)); 105throw new ArgumentNullException(nameof(extension));
System\CodeDom\Compiler\CodeGenerator.cs (22)
239throw new ArgumentNullException(nameof(e)); 405throw new ArgumentNullException(nameof(member)); 615throw new ArgumentNullException(nameof(e)); 718throw new ArgumentNullException(nameof(e)); 808throw new ArgumentNullException(nameof(e)); 825throw new ArgumentNullException(nameof(e)); 882throw new ArgumentNullException(nameof(e)); 979throw new ArgumentNullException(nameof(stmts)); 992throw new ArgumentNullException(nameof(attributes)); 1040throw new ArgumentNullException(nameof(arg)); 1296throw new ArgumentNullException(nameof(parameters)); 1334throw new ArgumentNullException(nameof(e)); 1390throw new ArgumentNullException(nameof(e)); 1407throw new ArgumentNullException(nameof(e)); 1418throw new ArgumentNullException(nameof(e)); 1498throw new ArgumentNullException(nameof(e)); 1508throw new ArgumentNullException(nameof(e)); 1523throw new ArgumentNullException(nameof(e)); 1537throw new ArgumentNullException(nameof(e)); 1560throw new ArgumentNullException(nameof(e)); 1584throw new ArgumentNullException(nameof(e)); 1597throw new ArgumentNullException(nameof(e));
System\CodeDom\Compiler\CodeValidator.cs (3)
58throw new ArgumentNullException(nameof(e)); 397throw new ArgumentNullException(nameof(e)); 775throw new ArgumentNullException(nameof(e));
System\CodeDom\Compiler\CompilerErrorCollection.cs (2)
34throw new ArgumentNullException(nameof(value)); 47throw new ArgumentNullException(nameof(value));
System\CodeDom\Compiler\CompilerInfo.cs (1)
67throw new ArgumentNullException(nameof(providerOptions));
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)
26throw 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)
149throw new ArgumentNullException(nameof(value));
System.ComponentModel.Composition (10)
Microsoft\Internal\Requires.cs (1)
109throw new ArgumentNullException(parameterName);
System\ComponentModel\Composition\CatalogReflectionContextAttribute.cs (1)
29throw new ArgumentNullException(nameof(_reflectionContextType));
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
99throw new ArgumentNullException(nameof(partDefinitionType));
System\ComponentModel\Composition\ExportServices.cs (2)
61throw new ArgumentNullException(nameof(genericMethod)); 74throw new ArgumentNullException(nameof(genericMethod));
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (2)
514throw new ArgumentNullException(nameof(part)); 519throw new ArgumentNullException(nameof(export));
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
114throw new ArgumentNullException(nameof(_membersTable)); 125throw new ArgumentNullException(nameof(_parametersTable));
System\ComponentModel\Composition\ReflectionModel\ReflectionExtensions.cs (1)
109throw new ArgumentNullException(nameof(method));
System.ComponentModel.Composition.Registration (32)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (12)
40throw new ArgumentNullException(nameof(type)); 44throw new ArgumentNullException(nameof(member)); 59throw new ArgumentNullException(nameof(type)); 63throw new ArgumentNullException(nameof(member)); 78throw new ArgumentNullException(nameof(type)); 82throw new ArgumentNullException(nameof(member)); 97throw new ArgumentNullException(nameof(type)); 112throw new ArgumentNullException(nameof(type)); 116throw new ArgumentNullException(nameof(member)); 131throw new ArgumentNullException(nameof(type)); 146throw new ArgumentNullException(nameof(parameter)); 150throw new ArgumentNullException(nameof(constructor));
System\ComponentModel\Composition\Registration\PartBuilder.cs (9)
104throw new ArgumentNullException(nameof(interfaceFilter)); 117throw new ArgumentNullException(nameof(propertyFilter)); 128throw new ArgumentNullException(nameof(propertyFilter)); 141throw new ArgumentNullException(nameof(propertyFilter)); 152throw new ArgumentNullException(nameof(propertyFilter)); 165throw new ArgumentNullException(nameof(propertyFilter)); 176throw new ArgumentNullException(nameof(propertyFilter)); 188throw new ArgumentNullException(nameof(propertyFilter)); 199throw new ArgumentNullException(nameof(propertyFilter));
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (7)
46throw new ArgumentNullException(nameof(propertyFilter)); 101throw new ArgumentNullException(nameof(constructorFilter)); 158throw new ArgumentNullException(nameof(constructorFilter)); 179throw new ArgumentNullException(nameof(propertyFilter)); 198throw new ArgumentNullException(nameof(propertyFilter)); 217throw new ArgumentNullException(nameof(propertyFilter)); 236throw new ArgumentNullException(nameof(propertyFilter));
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (4)
45throw new ArgumentNullException(nameof(type)); 66throw new ArgumentNullException(nameof(type)); 79throw new ArgumentNullException(nameof(typeFilter)); 92throw new ArgumentNullException(nameof(typeFilter));
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.Convention (61)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (12)
40throw new ArgumentNullException(nameof(type)); 44throw new ArgumentNullException(nameof(member)); 59throw new ArgumentNullException(nameof(type)); 63throw new ArgumentNullException(nameof(member)); 78throw new ArgumentNullException(nameof(type)); 82throw new ArgumentNullException(nameof(member)); 97throw new ArgumentNullException(nameof(type)); 112throw new ArgumentNullException(nameof(type)); 116throw new ArgumentNullException(nameof(member)); 131throw new ArgumentNullException(nameof(type)); 146throw new ArgumentNullException(nameof(parameter)); 150throw new ArgumentNullException(nameof(constructor));
System\Composition\Convention\ConventionBuilder.cs (6)
52throw new ArgumentNullException(nameof(type)); 81throw new ArgumentNullException(nameof(type)); 100throw new ArgumentNullException(nameof(typeFilter)); 118throw new ArgumentNullException(nameof(typeFilter)); 163throw new ArgumentNullException(nameof(member)); 303throw new ArgumentNullException(nameof(parameter));
System\Composition\Convention\ExportConventionBuilder.cs (6)
45throw new ArgumentNullException(nameof(type)); 61throw new ArgumentNullException(nameof(contractName)); 81throw new ArgumentNullException(nameof(getContractNameFromPartType)); 98throw new ArgumentNullException(nameof(name)); 121throw new ArgumentNullException(nameof(name)); 125throw new ArgumentNullException(nameof(getValueFromPartType));
System\Composition\Convention\ImportConventionBuilder.cs (5)
35throw new ArgumentNullException(nameof(contractName)); 55throw new ArgumentNullException(nameof(getContractNameFromPartType)); 103throw new ArgumentNullException(nameof(name)); 126throw new ArgumentNullException(nameof(name)); 130throw new ArgumentNullException(nameof(getConstraintValueFromPartType));
System\Composition\Convention\PartConventionBuilder.cs (23)
70throw new ArgumentNullException(nameof(exportConfiguration)); 99throw new ArgumentNullException(nameof(exportConfiguration)); 117throw new ArgumentNullException(nameof(constructorSelector)); 135throw new ArgumentNullException(nameof(importConfiguration)); 152throw new ArgumentNullException(nameof(interfaceFilter)); 178throw new ArgumentNullException(nameof(interfaceFilter)); 182throw new ArgumentNullException(nameof(exportConfiguration)); 204throw new ArgumentNullException(nameof(propertyFilter)); 221throw new ArgumentNullException(nameof(propertyFilter)); 225throw new ArgumentNullException(nameof(exportConfiguration)); 248throw new ArgumentNullException(nameof(propertyFilter)); 266throw new ArgumentNullException(nameof(propertyFilter)); 270throw new ArgumentNullException(nameof(exportConfiguration)); 292throw new ArgumentNullException(nameof(propertyFilter)); 309throw new ArgumentNullException(nameof(propertyFilter)); 313throw new ArgumentNullException(nameof(importConfiguration)); 336throw new ArgumentNullException(nameof(propertyFilter)); 354throw new ArgumentNullException(nameof(propertyFilter)); 358throw new ArgumentNullException(nameof(importConfiguration)); 400throw new ArgumentNullException(nameof(sharingBoundary)); 428throw new ArgumentNullException(nameof(name)); 451throw new ArgumentNullException(nameof(name)); 455throw new ArgumentNullException(nameof(getValueFromPartType));
System\Composition\Convention\PartConventionBuilderOfT.cs (9)
34throw new ArgumentNullException(nameof(methodSelector)); 105throw new ArgumentNullException(nameof(propertySelector)); 164throw new ArgumentNullException(nameof(constructorSelector)); 222throw new ArgumentNullException(nameof(constructorSelector)); 252throw new ArgumentNullException(nameof(propertySelector)); 285throw new ArgumentNullException(nameof(propertySelector)); 315throw new ArgumentNullException(nameof(propertySelector)); 347throw new ArgumentNullException(nameof(propertySelector)); 363throw new ArgumentNullException(nameof(methodSelector));
System.Composition.Hosting (19)
System\Composition\Hosting\CompositionHost.cs (1)
48throw new ArgumentNullException(nameof(providers));
System\Composition\Hosting\Core\CompositionDependency.cs (8)
44throw new ArgumentNullException(nameof(contract)); 48throw new ArgumentNullException(nameof(target)); 52throw new ArgumentNullException(nameof(site)); 69throw new ArgumentNullException(nameof(contract)); 73throw new ArgumentNullException(nameof(site)); 91throw new ArgumentNullException(nameof(contract)); 95throw new ArgumentNullException(nameof(targets)); 99throw new ArgumentNullException(nameof(site));
System\Composition\Hosting\Core\CompositionOperation.cs (4)
35throw new ArgumentNullException(nameof(outermostLifetimeContext)); 39throw new ArgumentNullException(nameof(compositionRootActivator)); 59throw new ArgumentNullException(nameof(action)); 76throw new ArgumentNullException(nameof(action));
System\Composition\Hosting\Core\DirectExportDescriptor.cs (2)
17throw new ArgumentNullException(nameof(activator)); 21throw new ArgumentNullException(nameof(metadata));
System\Composition\Hosting\Core\ExportDescriptorPromise.cs (1)
87throw new ArgumentNullException("descriptor");
System\Composition\Hosting\Util\Formatters.cs (3)
15throw new ArgumentNullException(nameof(items)); 26throw new ArgumentNullException(nameof(type)); 40throw new ArgumentNullException(nameof(closedGenericType));
System.Composition.Runtime (6)
System\Composition\ExportFactoryOfT.cs (1)
20_exportLifetimeContextCreator = exportCreator ?? throw new ArgumentNullException(nameof(exportCreator));
System\Composition\Hosting\Core\CompositionContract.cs (3)
47if (contractType == null) throw new ArgumentNullException(nameof(contractType)); 127if (newContractType == null) throw new ArgumentNullException(nameof(newContractType)); 145throw new ArgumentNullException(nameof(constraintName));
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 (19)
System\Composition\CompositionContextExtensions.cs (3)
49throw new ArgumentNullException(nameof(exportProvider)); 53throw new ArgumentNullException(nameof(objectWithLooseImports)); 57throw new ArgumentNullException(nameof(conventions));
System\Composition\Hosting\ContainerConfiguration.cs (11)
54throw new ArgumentNullException(nameof(exportDescriptorProvider)); 72throw new ArgumentNullException(nameof(conventions)); 102if (partType == null) throw new ArgumentNullException(nameof(partType)); 162throw new ArgumentNullException(nameof(partTypes)); 214throw new ArgumentNullException(nameof(assemblies)); 230throw new ArgumentNullException(nameof(exportedInstance)); 248throw new ArgumentNullException(nameof(exportedInstance)); 264throw new ArgumentNullException(nameof(contractType)); 268throw new ArgumentNullException(nameof(exportedInstance)); 286throw new ArgumentNullException(nameof(contractType)); 290throw new ArgumentNullException(nameof(exportedInstance));
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
26throw new ArgumentNullException(nameof(attributeContext));
System\Composition\TypedParts\Util\DirectAttributeContext.cs (4)
14if (reflectedType == null) throw new ArgumentNullException(nameof(reflectedType)); 15if (member == null) throw new ArgumentNullException(nameof(member)); 27throw new ArgumentNullException(nameof(parameter)); 30if (reflectedType == null) throw new ArgumentNullException(nameof(reflectedType));
System.Configuration.ConfigurationManager (22)
System\Configuration\ApplicationSettingsBase.cs (1)
61throw new ArgumentNullException(nameof(owner));
System\Configuration\AppSettingsReader.cs (2)
35throw new ArgumentNullException(nameof(key)); 39throw new ArgumentNullException(nameof(type));
System\Configuration\CallbackValidator.cs (2)
13if (type == null) throw new ArgumentNullException(nameof(type)); 22throw new ArgumentNullException(nameof(callback));
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\ConfigurationElementCollection.cs (1)
36throw new ArgumentNullException(nameof(comparer));
System\Configuration\ConfigurationElementProperty.cs (1)
16throw new ArgumentNullException(nameof(validator));
System\Configuration\ConfigurationFileMap.cs (1)
28throw new ArgumentNullException(nameof(machineConfigFilename));
System\Configuration\ConfigurationSectionCollection.cs (1)
68throw new ArgumentNullException(nameof(array));
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
72throw new ArgumentNullException(nameof(array));
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\PositiveTimeSpanValidator.cs (1)
17throw new ArgumentNullException(nameof(value));
System\Configuration\PropertyInformationCollection.cs (1)
46throw new ArgumentNullException(nameof(array));
System\Configuration\ProtectedConfigurationProviderCollection.cs (1)
16throw new ArgumentNullException(nameof(provider));
System\Configuration\Provider\ProviderBase.cs (1)
29throw new ArgumentNullException(nameof(name));
System\Configuration\Provider\ProviderCollection.cs (1)
42throw new ArgumentNullException(nameof(provider));
System\Configuration\SettingsProviderCollection.cs (1)
14throw 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 (27)
System\Diagnostics\Activity.cs (2)
187set => _displayName = value ?? throw new ArgumentNullException(nameof(value)); 556throw new ArgumentNullException(nameof(exception));
System\Diagnostics\ActivityContext.cs (1)
101throw new ArgumentNullException(nameof(traceParent));
System\Diagnostics\ActivitySource.cs (2)
39Name = name ?? throw new ArgumentNullException(nameof(name)); 340throw new ArgumentNullException(nameof(listener));
System\Diagnostics\ActivityTagsCollection.cs (5)
41throw new ArgumentNullException(nameof(list)); 73throw new ArgumentNullException(nameof(key)); 149throw new ArgumentNullException(nameof(key)); 169throw new ArgumentNullException(nameof(item)); 226throw new ArgumentNullException(nameof(key));
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\InstrumentAdvice.cs (1)
43throw new ArgumentNullException(nameof(value));
System\Diagnostics\Metrics\Meter.cs (2)
37throw new ArgumentNullException(nameof(options)); 80Name = name ?? throw new ArgumentNullException(nameof(name));
System\Diagnostics\Metrics\MeterFactoryExtensions.cs (1)
26throw new ArgumentNullException(nameof(meterFactory));
System\Diagnostics\Metrics\MeterOptions.cs (1)
25throw 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.Formats.Asn1 (8)
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\Formats\Asn1\AsnWriter.cs (1)
235throw new ArgumentNullException(nameof(encodeCallback));
System\Formats\Asn1\AsnWriter.Enumerated.cs (1)
37throw new ArgumentNullException(nameof(value));
System\Formats\Asn1\AsnWriter.NamedBitList.cs (2)
39throw new ArgumentNullException(nameof(value)); 101throw new ArgumentNullException(nameof(value));
System\Formats\Asn1\AsnWriter.Oid.cs (1)
36throw new ArgumentNullException(nameof(oidValue));
System\Formats\Asn1\AsnWriter.Text.cs (1)
43throw new ArgumentNullException(nameof(value));
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
29throw new ArgumentNullException(nameof(value)); 113throw new ArgumentNullException(nameof(value));
System.IO.Hashing (9)
System\IO\Hashing\Crc32.cs (1)
98throw new ArgumentNullException(nameof(source));
System\IO\Hashing\Crc64.cs (1)
96throw new ArgumentNullException(nameof(source));
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (3)
89throw new ArgumentNullException(nameof(source)); 108throw new ArgumentNullException(nameof(stream)); 134throw new ArgumentNullException(nameof(stream));
System\IO\Hashing\XxHash32.cs (2)
149throw new ArgumentNullException(nameof(source)); 168throw new ArgumentNullException(nameof(source));
System\IO\Hashing\XxHash64.cs (2)
149throw new ArgumentNullException(nameof(source)); 168throw new ArgumentNullException(nameof(source));
System.IO.Packaging (39)
System\IO\Packaging\ContentType.cs (1)
77throw new ArgumentNullException(nameof(contentType));
System\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
22_stream = stream ?? throw new ArgumentNullException(nameof(stream));
System\IO\Packaging\InternalRelationshipCollection.cs (2)
394throw new ArgumentNullException(nameof(targetUri)); 398throw new ArgumentNullException(nameof(relationshipType));
System\IO\Packaging\Package.cs (10)
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)); 859throw new ArgumentNullException(nameof(path)); 923throw new ArgumentNullException(nameof(stream)); 1146throw new ArgumentNullException(nameof(partUri)); 1185throw new ArgumentNullException(nameof(id));
System\IO\Packaging\PackagePart.cs (5)
103throw new ArgumentNullException(nameof(package)); 107throw new ArgumentNullException(nameof(partUri)); 434throw new ArgumentNullException(nameof(id)); 478throw new ArgumentNullException(nameof(relationshipType)); 749throw new ArgumentNullException(nameof(id));
System\IO\Packaging\PackageRelationship.cs (4)
117throw new ArgumentNullException(nameof(package)); 121throw new ArgumentNullException(nameof(targetUri)); 125throw new ArgumentNullException(nameof(relationshipType)); 129throw new ArgumentNullException(nameof(id));
System\IO\Packaging\PackageRelationshipSelector.cs (3)
35throw new ArgumentNullException(nameof(sourceUri)); 39throw new ArgumentNullException(nameof(selectionCriteria)); 119throw new ArgumentNullException(nameof(package));
System\IO\Packaging\PackUriHelper.cs (10)
40throw new ArgumentNullException(nameof(partUri)); 83throw new ArgumentNullException(nameof(sourcePartUri)); 87throw new ArgumentNullException(nameof(targetUri)); 115throw new ArgumentNullException(nameof(sourcePartUri)); 119throw new ArgumentNullException(nameof(targetPartUri)); 139throw new ArgumentNullException(nameof(partUri)); 187throw new ArgumentNullException(nameof(partUri)); 212throw new ArgumentNullException(nameof(partUri)); 268throw new ArgumentNullException(nameof(relationshipPartUri)); 401throw new ArgumentNullException(nameof(partUri));
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 (2)
src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (1)
14throw new ArgumentNullException(nameof(destination));
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)
19static 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 (6)
System\BinaryData.cs (6)
62_bytes = data ?? throw new ArgumentNullException(nameof(data)); 144throw new ArgumentNullException(nameof(data)); 243throw new ArgumentNullException(nameof(stream)); 274throw new ArgumentNullException(nameof(stream)); 337throw new ArgumentNullException(nameof(path)); 366throw new ArgumentNullException(nameof(path));
System.Net.Http.Json (21)
src\libraries\Common\src\System\ThrowHelper.cs (1)
33private static void Throw(string? paramName) => throw new ArgumentNullException(paramName);
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
43throw new ArgumentNullException(nameof(client));
System\Net\Http\Json\HttpClientJsonExtensions.Get.AsyncEnumerable.cs (1)
151throw new ArgumentNullException(nameof(client));
System\Net\Http\Json\HttpClientJsonExtensions.Patch.cs (4)
31throw new ArgumentNullException(nameof(client)); 55throw new ArgumentNullException(nameof(client)); 107throw new ArgumentNullException(nameof(client)); 129throw new ArgumentNullException(nameof(client));
System\Net\Http\Json\HttpClientJsonExtensions.Post.cs (4)
20throw new ArgumentNullException(nameof(client)); 33throw new ArgumentNullException(nameof(client)); 54throw new ArgumentNullException(nameof(client)); 65throw new ArgumentNullException(nameof(client));
System\Net\Http\Json\HttpClientJsonExtensions.Put.cs (4)
20throw new ArgumentNullException(nameof(client)); 33throw new ArgumentNullException(nameof(client)); 54throw new ArgumentNullException(nameof(client)); 65throw new ArgumentNullException(nameof(client));
System\Net\Http\Json\HttpContentJsonExtensions.AsyncEnumerable.cs (2)
57throw new ArgumentNullException(nameof(content)); 82throw new ArgumentNullException(nameof(content));
System\Net\Http\Json\HttpContentJsonExtensions.cs (4)
34throw new ArgumentNullException(nameof(content)); 68throw new ArgumentNullException(nameof(content)); 112throw new ArgumentNullException(nameof(content)); 122throw new ArgumentNullException(nameof(content));
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.Mail (1)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
302throw new ArgumentNullException(nameof(result));
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)
766private 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)
2398throw 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 (50)
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)
5158return 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)
58this(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)
2156throw 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\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\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\Runtime\InteropServices\ComWrappers.cs (2)
202throw new ArgumentNullException(nameof(externalComObject)); 267throw new ArgumentNullException(nameof(externalComObject));
src\System\RuntimeHandles.cs (10)
26m_type ?? throw new ArgumentNullException(null, SR.Arg_InvalidHandle); 417throw new ArgumentNullException(SR.Arg_InvalidHandle); 963throw new ArgumentNullException(null, SR.Arg_InvalidHandle); 1341throw new ArgumentNullException(SR.Arg_InvalidHandle); 1421new RuntimeFieldHandle(m_ptr ?? throw new ArgumentNullException(null, SR.Arg_InvalidHandle)); 1585throw new ArgumentNullException(SR.Arg_InvalidHandle); 1606throw new ArgumentNullException(SR.Arg_InvalidHandle); 1628throw new ArgumentNullException(SR.Arg_InvalidHandle); 1647throw new ArgumentNullException(SR.Arg_InvalidHandle); 1674throw new ArgumentNullException(SR.Arg_InvalidHandle);
src\System\RuntimeType.CoreCLR.cs (1)
3602Type instantiationElem = instantiation[i] ?? throw new ArgumentNullException();
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 (7)
System\Reflection\Context\CustomReflectionContext.cs (3)
27throw new ArgumentNullException(nameof(source)); 38throw new ArgumentNullException(nameof(assembly)); 48throw new ArgumentNullException(nameof(type));
System\Reflection\Context\Virtual\VirtualParameter.cs (2)
15throw new ArgumentNullException(nameof(member)); 19throw new ArgumentNullException(nameof(parameterType));
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (2)
21throw new ArgumentNullException(nameof(name)); 27throw new ArgumentNullException(nameof(propertyType));
System.Reflection.Metadata (4)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
44Name = name ?? throw new ArgumentNullException(nameof(name));
System\Reflection\Throw.cs (3)
101throw new ArgumentNullException(parameterName); 119throw new ArgumentNullException("value"); 125throw new ArgumentNullException("builder");
System.Reflection.MetadataLoadContext (26)
System\Reflection\DefaultBinder.cs (3)
156throw new ArgumentNullException(nameof(indexes)); 278throw new ArgumentNullException(nameof(match)); 323throw new ArgumentNullException(nameof(match));
System\Reflection\MetadataLoadContext.Apis.cs (6)
109throw new ArgumentNullException(nameof(resolver)); 131throw new ArgumentNullException(nameof(assemblyPath)); 146throw new ArgumentNullException(nameof(assembly)); 164throw new ArgumentNullException(nameof(assembly)); 182throw new ArgumentNullException(nameof(assemblyName)); 201throw new ArgumentNullException(nameof(assemblyName));
System\Reflection\PathAssemblyResolver.cs (1)
35throw new ArgumentNullException(nameof(assemblyPaths));
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.ManifestResources.cs (2)
18throw new ArgumentNullException(nameof(resourceName)); 65throw new ArgumentNullException(nameof(name));
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (2)
104throw new ArgumentNullException(nameof(name)); 181throw new ArgumentNullException(nameof(type));
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (3)
65throw new ArgumentNullException(nameof(name)); 104throw new ArgumentNullException(nameof(moduleName)); 106throw new ArgumentNullException(nameof(rawModule));
System\Reflection\TypeLoading\General\Helpers.cs (1)
278throw new ArgumentNullException(nameof(other));
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (2)
104throw new ArgumentNullException(nameof(typeArguments)); 115throw new ArgumentNullException();
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (1)
174throw new ArgumentNullException(nameof(name));
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (2)
16throw new ArgumentNullException(nameof(name)); 26throw new ArgumentNullException(nameof(name));
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (2)
93throw new ArgumentNullException(nameof(typeArguments)); 108throw new ArgumentNullException();
System\Reflection\TypeLoading\Types\RoType.GetInterface.cs (1)
15throw new ArgumentNullException(nameof(name));
System.Resources.Extensions (22)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (6)
53throw new ArgumentNullException(nameof(fileName)); 70throw new ArgumentNullException(nameof(stream)); 90throw new ArgumentNullException(nameof(name)); 110throw new ArgumentNullException(nameof(name)); 139throw new ArgumentNullException(nameof(name)); 179throw new ArgumentNullException(nameof(name));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
124throw new ArgumentNullException(nameof(stream));
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
197throw new ArgumentNullException(nameof(reader)); 271throw new ArgumentNullException(nameof(key));
System\Resources\Extensions\PreserializedResourceWriter.cs (11)
75throw new ArgumentNullException(nameof(name)); 79throw new ArgumentNullException(nameof(value)); 83throw new ArgumentNullException(nameof(typeName)); 132throw new ArgumentNullException(nameof(name)); 136throw new ArgumentNullException(nameof(value)); 140throw new ArgumentNullException(nameof(typeName)); 160throw new ArgumentNullException(nameof(name)); 164throw new ArgumentNullException(nameof(value)); 193throw new ArgumentNullException(nameof(name)); 197throw new ArgumentNullException(nameof(value)); 201throw new ArgumentNullException(nameof(typeName));
System\Resources\Extensions\TypeNameComparer.cs (2)
60throw new ArgumentNullException(nameof(assemblyQualifiedTypeName1)); 64throw new ArgumentNullException(nameof(assemblyQualifiedTypeName2));
System.Resources.Writer (6)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (6)
53throw new ArgumentNullException(nameof(fileName)); 70throw new ArgumentNullException(nameof(stream)); 90throw new ArgumentNullException(nameof(name)); 110throw new ArgumentNullException(nameof(name)); 139throw new ArgumentNullException(nameof(name)); 179throw new ArgumentNullException(nameof(name));
System.Runtime.Caching (26)
System\Runtime\Caching\CacheEntryRemovedArguments.cs (2)
31throw new ArgumentNullException(nameof(source)); 35throw new ArgumentNullException(nameof(cacheItem));
System\Runtime\Caching\CacheEntryUpdateArguments.cs (2)
53throw new ArgumentNullException(nameof(source)); 57throw new ArgumentNullException(nameof(key));
System\Runtime\Caching\ChangeMonitor.cs (1)
226throw new ArgumentNullException(nameof(onChangedCallback));
System\Runtime\Caching\Counters.cs (1)
24internal Counters(string cacheName) : base(EVENT_SOURCE_NAME_ROOT + (cacheName ?? throw new ArgumentNullException(nameof(cacheName))))
System\Runtime\Caching\FileChangeNotificationSystem.cs (4)
100throw new ArgumentNullException(nameof(filePath)); 104throw new ArgumentNullException(nameof(onChangedCallback)); 151throw new ArgumentNullException(nameof(filePath)); 155throw new ArgumentNullException(nameof(state));
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
164throw new ArgumentNullException(nameof(filePaths));
System\Runtime\Caching\MemoryCache.cs (13)
326throw new ArgumentNullException(nameof(name)); 347throw new ArgumentNullException(nameof(name)); 379throw new ArgumentNullException(nameof(key)); 428throw new ArgumentNullException(nameof(keys)); 479throw new ArgumentNullException(nameof(key)); 589throw new ArgumentNullException(nameof(item)); 630throw new ArgumentNullException(nameof(item)); 644throw new ArgumentNullException(nameof(key)); 693throw new ArgumentNullException(nameof(key)); 704throw new ArgumentNullException(nameof(onUpdateCallback)); 767throw new ArgumentNullException(nameof(key)); 814throw new ArgumentNullException(nameof(keys)); 845throw new ArgumentNullException(nameof(config));
System\Runtime\Caching\MemoryCacheEntry.cs (1)
117throw new ArgumentNullException(nameof(value));
System\Runtime\Caching\ObjectCache.cs (1)
34throw new ArgumentNullException(nameof(value));
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 (43)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (5)
36throw new ArgumentNullException(nameof(asnEncodedData)); 46throw new ArgumentNullException(nameof(attribute)); 94throw new ArgumentNullException(nameof(attribute)); 146throw new ArgumentNullException(nameof(array)); 167throw new ArgumentNullException(nameof(array));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (5)
45throw new ArgumentNullException(nameof(safeContents)); 49throw new ArgumentNullException(nameof(pbeParameters)); 95throw new ArgumentNullException(nameof(safeContents)); 99throw new ArgumentNullException(nameof(pbeParameters)); 130throw new ArgumentNullException(nameof(safeContents));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
94throw new ArgumentNullException(nameof(certificateType));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
45throw new ArgumentNullException(nameof(bagIdValue));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (7)
67throw new ArgumentNullException(nameof(safeBag)); 82throw new ArgumentNullException(nameof(certificate)); 97throw new ArgumentNullException(nameof(key)); 113throw new ArgumentNullException(nameof(safeContents)); 145throw new ArgumentNullException(nameof(key)); 176throw new ArgumentNullException(nameof(key)); 192throw new ArgumentNullException(nameof(secretType));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
78throw new ArgumentNullException(nameof(asnEncodedData));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
80throw new ArgumentNullException(nameof(documentDescription));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
80throw new ArgumentNullException(nameof(documentName));
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (12)
96throw new ArgumentNullException(nameof(key)); 144throw new ArgumentNullException(nameof(key)); 147throw new ArgumentNullException(nameof(label)); 150throw new ArgumentNullException(nameof(context)); 210throw new ArgumentNullException(nameof(key)); 213throw new ArgumentNullException(nameof(label)); 216throw new ArgumentNullException(nameof(context)); 393throw new ArgumentNullException(nameof(label)); 396throw new ArgumentNullException(nameof(context)); 531throw new ArgumentNullException(nameof(label)); 534throw new ArgumentNullException(nameof(context)); 554throw new ArgumentNullException(nameof(hashAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
734throw new ArgumentNullException(paramName);
System\Security\Cryptography\AesGcm.cs (2)
31: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key)))) 92: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))), tagSizeInBytes)
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 (51)
System\Security\Cryptography\Cose\CoseHeaderLabel.cs (1)
64throw new ArgumentNullException(nameof(label));
System\Security\Cryptography\Cose\CoseHeaderValue.cs (3)
53throw new ArgumentNullException(nameof(encodedValue)); 90throw new ArgumentNullException(nameof(value)); 124throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Cose\CoseMessage.cs (2)
96throw new ArgumentNullException(nameof(cborPayload)); 182throw new ArgumentNullException(nameof(cborPayload));
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (13)
70throw new ArgumentNullException(nameof(detachedContent)); 101throw new ArgumentNullException(nameof(embeddedContent)); 190throw new ArgumentNullException(nameof(detachedContent)); 211throw new ArgumentNullException(nameof(signer)); 261throw new ArgumentNullException(nameof(detachedContent)); 264throw new ArgumentNullException(nameof(signer)); 353throw new ArgumentNullException(nameof(signer)); 672throw new ArgumentNullException(nameof(signer)); 704throw new ArgumentNullException(nameof(detachedContent)); 731throw new ArgumentNullException(nameof(signer)); 767throw new ArgumentNullException(nameof(detachedContent)); 843throw new ArgumentNullException(nameof(detachedContent)); 896throw new ArgumentNullException(nameof(signature));
System\Security\Cryptography\Cose\CoseSign1Message.cs (20)
54throw new ArgumentNullException(nameof(detachedContent)); 57throw new ArgumentNullException(nameof(signer)); 82throw new ArgumentNullException(nameof(embeddedContent)); 85throw new ArgumentNullException(nameof(signer)); 110throw new ArgumentNullException(nameof(signer)); 135throw new ArgumentNullException(nameof(signer)); 164throw new ArgumentNullException(nameof(detachedContent)); 167throw new ArgumentNullException(nameof(signer)); 218throw new ArgumentNullException(nameof(detachedContent)); 221throw new ArgumentNullException(nameof(signer)); 291throw new ArgumentNullException(nameof(signer)); 398throw new ArgumentNullException(nameof(key)); 440throw new ArgumentNullException(nameof(key)); 484throw new ArgumentNullException(nameof(key)); 488throw new ArgumentNullException(nameof(detachedContent)); 532throw new ArgumentNullException(nameof(key)); 584throw new ArgumentNullException(nameof(key)); 588throw new ArgumentNullException(nameof(detachedContent)); 685throw new ArgumentNullException(nameof(key)); 689throw new ArgumentNullException(nameof(detachedContent));
System\Security\Cryptography\Cose\CoseSignature.cs (9)
104throw new ArgumentNullException(nameof(key)); 147throw new ArgumentNullException(nameof(key)); 191throw new ArgumentNullException(nameof(key)); 196throw new ArgumentNullException(nameof(detachedContent)); 240throw new ArgumentNullException(nameof(key)); 292throw new ArgumentNullException(nameof(key)); 297throw new ArgumentNullException(nameof(detachedContent)); 360throw new ArgumentNullException(nameof(key)); 364throw new ArgumentNullException(nameof(detachedContent));
System\Security\Cryptography\Cose\CoseSigner.cs (3)
68throw new ArgumentNullException(nameof(key)); 107throw new ArgumentNullException(nameof(key)); 110throw new ArgumentNullException(nameof(signaturePadding));
System.Security.Cryptography.Pkcs (64)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (5)
36throw new ArgumentNullException(nameof(asnEncodedData)); 46throw new ArgumentNullException(nameof(attribute)); 94throw new ArgumentNullException(nameof(attribute)); 146throw new ArgumentNullException(nameof(array)); 167throw new ArgumentNullException(nameof(array));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (5)
45throw new ArgumentNullException(nameof(safeContents)); 49throw new ArgumentNullException(nameof(pbeParameters)); 95throw new ArgumentNullException(nameof(safeContents)); 99throw new ArgumentNullException(nameof(pbeParameters)); 130throw new ArgumentNullException(nameof(safeContents));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
94throw new ArgumentNullException(nameof(certificateType));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
45throw new ArgumentNullException(nameof(bagIdValue));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (7)
67throw new ArgumentNullException(nameof(safeBag)); 82throw new ArgumentNullException(nameof(certificate)); 97throw new ArgumentNullException(nameof(key)); 113throw new ArgumentNullException(nameof(safeContents)); 145throw new ArgumentNullException(nameof(key)); 176throw new ArgumentNullException(nameof(key)); 192throw new ArgumentNullException(nameof(secretType));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
78throw new ArgumentNullException(nameof(asnEncodedData));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
80throw new ArgumentNullException(nameof(documentDescription));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
80throw new ArgumentNullException(nameof(documentName));
System\Security\Cryptography\Pkcs\CmsRecipient.cs (3)
27throw new ArgumentNullException(nameof(rsaEncryptionPadding)); 44throw new ArgumentNullException(nameof(rsaEncryptionPadding)); 55throw new ArgumentNullException(nameof(certificate));
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (4)
60throw new ArgumentNullException(nameof(recipient)); 72throw new ArgumentNullException(nameof(recipient)); 92throw new ArgumentNullException(nameof(array)); 113throw new ArgumentNullException(nameof(array));
System\Security\Cryptography\Pkcs\ContentInfo.cs (3)
26throw new ArgumentNullException(nameof(contentType)); 30throw new ArgumentNullException(nameof(content)); 45throw new ArgumentNullException(nameof(encodedMessage));
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (10)
32throw new ArgumentNullException(nameof(contentInfo)); 36throw new ArgumentNullException(nameof(encryptionAlgorithm)); 95throw new ArgumentNullException(nameof(recipient)); 105throw new ArgumentNullException(nameof(recipients)); 139throw new ArgumentNullException(nameof(encodedMessage)); 192throw new ArgumentNullException(nameof(recipientInfo)); 202throw new ArgumentNullException(nameof(recipientInfo)); 206throw new ArgumentNullException(nameof(extraStore)); 216throw new ArgumentNullException(nameof(extraStore)); 226throw new ArgumentNullException(nameof(recipientInfo));
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (6)
27throw new ArgumentNullException(nameof(algorithmId)); 60throw new ArgumentNullException(nameof(privateKey)); 105throw new ArgumentNullException(nameof(pbeParameters)); 124throw new ArgumentNullException(nameof(pbeParameters)); 151throw new ArgumentNullException(nameof(pbeParameters)); 172throw new ArgumentNullException(nameof(pbeParameters));
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (2)
61throw new ArgumentNullException(nameof(array)); 81throw new ArgumentNullException(nameof(array));
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
174throw new ArgumentNullException(nameof(signerInfo));
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
129throw new ArgumentNullException(nameof(hashAlgorithmId)); 161throw new ArgumentNullException(nameof(signerInfo));
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
328throw new ArgumentNullException(nameof(policyId)); 332throw new ArgumentNullException(nameof(hashAlgorithmId));
System\Security\Cryptography\Pkcs\SignedCms.cs (5)
48throw new ArgumentNullException(nameof(contentInfo)); 163throw new ArgumentNullException(nameof(encodedMessage)); 306throw new ArgumentNullException(nameof(signer)); 415throw new ArgumentNullException(nameof(signerInfo)); 616throw new ArgumentNullException(nameof(extraStore));
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
279throw new ArgumentNullException(nameof(signer)); 412throw new ArgumentNullException(nameof(counterSignerInfo)); 441throw new ArgumentNullException(nameof(extraStore));
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
58throw new ArgumentNullException(nameof(array));
System.Security.Cryptography.ProtectedData (2)
System\Security\Cryptography\ProtectedData.cs (2)
21throw new ArgumentNullException(nameof(userData)); 173throw new ArgumentNullException(nameof(encryptedData));
System.Security.Cryptography.Xml (88)
System\Security\Cryptography\Xml\CanonicalizationDispatcher.cs (2)
29throw new ArgumentNullException(nameof(node)); 55throw new ArgumentNullException(nameof(node));
System\Security\Cryptography\Xml\CanonicalXml.cs (3)
19throw new ArgumentNullException(nameof(inputStream)); 33throw new ArgumentNullException(nameof(document)); 46throw new ArgumentNullException(nameof(nodeList));
System\Security\Cryptography\Xml\CipherData.cs (3)
43throw new ArgumentNullException(nameof(value)); 59throw new ArgumentNullException(nameof(value)); 103throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\CipherReference.cs (1)
75throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\DataObject.cs (3)
31throw new ArgumentNullException(nameof(data)); 82throw new ArgumentNullException(nameof(value)); 142throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\DSAKeyValue.cs (3)
30throw new ArgumentNullException(nameof(key)); 47throw new ArgumentNullException(nameof(value)); 158throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptedData.cs (1)
17throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
56throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptedReference.cs (3)
39throw new ArgumentNullException(SR.Cryptography_Xml_UriRequired); 111throw new ArgumentNullException(nameof(value)); 118throw new ArgumentNullException(SR.Cryptography_Xml_UriRequired);
System\Security\Cryptography\Xml\EncryptedType.cs (1)
100throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptedXml.cs (28)
187throw new ArgumentNullException(nameof(cipherData)); 274throw new ArgumentNullException(nameof(encryptedData)); 314throw new ArgumentNullException(nameof(encryptedData)); 403throw new ArgumentNullException(nameof(encryptedKey)); 525throw new ArgumentNullException(nameof(keyName)); 529throw new ArgumentNullException(nameof(keyObject)); 550throw new ArgumentNullException(nameof(inputElement)); 554throw new ArgumentNullException(nameof(certificate)); 596throw new ArgumentNullException(nameof(inputElement)); 600throw new ArgumentNullException(nameof(keyName)); 703throw new ArgumentNullException(nameof(plaintext)); 707throw new ArgumentNullException(nameof(symmetricAlgorithm)); 750throw new ArgumentNullException(nameof(inputElement)); 754throw new ArgumentNullException(nameof(symmetricAlgorithm)); 766throw new ArgumentNullException(nameof(encryptedData)); 770throw new ArgumentNullException(nameof(symmetricAlgorithm)); 817throw new ArgumentNullException(nameof(inputElement)); 821throw new ArgumentNullException(nameof(decryptedData)); 891throw new ArgumentNullException(nameof(inputElement)); 895throw new ArgumentNullException(nameof(encryptedData)); 921throw new ArgumentNullException(nameof(keyData)); 925throw new ArgumentNullException(nameof(symmetricAlgorithm)); 951throw new ArgumentNullException(nameof(keyData)); 955throw new ArgumentNullException(nameof(rsa)); 975throw new ArgumentNullException(nameof(keyData)); 979throw new ArgumentNullException(nameof(symmetricAlgorithm)); 1004throw new ArgumentNullException(nameof(keyData)); 1008throw new ArgumentNullException(nameof(rsa));
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
86throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\EncryptionProperty.cs (3)
23throw new ArgumentNullException(nameof(elementProperty)); 50throw new ArgumentNullException(nameof(value)); 86throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (3)
19throw new ArgumentNullException(nameof(inputStream)); 32throw new ArgumentNullException(nameof(document)); 45throw new ArgumentNullException(nameof(nodeList));
System\Security\Cryptography\Xml\KeyInfo.cs (1)
67throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\KeyInfoName.cs (1)
55throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (1)
70throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (3)
54throw new ArgumentNullException(nameof(cert)); 117throw new ArgumentNullException(nameof(certificate)); 284throw new ArgumentNullException(nameof(element));
System\Security\Cryptography\Xml\Reference.cs (2)
213throw new ArgumentNullException(nameof(value)); 345throw new ArgumentNullException(nameof(transform));
System\Security\Cryptography\Xml\ReferenceList.cs (3)
32throw new ArgumentNullException(nameof(value)); 61throw new ArgumentNullException(nameof(value)); 106throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\RSAKeyValue.cs (3)
25throw new ArgumentNullException(nameof(key)); 42throw new ArgumentNullException(nameof(value)); 113throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\Signature.cs (1)
138throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\SignedInfo.cs (2)
209throw new ArgumentNullException(nameof(value)); 288throw new ArgumentNullException(nameof(reference));
System\Security\Cryptography\Xml\SignedXml.cs (6)
103throw new ArgumentNullException(nameof(document)); 115throw new ArgumentNullException(nameof(elem)); 236throw new ArgumentNullException(nameof(value)); 442throw new ArgumentNullException(nameof(macAlg)); 1024throw new ArgumentNullException(nameof(key)); 1058throw new ArgumentNullException(nameof(macAlg));
System\Security\Cryptography\Xml\TransformChain.cs (1)
176throw new ArgumentNullException(nameof(value));
System\Security\Cryptography\Xml\Utils.cs (4)
38throw new ArgumentNullException(nameof(element)); 50throw new ArgumentNullException(nameof(element)); 201throw new ArgumentNullException(nameof(document)); 225throw new ArgumentNullException(nameof(elem));
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
83throw new ArgumentNullException(nameof(uri)); 167throw new ArgumentNullException(nameof(document));
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (2)
96throw new ArgumentNullException(nameof(nodeList)); 112throw new ArgumentNullException(nameof(doc));
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
274throw new ArgumentNullException(nameof(elem));
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 (140)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (9)
42throw new ArgumentNullException(nameof(feedTypeToCreate)); 78throw new ArgumentNullException(nameof(reader)); 90throw new ArgumentNullException(nameof(reader)); 100throw new ArgumentNullException(nameof(writer)); 120throw new ArgumentNullException(nameof(writer)); 498throw new ArgumentNullException(nameof(reader)); 502throw new ArgumentNullException(nameof(feed)); 514throw new ArgumentNullException(nameof(reader)); 518throw new ArgumentNullException(nameof(feed));
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (5)
26throw new ArgumentNullException(nameof(itemTypeToCreate)); 70throw new ArgumentNullException(nameof(reader)); 82throw new ArgumentNullException(nameof(reader)); 92throw new ArgumentNullException(nameof(writer)); 112throw new ArgumentNullException(nameof(writer));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (7)
26throw new ArgumentNullException(nameof(inlineDocumentType)); 34throw new ArgumentNullException(nameof(referencedDocumentType)); 67throw new ArgumentNullException(nameof(reader)); 79throw new ArgumentNullException(nameof(reader)); 89throw new ArgumentNullException(nameof(writer)); 104throw new ArgumentNullException(nameof(reader)); 119throw new ArgumentNullException(nameof(writer));
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (6)
29throw new ArgumentNullException(nameof(documentTypeToCreate)); 53throw new ArgumentNullException(nameof(reader)); 65throw new ArgumentNullException(nameof(reader)); 75throw new ArgumentNullException(nameof(writer)); 90throw new ArgumentNullException(nameof(reader)); 106throw new ArgumentNullException(nameof(writer));
System\ServiceModel\Syndication\CategoriesDocumentFormatter.cs (1)
22throw new ArgumentNullException(nameof(documentToWrite));
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (3)
70throw new ArgumentNullException(nameof(readerOverUnparsedExtensions)); 92throw new ArgumentNullException(nameof(writer)); 109throw new ArgumentNullException(nameof(writer));
System\ServiceModel\Syndication\NullNotAllowedCollection.cs (2)
18throw new ArgumentNullException(nameof(item)); 28throw new ArgumentNullException(nameof(item));
System\ServiceModel\Syndication\ReferencedCategoriesDocument.cs (1)
16throw new ArgumentNullException(nameof(link));
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (2)
38throw new ArgumentNullException(nameof(title)); 42throw new ArgumentNullException(nameof(link));
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (9)
35throw new ArgumentNullException(nameof(feedTypeToCreate)); 78throw new ArgumentNullException(nameof(reader)); 90throw new ArgumentNullException(nameof(reader)); 100throw new ArgumentNullException(nameof(writer)); 120throw new ArgumentNullException(nameof(writer)); 150throw new ArgumentNullException(nameof(reader)); 154throw new ArgumentNullException(nameof(feed)); 166throw new ArgumentNullException(nameof(reader)); 170throw new ArgumentNullException(nameof(feed));
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (5)
27throw new ArgumentNullException(nameof(itemTypeToCreate)); 93throw new ArgumentNullException(nameof(reader)); 105throw new ArgumentNullException(nameof(reader)); 115throw new ArgumentNullException(nameof(writer)); 135throw new ArgumentNullException(nameof(writer));
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (25)
23throw new ArgumentNullException(nameof(documentToWrite)); 65throw new ArgumentNullException(nameof(document)); 76throw new ArgumentNullException(nameof(inlineCategories)); 86throw new ArgumentNullException(nameof(workspace)); 106throw new ArgumentNullException(nameof(document)); 116throw new ArgumentNullException(nameof(categories)); 126throw new ArgumentNullException(nameof(collection)); 136throw new ArgumentNullException(nameof(workspace)); 146throw new ArgumentNullException(nameof(document)); 156throw new ArgumentNullException(nameof(document)); 166throw new ArgumentNullException(nameof(collection)); 176throw new ArgumentNullException(nameof(categories)); 186throw new ArgumentNullException(nameof(workspace)); 196throw new ArgumentNullException(nameof(collection)); 206throw new ArgumentNullException(nameof(document)); 216throw new ArgumentNullException(nameof(workspace)); 226throw new ArgumentNullException(nameof(categories)); 236throw new ArgumentNullException(nameof(document)); 246throw new ArgumentNullException(nameof(workspace)); 256throw new ArgumentNullException(nameof(collection)); 266throw new ArgumentNullException(nameof(categories)); 276throw new ArgumentNullException(nameof(document)); 286throw new ArgumentNullException(nameof(workspace)); 296throw new ArgumentNullException(nameof(collection)); 306throw new ArgumentNullException(nameof(categories));
System\ServiceModel\Syndication\SyndicationCategory.cs (1)
33throw new ArgumentNullException(nameof(source));
System\ServiceModel\Syndication\SyndicationContent.cs (2)
74throw new ArgumentNullException(nameof(writer)); 104throw new ArgumentNullException(nameof(source));
System\ServiceModel\Syndication\SyndicationElementExtension.cs (6)
26throw new ArgumentNullException(nameof(xmlReader)); 62throw new ArgumentNullException(nameof(dataContractExtension)); 81throw new ArgumentNullException(nameof(xmlSerializerExtension)); 129throw new ArgumentNullException(nameof(serializer)); 146throw new ArgumentNullException(nameof(serializer)); 181throw new ArgumentNullException(nameof(writer));
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (7)
68throw new ArgumentNullException(nameof(dataContractExtension)); 79throw new ArgumentNullException(nameof(xmlSerializerExtension)); 90throw new ArgumentNullException(nameof(xmlReader)); 113throw new ArgumentNullException(nameof(serializer)); 123throw new ArgumentNullException(nameof(serializer)); 169throw new ArgumentNullException(nameof(item)); 192throw new ArgumentNullException(nameof(item));
System\ServiceModel\Syndication\SyndicationFeed.cs (3)
74throw new ArgumentNullException(nameof(source)); 146set => _items = value ?? throw new ArgumentNullException(nameof(value)); 416throw new ArgumentNullException(nameof(reader));
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (35)
29throw new ArgumentNullException(nameof(feedToWrite)); 65throw new ArgumentNullException(nameof(feed)); 75throw new ArgumentNullException(nameof(item)); 85throw new ArgumentNullException(nameof(feed)); 95throw new ArgumentNullException(nameof(feed)); 105throw new ArgumentNullException(nameof(item)); 115throw new ArgumentNullException(nameof(feed)); 125throw new ArgumentNullException(nameof(item)); 135throw new ArgumentNullException(nameof(feed)); 145throw new ArgumentNullException(nameof(item)); 155throw new ArgumentNullException(nameof(category)); 165throw new ArgumentNullException(nameof(link)); 175throw new ArgumentNullException(nameof(person)); 185throw new ArgumentNullException(nameof(feed)); 199throw new ArgumentNullException(nameof(item)); 213throw new ArgumentNullException(nameof(category)); 227throw new ArgumentNullException(nameof(link)); 241throw new ArgumentNullException(nameof(person)); 260throw new ArgumentNullException(nameof(feed)); 270throw new ArgumentNullException(nameof(item)); 280throw new ArgumentNullException(nameof(category)); 290throw new ArgumentNullException(nameof(link)); 300throw new ArgumentNullException(nameof(person)); 310throw new ArgumentNullException(nameof(feed)); 320throw new ArgumentNullException(nameof(item)); 330throw new ArgumentNullException(nameof(category)); 340throw new ArgumentNullException(nameof(link)); 350throw new ArgumentNullException(nameof(person)); 360throw new ArgumentNullException(nameof(feed)); 370throw new ArgumentNullException(nameof(item)); 380throw new ArgumentNullException(nameof(category)); 390throw new ArgumentNullException(nameof(link)); 400throw new ArgumentNullException(nameof(person)); 410throw new ArgumentNullException(nameof(feed)); 516throw new ArgumentNullException(nameof(feed));
System\ServiceModel\Syndication\SyndicationItem.cs (3)
55throw new ArgumentNullException(nameof(source)); 162throw new ArgumentNullException(nameof(reader)); 186throw new ArgumentNullException(nameof(permalink));
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (2)
23throw new ArgumentNullException(nameof(itemToWrite)); 45throw new ArgumentNullException(nameof(item));
System\ServiceModel\Syndication\SyndicationLink.cs (1)
42throw new ArgumentNullException(nameof(source));
System\ServiceModel\Syndication\SyndicationPerson.cs (1)
34throw new ArgumentNullException(nameof(source));
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
18throw new ArgumentNullException(nameof(url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (3)
24throw new ArgumentNullException(nameof(reader)); 72throw new ArgumentNullException(nameof(extension)); 144throw new ArgumentNullException(nameof(writer));
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
723throw new ArgumentNullException(nameof(callback));
System.Text.Encoding.CodePages (36)
System\Text\DecoderNLS.cs (10)
83throw new ArgumentNullException(nameof(bytes)); 101throw new ArgumentNullException(nameof(bytes)); 124throw new ArgumentNullException(nameof(bytes)); 127throw new ArgumentNullException(nameof(chars)); 153throw new ArgumentNullException(nameof(bytes)); 156throw new ArgumentNullException(nameof(chars)); 176throw new ArgumentNullException(nameof(bytes)); 179throw new ArgumentNullException(nameof(chars)); 209throw new ArgumentNullException(nameof(bytes)); 212throw new ArgumentNullException(nameof(chars));
System\Text\EncoderNLS.cs (10)
81throw new ArgumentNullException(nameof(chars)); 99throw new ArgumentNullException(nameof(chars)); 113throw new ArgumentNullException(nameof(chars)); 116throw new ArgumentNullException(nameof(bytes)); 141throw new ArgumentNullException(nameof(chars)); 144throw new ArgumentNullException(nameof(bytes)); 161throw new ArgumentNullException(nameof(chars)); 164throw new ArgumentNullException(nameof(bytes)); 194throw new ArgumentNullException(nameof(chars)); 197throw new ArgumentNullException(nameof(bytes));
System\Text\EncodingNLS.cs (16)
52throw new ArgumentNullException(nameof(chars)); 75throw new ArgumentNullException(nameof(s)); 86throw new ArgumentNullException(nameof(chars)); 103throw new ArgumentNullException(nameof(s)); 106throw new ArgumentNullException(nameof(bytes)); 143throw new ArgumentNullException(nameof(chars)); 146throw new ArgumentNullException(nameof(bytes)); 178throw new ArgumentNullException(nameof(chars)); 181throw new ArgumentNullException(nameof(bytes)); 198throw new ArgumentNullException(nameof(bytes)); 220throw new ArgumentNullException(nameof(bytes)); 235throw new ArgumentNullException(nameof(bytes)); 238throw new ArgumentNullException(nameof(chars)); 270throw new ArgumentNullException(nameof(bytes)); 273throw new ArgumentNullException(nameof(chars)); 290throw new ArgumentNullException(nameof(bytes));
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 (5)
src\libraries\System.Text.Json\Common\ThrowHelper.cs (1)
13throw new ArgumentNullException(parameterName);
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
306throw new ArgumentNullException(nameof(utf8Json)); 342_output = bufferWriter ?? throw new ArgumentNullException(nameof(bufferWriter));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (1)
43throw new ArgumentNullException(nameof(json));
System\ThrowHelper.cs (1)
40throw new ArgumentNullException(GetArgumentName(argument));
System.Text.Json.SourceGeneration (1)
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.Threading.Channels (2)
System\Threading\Channels\Channel.cs (2)
22throw new ArgumentNullException(nameof(options)); 69throw new ArgumentNullException(nameof(options));
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
44throw new ArgumentNullException(nameof(options));
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
51throw new ArgumentNullException(nameof(options));
System\Threading\RateLimiting\MetadataName.T.cs (1)
22_name = name ?? throw new ArgumentNullException(nameof(name));
System\Threading\RateLimiting\PartitionedRateLimiter.cs (1)
59throw new ArgumentNullException(nameof(limiters));
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
55throw new ArgumentNullException(nameof(options));
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
53throw new ArgumentNullException(nameof(options));
System.Threading.Tasks.Dataflow (84)
Base\DataflowBlock.cs (36)
39throw new ArgumentNullException(nameof(source)); 43throw new ArgumentNullException(nameof(target)); 86throw new ArgumentNullException(nameof(source)); 90throw new ArgumentNullException(nameof(target)); 94throw new ArgumentNullException(nameof(linkOptions)); 98throw new ArgumentNullException(nameof(predicate)); 154if (source == null) throw new ArgumentNullException(nameof(source)); 259throw new ArgumentNullException(nameof(target)); 311throw new ArgumentNullException(nameof(target)); 646if (target == null) throw new ArgumentNullException(nameof(target)); 691if (target == null) throw new ArgumentNullException(nameof(target)); 708if (target == null) throw new ArgumentNullException(nameof(target)); 794throw new ArgumentNullException(nameof(source)); 874throw new ArgumentNullException(nameof(source)); 959throw new ArgumentNullException(nameof(source)); 1438source is null ? throw new ArgumentNullException(nameof(source)) : 1496if (source == null) throw new ArgumentNullException(nameof(source)); 1511throw new ArgumentNullException(nameof(exception)); 1547throw new ArgumentNullException(nameof(target)); 1551throw new ArgumentNullException(nameof(source)); 1586throw new ArgumentNullException(nameof(exception)); 1751throw new ArgumentNullException(nameof(source1)); 1755throw new ArgumentNullException(nameof(action1)); 1759throw new ArgumentNullException(nameof(source2)); 1763throw new ArgumentNullException(nameof(action2)); 1767throw new ArgumentNullException(nameof(dataflowBlockOptions)); 1856throw new ArgumentNullException(nameof(source1)); 1860throw new ArgumentNullException(nameof(action1)); 1864throw new ArgumentNullException(nameof(source2)); 1868throw new ArgumentNullException(nameof(action2)); 1872throw new ArgumentNullException(nameof(source3)); 1876throw new ArgumentNullException(nameof(action3)); 1880throw new ArgumentNullException(nameof(dataflowBlockOptions)); 2237throw new ArgumentNullException(nameof(source)); 2305throw new ArgumentNullException(nameof(observer)); 2610throw new ArgumentNullException(nameof(target));
Base\DataflowBlock.IAsyncEnumerable.cs (1)
21throw 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\ActionBlock.cs (3)
73throw new ArgumentNullException(nameof(action)); 77throw new ArgumentNullException(nameof(dataflowBlockOptions)); 242throw new ArgumentNullException(nameof(exception));
Blocks\BatchBlock.cs (2)
50if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions)); 106throw new ArgumentNullException(nameof(exception));
Blocks\BatchedJoinBlock.cs (5)
58if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions)); 161throw new ArgumentNullException(nameof(exception)); 306if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions)); 418throw new ArgumentNullException(nameof(exception)); 621throw new ArgumentNullException(nameof(exception));
Blocks\BroadcastBlock.cs (7)
69throw new ArgumentNullException(nameof(dataflowBlockOptions)); 119throw new ArgumentNullException(nameof(exception)); 1013throw new ArgumentNullException(nameof(target)); 1017throw new ArgumentNullException(nameof(linkOptions)); 1048if (target == null) throw new ArgumentNullException(nameof(target)); 1088if (target == null) throw new ArgumentNullException(nameof(target)); 1115if (target == null) throw new ArgumentNullException(nameof(target));
Blocks\BufferBlock.cs (2)
50throw new ArgumentNullException(nameof(dataflowBlockOptions)); 154throw new ArgumentNullException(nameof(exception));
Blocks\JoinBlock.cs (5)
54throw new ArgumentNullException(nameof(dataflowBlockOptions)); 148throw new ArgumentNullException(nameof(exception)); 281throw new ArgumentNullException(nameof(dataflowBlockOptions)); 375throw new ArgumentNullException(nameof(exception)); 941throw new ArgumentNullException(nameof(exception));
Blocks\TransformBlock.cs (4)
95throw new ArgumentNullException(nameof(dataflowBlockOptions)); 98if (transformSync == null && transformAsync == null) throw new ArgumentNullException("transform"); 99if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions)); 340throw new ArgumentNullException(nameof(exception));
Blocks\TransformManyBlock.cs (4)
70if (transform == null) throw new ArgumentNullException(nameof(transform)); 94if (transform == null) throw new ArgumentNullException(nameof(transform)); 106if (dataflowBlockOptions == null) throw new ArgumentNullException(nameof(dataflowBlockOptions)); 552throw new ArgumentNullException(nameof(exception));
Blocks\TransformManyBlock.IAsyncEnumerable.cs (1)
34throw new ArgumentNullException(nameof(transform));
Blocks\WriteOnceBlock.cs (7)
67throw new ArgumentNullException(nameof(dataflowBlockOptions)); 213throw new ArgumentNullException(nameof(exception)); 307throw new ArgumentNullException(nameof(target)); 311throw new ArgumentNullException(nameof(linkOptions)); 391if (target == null) throw new ArgumentNullException(nameof(target)); 412if (target == null) throw new ArgumentNullException(nameof(target)); 425if (target == null) throw new ArgumentNullException(nameof(target));
Internal\SourceCore.cs (5)
128throw new ArgumentNullException(nameof(target)); 132throw new ArgumentNullException(nameof(linkOptions)); 167if (target == null) throw new ArgumentNullException(nameof(target)); 223if (target == null) throw new ArgumentNullException(nameof(target)); 250if (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)
37_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)
35Type = arrayType ?? throw new ArgumentNullException(nameof(arrayType));
System\Windows\Markup\StaticExtension.cs (3)
38_member = member ?? throw new ArgumentNullException(nameof(member)); 161set => _member = value ?? throw new ArgumentNullException(nameof(value)); 168set => _memberType = value ?? throw new ArgumentNullException(nameof(value));
System\Windows\Markup\TypeExtension.cs (4)
35_typeName = typeName ?? throw new ArgumentNullException(nameof(typeName)); 43_type = type ?? throw new ArgumentNullException(nameof(type)); 96_typeName = value ?? throw new ArgumentNullException(nameof(value)); 112_type = value ?? throw new ArgumentNullException(nameof(value));
System\Windows\Markup\XamlDeferLoadAttribute.cs (2)
22LoaderTypeName = loaderType ?? throw new ArgumentNullException(nameof(loaderType)); 23ContentTypeName = contentType ?? throw new ArgumentNullException(nameof(contentType));
System\Windows\Markup\XmlnsCompatibleWithAttribute.cs (2)
32OldNamespace = oldNamespace ?? throw new ArgumentNullException(nameof(oldNamespace)); 33NewNamespace = newNamespace ?? throw new ArgumentNullException(nameof(newNamespace));
System\Windows\Markup\XmlnsDefinitionAttribute.cs (2)
49XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 50ClrNamespace = clrNamespace ?? throw new ArgumentNullException(nameof(clrNamespace));
System\Windows\Markup\XmlnsPrefixAttribute.cs (2)
40XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); 41Prefix= prefix ?? throw new ArgumentNullException(nameof(prefix));
System\Xaml\Events\XamlObjectEventArgs.cs (1)
13Instance = instance ?? throw new ArgumentNullException(nameof(instance));
System\Xaml\NameScopeDictionary.cs (1)
34_underlyingNameScope = underlyingNameScope ?? throw new ArgumentNullException(nameof(underlyingNameScope));
System\Xaml\ReaderBaseDelegate.cs (1)
24_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
System\Xaml\Schema\XamlMemberInvoker.cs (1)
27_member = member ?? throw new ArgumentNullException(nameof(member));
System\Xaml\Schema\XamlTypeInvoker.cs (1)
32_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)
47this.schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
System\Xaml\XamlType.cs (5)
41_name = typeName ?? throw new ArgumentNullException(nameof(typeName)); 42_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext)); 50_name = unknownTypeName ?? throw new ArgumentNullException(nameof(unknownTypeName)); 52_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext)); 73_schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
System\Xaml\XamlXmlWriter.cs (1)
98this.schemaContext = schemaContext ?? throw new ArgumentNullException(nameof(schemaContext));
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
44throw new ArgumentNullException( nameof(hwnd));
System\Windows\Automation\Text\TextRange.cs (1)
450throw new ArgumentNullException(name);
UnitTests.Common (1)
TestTypes.cs (1)
278if (d == null) throw new ArgumentNullException("d");
WindowsFormsIntegration (6)
System\Windows\Integration\IntegrationExceptionEventArgs.cs (1)
21throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception"));
System\Windows\Integration\PropertyMap.cs (3)
83throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "propertyName")); 87throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "translator")); 251throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_ArgumentNullOrEmpty, "propertyName"));
System\Windows\Integration\PropertyMappingExceptionEventArgs.cs (2)
25throw new ArgumentNullException(string.Format(CultureInfo.CurrentCulture, SR.WFI_NullArgument, "exception")); 29throw 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));
18932 references to ArgumentNullException
Aspire.Azure.AI.OpenAI (3)
AspireConfigurableOpenAIExtensions.cs (2)
31ArgumentNullException.ThrowIfNull(builder); 61ArgumentNullException.ThrowIfNull(builder);
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Data.Tables (1)
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Search.Documents (2)
AzureSearchIndexHealthCheck.cs (1)
17ArgumentNullException.ThrowIfNull(indexClient, nameof(indexClient));
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Security.KeyVault (2)
AspireKeyVaultExtensions.cs (1)
81ArgumentNullException.ThrowIfNull(configurationManager);
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Azure.Storage.Queues (1)
src\Components\Common\AzureComponent.cs (1)
52ArgumentNullException.ThrowIfNull(builder);
Aspire.Confluent.Kafka (5)
AspireKafkaConsumerExtensions.cs (1)
112ArgumentNullException.ThrowIfNull(builder);
AspireKafkaProducerExtensions.cs (1)
112ArgumentNullException.ThrowIfNull(builder);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (3)
36ArgumentNullException.ThrowIfNull(consumeResult); 84ArgumentNullException.ThrowIfNull(consumer); 98ArgumentNullException.ThrowIfNull(handler);
Aspire.Dashboard (5)
Authentication\AspirePolicyEvaluator.cs (1)
107ArgumentNullException.ThrowIfNull(policy);
Components\Pages\IPageWithSessionAndUrlState.cs (1)
114ArgumentNullException.ThrowIfNull(page.PageViewModel, nameof(page.PageViewModel));
Model\ResourceViewModel.cs (1)
331ArgumentNullException.ThrowIfNull(url);
Otlp\Model\OtlpHelpers.cs (1)
92ArgumentNullException.ThrowIfNull(bytes);
Otlp\Storage\TelemetryRepository.cs (1)
186ArgumentNullException.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.Elastic.Clients.Elasticsearch (4)
AspireElasticClientsElasticsearchExtensions.cs (3)
36ArgumentNullException.ThrowIfNull(builder); 56ArgumentNullException.ThrowIfNull(builder); 73ArgumentNullException.ThrowIfNull(builder);
ElasticsearchHealthCheck.cs (1)
17ArgumentNullException.ThrowIfNull(elasticsearchClient, nameof(elasticsearchClient));
Aspire.Elastic.Clients.Elasticsearch.Tests (8)
ElasticsearchClientPublicApiTests.cs (8)
20var exception = Assert.Throws<ArgumentNullException>(action); 33var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 72var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting (222)
ApplicationModel\AllocatedEndpoint.cs (1)
24ArgumentNullException.ThrowIfNull(endpoint);
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
20ArgumentNullException.ThrowIfNull(callback); 31ArgumentNullException.ThrowIfNull(callback);
ApplicationModel\ContainerRuntimeArgsCallbackAnnotation.cs (2)
20ArgumentNullException.ThrowIfNull(callback); 31ArgumentNullException.ThrowIfNull(callback);
ApplicationModel\EndpointReference.cs (4)
120ArgumentNullException.ThrowIfNull(owner); 121ArgumentNullException.ThrowIfNull(endpoint); 135ArgumentNullException.ThrowIfNull(owner); 136ArgumentNullException.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\ParameterResource.cs (2)
23ArgumentNullException.ThrowIfNull(name); 24ArgumentNullException.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 (8)
48ArgumentNullException.ThrowIfNull(resource); 132ArgumentNullException.ThrowIfNull(resourceName); 143ArgumentNullException.ThrowIfNull(resourceName); 156ArgumentNullException.ThrowIfNull(resource); 207ArgumentNullException.ThrowIfNull(resourceName); 254ArgumentNullException.ThrowIfNull(resource); 272ArgumentNullException.ThrowIfNull(name); 285ArgumentNullException.ThrowIfNull(resourceName);
ContainerResourceBuilderExtensions.cs (39)
24ArgumentNullException.ThrowIfNull(builder); 25ArgumentNullException.ThrowIfNull(name); 26ArgumentNullException.ThrowIfNull(image); 58ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(target); 74ArgumentNullException.ThrowIfNull(builder); 75ArgumentNullException.ThrowIfNull(target); 92ArgumentNullException.ThrowIfNull(builder); 93ArgumentNullException.ThrowIfNull(source); 94ArgumentNullException.ThrowIfNull(target); 109ArgumentNullException.ThrowIfNull(builder); 110ArgumentNullException.ThrowIfNull(entrypoint); 125ArgumentNullException.ThrowIfNull(builder); 126ArgumentNullException.ThrowIfNull(tag); 146ArgumentNullException.ThrowIfNull(builder); 167ArgumentNullException.ThrowIfNull(builder); 168ArgumentNullException.ThrowIfNull(image); 224ArgumentNullException.ThrowIfNull(builder); 225ArgumentNullException.ThrowIfNull(sha256); 248ArgumentNullException.ThrowIfNull(builder); 265ArgumentNullException.ThrowIfNull(builder); 266ArgumentNullException.ThrowIfNull(callback); 287ArgumentNullException.ThrowIfNull(builder); 288ArgumentNullException.ThrowIfNull(callback); 314ArgumentNullException.ThrowIfNull(builder); 331ArgumentNullException.ThrowIfNull(builder); 375ArgumentNullException.ThrowIfNull(builder); 425ArgumentNullException.ThrowIfNull(builder); 426ArgumentNullException.ThrowIfNull(name); 427ArgumentNullException.ThrowIfNull(contextPath); 448ArgumentNullException.ThrowIfNull(builder); 449ArgumentNullException.ThrowIfNull(name); 487ArgumentNullException.ThrowIfNull(builder); 537ArgumentNullException.ThrowIfNull(builder); 538ArgumentNullException.ThrowIfNull(name); 539ArgumentNullException.ThrowIfNull(value); 584ArgumentNullException.ThrowIfNull(builder); 586ArgumentNullException.ThrowIfNull(value); 617ArgumentNullException.ThrowIfNull(builder);
ContainerResourceExtensions.cs (2)
20ArgumentNullException.ThrowIfNull(model); 38ArgumentNullException.ThrowIfNull(resource);
CustomResourceExtensions.cs (2)
23ArgumentNullException.ThrowIfNull(builder); 24ArgumentNullException.ThrowIfNull(initialSnapshot);
Devcontainers\Codespaces\CodespacesOptions.cs (1)
50ArgumentNullException.ThrowIfNullOrEmpty(key);
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
12ArgumentNullException.ThrowIfNullOrWhiteSpace(url);
Devcontainers\DevcontainerSettingsWriter.cs (3)
26ArgumentNullException.ThrowIfNullOrEmpty(url); 27ArgumentNullException.ThrowIfNullOrEmpty(protocol); 28ArgumentNullException.ThrowIfNullOrEmpty(label);
DistributedApplication.cs (3)
59ArgumentNullException.ThrowIfNull(host); 139ArgumentNullException.ThrowIfNull(args); 184ArgumentNullException.ThrowIfNull(options);
DistributedApplicationBuilder.cs (4)
96ArgumentNullException.ThrowIfNull(args); 124ArgumentNullException.ThrowIfNull(options); 436ArgumentNullException.ThrowIfNull(resource); 450ArgumentNullException.ThrowIfNull(resource);
DistributedApplicationBuilderExtensions.cs (2)
62ArgumentNullException.ThrowIfNull(builder, nameof(builder)); 63ArgumentNullException.ThrowIfNullOrEmpty(name, nameof(name));
DistributedApplicationResourceBuilder.cs (1)
16ArgumentNullException.ThrowIfNull(annotation);
ExecutableResourceBuilderExtensions.cs (9)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(name); 27ArgumentNullException.ThrowIfNull(command); 28ArgumentNullException.ThrowIfNull(workingDirectory); 44ArgumentNullException.ThrowIfNull(builder); 45ArgumentNullException.ThrowIfNull(name); 46ArgumentNullException.ThrowIfNull(command); 47ArgumentNullException.ThrowIfNull(workingDirectory); 84ArgumentNullException.ThrowIfNull(builder);
ExecutableResourceExtensions.cs (1)
20ArgumentNullException.ThrowIfNull(model);
OtlpConfigurationExtensions.cs (4)
30ArgumentNullException.ThrowIfNull(resource); 31ArgumentNullException.ThrowIfNull(configuration); 32ArgumentNullException.ThrowIfNull(environment); 111ArgumentNullException.ThrowIfNull(builder);
ParameterResourceBuilderExtensions.cs (22)
27ArgumentNullException.ThrowIfNull(builder); 28ArgumentNullException.ThrowIfNull(name); 52ArgumentNullException.ThrowIfNull(builder); 53ArgumentNullException.ThrowIfNull(name); 54ArgumentNullException.ThrowIfNull(value); 73ArgumentNullException.ThrowIfNull(builder); 74ArgumentNullException.ThrowIfNull(name); 75ArgumentNullException.ThrowIfNull(valueGetter); 106ArgumentNullException.ThrowIfNull(builder); 107ArgumentNullException.ThrowIfNull(name); 108ArgumentNullException.ThrowIfNull(configurationKey); 134ArgumentNullException.ThrowIfNull(builder); 135ArgumentNullException.ThrowIfNull(name); 136ArgumentNullException.ThrowIfNull(value); 223ArgumentNullException.ThrowIfNull(builder); 224ArgumentNullException.ThrowIfNull(name); 244ArgumentNullException.ThrowIfNull(builder); 256ArgumentNullException.ThrowIfNull(builder); 288ArgumentNullException.ThrowIfNull(builder); 289ArgumentNullException.ThrowIfNull(name); 321ArgumentNullException.ThrowIfNull(builder); 322ArgumentNullException.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); 566ArgumentNullException.ThrowIfNull(builder); 600ArgumentNullException.ThrowIfNull(builder); 616ArgumentNullException.ThrowIfNull(builder); 617ArgumentNullException.ThrowIfNull(filter);
ResourceBuilderExtensions.cs (71)
32ArgumentNullException.ThrowIfNull(builder); 33ArgumentNullException.ThrowIfNull(name); 49ArgumentNullException.ThrowIfNull(builder); 50ArgumentNullException.ThrowIfNull(name); 71ArgumentNullException.ThrowIfNull(builder); 72ArgumentNullException.ThrowIfNull(name); 73ArgumentNullException.ThrowIfNull(value); 91ArgumentNullException.ThrowIfNull(builder); 92ArgumentNullException.ThrowIfNull(name); 93ArgumentNullException.ThrowIfNull(callback); 107ArgumentNullException.ThrowIfNull(builder); 108ArgumentNullException.ThrowIfNull(callback); 122ArgumentNullException.ThrowIfNull(builder); 123ArgumentNullException.ThrowIfNull(callback); 138ArgumentNullException.ThrowIfNull(builder); 139ArgumentNullException.ThrowIfNull(name); 140ArgumentNullException.ThrowIfNull(endpointReference); 158ArgumentNullException.ThrowIfNull(builder); 159ArgumentNullException.ThrowIfNull(name); 160ArgumentNullException.ThrowIfNull(parameter); 182ArgumentNullException.ThrowIfNull(builder); 183ArgumentNullException.ThrowIfNull(envVarName); 184ArgumentNullException.ThrowIfNull(resource); 201ArgumentNullException.ThrowIfNull(builder); 202ArgumentNullException.ThrowIfNull(args); 216ArgumentNullException.ThrowIfNull(builder); 217ArgumentNullException.ThrowIfNull(args); 231ArgumentNullException.ThrowIfNull(builder); 232ArgumentNullException.ThrowIfNull(callback); 250ArgumentNullException.ThrowIfNull(builder); 251ArgumentNullException.ThrowIfNull(callback); 265ArgumentNullException.ThrowIfNull(builder); 266ArgumentNullException.ThrowIfNull(callback); 281ArgumentNullException.ThrowIfNull(builder); 282ArgumentNullException.ThrowIfNull(callback); 297ArgumentNullException.ThrowIfNull(builder); 298ArgumentNullException.ThrowIfNull(resource); 347ArgumentNullException.ThrowIfNull(builder); 348ArgumentNullException.ThrowIfNull(source); 374ArgumentNullException.ThrowIfNull(builder); 375ArgumentNullException.ThrowIfNull(source); 393ArgumentNullException.ThrowIfNull(builder); 394ArgumentNullException.ThrowIfNull(name); 395ArgumentNullException.ThrowIfNull(uri); 421ArgumentNullException.ThrowIfNull(builder); 422ArgumentNullException.ThrowIfNull(endpointReference); 495ArgumentNullException.ThrowIfNull(builder); 496ArgumentNullException.ThrowIfNull(endpointName); 497ArgumentNullException.ThrowIfNull(callback); 541ArgumentNullException.ThrowIfNull(builder); 588ArgumentNullException.ThrowIfNull(builder); 608ArgumentNullException.ThrowIfNull(builder); 621ArgumentNullException.ThrowIfNull(builder); 649ArgumentNullException.ThrowIfNull(builder); 662ArgumentNullException.ThrowIfNull(builder); 675ArgumentNullException.ThrowIfNull(builder); 709ArgumentNullException.ThrowIfNull(builder); 710ArgumentNullException.ThrowIfNull(dependency); 790ArgumentNullException.ThrowIfNull(builder); 791ArgumentNullException.ThrowIfNull(dependency); 846ArgumentNullException.ThrowIfNull(builder); 847ArgumentNullException.ThrowIfNull(key); 890ArgumentNullException.ThrowIfNull(builder); 985ArgumentNullException.ThrowIfNull(builder); 1044ArgumentNullException.ThrowIfNull(builder); 1045ArgumentNullException.ThrowIfNull(name); 1046ArgumentNullException.ThrowIfNull(displayName); 1047ArgumentNullException.ThrowIfNull(executeCommand); 1087ArgumentNullException.ThrowIfNull(builder); 1088ArgumentNullException.ThrowIfNull(resource); 1089ArgumentNullException.ThrowIfNull(type);
src\Shared\SecretsStore.cs (1)
22ArgumentNullException.ThrowIfNull(userSecretsId);
Aspire.Hosting.Azure (15)
AzureProvisioningResourceExtensions.cs (12)
42ArgumentNullException.ThrowIfNull(builder); 43ArgumentNullException.ThrowIfNull(configure); 69ArgumentNullException.ThrowIfNull(parameterResourceBuilder); 70ArgumentNullException.ThrowIfNull(infrastructure); 95ArgumentNullException.ThrowIfNull(parameterResource); 96ArgumentNullException.ThrowIfNull(infrastructure); 124ArgumentNullException.ThrowIfNull(outputReference); 125ArgumentNullException.ThrowIfNull(infrastructure); 151ArgumentNullException.ThrowIfNull(endpointReference); 152ArgumentNullException.ThrowIfNull(infrastructure); 177ArgumentNullException.ThrowIfNull(expression); 178ArgumentNullException.ThrowIfNull(infrastructure);
ExistingAzureResourceExtensions.cs (3)
21ArgumentNullException.ThrowIfNull(resource); 37ArgumentNullException.ThrowIfNull(builder); 58ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.CognitiveServices (1)
AzureOpenAIResource.cs (1)
36ArgumentNullException.ThrowIfNull(deployment);
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
291ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
388ArgumentNullException.ThrowIfNull(builder); 389ArgumentNullException.ThrowIfNull(configJson);
Aspire.Hosting.Azure.PostgreSQL (3)
AzurePostgresExtensions.cs (3)
157ArgumentNullException.ThrowIfNull(builder); 158ArgumentNullException.ThrowIfNull(name); 285ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
191ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.ServiceBus (4)
AzureServiceBusExtensions.cs (2)
481ArgumentNullException.ThrowIfNull(builder); 482ArgumentNullException.ThrowIfNull(configJson);
ServiceBusHealthCheck.cs (2)
20ArgumentNullException.ThrowIfNull(clientFactory); 21ArgumentNullException.ThrowIfNull(nameFactory);
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (2)
101ArgumentNullException.ThrowIfNull(builder); 102ArgumentNullException.ThrowIfNull(name);
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
226ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Azure.Tests (2)
AzureBicepResourceTests.cs (2)
2976var ex = Assert.Throws<ArgumentNullException>(() => provisioningResource.ConfigureInfrastructure(null!));
Aspire.Hosting.Containers.Tests (1)
ContainerMountAnnotationTests.cs (1)
17Assert.Throws<ArgumentNullException>("source", () => new ContainerMountAnnotation(source, "/usr/foo", ContainerMountType.BindMount, false));
Aspire.Hosting.Elasticsearch (7)
ElasticsearchBuilderExtensions.cs (5)
51ArgumentNullException.ThrowIfNull(builder); 52ArgumentNullException.ThrowIfNull(name); 120ArgumentNullException.ThrowIfNull(builder); 149ArgumentNullException.ThrowIfNull(builder); 150ArgumentNullException.ThrowIfNull(source);
ElasticsearchResource.cs (1)
29ArgumentNullException.ThrowIfNull(password);
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (1)
17ArgumentNullException.ThrowIfNull(elasticsearchClient, nameof(elasticsearchClient));
Aspire.Hosting.Elasticsearch.Tests (12)
ElasticsearchPublicApiTests.cs (12)
19var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 55var exception = Assert.Throws<ArgumentNullException>(action); 69var exception = Assert.Throws<ArgumentNullException>(action); 82var exception = Assert.Throws<ArgumentNullException>(action); 93var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Garnet (6)
GarnetBuilderExtensions.cs (6)
58ArgumentNullException.ThrowIfNull(builder); 59ArgumentNullException.ThrowIfNull(name); 108ArgumentNullException.ThrowIfNull(builder); 143ArgumentNullException.ThrowIfNull(builder); 144ArgumentNullException.ThrowIfNull(source); 196ArgumentNullException.ThrowIfNull(builder);
Aspire.Hosting.Garnet.Tests (14)
GarnetPublicApiTests.cs (14)
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); 79var exception = Assert.Throws<ArgumentNullException>(action); 90var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Kafka (7)
KafkaBuilderExtensions.cs (7)
35ArgumentNullException.ThrowIfNull(builder); 36ArgumentNullException.ThrowIfNull(name); 94ArgumentNullException.ThrowIfNull(builder); 160ArgumentNullException.ThrowIfNull(builder); 177ArgumentNullException.ThrowIfNull(builder); 193ArgumentNullException.ThrowIfNull(builder); 194ArgumentNullException.ThrowIfNull(source);
Aspire.Hosting.Kafka.Tests (18)
KafkaPublicApiTests.cs (18)
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); 79var exception = Assert.Throws<ArgumentNullException>(action); 90var exception = Assert.Throws<ArgumentNullException>(action); 101var exception = Assert.Throws<ArgumentNullException>(action); 112var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Keycloak (7)
KeycloakResourceBuilderExtensions.cs (7)
53ArgumentNullException.ThrowIfNull(builder); 54ArgumentNullException.ThrowIfNull(name); 107ArgumentNullException.ThrowIfNull(builder); 131ArgumentNullException.ThrowIfNull(builder); 132ArgumentNullException.ThrowIfNull(source); 159ArgumentNullException.ThrowIfNull(builder); 160ArgumentNullException.ThrowIfNull(import);
Aspire.Hosting.Keycloak.Tests (18)
KeycloakPublicApiTests.cs (18)
21var exception = Assert.Throws<ArgumentNullException>(action); 33var exception = Assert.Throws<ArgumentNullException>(action); 45var exception = Assert.Throws<ArgumentNullException>(action); 57var exception = Assert.Throws<ArgumentNullException>(action); 68var exception = Assert.Throws<ArgumentNullException>(action); 80var exception = Assert.Throws<ArgumentNullException>(action); 93var exception = Assert.Throws<ArgumentNullException>(action); 105var exception = Assert.Throws<ArgumentNullException>(action); 118var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Milvus (11)
MilvusBuilderExtensions.cs (10)
47ArgumentNullException.ThrowIfNull(builder); 48ArgumentNullException.ThrowIfNull(name); 97ArgumentNullException.ThrowIfNull(builder); 98ArgumentNullException.ThrowIfNull(name); 133ArgumentNullException.ThrowIfNull(builder); 159ArgumentNullException.ThrowIfNull(builder); 172ArgumentNullException.ThrowIfNull(builder); 173ArgumentNullException.ThrowIfNull(source); 185ArgumentNullException.ThrowIfNull(builder); 186ArgumentNullException.ThrowIfNull(configurationFilePath);
MilvusServerResource.cs (1)
22ArgumentNullException.ThrowIfNull(apiKey);
Aspire.Hosting.Milvus.Tests (24)
MilvusPublicApiTests.cs (24)
20var exception = Assert.Throws<ArgumentNullException>(action); 33var exception = Assert.Throws<ArgumentNullException>(action); 48var exception = Assert.Throws<ArgumentNullException>(action); 60var exception = Assert.Throws<ArgumentNullException>(action); 71var exception = Assert.Throws<ArgumentNullException>(action); 82var exception = Assert.Throws<ArgumentNullException>(action); 94var exception = Assert.Throws<ArgumentNullException>(action); 109var exception = Assert.Throws<ArgumentNullException>(action); 120var exception = Assert.Throws<ArgumentNullException>(action); 134var exception = Assert.Throws<ArgumentNullException>(action); 147var exception = Assert.Throws<ArgumentNullException>(action); 159var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.MongoDB (13)
MongoDBBuilderExtensions.cs (11)
55ArgumentNullException.ThrowIfNull(builder); 56ArgumentNullException.ThrowIfNull(name); 104ArgumentNullException.ThrowIfNull(builder); 105ArgumentNullException.ThrowIfNull(name); 151ArgumentNullException.ThrowIfNull(builder); 177ArgumentNullException.ThrowIfNull(builder); 194ArgumentNullException.ThrowIfNull(builder); 208ArgumentNullException.ThrowIfNull(builder); 209ArgumentNullException.ThrowIfNull(source); 223ArgumentNullException.ThrowIfNull(builder); 224ArgumentNullException.ThrowIfNull(source);
MongoDBDatabaseResource.cs (2)
19ArgumentNullException.ThrowIfNull(databaseName); 20ArgumentNullException.ThrowIfNull(parent);
Aspire.Hosting.MongoDB.Tests (32)
MongoDBPublicApiTests.cs (32)
20var exception = Assert.Throws<ArgumentNullException>(action); 32var exception = Assert.Throws<ArgumentNullException>(action); 44var exception = Assert.Throws<ArgumentNullException>(action); 57var exception = Assert.Throws<ArgumentNullException>(action); 68var exception = Assert.Throws<ArgumentNullException>(action); 80var exception = Assert.Throws<ArgumentNullException>(action); 93var exception = Assert.Throws<ArgumentNullException>(action); 104var exception = Assert.Throws<ArgumentNullException>(action); 115var exception = Assert.Throws<ArgumentNullException>(action); 128var exception = Assert.Throws<ArgumentNullException>(action); 139var exception = Assert.Throws<ArgumentNullException>(action); 150var exception = Assert.Throws<ArgumentNullException>(action); 163var exception = Assert.Throws<ArgumentNullException>(action); 176var exception = Assert.Throws<ArgumentNullException>(action); 189var exception = Assert.Throws<ArgumentNullException>(action); 200var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.MySql (12)
MySqlBuilderExtensions.cs (11)
31ArgumentNullException.ThrowIfNull(builder); 32ArgumentNullException.ThrowIfNull(name); 73ArgumentNullException.ThrowIfNull(builder); 74ArgumentNullException.ThrowIfNull(name); 96ArgumentNullException.ThrowIfNull(builder); 187ArgumentNullException.ThrowIfNull(builder); 204ArgumentNullException.ThrowIfNull(builder); 218ArgumentNullException.ThrowIfNull(builder); 219ArgumentNullException.ThrowIfNull(source); 233ArgumentNullException.ThrowIfNull(builder); 234ArgumentNullException.ThrowIfNull(source);
MySqlServerResource.cs (1)
20ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.MySql.Tests (26)
MySqlPublicApiTests.cs (26)
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); 93var exception = Assert.Throws<ArgumentNullException>(action); 105var exception = Assert.Throws<ArgumentNullException>(action); 118var exception = Assert.Throws<ArgumentNullException>(action); 129var exception = Assert.Throws<ArgumentNullException>(action); 139var exception = Assert.Throws<ArgumentNullException>(action); 153var exception = Assert.Throws<ArgumentNullException>(action); 165var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Nats (6)
NatsBuilderExtensions.cs (6)
52ArgumentNullException.ThrowIfNull(builder); 53ArgumentNullException.ThrowIfNull(name); 134ArgumentNullException.ThrowIfNull(builder); 148ArgumentNullException.ThrowIfNull(builder); 164ArgumentNullException.ThrowIfNull(builder); 165ArgumentNullException.ThrowIfNull(source);
Aspire.Hosting.Nats.Tests (16)
NatsPublicApiTests.cs (16)
22var exception = Assert.Throws<ArgumentNullException>(action); 36var exception = Assert.Throws<ArgumentNullException>(action); 47var exception = Assert.Throws<ArgumentNullException>(action); 58var exception = Assert.Throws<ArgumentNullException>(action); 70var exception = Assert.Throws<ArgumentNullException>(action); 83var exception = Assert.Throws<ArgumentNullException>(action); 94var exception = Assert.Throws<ArgumentNullException>(action); 108var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.NodeJs (7)
NodeExtensions.cs (7)
25ArgumentNullException.ThrowIfNull(builder); 26ArgumentNullException.ThrowIfNull(name); 27ArgumentNullException.ThrowIfNull(scriptPath); 53ArgumentNullException.ThrowIfNull(builder); 54ArgumentNullException.ThrowIfNull(name); 55ArgumentNullException.ThrowIfNull(workingDirectory); 56ArgumentNullException.ThrowIfNull(scriptName);
Aspire.Hosting.NodeJs.Tests (20)
NodeJsPublicApiTests.cs (20)
19var exception = Assert.Throws<ArgumentNullException>(action); 32var exception = Assert.Throws<ArgumentNullException>(action); 45var exception = Assert.Throws<ArgumentNullException>(action); 58var exception = Assert.Throws<ArgumentNullException>(action); 71var exception = Assert.Throws<ArgumentNullException>(action); 84var exception = Assert.Throws<ArgumentNullException>(action); 98var exception = Assert.Throws<ArgumentNullException>(action); 111var exception = Assert.Throws<ArgumentNullException>(action); 124var exception = Assert.Throws<ArgumentNullException>(action); 137var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
20ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.PostgreSQL (12)
PostgresBuilderExtensions.cs (11)
46ArgumentNullException.ThrowIfNull(builder); 47ArgumentNullException.ThrowIfNull(name); 113ArgumentNullException.ThrowIfNull(builder); 114ArgumentNullException.ThrowIfNull(name); 136ArgumentNullException.ThrowIfNull(builder); 223ArgumentNullException.ThrowIfNull(builder); 372ArgumentNullException.ThrowIfNull(builder); 387ArgumentNullException.ThrowIfNull(builder); 388ArgumentNullException.ThrowIfNull(source); 402ArgumentNullException.ThrowIfNull(builder); 403ArgumentNullException.ThrowIfNull(source);
PostgresServerResource.cs (1)
25ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.PostgreSQL.Tests (34)
PostgrePublicApiTests.cs (34)
21var exception = Assert.Throws<ArgumentNullException>(action); 34var exception = Assert.Throws<ArgumentNullException>(action); 46var exception = Assert.Throws<ArgumentNullException>(action); 58var exception = Assert.Throws<ArgumentNullException>(action); 69var exception = Assert.Throws<ArgumentNullException>(action); 84var exception = Assert.Throws<ArgumentNullException>(action); 99var exception = Assert.Throws<ArgumentNullException>(action); 112var exception = Assert.Throws<ArgumentNullException>(action); 125var exception = Assert.Throws<ArgumentNullException>(action); 137var exception = Assert.Throws<ArgumentNullException>(action); 149var exception = Assert.Throws<ArgumentNullException>(action); 162var exception = Assert.Throws<ArgumentNullException>(action); 173var exception = Assert.Throws<ArgumentNullException>(action); 184var exception = Assert.Throws<ArgumentNullException>(action); 196var exception = Assert.Throws<ArgumentNullException>(action); 209var exception = Assert.Throws<ArgumentNullException>(action); 220var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Python (14)
PythonAppResourceBuilderExtensions.cs (7)
63ArgumentNullException.ThrowIfNull(builder); 113ArgumentNullException.ThrowIfNull(builder); 114ArgumentNullException.ThrowIfNull(name); 115ArgumentNullException.ThrowIfNull(projectDirectory); 116ArgumentNullException.ThrowIfNull(scriptPath); 117ArgumentNullException.ThrowIfNull(virtualEnvironmentPath); 118ArgumentNullException.ThrowIfNull(scriptArgs);
PythonProjectResourceBuilderExtensions.cs (7)
65ArgumentNullException.ThrowIfNull(builder); 116ArgumentNullException.ThrowIfNull(builder); 117ArgumentNullException.ThrowIfNull(name); 118ArgumentNullException.ThrowIfNull(projectDirectory); 119ArgumentNullException.ThrowIfNull(scriptPath); 120ArgumentNullException.ThrowIfNull(virtualEnvironmentPath); 121ArgumentNullException.ThrowIfNull(scriptArgs);
Aspire.Hosting.Python.Tests (28)
PythonPublicApiTests.cs (28)
20var exception = Assert.Throws<ArgumentNullException>(action); 33var exception = Assert.Throws<ArgumentNullException>(action); 46var exception = Assert.Throws<ArgumentNullException>(action); 65var exception = Assert.Throws<ArgumentNullException>(action); 84var exception = Assert.Throws<ArgumentNullException>(action); 103var exception = Assert.Throws<ArgumentNullException>(action); 122var exception = Assert.Throws<ArgumentNullException>(action); 141var exception = Assert.Throws<ArgumentNullException>(action); 162var exception = Assert.Throws<ArgumentNullException>(action); 183var exception = Assert.Throws<ArgumentNullException>(action); 204var exception = Assert.Throws<ArgumentNullException>(action); 225var exception = Assert.Throws<ArgumentNullException>(action); 246var exception = Assert.Throws<ArgumentNullException>(action); 267var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Qdrant (9)
QdrantBuilderExtensions.cs (7)
44ArgumentNullException.ThrowIfNull(builder); 45ArgumentNullException.ThrowIfNull(name); 102ArgumentNullException.ThrowIfNull(builder); 117ArgumentNullException.ThrowIfNull(builder); 118ArgumentNullException.ThrowIfNull(source); 132ArgumentNullException.ThrowIfNull(builder); 133ArgumentNullException.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 (18)
QdrantPublicApiTests.cs (18)
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); 81var exception = Assert.Throws<ArgumentNullException>(action); 94var exception = Assert.Throws<ArgumentNullException>(action); 108var exception = Assert.Throws<ArgumentNullException>(action); 120var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.RabbitMQ (8)
RabbitMQBuilderExtensions.cs (7)
35ArgumentNullException.ThrowIfNull(builder); 36ArgumentNullException.ThrowIfNull(name); 97ArgumentNullException.ThrowIfNull(builder); 112ArgumentNullException.ThrowIfNull(builder); 113ArgumentNullException.ThrowIfNull(source); 132ArgumentNullException.ThrowIfNull(builder); 152ArgumentNullException.ThrowIfNull(builder);
RabbitMQServerResource.cs (1)
23ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.RabbitMQ.Tests (18)
RabbitMQPublicApiTests.cs (18)
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); 79var exception = Assert.Throws<ArgumentNullException>(action); 90var exception = Assert.Throws<ArgumentNullException>(action); 103var exception = Assert.Throws<ArgumentNullException>(action); 116var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Redis (13)
RedisBuilderExtensions.cs (13)
68ArgumentNullException.ThrowIfNull(builder); 69ArgumentNullException.ThrowIfNull(name); 137ArgumentNullException.ThrowIfNull(builder); 208ArgumentNullException.ThrowIfNull(builder); 447ArgumentNullException.ThrowIfNull(builder); 463ArgumentNullException.ThrowIfNull(builder); 491ArgumentNullException.ThrowIfNull(builder); 521ArgumentNullException.ThrowIfNull(builder); 522ArgumentNullException.ThrowIfNull(source); 550ArgumentNullException.ThrowIfNull(builder); 571ArgumentNullException.ThrowIfNull(builder); 584ArgumentNullException.ThrowIfNull(builder); 585ArgumentNullException.ThrowIfNull(source);
Aspire.Hosting.Redis.Tests (24)
RedisPublicApiTests.cs (24)
22var exception = Assert.Throws<ArgumentNullException>(action); 34var exception = Assert.Throws<ArgumentNullException>(action); 45var exception = Assert.Throws<ArgumentNullException>(action); 56var exception = Assert.Throws<ArgumentNullException>(action); 68var exception = Assert.Throws<ArgumentNullException>(action); 80var exception = Assert.Throws<ArgumentNullException>(action); 91var exception = Assert.Throws<ArgumentNullException>(action); 103var exception = Assert.Throws<ArgumentNullException>(action); 116var exception = Assert.Throws<ArgumentNullException>(action); 127var exception = Assert.Throws<ArgumentNullException>(action); 142var exception = Assert.Throws<ArgumentNullException>(action); 157var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.SqlServer (6)
SqlServerBuilderExtensions.cs (4)
28ArgumentNullException.ThrowIfNull(builder); 72ArgumentNullException.ThrowIfNull(builder); 92ArgumentNullException.ThrowIfNull(builder); 106ArgumentNullException.ThrowIfNull(builder);
SqlServerDatabaseResource.cs (1)
33ArgumentNullException.ThrowIfNull(parent);
SqlServerServerResource.cs (1)
20ArgumentNullException.ThrowIfNull(password);
Aspire.Hosting.SqlServer.Tests (24)
SqlServerPublicApiTests.cs (24)
20var exception = Assert.Throws<ArgumentNullException>(action); 32var exception = Assert.Throws<ArgumentNullException>(action); 44var exception = Assert.Throws<ArgumentNullException>(action); 57var exception = Assert.Throws<ArgumentNullException>(action); 81var exception = Assert.Throws<ArgumentNullException>(action); 93var exception = Assert.Throws<ArgumentNullException>(action); 106var exception = Assert.Throws<ArgumentNullException>(action); 120var exception = Assert.Throws<ArgumentNullException>(action); 135var exception = Assert.Throws<ArgumentNullException>(action); 165var exception = Assert.Throws<ArgumentNullException>(action); 180var exception = Assert.Throws<ArgumentNullException>(action); 195var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.Hosting.Testing (5)
DistributedApplicationTestingBuilder.cs (5)
104ArgumentNullException.ThrowIfNull(entryPoint, nameof(entryPoint)); 105ArgumentNullException.ThrowIfNull(args, nameof(args)); 106ArgumentNullException.ThrowIfNull(configureBuilder, nameof(configureBuilder)); 132ArgumentNullException.ThrowIfNull(args, nameof(args)); 133ArgumentNullException.ThrowIfNull(configureBuilder, nameof(configureBuilder));
Aspire.Hosting.Testing.Tests (15)
PublicApiTests.cs (6)
14var ane = await Assert.ThrowsAsync<ArgumentNullException>(() => DistributedApplicationTestingBuilder.CreateAsync(entryPoint: null!)); 27var ane = await Assert.ThrowsAsync<ArgumentNullException>(action); 40var ane = await Assert.ThrowsAsync<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); 65ArgumentNullException.ThrowIfNull(app); 66ArgumentNullException.ThrowIfNull(predicate);
tests\Shared\Logging\LogValuesAssert.cs (2)
34ArgumentNullException.ThrowIfNull(expectedValues); 35ArgumentNullException.ThrowIfNull(actualValues);
Aspire.Hosting.Tests (11)
ModelNameTests.cs (2)
14var exception = Assert.Throws<ArgumentNullException>(() => ModelName.ValidateName(nameof(Resource), null!));
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); 65ArgumentNullException.ThrowIfNull(app); 66ArgumentNullException.ThrowIfNull(predicate);
Aspire.Keycloak.Authentication (2)
AspireKeycloakExtensions.cs (2)
79ArgumentNullException.ThrowIfNull(builder); 158ArgumentNullException.ThrowIfNull(builder);
Aspire.Microsoft.Azure.Cosmos (1)
AspireMicrosoftAzureCosmosExtensions.cs (1)
65ArgumentNullException.ThrowIfNull(builder);
Aspire.Microsoft.Data.SqlClient (2)
AspireSqlServerSqlClientExtensions.cs (2)
45ArgumentNullException.ThrowIfNull(name); 53ArgumentNullException.ThrowIfNull(builder);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (4)
AspireAzureEFCoreCosmosExtensions.cs (4)
36/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 45ArgumentNullException.ThrowIfNull(builder); 119/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 125ArgumentNullException.ThrowIfNull(builder);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (4)
AspireSqlServerEFCoreSqlClientExtensions.cs (4)
35/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 43ArgumentNullException.ThrowIfNull(builder); 92/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 98ArgumentNullException.ThrowIfNull(builder);
Aspire.Milvus.Client (4)
AspireMilvusExtensions.cs (3)
35ArgumentNullException.ThrowIfNull(builder); 55ArgumentNullException.ThrowIfNull(builder); 66ArgumentNullException.ThrowIfNull(builder);
MilvusHealthCheck.cs (1)
16ArgumentNullException.ThrowIfNull(milvusClient, nameof(milvusClient));
Aspire.Milvus.Client.Tests (8)
MilvusClientPublicApiTests.cs (8)
20var exception = Assert.Throws<ArgumentNullException>(action); 33var exception = Assert.Throws<ArgumentNullException>(action); 59var exception = Assert.Throws<ArgumentNullException>(action); 72var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.MongoDB.Driver (4)
src\Components\Aspire.MongoDB.Driver\AspireMongoDBDriverExtensions.cs (4)
38ArgumentNullException.ThrowIfNull(builder); 52/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 60ArgumentNullException.ThrowIfNull(builder); 77ArgumentNullException.ThrowIfNull(builder);
Aspire.MongoDB.Driver.Tests (8)
MongoDBDriverPublicApiTests.cs (8)
19var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 55var exception = Assert.Throws<ArgumentNullException>(action); 67var exception = Assert.Throws<ArgumentNullException>(action);
Aspire.MongoDB.Driver.v3.Tests (8)
tests\Aspire.MongoDB.Driver.Tests\MongoDBDriverPublicApiTests.cs (8)
19var exception = Assert.Throws<ArgumentNullException>(action); 31var exception = Assert.Throws<ArgumentNullException>(action); 55var exception = Assert.Throws<ArgumentNullException>(action); 67var exception = 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> 56ArgumentNullException.ThrowIfNull(builder);
Aspire.NATS.Net (5)
AspireNatsClientExtensions.cs (5)
52/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 102/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="name"/> is null.</exception> 113ArgumentNullException.ThrowIfNull(builder); 189/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 192ArgumentNullException.ThrowIfNull(builder);
Aspire.NATS.Net.Tests (10)
NatsClientPublicApiTests.cs (10)
23var exception = Assert.Throws<ArgumentNullException>(action); 36var exception = Assert.Throws<ArgumentNullException>(action); 62var exception = Assert.Throws<ArgumentNullException>(action); 75var exception = Assert.Throws<ArgumentNullException>(action); 99var 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); 103/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 109ArgumentNullException.ThrowIfNull(builder);
Aspire.OpenAI (4)
AspireOpenAIExtensions.cs (4)
36ArgumentNullException.ThrowIfNull(builder); 37ArgumentNullException.ThrowIfNull(connectionName); 57ArgumentNullException.ThrowIfNull(builder); 71ArgumentNullException.ThrowIfNull(builder);
Aspire.Oracle.EntityFrameworkCore (4)
AspireOracleEFCoreExtensions.cs (4)
36/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 44ArgumentNullException.ThrowIfNull(builder); 91/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 97ArgumentNullException.ThrowIfNull(builder);
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); 65ArgumentNullException.ThrowIfNull(app); 66ArgumentNullException.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> 55ArgumentNullException.ThrowIfNull(builder); 139/// <exception cref="ArgumentNullException">Thrown if mandatory <paramref name="builder"/> is null.</exception> 145ArgumentNullException.ThrowIfNull(builder);
Aspire.Qdrant.Client (2)
AspireQdrantExtensions.cs (1)
61ArgumentNullException.ThrowIfNull(builder);
QdrantHealthCheck.cs (1)
14ArgumentNullException.ThrowIfNull(client, nameof(client));
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
72ArgumentNullException.ThrowIfNull(builder);
Aspire.Seq (1)
AspireSeqExtensions.cs (1)
34ArgumentNullException.ThrowIfNull(builder);
Aspire.StackExchange.Redis (1)
AspireRedisExtensions.cs (1)
68ArgumentNullException.ThrowIfNull(builder);
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);
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));
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);
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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 (117)
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)
187ArgumentNullException.ThrowIfNull(uri); 188ArgumentNullException.ThrowIfNull(baseUri);
NavigationManagerExtensions.cs (3)
524ArgumentNullException.ThrowIfNull(navigationManager); 561ArgumentNullException.ThrowIfNull(navigationManager); 562ArgumentNullException.ThrowIfNull(uri);
ParameterView.cs (1)
321ArgumentNullException.ThrowIfNull(target);
PersistentComponentState.cs (4)
57ArgumentNullException.ThrowIfNull(callback); 75ArgumentNullException.ThrowIfNull(key); 102ArgumentNullException.ThrowIfNull(key); 119ArgumentNullException.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)
82ArgumentNullException.ThrowIfNull(serviceProvider); 83ArgumentNullException.ThrowIfNull(loggerFactory); 84ArgumentNullException.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 (29)
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\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)
101ArgumentNullException.ThrowIfNull(httpContext); 102ArgumentNullException.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)
49ArgumentNullException.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)
24ArgumentNullException.ThrowIfNull(builder, nameof(builder));
Microsoft.AspNetCore.Components.WebView (5)
FileExtensionContentTypeProvider.cs (1)
423ArgumentNullException.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 (6)
BlazorWebView.cs (2)
85 /// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception> 91 ArgumentNullException.ThrowIfNull(workItem);
iOS\BlazorWebViewHandler.iOS.cs (2)
218 /// <exception cref="ArgumentNullException">Thrown if <paramref name="workItem"/> is <c>null</c>.</exception> 221 ArgumentNullException.ThrowIfNull(workItem);
iOS\IOSWebViewManager.cs (2)
43 ArgumentNullException.ThrowIfNull(blazorMauiWebViewHandler); 44 ArgumentNullException.ThrowIfNull(webview);
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 (41)
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 (9)
27ArgumentNullException.ThrowIfNull(app); 28ArgumentNullException.ThrowIfNull(options); 41ArgumentNullException.ThrowIfNull(app); 55ArgumentNullException.ThrowIfNull(app); 56ArgumentNullException.ThrowIfNull(handler); 74ArgumentNullException.ThrowIfNull(app); 94ArgumentNullException.ThrowIfNull(app); 126ArgumentNullException.ThrowIfNull(app); 147ArgumentNullException.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)
26ArgumentNullException.ThrowIfNull(builder); 43ArgumentNullException.ThrowIfNull(builder); 61ArgumentNullException.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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
177ArgumentNullException.ThrowIfNull(handler); 229ArgumentNullException.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 (118)
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)
202ArgumentNullException.ThrowIfNull(jsonTypeInfo); 221ArgumentNullException.ThrowIfNull(context); 799ArgumentNullException.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);
SignInHttpResult.cs (1)
58ArgumentNullException.ThrowIfNull(httpContext);
SignOutHttpResult.cs (2)
53ArgumentNullException.ThrowIfNull(authenticationSchemes); 72ArgumentNullException.ThrowIfNull(httpContext);
StatusCodeHttpResult.cs (1)
39ArgumentNullException.ThrowIfNull(httpContext);
TypedResults.cs (13)
73ArgumentNullException.ThrowIfNull(principal); 216ArgumentNullException.ThrowIfNull(jsonTypeInfo); 234ArgumentNullException.ThrowIfNull(context); 265ArgumentNullException.ThrowIfNull(fileContents); 300ArgumentNullException.ThrowIfNull(contents); 370ArgumentNullException.ThrowIfNull(fileStream); 411ArgumentNullException.ThrowIfNull(stream); 449ArgumentNullException.ThrowIfNull(pipeReader); 478ArgumentNullException.ThrowIfNull(streamWriterCallback); 809ArgumentNullException.ThrowIfNull(problemDetails); 855ArgumentNullException.ThrowIfNull(errors); 1006ArgumentNullException.ThrowIfNull(uri); 1020ArgumentNullException.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 (128)
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)));
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 (18)
DataProtectorTokenProvider.cs (2)
28ArgumentNullException.ThrowIfNull(dataProtectionProvider); 78ArgumentNullException.ThrowIfNull(user);
IdentityApiEndpointRouteBuilderExtensions.cs (1)
43ArgumentNullException.ThrowIfNull(endpoints);
IdentityBuilderExtensions.cs (1)
96ArgumentNullException.ThrowIfNull(builder);
IdentityServiceCollectionExtensions.cs (2)
137ArgumentNullException.ThrowIfNull(services); 138ArgumentNullException.ThrowIfNull(configure);
SecurityStampValidator.cs (4)
29ArgumentNullException.ThrowIfNull(options); 30ArgumentNullException.ThrowIfNull(signInManager); 46ArgumentNullException.ThrowIfNull(options); 47ArgumentNullException.ThrowIfNull(signInManager);
SignInManager.cs (7)
48ArgumentNullException.ThrowIfNull(userManager); 49ArgumentNullException.ThrowIfNull(contextAccessor); 50ArgumentNullException.ThrowIfNull(claimsFactory); 123ArgumentNullException.ThrowIfNull(principal); 335ArgumentNullException.ThrowIfNull(user); 376ArgumentNullException.ThrowIfNull(user); 727ArgumentNullException.ThrowIfNull(externalLogin);
TimeProviderClock.cs (1)
19ArgumentNullException.ThrowIfNull(timeProvider);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (52)
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 (17)
98ArgumentNullException.ThrowIfNull(context); 153ArgumentNullException.ThrowIfNull(user); 169ArgumentNullException.ThrowIfNull(user); 195ArgumentNullException.ThrowIfNull(user); 294ArgumentNullException.ThrowIfNull(user); 309ArgumentNullException.ThrowIfNull(user); 310ArgumentNullException.ThrowIfNull(claims); 329ArgumentNullException.ThrowIfNull(user); 330ArgumentNullException.ThrowIfNull(claim); 331ArgumentNullException.ThrowIfNull(newClaim); 351ArgumentNullException.ThrowIfNull(user); 352ArgumentNullException.ThrowIfNull(claims); 375ArgumentNullException.ThrowIfNull(user); 376ArgumentNullException.ThrowIfNull(login); 394ArgumentNullException.ThrowIfNull(user); 414ArgumentNullException.ThrowIfNull(user); 470ArgumentNullException.ThrowIfNull(claim);
UserStore.cs (21)
113ArgumentNullException.ThrowIfNull(context); 155ArgumentNullException.ThrowIfNull(user); 171ArgumentNullException.ThrowIfNull(user); 197ArgumentNullException.ThrowIfNull(user); 321ArgumentNullException.ThrowIfNull(user); 343ArgumentNullException.ThrowIfNull(user); 367ArgumentNullException.ThrowIfNull(user); 388ArgumentNullException.ThrowIfNull(user); 409ArgumentNullException.ThrowIfNull(user); 424ArgumentNullException.ThrowIfNull(user); 425ArgumentNullException.ThrowIfNull(claims); 444ArgumentNullException.ThrowIfNull(user); 445ArgumentNullException.ThrowIfNull(claim); 446ArgumentNullException.ThrowIfNull(newClaim); 466ArgumentNullException.ThrowIfNull(user); 467ArgumentNullException.ThrowIfNull(claims); 490ArgumentNullException.ThrowIfNull(user); 491ArgumentNullException.ThrowIfNull(login); 509ArgumentNullException.ThrowIfNull(user); 529ArgumentNullException.ThrowIfNull(user); 585ArgumentNullException.ThrowIfNull(claim);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (45)
UserStoreTest.cs (45)
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.GetAccessFailedCountAsync(null)); 148await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEnabledAsync(null)); 149await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEnabledAsync(null, false)); 150await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEndDateAsync(null)); 151await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEndDateAsync(null, new DateTimeOffset())); 152await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.ResetAccessFailedCountAsync(null)); 153await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.IncrementAccessFailedCountAsync(null)); 154await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.AddToRoleAsync(new IdentityUser("fake"), null)); 155await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.RemoveFromRoleAsync(new IdentityUser("fake"), null)); 156await 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 (79)
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)
21Assert.Throws<ArgumentNullException>("userManager", () => new SignInManager<PocoUser>(null, null, null, null, null, null, null)); 23Assert.Throws<ArgumentNullException>("contextAccessor", () => new SignInManager<PocoUser>(userManager, null, null, null, null, null, null)); 27Assert.Throws<ArgumentNullException>("claimsFactory", () => new SignInManager<PocoUser>(userManager, contextAccessor.Object, null, null, null, null, null));
UserClaimsPrincipalFactoryTest.cs (1)
23await Assert.ThrowsAsync<ArgumentNullException>("user",
UserManagerTest.cs (64)
1018Assert.Throws<ArgumentNullException>("store", 1023await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null)); 1024await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null, null)); 1026Assert.ThrowsAsync<ArgumentNullException>("password", 1028await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.UpdateAsync(null)); 1029await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.DeleteAsync(null)); 1030await Assert.ThrowsAsync<ArgumentNullException>("claim", async () => await manager.AddClaimAsync(null, null)); 1031await Assert.ThrowsAsync<ArgumentNullException>("claim", async () => await manager.ReplaceClaimAsync(null, null, null)); 1032await Assert.ThrowsAsync<ArgumentNullException>("claims", async () => await manager.AddClaimsAsync(null, null)); 1033await Assert.ThrowsAsync<ArgumentNullException>("userName", async () => await manager.FindByNameAsync(null)); 1034await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await manager.AddLoginAsync(null, null)); 1035await Assert.ThrowsAsync<ArgumentNullException>("loginProvider", 1037await Assert.ThrowsAsync<ArgumentNullException>("providerKey", 1039await Assert.ThrowsAsync<ArgumentNullException>("email", async () => await manager.FindByEmailAsync(null)); 1040Assert.Throws<ArgumentNullException>("provider", () => manager.RegisterTokenProvider("whatever", null)); 1041await Assert.ThrowsAsync<ArgumentNullException>("roles", async () => await manager.AddToRolesAsync(new PocoUser(), null)); 1042await Assert.ThrowsAsync<ArgumentNullException>("roles", async () => await manager.RemoveFromRolesAsync(new PocoUser(), null)); 1050await Assert.ThrowsAsync<ArgumentNullException>("user", 1052await Assert.ThrowsAsync<ArgumentNullException>("user", 1054await Assert.ThrowsAsync<ArgumentNullException>("user", 1056await Assert.ThrowsAsync<ArgumentNullException>("user", 1058await Assert.ThrowsAsync<ArgumentNullException>("user", 1060await Assert.ThrowsAsync<ArgumentNullException>("user", 1062await Assert.ThrowsAsync<ArgumentNullException>("user", 1064await Assert.ThrowsAsync<ArgumentNullException>("user", 1066await Assert.ThrowsAsync<ArgumentNullException>("user", 1068await Assert.ThrowsAsync<ArgumentNullException>("user", 1070await Assert.ThrowsAsync<ArgumentNullException>("user", 1072await Assert.ThrowsAsync<ArgumentNullException>("user", 1074await Assert.ThrowsAsync<ArgumentNullException>("user", 1076await Assert.ThrowsAsync<ArgumentNullException>("user", 1078await Assert.ThrowsAsync<ArgumentNullException>("user", 1080await Assert.ThrowsAsync<ArgumentNullException>("user", 1082await Assert.ThrowsAsync<ArgumentNullException>("user", 1084await Assert.ThrowsAsync<ArgumentNullException>("user", 1086await Assert.ThrowsAsync<ArgumentNullException>("user", 1088await Assert.ThrowsAsync<ArgumentNullException>("user", 1090await Assert.ThrowsAsync<ArgumentNullException>("user", 1092await Assert.ThrowsAsync<ArgumentNullException>("user", 1094await Assert.ThrowsAsync<ArgumentNullException>("user", 1096await Assert.ThrowsAsync<ArgumentNullException>("user", 1098await Assert.ThrowsAsync<ArgumentNullException>("user", 1100await Assert.ThrowsAsync<ArgumentNullException>("user", 1102await Assert.ThrowsAsync<ArgumentNullException>("user", 1104await Assert.ThrowsAsync<ArgumentNullException>("user", 1106await Assert.ThrowsAsync<ArgumentNullException>("user", 1108await Assert.ThrowsAsync<ArgumentNullException>("user", 1110await Assert.ThrowsAsync<ArgumentNullException>("user", 1112await Assert.ThrowsAsync<ArgumentNullException>("user", 1114await Assert.ThrowsAsync<ArgumentNullException>("user", 1116await Assert.ThrowsAsync<ArgumentNullException>("user", 1118await Assert.ThrowsAsync<ArgumentNullException>("user", 1120await Assert.ThrowsAsync<ArgumentNullException>("user", 1122await Assert.ThrowsAsync<ArgumentNullException>("user", 1124await Assert.ThrowsAsync<ArgumentNullException>("user", 1126await Assert.ThrowsAsync<ArgumentNullException>("user", 1128await Assert.ThrowsAsync<ArgumentNullException>("user", 1130await Assert.ThrowsAsync<ArgumentNullException>("user", 1132await Assert.ThrowsAsync<ArgumentNullException>("user", 1134await Assert.ThrowsAsync<ArgumentNullException>("user", 1136await Assert.ThrowsAsync<ArgumentNullException>("user", 1138await Assert.ThrowsAsync<ArgumentNullException>("user", 1140await Assert.ThrowsAsync<ArgumentNullException>("user", 1142await 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 (8)
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 (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.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.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)
13ArgumentNullException.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)
512ArgumentNullException.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)
33ArgumentNullException.ThrowIfNull(services); 57ArgumentNullException.ThrowIfNull(services); 58ArgumentNullException.ThrowIfNull(configureOptions);
Services\OpenApiOptions.cs (6)
80ArgumentNullException.ThrowIfNull(transformer); 93ArgumentNullException.ThrowIfNull(transformer); 118ArgumentNullException.ThrowIfNull(transformer); 131ArgumentNullException.ThrowIfNull(transformer); 156ArgumentNullException.ThrowIfNull(transformer); 169ArgumentNullException.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)
17ArgumentNullException.ThrowIfNull(cache); 27ArgumentNullException.ThrowIfNull(tag); 65ArgumentNullException.ThrowIfNull(key); 74ArgumentNullException.ThrowIfNull(key); 75ArgumentNullException.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)
257ArgumentNullException.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)
148Assert.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)
13ArgumentNullException.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)
13ArgumentNullException.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)
49ArgumentNullException.ThrowIfNull(options); 50ArgumentNullException.ThrowIfNull(loggerFactory);
MessagePump.cs (3)
32ArgumentNullException.ThrowIfNull(options); 33ArgumentNullException.ThrowIfNull(loggerFactory); 65ArgumentNullException.ThrowIfNull(application);
RequestProcessing\RequestContext.cs (1)
288ArgumentNullException.ThrowIfNull(destination);
RequestProcessing\RequestContext.FeatureCollection.cs (2)
455ArgumentNullException.ThrowIfNull(callback); 466ArgumentNullException.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)
25ArgumentNullException.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)
166ArgumentNullException.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)
56ArgumentNullException.ThrowIfNull(transportFactories); 78ArgumentNullException.ThrowIfNull(options); 79ArgumentNullException.ThrowIfNull(loggerFactory);
Internal\TlsConnectionFeature.cs (2)
24ArgumentNullException.ThrowIfNull(sslStream); 25ArgumentNullException.ThrowIfNull(context);
KestrelConfigurationLoader.cs (10)
101ArgumentNullException.ThrowIfNull(address); 116ArgumentNullException.ThrowIfNull(endPoint); 117ArgumentNullException.ThrowIfNull(configure); 139ArgumentNullException.ThrowIfNull(configure); 159ArgumentNullException.ThrowIfNull(configure); 179ArgumentNullException.ThrowIfNull(socketPath); 184ArgumentNullException.ThrowIfNull(configure); 204ArgumentNullException.ThrowIfNull(pipeName); 205ArgumentNullException.ThrowIfNull(configure); 225ArgumentNullException.ThrowIfNull(configure);
KestrelServerOptions.cs (10)
483ArgumentNullException.ThrowIfNull(address); 520ArgumentNullException.ThrowIfNull(endPoint); 521ArgumentNullException.ThrowIfNull(configure); 541ArgumentNullException.ThrowIfNull(configure); 559ArgumentNullException.ThrowIfNull(configure); 581ArgumentNullException.ThrowIfNull(socketPath); 587ArgumentNullException.ThrowIfNull(configure); 609ArgumentNullException.ThrowIfNull(configure); 631ArgumentNullException.ThrowIfNull(pipeName); 632ArgumentNullException.ThrowIfNull(configure);
ListenOptionsHttpsExtensions.cs (5)
128ArgumentNullException.ThrowIfNull(serverCertificate); 146ArgumentNullException.ThrowIfNull(serverCertificate); 147ArgumentNullException.ThrowIfNull(configureOptions); 164ArgumentNullException.ThrowIfNull(configureOptions); 250ArgumentNullException.ThrowIfNull(callbackOptions);
Middleware\HttpsConnectionMiddleware.cs (1)
60ArgumentNullException.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)
92ArgumentNullException.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 (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.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)
32ArgumentNullException.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)
417ArgumentNullException.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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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.TimeProvider (3)
System\Threading\Tasks\TimeProviderTaskExtensions.cs (3)
47/// <exception cref="System.ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 131/// <exception cref="System.ArgumentNullException"><paramref name="task"/> or <paramref name="timeProvider"/> is <see langword="null" />.</exception> 227/// <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)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 312|| e is ArgumentNullException
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
300catch (ArgumentNullException e) 451catch (ArgumentNullException e)
TaskLoggingHelper.cs (32)
178/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 200/// <exception cref="ArgumentNullException">Thrown when <c>resourceName</c> is null.</exception> 222/// <exception cref="ArgumentNullException">Thrown when <c>unformatted</c> is null.</exception> 268/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 290/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 349/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 412/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 460/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 485/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 635/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 655/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 686/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 743/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 763/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 823/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 848/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 897/// <exception cref="ArgumentNullException">Thrown when <c>e</c> is null.</exception> 909/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 924/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 986/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1006/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1037/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1113/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1133/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1191/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1216/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1264/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1276/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1304/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1318/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1345/// <exception cref="ArgumentNullException">Thrown when <c>stream</c> is null.</exception> 1373/// <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)
106Assert.Throws<ArgumentNullException>(() => 118Assert.Throws<ArgumentNullException>(() => 130Assert.Throws<ArgumentNullException>(() => 142Assert.Throws<ArgumentNullException>(() =>
Construction\ProjectTaskElement_Tests.cs (2)
172Assert.Throws<ArgumentNullException>(() => 211Assert.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)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 312|| e is ArgumentNullException
Instance\ProjectInstance_Tests.cs (5)
155Assert.Throws<ArgumentNullException>(() => 179Assert.Throws<ArgumentNullException>(() => 344Assert.Throws<ArgumentNullException>(() => 356Assert.Throws<ArgumentNullException>(() => 368Assert.Throws<ArgumentNullException>(() =>
Instance\ProjectItemInstance_Tests.cs (2)
239Assert.Throws<ArgumentNullException>(() => 301Assert.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)
113Assert.Throws<ArgumentNullException>(() => { new BuildParameters(null); });
BackEnd\BuildRequest_Tests.cs (1)
30Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildRequestConfiguration_Tests.cs (4)
42Assert.Throws<ArgumentNullException>(() => 50Assert.Throws<ArgumentNullException>(() => 88Assert.Throws<ArgumentNullException>(() => 97Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildRequestEntry_Tests.cs (1)
35Assert.Throws<ArgumentNullException>(() =>
BackEnd\BuildResult_Tests.cs (4)
160Assert.Throws<ArgumentNullException>(() => 171Assert.Throws<ArgumentNullException>(() => 182Assert.Throws<ArgumentNullException>(() => 217Assert.Throws<ArgumentNullException>(() =>
BackEnd\ConfigurationMetadata_Tests.cs (2)
38Assert.Throws<ArgumentNullException>(() => 50Assert.Throws<ArgumentNullException>(() =>
BackEnd\FullyQualifiedBuildRequest_Tests.cs (2)
31Assert.Throws<ArgumentNullException>(() => 40Assert.Throws<ArgumentNullException>(() =>
BackEnd\NodeEndpointInProc_Tests.cs (2)
186Assert.Throws<ArgumentNullException>(() => 196Assert.Throws<ArgumentNullException>(() =>
BackEnd\TargetEntry_Tests.cs (3)
80Assert.Throws<ArgumentNullException>(() => 95Assert.Throws<ArgumentNullException>(() => 109Assert.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)
26Assert.Throws<ArgumentNullException>(() => 35Assert.Throws<ArgumentNullException>(() =>
Evaluation\SimpleVersion_Tests.cs (1)
235yield return new object[] { null, typeof(ArgumentNullException) }; // Input is null
FileUtilities_Tests.cs (1)
450Assert.Throws<ArgumentNullException>(() =>
Globbing\MSBuildGlob_Tests.cs (3)
57Assert.Throws<ArgumentNullException>(() => MSBuildGlob.Parse(null, "*")); 104Assert.Throws<ArgumentNullException>(() => MSBuildGlob.Parse(null)); 177Assert.Throws<ArgumentNullException>(() => glob.IsMatch(null));
Instance\HostServices_Tests.cs (3)
60Assert.Throws<ArgumentNullException>(() => 73Assert.Throws<ArgumentNullException>(() => 86Assert.Throws<ArgumentNullException>(() =>
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
139private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
Microsoft.Build.Tasks.CodeAnalysis (1)
Utilities.cs (1)
134(e is ArgumentException && !(e is ArgumentNullException)) ||
Microsoft.Build.Tasks.Core (5)
ErrorUtilities.cs (1)
605/// <exception cref="ArgumentNullException">If <paramref name="array"/> is null.</exception>
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 312|| e is ArgumentNullException
ManifestUtil\Util.cs (1)
358catch (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)
170Assert.Throws<ArgumentNullException>(() => 184Assert.Throws<ArgumentNullException>(() =>
ResolveSDKReference_Tests.cs (2)
1435Assert.Throws<ArgumentNullException>(() => 1451Assert.Throws<ArgumentNullException>(() =>
XslTransformation_Tests.cs (1)
606Assert.Throws<System.ArgumentNullException>(() =>
Microsoft.Build.Utilities.Core (43)
ErrorUtilities.cs (1)
605/// <exception cref="ArgumentNullException">If <paramref name="array"/> is null.</exception>
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 312|| e is ArgumentNullException
TaskLoggingHelper.cs (32)
178/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 200/// <exception cref="ArgumentNullException">Thrown when <c>resourceName</c> is null.</exception> 222/// <exception cref="ArgumentNullException">Thrown when <c>unformatted</c> is null.</exception> 268/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 290/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 349/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 412/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 460/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 485/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 635/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 655/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 686/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 743/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 763/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 823/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 848/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 897/// <exception cref="ArgumentNullException">Thrown when <c>e</c> is null.</exception> 909/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 924/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 986/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1006/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1037/// <exception cref="ArgumentNullException">Thrown when <c>message</c> is null.</exception> 1113/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1133/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1191/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1216/// <exception cref="ArgumentNullException">Thrown when <c>messageResourceName</c> is null.</exception> 1264/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1276/// <exception cref="ArgumentNullException">Thrown when <c>exception</c> is null.</exception> 1304/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1318/// <exception cref="ArgumentNullException">Thrown when <c>filename</c> is null.</exception> 1345/// <exception cref="ArgumentNullException">Thrown when <c>stream</c> is null.</exception> 1373/// <exception cref="ArgumentNullException">Thrown when <c>lineOfText</c> is null.</exception>
ToolLocationHelper.cs (8)
1750/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1780/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1793/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1807/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1873/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1891/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1910/// <exception cref="ArgumentNullException">When the frameworkName is null</exception> 1931/// <exception cref="ArgumentNullException">When the frameworkName 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)
77Should.Throw<ArgumentNullException>(() => 105Should.Throw<ArgumentNullException>(() => 283Should.Throw<ArgumentNullException>(() =>
ToolLocationHelper_Tests.cs (7)
1838Should.Throw<ArgumentNullException>(() => 1849Should.Throw<ArgumentNullException>(() => 1860Should.Throw<ArgumentNullException>(() => 1903Should.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 (68)
Collections\ImmutableArrayExtensions.cs (2)
37/// <exception cref="ArgumentNullException">If items is null (default)</exception> 38/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
CommandLine\CommandLineArguments.cs (1)
370/// <exception cref="ArgumentNullException"><paramref name="metadataResolver"/> is null.</exception>
Compilation\Compilation.cs (1)
1126/// <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)
360catch (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)
193/// <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)
674/// <exception cref="ArgumentNullException"><paramref name="import"/> is null.</exception>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
153private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\SegmentedCollectionsMarshal.cs (1)
40/// <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.CodeStyle (34)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
37/// <exception cref="ArgumentNullException">If items is null (default)</exception> 38/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
360catch (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\Compilers\Core\Portable\InternalUtilities\IReadOnlySet.cs (6)
35/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 43/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 51/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 59/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 67/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 75/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
153private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\SegmentedCollectionsMarshal.cs (1)
40/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> 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)
90/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
37/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 55/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 110/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 215/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 233/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 251/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 275/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
448var type = compilation.GetTypeByMetadataName(typeof(ArgumentNullException).FullName!);
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\ThrowHelper.cs (1)
153private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
SegmentedCollectionsMarshal.cs (1)
40/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> is <see langword="null"/></exception>
Microsoft.CodeAnalysis.CSharp (12)
Compilation\CSharpSemanticModel.cs (10)
2506/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="method"/> is null.</exception> 2533/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="accessor"/> is null.</exception> 2562/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="type"/> is null.</exception> 2588/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="statement"/> is null.</exception> 2615/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="initializer"/> is null.</exception> 2642/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="expressionBody"/> is null.</exception> 2672/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="constructorInitializer"/> is null.</exception> 2701/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="constructorInitializer"/> is null.</exception> 2731/// <exception cref="ArgumentNullException">Throws this exception if <paramref name="crefSyntax"/> is null.</exception> 2757/// <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)
829/// <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)
27064Assert.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)
22422Assert.Throws<ArgumentNullException>(() => model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (PrimaryConstructorBaseTypeSyntax)null!, out _)); 22561Assert.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)
46Assert.Throws<ArgumentNullException>(() => CSharpScript.Create((string)null)); 59Assert.Throws<ArgumentNullException>(() => CSharpScript.Create((Stream)null, ScriptOptions)); 335await 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)
114Assert.Throws<ArgumentNullException>(() => { tree.GetDiagnostics((CSharpSyntaxNode)null); }); 116Assert.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)
446Assert.Throws<ArgumentNullException>("peStream", () => comp.Emit(peStream: null)); 1341Assert.Throws<ArgumentNullException>(() => CSharpCompilation.Create("goo", syntaxTrees: new SyntaxTree[] { null })); 1342Assert.Throws<ArgumentNullException>(() => CSharpCompilation.Create("goo", references: new MetadataReference[] { null })); 1358Assert.Throws<ArgumentNullException>( 1365Assert.Throws<ArgumentNullException>( 1385Assert.Throws<ArgumentNullException>( 1461Assert.Throws<ArgumentNullException>( 1566Assert.Throws<ArgumentNullException>( 1573Assert.Throws<ArgumentNullException>( 1585Assert.Throws<ArgumentNullException>( 2554Assert.Throws<ArgumentNullException>(() => 2566Assert.Throws<ArgumentNullException>(() => 2576Assert.Throws<ArgumentNullException>(() => 2586Assert.Throws<ArgumentNullException>(() => 2596Assert.Throws<ArgumentNullException>(() => 2818Assert.Throws<ArgumentNullException>("returnType", () => compilation.CreateBuiltinOperator( 2820Assert.Throws<ArgumentNullException>("leftType", () => compilation.CreateBuiltinOperator( 2822Assert.Throws<ArgumentNullException>("rightType", () => compilation.CreateBuiltinOperator( 3016Assert.Throws<ArgumentNullException>("returnType", () => compilation.CreateBuiltinOperator( 3018Assert.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)
1665Assert.Throws<ArgumentNullException>(() => model.GetSymbolInfo((ExpressionSyntax)null)); 1666Assert.Throws<ArgumentNullException>(() => model.GetTypeInfo((ExpressionSyntax)null)); 1667Assert.Throws<ArgumentNullException>(() => model.GetMemberGroup((ExpressionSyntax)null)); 1668Assert.Throws<ArgumentNullException>(() => model.GetConstantValue((ExpressionSyntax)null)); 1670Assert.Throws<ArgumentNullException>(() => model.GetSymbolInfo((ConstructorInitializerSyntax)null)); 1671Assert.Throws<ArgumentNullException>(() => model.GetTypeInfo((ConstructorInitializerSyntax)null)); 1672Assert.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)
1532Assert.Throws<ArgumentNullException>("returnType", () => comp.CreateFunctionPointerTypeSymbol(returnType: null!, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1533Assert.Throws<ArgumentNullException>("parameterTypes", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: default, parameterRefKinds: ImmutableArray<RefKind>.Empty)); 1534Assert.Throws<ArgumentNullException>("parameterTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray.Create((ITypeSymbol?)null)!, parameterRefKinds: ImmutableArray.Create(RefKind.None))); 1535Assert.Throws<ArgumentNullException>("parameterRefKinds", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: default)); 1536Assert.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 (1)
CustomDebugInfoReader.cs (1)
674/// <exception cref="ArgumentNullException"><paramref name="import"/> is 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.Features (11)
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)
233var argumentNullExceptionType = typeof(ArgumentNullException).FullName;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
558GetTypeNode(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)
674/// <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 (2)
Interactive\Core\InteractiveHost.cs (1)
373/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
360catch (ArgumentNullException)
Microsoft.CodeAnalysis.Scripting (29)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
153/// <exception cref="ArgumentNullException"><paramref name="dependency"/> is null.</exception> 177/// <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)
107/// <exception cref="ArgumentNullException">Stream is null.</exception> 124/// <exception cref="ArgumentNullException">Stream is null.</exception> 528/// <exception cref="ArgumentNullException"><paramref name="previousState"/> is null.</exception> 545/// <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)
57Assert.Throws<ArgumentNullException>(() => _provider.NeedsShadowCopy(null)); 63Assert.Throws<ArgumentNullException>(() => _provider.SuppressShadowCopy(null)); 70Assert.Throws<ArgumentNullException>(() => _provider.GetMetadataShadowCopy(null, MetadataImageKind.Assembly)); 77Assert.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.UnitTests (135)
AnalyzerAssemblyLoaderTests.cs (1)
267Assert.Throws<ArgumentNullException>("fullPath", () => 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\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\ImmutableArrayExtensionsTests.cs (1)
29Assert.Throws<ArgumentNullException>(() => ImmutableArray.CreateRange<int>((IEnumerable<int>)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)
217Assert.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\MetadataReferenceTests.cs (6)
45Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromImage(null)); 46Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromImage(default)); 47Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromFile(null)); 48Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromFile(null, default(MetadataReferenceProperties))); 49Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromStream(null)); 51Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromAssemblyInternal(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)
223Assert.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.VisualBasic.Syntax.UnitTests (9)
Syntax\SeparatedSyntaxListTests.vb (9)
146Assert.Throws(Of ArgumentNullException)(Function() list.Add(Nothing)) 147Assert.Throws(Of ArgumentNullException)(Function() list.AddRange(DirectCast(Nothing, IEnumerable(Of SyntaxNode)))) 148Assert.Throws(Of ArgumentNullException)(Function() list.Insert(0, Nothing)) 149Assert.Throws(Of ArgumentNullException)(Function() list.InsertRange(0, DirectCast(Nothing, IEnumerable(Of SyntaxNode)))) 150Assert.Throws(Of ArgumentNullException)(Function() list.ReplaceRange(elementA, DirectCast(Nothing, IEnumerable(Of SyntaxNode)))) 192Assert.Throws(Of ArgumentNullException)(Function() list.Add(Nothing)) 193Assert.Throws(Of ArgumentNullException)(Function() list.AddRange(DirectCast(Nothing, IEnumerable(Of SyntaxNode)))) 194Assert.Throws(Of ArgumentNullException)(Function() list.Insert(0, Nothing)) 195Assert.Throws(Of ArgumentNullException)(Function() list.InsertRange(0, DirectCast(Nothing, IEnumerable(Of SyntaxNode))))
Microsoft.CodeAnalysis.Workspaces (71)
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\Collections\ImmutableArrayExtensions.cs (2)
37/// <exception cref="ArgumentNullException">If items is null (default)</exception> 38/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
360catch (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\Compilers\Core\Portable\InternalUtilities\IReadOnlySet.cs (6)
35/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 43/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 51/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 59/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 67/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception> 75/// <exception cref="ArgumentNullException">other is <see langword="null" />.</exception>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
153private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\SegmentedCollectionsMarshal.cs (1)
40/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="segments"/> 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)
90/// <exception cref="ArgumentNullException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (8)
37/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 55/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 110/// <exception cref="ArgumentNullException">The<paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 215/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 233/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 251/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception> 275/// <exception cref="ArgumentNullException">The <paramref name="source"/> argument or <paramref name="body"/> argument is <see langword="null"/>.</exception>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
448var 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)
551/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 552/// <exception cref="ArgumentNullException"><paramref name="documentIds"/> is <see langword="null"/>.</exception> 590/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 591/// <exception cref="ArgumentNullException"><paramref name="projectReference"/> is <see langword="null"/>.</exception> 604/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 605/// <exception cref="ArgumentNullException"><paramref name="projectReferences"/> contains <see langword="null"/>.</exception> 637/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 638/// <exception cref="ArgumentNullException"><paramref name="projectReference"/> is <see langword="null"/>.</exception> 667/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 668/// <exception cref="ArgumentNullException"><paramref name="projectReferences"/> contains <see langword="null"/>.</exception> 688/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 689/// <exception cref="ArgumentNullException"><paramref name="metadataReference"/> is <see langword="null"/>.</exception> 702/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 703/// <exception cref="ArgumentNullException"><paramref name="metadataReferences"/> contains <see langword="null"/>.</exception> 730/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 731/// <exception cref="ArgumentNullException"><paramref name="metadataReference"/> is <see langword="null"/>.</exception> 752/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 753/// <exception cref="ArgumentNullException"><paramref name="metadataReferences"/> contains <see langword="null"/>.</exception> 769/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 770/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 782/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 783/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception> 817/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 818/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 846/// <exception cref="ArgumentNullException"><paramref name="projectId"/> is <see langword="null"/>.</exception> 847/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception> 862/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 872/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception> 897/// <exception cref="ArgumentNullException"><paramref name="analyzerReference"/> is <see langword="null"/>.</exception> 913/// <exception cref="ArgumentNullException"><paramref name="analyzerReferences"/> contains <see langword="null"/>.</exception>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
37/// <exception cref="ArgumentNullException">If items is null (default)</exception> 38/// <remarks>If the sequence is null, this will throw <see cref="ArgumentNullException"/></remarks>
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
360catch (ArgumentNullException)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
153private static ArgumentNullException GetArgumentNullException(ExceptionArgument argument)
src\Dependencies\Collections\SegmentedCollectionsMarshal.cs (1)
40/// <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)
25Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(id: null, version: VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#")); 26Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: null, assemblyName: "Bar", language: "C#")); 27Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: null, language: "C#")); 28Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: null)); 30Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 43Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 49Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 56Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#", 63Assert.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)
118Assert.Throws<ArgumentNullException>(() => solution.RemoveDocument(null!)); 127Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(default)); 129Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(ImmutableArray.Create((DocumentId)null!))); 137Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocument(null!)); 146Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(default)); 148Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create((DocumentId)null!))); 156Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocument(null!)); 165Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(default)); 167Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create((DocumentId)null!))); 184Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(documentId, name: null!)); 186Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(null!, name)); 214Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(documentId, folders: [null!])); 216Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(null!, folders)); 244Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(null!, path)); 262Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSourceCodeKind(null!, SourceCodeKind.Script)); 321Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSyntaxRoot(null!, root)); 361Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 364Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity)); 385Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 388Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity)); 411Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId[])null!, text, PreservationMode.PreserveIdentity)); 412Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText([documentId], null!, PreservationMode.PreserveIdentity)); 929Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 932Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity)); 953Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 956Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity)); 975Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 978Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity)); 999Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity)); 1002Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity)); 1021Assert.Throws<ArgumentNullException>(() => solution.WithDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity)); 1024Assert.Throws<ArgumentNullException>(() => solution.WithDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity)); 1043Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity)); 1046Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity)); 1065Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity)); 1068Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity)); 1449Assert.Throws<ArgumentNullException>("assemblyName", () => solution.WithProjectAssemblyName(projectId, null!)); 1450Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAssemblyName(null!, "x.dll")); 1473Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputFilePath(null!, "x.dll")); 1474Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputFilePath(null!, "x.dll")); 1528Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputRefFilePath(null!, "x.dll")); 1551Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectCompilationOutputInfo(null!, info)); 1574Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectDefaultNamespace(null!, "x")); 1688Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectName(null!, "x")); 1711Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectFilePath(null!, "x")); 1726Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectCompilationOptions(null!, options)); 1727Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectCompilationOptions(projectId, options: null!)); 1775Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectParseOptions(null!, options)); 1776Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectParseOptions(projectId, options: null!)); 1934Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectReferences(null!, [projectRef])); 1986Assert.Throws<ArgumentNullException>("projectId", () => solution.AddProjectReferences(null!, [projectRef2])); 1987Assert.Throws<ArgumentNullException>("projectReferences", () => solution.AddProjectReferences(projectId, null!)); 1988Assert.Throws<ArgumentNullException>("projectReferences[0]", () => solution.AddProjectReferences(projectId, [null!])); 2025Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveProjectReference(null!, projectRef2)); 2026Assert.Throws<ArgumentNullException>("projectReference", () => solution.RemoveProjectReference(projectId, null!)); 2085Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectMetadataReferences(null!, [metadataRef])); 2105Assert.Throws<ArgumentNullException>("projectId", () => solution.AddMetadataReferences(null!, [metadataRef1])); 2106Assert.Throws<ArgumentNullException>("metadataReferences", () => solution.AddMetadataReferences(projectId, null!)); 2107Assert.Throws<ArgumentNullException>("metadataReferences[0]", () => solution.AddMetadataReferences(projectId, [null!])); 2131Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveMetadataReference(null!, metadataRef1)); 2132Assert.Throws<ArgumentNullException>("metadataReference", () => solution.RemoveMetadataReference(projectId, null!)); 2155Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAnalyzerReferences(null!, [analyzerRef])); 2178Assert.Throws<ArgumentNullException>("projectId", () => solution.AddAnalyzerReferences(null!, [analyzerRef1])); 2179Assert.Throws<ArgumentNullException>("analyzerReferences", () => solution.AddAnalyzerReferences(projectId, null!)); 2180Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => solution.AddAnalyzerReferences(projectId, [null!])); 2204Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveAnalyzerReference(null!, analyzerRef1)); 2205Assert.Throws<ArgumentNullException>("analyzerReference", () => solution.RemoveAnalyzerReference(projectId, null!)); 2246Assert.Throws<ArgumentNullException>("analyzerReferences", () => solution.AddAnalyzerReferences(null!)); 2247Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => solution.AddAnalyzerReferences([null!])); 2270Assert.Throws<ArgumentNullException>("analyzerReference", () => solution.RemoveAnalyzerReference(null!)); 2375Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", loader)); 2376Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, loader)); 2377Assert.Throws<ArgumentNullException>("loader", () => solution.AddDocument(documentId, "name", loader: null!)); 2406Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", "text")); 2407Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, "text")); 2408Assert.Throws<ArgumentNullException>("text", () => solution.AddDocument(documentId, "name", text: (string)null!)); 2434Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", sourceText)); 2435Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, sourceText)); 2436Assert.Throws<ArgumentNullException>("text", () => solution.AddDocument(documentId, "name", text: (SourceText)null!)); 2463Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", root)); 2464Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, root)); 2465Assert.Throws<ArgumentNullException>("syntaxRoot", () => solution.AddDocument(documentId, "name", syntaxRoot: null!)); 4680Assert.Throws<ArgumentNullException>(() => solution = solution.WithProjectDocumentsOrder(pid, null));
UtilityTest\SpecializedTasksTests.cs (3)
29Assert.Throws<ArgumentNullException>(() => SpecializedTasks.WhenAll<int>((IEnumerable<ValueTask<int>>)null!)); 81Assert.Throws<ArgumentNullException>("func", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(null!, transform, arg, cancellationToken)); 82Assert.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.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
149ArgumentNullException.ThrowIfNull(argument, paramName);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
411|| (e is ArgumentException && !(e is ArgumentNullException))
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
BuildModelFactoryTests.cs (1)
76act.Should().Throw<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 (17)
ChatCompletion\AnonymousDelegatingChatClient.cs (5)
46/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 47/// <exception cref="ArgumentNullException"><paramref name="sharedFunc"/> is <see langword="null"/>.</exception> 70/// <exception cref="ArgumentNullException"><paramref name="innerClient"/> is <see langword="null"/>.</exception> 71/// <exception cref="ArgumentNullException">Both <paramref name="completeFunc"/> and <paramref name="completeStreamingFunc"/> are <see langword="null"/>.</exception> 181/// <exception cref="ArgumentNullException">Both <paramref name="completeFunc"/> and <paramref name="completeStreamingFunc"/> are <see langword="null"/>.</exception>
ChatCompletion\ChatClientBuilder.cs (2)
97/// <exception cref="ArgumentNullException"><paramref name="sharedFunc"/> is <see langword="null"/>.</exception> 130/// <exception cref="ArgumentNullException">Both <paramref name="completeFunc"/> and <paramref name="completeStreamingFunc"/> are <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\EmbeddingGeneratorBuilder.cs (1)
97/// <exception cref="ArgumentNullException"><paramref name="generateFunc"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Abstractions (20)
ChatCompletion\ChatFinishReason.cs (1)
22/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
Functions\AIFunctionMetadata.cs (2)
39/// <exception cref="ArgumentNullException">The <paramref name="name"/> was null.</exception> 46/// <exception cref="ArgumentNullException">The <paramref name="metadata"/> was null.</exception>
Functions\AIFunctionParameterMetadata.cs (2)
18/// <exception cref="ArgumentNullException">The <paramref name="name"/> was null.</exception> 26/// <exception cref="ArgumentNullException">The <paramref name="metadata"/> was 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Utilities\AIJsonUtilities.cs (2)
21/// <exception cref="ArgumentNullException"><paramref name="options"/> or <paramref name="typeDiscriminatorId"/> is <see langword="null"/>.</exception> 39/// <exception cref="ArgumentNullException"><paramref name="options"/>, <paramref name="contentType"/>, or <paramref name="typeDiscriminatorId"/> is <see langword="null"/>.</exception>
Microsoft.Extensions.AI.Abstractions.Tests (43)
ChatCompletion\ChatClientExtensionsTests.cs (5)
17Assert.Throws<ArgumentNullException>("client", () => ChatClientExtensions.GetService<object>(null!)); 23Assert.Throws<ArgumentNullException>("client", () => 28Assert.Throws<ArgumentNullException>("chatMessage", () => 37Assert.Throws<ArgumentNullException>("client", () => 42Assert.Throws<ArgumentNullException>("chatMessage", () =>
ChatCompletion\ChatCompletionTests.cs (3)
16Assert.Throws<ArgumentNullException>("message", () => new ChatCompletion((ChatMessage)null!)); 17Assert.Throws<ArgumentNullException>("choices", () => new ChatCompletion((IList<ChatMessage>)null!)); 81Assert.Throws<ArgumentNullException>("value", () => completion.Choices = null!);
ChatCompletion\ChatFinishReasonTests.cs (1)
21Assert.Throws<ArgumentNullException>("value", () => new ChatFinishReason(null!));
ChatCompletion\ChatMessageTests.cs (1)
60Assert.Throws<ArgumentNullException>("contents", () => new ChatMessage(ChatRole.User, (IList<AIContent>)null!));
ChatCompletion\ChatRoleTests.cs (1)
21Assert.Throws<ArgumentNullException>("value", () => new ChatRole(null!));
ChatCompletion\DelegatingChatClientTests.cs (2)
17Assert.Throws<ArgumentNullException>("innerClient", () => new NoOpDelegatingChatClient(null!)); 104Assert.Throws<ArgumentNullException>("serviceType", () => delegating.GetService(null!));
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (1)
21Assert.Throws<ArgumentNullException>("updates", () => ((List<StreamingChatCompletionUpdate>)null!).ToChatCompletion());
Contents\DataContentTests.cs (1)
132Assert.Throws<ArgumentNullException>("uri", () => JsonSerializer.Deserialize<DataContent>(json, TestJsonSerializerContext.Default.Options)!);
Contents\FunctionCallContentTests..cs (4)
334Assert.Throws<ArgumentNullException>("encodedArguments", () => FunctionCallContent.CreateFromParsedArguments((string)null!, "callId", "functionName", _ => null)); 335Assert.Throws<ArgumentNullException>("callId", () => FunctionCallContent.CreateFromParsedArguments("{}", null!, "functionName", _ => null)); 336Assert.Throws<ArgumentNullException>("name", () => FunctionCallContent.CreateFromParsedArguments("{}", "callId", null!, _ => null)); 337Assert.Throws<ArgumentNullException>("argumentParser", () => FunctionCallContent.CreateFromParsedArguments("{}", "callId", "functionName", 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!)); 65Assert.Throws<ArgumentNullException>("serviceType", () => delegating.GetService(null!));
Embeddings\EmbeddingGeneratorExtensionsTests.cs (5)
16Assert.Throws<ArgumentNullException>("generator", () => EmbeddingGeneratorExtensions.GetService<object>(null!)); 17Assert.Throws<ArgumentNullException>("generator", () => EmbeddingGeneratorExtensions.GetService<string, Embedding<double>, object>(null!)); 23await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateEmbeddingAsync("hello")); 24await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateEmbeddingVectorAsync("hello")); 25await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateAndZipAsync(["hello"]));
Embeddings\GeneratedEmbeddingsTests.cs (1)
19Assert.Throws<ArgumentNullException>("embeddings", () => new GeneratedEmbeddings<Embedding<float>>(null!));
Functions\AIFunctionMetadataTests.cs (6)
15Assert.Throws<ArgumentNullException>("name", () => new AIFunctionMetadata((string)null!)); 17Assert.Throws<ArgumentNullException>("metadata", () => new AIFunctionMetadata((AIFunctionMetadata)null!)); 60Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { Name = null! }); 61Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { Parameters = null! }); 62Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { ReturnParameter = null! }); 63Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { AdditionalProperties = null! });
Functions\AIFunctionParameterMetadataTests.cs (3)
15Assert.Throws<ArgumentNullException>("name", () => new AIFunctionParameterMetadata((string)null!)); 17Assert.Throws<ArgumentNullException>("metadata", () => new AIFunctionParameterMetadata((AIFunctionParameterMetadata)null!)); 88Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { Name = null! });
Utilities\AIJsonUtilitiesTests.cs (5)
352Assert.Throws<ArgumentNullException>(() => ((JsonSerializerOptions)null!).AddAIContentType<DerivedAIContent>("discriminator")); 353Assert.Throws<ArgumentNullException>(() => ((JsonSerializerOptions)null!).AddAIContentType(typeof(DerivedAIContent), "discriminator")); 354Assert.Throws<ArgumentNullException>(() => options.AddAIContentType<DerivedAIContent>(null!)); 355Assert.Throws<ArgumentNullException>(() => options.AddAIContentType(typeof(DerivedAIContent), null!)); 356Assert.Throws<ArgumentNullException>(() => options.AddAIContentType(null!, "discriminator"));
Microsoft.Extensions.AI.AzureAIInference (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.AzureAIInference.Tests (5)
AzureAIInferenceChatClientTests.cs (3)
29Assert.Throws<ArgumentNullException>("chatCompletionsClient", () => new AzureAIInferenceChatClient(null!, "model")); 41Assert.Throws<ArgumentNullException>("value", () => client.ToolCallJsonSerializerOptions = null!); 51Assert.Throws<ArgumentNullException>("chatCompletionsClient", () => ((ChatCompletionsClient)null!).AsChatClient("model"));
AzureAIInferenceEmbeddingGeneratorTests.cs (2)
23Assert.Throws<ArgumentNullException>("embeddingsClient", () => new AzureAIInferenceEmbeddingGenerator(null!)); 35Assert.Throws<ArgumentNullException>("embeddingsClient", () => ((EmbeddingsClient)null!).AsEmbeddingGenerator());
Microsoft.Extensions.AI.Integration.Tests (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.Ollama (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (9)
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AI.OpenAI.Tests (21)
OpenAIChatClientTests.cs (7)
29Assert.Throws<ArgumentNullException>("openAIClient", () => new OpenAIChatClient(null!, "model")); 30Assert.Throws<ArgumentNullException>("chatClient", () => new OpenAIChatClient(null!)); 33Assert.Throws<ArgumentNullException>("modelId", () => new OpenAIChatClient(openAIClient, null!)); 44Assert.Throws<ArgumentNullException>("value", () => client.ToolCallJsonSerializerOptions = null!); 54Assert.Throws<ArgumentNullException>("openAIClient", () => ((OpenAIClient)null!).AsChatClient("model")); 55Assert.Throws<ArgumentNullException>("chatClient", () => ((ChatClient)null!).AsChatClient()); 58Assert.Throws<ArgumentNullException>("modelId", () => client.AsChatClient(null!));
OpenAIEmbeddingGeneratorTests.cs (6)
25Assert.Throws<ArgumentNullException>("openAIClient", () => new OpenAIEmbeddingGenerator(null!, "model")); 26Assert.Throws<ArgumentNullException>("embeddingClient", () => new OpenAIEmbeddingGenerator(null!)); 29Assert.Throws<ArgumentNullException>("modelId", () => new OpenAIEmbeddingGenerator(openAIClient, null!)); 37Assert.Throws<ArgumentNullException>("openAIClient", () => ((OpenAIClient)null!).AsEmbeddingGenerator("model")); 38Assert.Throws<ArgumentNullException>("embeddingClient", () => ((EmbeddingClient)null!).AsEmbeddingGenerator()); 41Assert.Throws<ArgumentNullException>("modelId", () => client.AsEmbeddingGenerator(null!));
OpenAIRealtimeTests.cs (3)
76await Assert.ThrowsAsync<ArgumentNullException>(() => conversationSession.HandleToolCallsAsync( 81await Assert.ThrowsAsync<ArgumentNullException>(() => conversationSession.HandleToolCallsAsync( 85await Assert.ThrowsAsync<ArgumentNullException>(() => conversationSession.HandleToolCallsAsync(
OpenAISerializationTests.cs (5)
668await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(null!)); 670await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.SerializeAsync(null!, new(new ChatMessage()))); 671await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.SerializeAsync(new MemoryStream(), null!)); 673await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.SerializeStreamingAsync(null!, GetStreamingChatCompletion())); 674await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.SerializeStreamingAsync(new MemoryStream(), null!));
Microsoft.Extensions.AI.Tests (31)
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\FunctionInvokingChatClientTests.cs (2)
25Assert.Throws<ArgumentNullException>("innerClient", () => new FunctionInvokingChatClient(null!)); 26Assert.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 (6)
21Assert.Throws<ArgumentNullException>("sharedFunc", () => 24Assert.Throws<ArgumentNullException>("completeFunc", () => builder.Use(null!, null!)); 26Assert.Throws<ArgumentNullException>("innerClient", () => new AnonymousDelegatingChatClient(null!, delegate { return Task.CompletedTask; })); 27Assert.Throws<ArgumentNullException>("sharedFunc", () => new AnonymousDelegatingChatClient(client, null!)); 29Assert.Throws<ArgumentNullException>("innerClient", () => new AnonymousDelegatingChatClient(null!, null!, null!)); 30Assert.Throws<ArgumentNullException>("completeFunc", () => new AnonymousDelegatingChatClient(client, 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 (3)
20Assert.Throws<ArgumentNullException>("generateFunc", () => 23Assert.Throws<ArgumentNullException>("innerGenerator", () => 27Assert.Throws<ArgumentNullException>("generateFunc", () =>
Functions\AIFunctionFactoryTest.cs (4)
18Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!)); 19Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!, target: new object())); 20Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!, target: new object(), name: "myAiFunk")); 21Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).GetMethod(nameof(InvalidArguments_Throw))!, 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.AsyncState.Tests (1)
AsyncContextServiceCollectionExtensionsTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => AsyncStateExtensions.AddAsyncState(null!));
Microsoft.Extensions.Caching.Abstractions (7)
DistributedCacheExtensions.cs (6)
22/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 39/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 54/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 67/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 84/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception> 99/// <exception cref="System.ArgumentNullException"><paramref name="key"/> or <paramref name="value"/> is null.</exception>
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Caching.Hybrid (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.Caching.Memory (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Caching.SqlServer (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.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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.CommandLine (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.FileExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.Ini (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.Json (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.UserSecrets (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Configuration.Xml (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.DependencyInjection.AutoActivation (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.DependencyModel (2)
RuntimeLibrary.cs (1)
77/// <exception cref="System.ArgumentNullException">
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
31/// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception> 46/// <exception cref="ArgumentNullException">Either <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
87Assert.Throws<ArgumentNullException>(() =>
Microsoft.Extensions.Diagnostics.Testing (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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 (2)
PhysicalFilesWatcher.cs (1)
127/// <exception cref="ArgumentNullException"><paramref name="filter" /> is <see langword="null"/>.</exception>
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.FileSystemGlobbing (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Hosting (3)
Internal\ConsoleLifetime.cs (2)
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>
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Hosting.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Hosting.Systemd (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Hosting.Testing (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Http (6)
HttpMessageHandlerBuilder.cs (1)
77/// <exception cref="ArgumentNullException"><paramref name="primaryHandler"/> or <paramref name="additionalHandlers"/> is <see langword="null"/>.</exception>
Logging\LoggingHttpMessageHandler.cs (2)
26/// <exception cref="ArgumentNullException"><paramref name="logger"/> is <see langword="null"/>.</exception> 39/// <exception cref="ArgumentNullException"><paramref name="logger"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
Logging\LoggingScopeHttpMessageHandler.cs (2)
25/// <exception cref="ArgumentNullException"><paramref name="logger"/> is <see langword="null"/>.</exception> 38/// <exception cref="ArgumentNullException"><paramref name="logger"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Identity.Stores (1)
src\Shared\ThrowHelpers\ArgumentNullThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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 (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Logging.Debug (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Logging.EventLog (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Logging.EventSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Logging.TraceSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Options.ConfigurationExtensions (2)
OptionsBuilderConfigurationExtensions.cs (1)
58/// <exception cref="ArgumentNullException">
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
Microsoft.Extensions.Options.Contextual (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
Microsoft.Extensions.ServiceDiscovery (3)
Http\HttpServiceEndpointResolver.cs (1)
34ArgumentNullException.ThrowIfNull(request);
ServiceEndpointResolver.cs (1)
44ArgumentNullException.ThrowIfNull(serviceName);
ServiceEndpointWatcherFactory.cs (1)
31ArgumentNullException.ThrowIfNull(serviceName);
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
ServiceEndpointSource.cs (1)
27ArgumentNullException.ThrowIfNull(changeToken);
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 (12)
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);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
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 (16)
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>
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (18)
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)
420catch (ArgumentNullException e)
Microsoft.Extensions.TimeProvider.Testing (7)
src\Shared\Throw\Throw.cs (7)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// Throws an <see cref="System.ArgumentNullException"/>.
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.JSInterop (16)
DotNetObjectReference.cs (1)
21ArgumentNullException.ThrowIfNull(value);
JSInProcessObjectReferenceExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(jsObjectReference);
JSInProcessRuntimeExtensions.cs (1)
23ArgumentNullException.ThrowIfNull(jsRuntime);
JSObjectReferenceExtensions.cs (6)
24ArgumentNullException.ThrowIfNull(jsObjectReference); 43ArgumentNullException.ThrowIfNull(jsObjectReference); 62ArgumentNullException.ThrowIfNull(jsObjectReference); 80ArgumentNullException.ThrowIfNull(jsObjectReference); 95ArgumentNullException.ThrowIfNull(jsObjectReference); 113ArgumentNullException.ThrowIfNull(jsObjectReference);
JSRuntime.cs (1)
297ArgumentNullException.ThrowIfNull(dotNetObjectReference);
JSRuntimeExtensions.cs (6)
24ArgumentNullException.ThrowIfNull(jsRuntime); 43ArgumentNullException.ThrowIfNull(jsRuntime); 62ArgumentNullException.ThrowIfNull(jsRuntime); 80ArgumentNullException.ThrowIfNull(jsRuntime); 95ArgumentNullException.ThrowIfNull(jsRuntime); 113ArgumentNullException.ThrowIfNull(jsRuntime);
Microsoft.Maui (15)
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>
Handlers\HybridWebView\HybridWebViewHandler.iOS.cs (1)
120 ArgumentNullException.ThrowIfNull(message);
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>
ImageSources\iOS\ImageSourceExtensions.cs (5)
62 ArgumentNullException.ThrowIfNull(imageSource); 110 ArgumentNullException.ThrowIfNull(imageSource); 121 ArgumentNullException.ThrowIfNull(stream); 132 ArgumentNullException.ThrowIfNull(data); 139 ArgumentNullException.ThrowIfNull(cgImageSource);
Platform\iOS\MauiHybridWebView.cs (1)
18 ArgumentNullException.ThrowIfNull(handler, nameof(handler));
Microsoft.Maui.Controls (35)
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)
334 /// <exception cref="ArgumentNullException">Thrown when <paramref name="cancel"/> is <see langword="null"/> or empty.</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)
97 /// <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 (11)
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\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)
488Assert.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)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 312|| e is ArgumentNullException
XMake.cs (2)
3197catch (ArgumentNullException ex) 3311catch (ArgumentNullException ex)
MSBuildTaskHost (2)
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 312|| 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 (1011)
MS\Internal\Automation\InteropAutomationProvider.cs (2)
17ArgumentNullException.ThrowIfNull(wrapper); 18ArgumentNullException.ThrowIfNull(parent);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
717ArgumentNullException.ThrowIfNull(array);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
46ArgumentNullException.ThrowIfNull(familyMap);
MS\Internal\FontFace\TypefaceCollection.cs (1)
58ArgumentNullException.ThrowIfNull(array);
MS\Internal\Ink\ExtendedProperty.cs (1)
155ArgumentNullException.ThrowIfNull(value);
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
235ArgumentNullException.ThrowIfNull(value);
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
123ArgumentNullException.ThrowIfNull(strokes); 189ArgumentNullException.ThrowIfNull(applicationGestures);
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (4)
70ArgumentNullException.ThrowIfNull(input); 148ArgumentNullException.ThrowIfNull(input); 153ArgumentNullException.ThrowIfNull(outputBuffer); 308ArgumentNullException.ThrowIfNull(input);
MS\Internal\Ink\InkSerializedFormat\Compress.cs (1)
249ArgumentNullException.ThrowIfNull(data);
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (4)
77ArgumentNullException.ThrowIfNull(input); 496ArgumentNullException.ThrowIfNull(input); 498ArgumentNullException.ThrowIfNull(outputBuffer); 572ArgumentNullException.ThrowIfNull(reader);
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
134ArgumentNullException.ThrowIfNull(writer);
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
26ArgumentNullException.ThrowIfNull(output);
MS\Internal\Ink\Renderer.cs (5)
40ArgumentNullException.ThrowIfNull(stroke); 223ArgumentNullException.ThrowIfNull(value); 276ArgumentNullException.ThrowIfNull(visual); 277ArgumentNullException.ThrowIfNull(drawingAttributes); 321ArgumentNullException.ThrowIfNull(visual);
MS\Internal\Ink\StrokeNodeEnumerator.cs (7)
29ArgumentNullException.ThrowIfNull(stroke); 30ArgumentNullException.ThrowIfNull(drawingAttributes); 44ArgumentNullException.ThrowIfNull(stylusPoints); 45ArgumentNullException.ThrowIfNull(drawingAttributes); 104ArgumentNullException.ThrowIfNull(operations); 117ArgumentNullException.ThrowIfNull(stylusPoints); 146ArgumentNullException.ThrowIfNull(points);
MS\Internal\Ink\StrokeNodeOperations.cs (1)
25ArgumentNullException.ThrowIfNull(nodeShape);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (5)
54ArgumentNullException.ThrowIfNull(tempFileName); 181ArgumentNullException.ThrowIfNull(byteRanges); 295ArgumentNullException.ThrowIfNull(value); 400ArgumentNullException.ThrowIfNull(requestedUri); 408ArgumentNullException.ThrowIfNull(eventHandle);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
197ArgumentNullException.ThrowIfNull(obfuscatedStream);
MS\Internal\IO\Packaging\PreloadedPackages.cs (1)
151ArgumentNullException.ThrowIfNull(uri);
MS\Internal\IO\Packaging\PseudoWebRequest.cs (2)
197ArgumentNullException.ThrowIfNull(value); 217ArgumentNullException.ThrowIfNull(value);
MS\Internal\Media\TextOptionsInternal.cs (2)
41ArgumentNullException.ThrowIfNull(element); 48ArgumentNullException.ThrowIfNull(element);
MS\Internal\Media\VisualTreeUtils.cs (1)
232ArgumentNullException.ThrowIfNull(element);
MS\Internal\PartialArray.cs (1)
125ArgumentNullException.ThrowIfNull(array);
MS\Internal\TextFormatting\FullTextLine.cs (1)
536ArgumentNullException.ThrowIfNull(drawingContext);
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
481ArgumentNullException.ThrowIfNull(drawingContext);
MS\Internal\TextFormatting\TextFormatterImp.cs (3)
445ArgumentNullException.ThrowIfNull(textSource); 447ArgumentNullException.ThrowIfNull(textRunCache); 449ArgumentNullException.ThrowIfNull(paragraphProperties);
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
251ArgumentNullException.ThrowIfNull(drawingContext);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
166ArgumentNullException.ThrowIfNull(array);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
111ArgumentNullException.ThrowIfNull(array);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (2)
176ArgumentNullException.ThrowIfNull(characterArray); 275ArgumentNullException.ThrowIfNull(characterString);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
358ArgumentNullException.ThrowIfNull(bufferToWriteTo);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (2)
36ArgumentNullException.ThrowIfNull(stream); 38ArgumentNullException.ThrowIfNull(syncRoot);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
146ArgumentNullException.ThrowIfNull(exception);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
37ArgumentNullException.ThrowIfNull(array);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (12)
52/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 86/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 116/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 135/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 168/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 199/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 222/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 255/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 275/// <exception cref="ArgumentNullException"><i>fieldName</i> is <b>null</b></exception> 381/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null</exception> 406/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null</exception> 422/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null</exception>
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
56ArgumentNullException.ThrowIfNull(uri);
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (6)
105Contract.Requires<ArgumentNullException>(eventSource != null, nameof(eventSource)); 144Contract.Requires<ArgumentNullException>(parentActivity != null, nameof(parentActivity)); 177Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 208Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 238Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 257Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName));
System\IO\Packaging\PackageStore.cs (2)
99ArgumentNullException.ThrowIfNull(package); 141ArgumentNullException.ThrowIfNull(uri);
System\IO\Packaging\PackWebRequestFactory.cs (1)
51ArgumentNullException.ThrowIfNull(uri);
System\IO\Packaging\PackWebResponse.cs (7)
56ArgumentNullException.ThrowIfNull(uri); 58ArgumentNullException.ThrowIfNull(innerUri); 60ArgumentNullException.ThrowIfNull(innerRequest); 124ArgumentNullException.ThrowIfNull(uri); 126ArgumentNullException.ThrowIfNull(innerUri); 128ArgumentNullException.ThrowIfNull(partName); 130ArgumentNullException.ThrowIfNull(cacheEntry);
System\Windows\Automation\AutomationProperties.cs (34)
27ArgumentNullException.ThrowIfNull(element); 37ArgumentNullException.ThrowIfNull(element); 60ArgumentNullException.ThrowIfNull(element); 70ArgumentNullException.ThrowIfNull(element); 93ArgumentNullException.ThrowIfNull(element); 103ArgumentNullException.ThrowIfNull(element); 126ArgumentNullException.ThrowIfNull(element); 136ArgumentNullException.ThrowIfNull(element); 159ArgumentNullException.ThrowIfNull(element); 169ArgumentNullException.ThrowIfNull(element); 192ArgumentNullException.ThrowIfNull(element); 202ArgumentNullException.ThrowIfNull(element); 225ArgumentNullException.ThrowIfNull(element); 235ArgumentNullException.ThrowIfNull(element); 257ArgumentNullException.ThrowIfNull(element); 267ArgumentNullException.ThrowIfNull(element); 289ArgumentNullException.ThrowIfNull(element); 299ArgumentNullException.ThrowIfNull(element); 321ArgumentNullException.ThrowIfNull(element); 331ArgumentNullException.ThrowIfNull(element); 353ArgumentNullException.ThrowIfNull(element); 363ArgumentNullException.ThrowIfNull(element); 385ArgumentNullException.ThrowIfNull(element); 395ArgumentNullException.ThrowIfNull(element); 417ArgumentNullException.ThrowIfNull(element); 427ArgumentNullException.ThrowIfNull(element); 453ArgumentNullException.ThrowIfNull(element); 463ArgumentNullException.ThrowIfNull(element); 489ArgumentNullException.ThrowIfNull(element); 499ArgumentNullException.ThrowIfNull(element); 518ArgumentNullException.ThrowIfNull(element); 528ArgumentNullException.ThrowIfNull(element); 547ArgumentNullException.ThrowIfNull(element); 556ArgumentNullException.ThrowIfNull(element);
System\Windows\Automation\Peers\AutomationPeer.cs (3)
349ArgumentNullException.ThrowIfNull(args); 461ArgumentNullException.ThrowIfNull(connectedPeer); 545ArgumentNullException.ThrowIfNull(parent);
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (3)
23ArgumentNullException.ThrowIfNull(owner); 49ArgumentNullException.ThrowIfNull(element); 56ArgumentNullException.ThrowIfNull(element);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (3)
19ArgumentNullException.ThrowIfNull(owner); 46ArgumentNullException.ThrowIfNull(element); 54ArgumentNullException.ThrowIfNull(element);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
18ArgumentNullException.ThrowIfNull(owner); 44ArgumentNullException.ThrowIfNull(element); 52ArgumentNullException.ThrowIfNull(element);
System\Windows\clipboard.cs (13)
81ArgumentNullException.ThrowIfNull(format); 170ArgumentNullException.ThrowIfNull(format); 242ArgumentNullException.ThrowIfNull(audioBytes); 252ArgumentNullException.ThrowIfNull(audioStream); 262ArgumentNullException.ThrowIfNull(format); 269ArgumentNullException.ThrowIfNull(data); 279ArgumentNullException.ThrowIfNull(fileDropList); 311ArgumentNullException.ThrowIfNull(image); 321ArgumentNullException.ThrowIfNull(text); 331ArgumentNullException.ThrowIfNull(text); 365ArgumentNullException.ThrowIfNull(data); 414ArgumentNullException.ThrowIfNull(data); 459ArgumentNullException.ThrowIfNull(data);
System\Windows\ContentElement.cs (2)
855ArgumentNullException.ThrowIfNull(touchDevice); 867ArgumentNullException.ThrowIfNull(touchDevice);
System\Windows\ContentOperations.cs (2)
18ArgumentNullException.ThrowIfNull(reference); 35ArgumentNullException.ThrowIfNull(reference);
System\Windows\CultureInfoConverter.cs (3)
75/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 120ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\DataFormat.cs (1)
37ArgumentNullException.ThrowIfNull(name);
System\Windows\DataFormats.cs (1)
53ArgumentNullException.ThrowIfNull(format);
System\Windows\dataobject.cs (28)
57ArgumentNullException.ThrowIfNull(data); 87ArgumentNullException.ThrowIfNull(format); 94ArgumentNullException.ThrowIfNull(data); 106ArgumentNullException.ThrowIfNull(format); 107ArgumentNullException.ThrowIfNull(data); 118ArgumentNullException.ThrowIfNull(format); 125ArgumentNullException.ThrowIfNull(data); 136ArgumentNullException.ThrowIfNull(data); 146ArgumentNullException.ThrowIfNull(data); 168ArgumentNullException.ThrowIfNull(format); 184ArgumentNullException.ThrowIfNull(format); 200ArgumentNullException.ThrowIfNull(format); 212ArgumentNullException.ThrowIfNull(format); 226ArgumentNullException.ThrowIfNull(format); 244ArgumentNullException.ThrowIfNull(format); 281ArgumentNullException.ThrowIfNull(data); 291ArgumentNullException.ThrowIfNull(format); 298ArgumentNullException.ThrowIfNull(data); 309ArgumentNullException.ThrowIfNull(format); 310ArgumentNullException.ThrowIfNull(data); 323ArgumentNullException.ThrowIfNull(format); 330ArgumentNullException.ThrowIfNull(data); 451ArgumentNullException.ThrowIfNull(audioBytes); 461ArgumentNullException.ThrowIfNull(audioStream); 471ArgumentNullException.ThrowIfNull(fileDropList); 503ArgumentNullException.ThrowIfNull(image); 513ArgumentNullException.ThrowIfNull(textData); 523ArgumentNullException.ThrowIfNull(textData);
System\Windows\DataObjectCopyingEventArgs.cs (1)
49ArgumentNullException.ThrowIfNull(dataObject);
System\Windows\DataObjectPastingEventArgs.cs (4)
50ArgumentNullException.ThrowIfNull(dataObject); 52ArgumentNullException.ThrowIfNull(formatToApply); 124ArgumentNullException.ThrowIfNull(value); 154ArgumentNullException.ThrowIfNull(value);
System\Windows\DataObjectSettingDataEventArgs.cs (2)
43ArgumentNullException.ThrowIfNull(dataObject); 45ArgumentNullException.ThrowIfNull(format);
System\Windows\Documents\DynamicDocumentPaginator.cs (1)
73ArgumentNullException.ThrowIfNull(contentPosition);
System\Windows\DragDrop.cs (2)
373ArgumentNullException.ThrowIfNull(dragSource); 375ArgumentNullException.ThrowIfNull(data);
System\Windows\DragEventArgs.cs (1)
83ArgumentNullException.ThrowIfNull(relativeTo);
System\Windows\DurationConverter.cs (1)
94ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\EventHandlersStore.cs (11)
53ArgumentNullException.ThrowIfNull(key); 54ArgumentNullException.ThrowIfNull(handler); 88ArgumentNullException.ThrowIfNull(key); 89ArgumentNullException.ThrowIfNull(handler); 125ArgumentNullException.ThrowIfNull(key); 144ArgumentNullException.ThrowIfNull(routedEvent); 145ArgumentNullException.ThrowIfNull(handler); 178ArgumentNullException.ThrowIfNull(routedEvent); 179ArgumentNullException.ThrowIfNull(handler); 222ArgumentNullException.ThrowIfNull(routedEvent); 234ArgumentNullException.ThrowIfNull(routedEvent);
System\Windows\EventManager.cs (9)
56ArgumentNullException.ThrowIfNull(name); 65ArgumentNullException.ThrowIfNull(handlerType); 67ArgumentNullException.ThrowIfNull(ownerType); 150ArgumentNullException.ThrowIfNull(classType); 152ArgumentNullException.ThrowIfNull(routedEvent); 154ArgumentNullException.ThrowIfNull(handler); 217ArgumentNullException.ThrowIfNull(ownerType); 249ArgumentNullException.ThrowIfNull(name); 251ArgumentNullException.ThrowIfNull(ownerType);
System\Windows\EventRoute.cs (5)
41ArgumentNullException.ThrowIfNull(routedEvent); 78ArgumentNullException.ThrowIfNull(target); 80ArgumentNullException.ThrowIfNull(handler); 123ArgumentNullException.ThrowIfNull(source); 125ArgumentNullException.ThrowIfNull(args);
System\Windows\FreezableCollection.cs (4)
65ArgumentNullException.ThrowIfNull(collection); 362ArgumentNullException.ThrowIfNull(array); 472ArgumentNullException.ThrowIfNull(array); 636ArgumentNullException.ThrowIfNull(value);
System\Windows\Generated\ContentElement.cs (12)
69ArgumentNullException.ThrowIfNull(dp); 134ArgumentNullException.ThrowIfNull(dp); 188ArgumentNullException.ThrowIfNull(dp); 389ArgumentNullException.ThrowIfNull(e); 401ArgumentNullException.ThrowIfNull(args); 417ArgumentNullException.ThrowIfNull(args); 517ArgumentNullException.ThrowIfNull(routedEvent); 519ArgumentNullException.ThrowIfNull(handler); 572ArgumentNullException.ThrowIfNull(routedEvent); 574ArgumentNullException.ThrowIfNull(handler); 632ArgumentNullException.ThrowIfNull(route); 633ArgumentNullException.ThrowIfNull(e);
System\Windows\Generated\TextDecorationCollection.cs (4)
270ArgumentNullException.ThrowIfNull(array); 380ArgumentNullException.ThrowIfNull(array); 490ArgumentNullException.ThrowIfNull(value); 886ArgumentNullException.ThrowIfNull(collection);
System\Windows\Generated\UIElement.cs (12)
69ArgumentNullException.ThrowIfNull(dp); 134ArgumentNullException.ThrowIfNull(dp); 188ArgumentNullException.ThrowIfNull(dp); 389ArgumentNullException.ThrowIfNull(e); 401ArgumentNullException.ThrowIfNull(args); 417ArgumentNullException.ThrowIfNull(args); 517ArgumentNullException.ThrowIfNull(routedEvent); 519ArgumentNullException.ThrowIfNull(handler); 572ArgumentNullException.ThrowIfNull(routedEvent); 574ArgumentNullException.ThrowIfNull(handler); 632ArgumentNullException.ThrowIfNull(route); 633ArgumentNullException.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); 436ArgumentNullException.ThrowIfNull(route); 437ArgumentNullException.ThrowIfNull(e);
System\Windows\IContentHost.cs (2)
33/// <exception cref="ArgumentNullException"> 63/// <exception cref="ArgumentNullException">
System\Windows\Ink\DrawingAttributes.cs (1)
701ArgumentNullException.ThrowIfNull(propertyData);
System\Windows\Ink\Events.cs (4)
202ArgumentNullException.ThrowIfNull(newDrawingAttributes); 203ArgumentNullException.ThrowIfNull(previousDrawingAttributes); 246ArgumentNullException.ThrowIfNull(newStylusPoints); 247ArgumentNullException.ThrowIfNull(previousStylusPoints);
System\Windows\Ink\GestureRecognizer.cs (1)
162ArgumentNullException.ThrowIfNull(strokes);
System\Windows\Ink\IncrementalHitTester.cs (2)
38ArgumentNullException.ThrowIfNull(points); 61ArgumentNullException.ThrowIfNull(stylusPoints);
System\Windows\Ink\Stroke.cs (5)
48ArgumentNullException.ThrowIfNull(stylusPoints); 53ArgumentNullException.ThrowIfNull(drawingAttributes); 464ArgumentNullException.ThrowIfNull(value); 503ArgumentNullException.ThrowIfNull(value); 603ArgumentNullException.ThrowIfNull(e);
System\Windows\Ink\Stroke2.cs (13)
52ArgumentNullException.ThrowIfNull(context); 70ArgumentNullException.ThrowIfNull(drawingContext); 72ArgumentNullException.ThrowIfNull(drawingAttributes); 117ArgumentNullException.ThrowIfNull(lassoPoints); 148ArgumentNullException.ThrowIfNull(lassoPoints); 169ArgumentNullException.ThrowIfNull(eraserShape); 170ArgumentNullException.ThrowIfNull(eraserPath); 256ArgumentNullException.ThrowIfNull(lassoPoints); 310ArgumentNullException.ThrowIfNull(path); 311ArgumentNullException.ThrowIfNull(stylusShape); 366ArgumentNullException.ThrowIfNull(drawingContext); 368ArgumentNullException.ThrowIfNull(drawingAttributes); 448ArgumentNullException.ThrowIfNull(drawingAttributes);
System\Windows\Ink\StrokeCollection.cs (7)
37ArgumentNullException.ThrowIfNull(strokes); 58ArgumentNullException.ThrowIfNull(stream); 82ArgumentNullException.ThrowIfNull(stream); 307ArgumentNullException.ThrowIfNull(stroke); 325ArgumentNullException.ThrowIfNull(stroke); 371ArgumentNullException.ThrowIfNull(strokes); 412ArgumentNullException.ThrowIfNull(strokes);
System\Windows\Ink\StrokeCollection2.cs (7)
82ArgumentNullException.ThrowIfNull(lassoPoints); 184ArgumentNullException.ThrowIfNull(stylusShape); 185ArgumentNullException.ThrowIfNull(path); 221ArgumentNullException.ThrowIfNull(lassoPoints); 272ArgumentNullException.ThrowIfNull(lassoPoints); 349ArgumentNullException.ThrowIfNull(context); 412ArgumentNullException.ThrowIfNull(eraserShape);
System\Windows\Ink\StrokeCollectionConverter.cs (1)
110ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\AccessKeyManager.cs (3)
27ArgumentNullException.ThrowIfNull(element); 58ArgumentNullException.ThrowIfNull(element); 120ArgumentNullException.ThrowIfNull(key);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (4)
44ArgumentNullException.ThrowIfNull(source); 45ArgumentNullException.ThrowIfNull(handler); 54ArgumentNullException.ThrowIfNull(source); 55ArgumentNullException.ThrowIfNull(handler);
System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (1)
29ArgumentNullException.ThrowIfNull(command);
System\Windows\Input\Command\CommandBinding.cs (2)
56ArgumentNullException.ThrowIfNull(command); 82ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Command\CommandBindingCollection.cs (1)
182ArgumentNullException.ThrowIfNull(collection);
System\Windows\Input\Command\CommandDevice.cs (1)
305ArgumentNullException.ThrowIfNull(command);
System\Windows\Input\Command\CommandManager.cs (20)
49ArgumentNullException.ThrowIfNull(element); 50ArgumentNullException.ThrowIfNull(handler); 62ArgumentNullException.ThrowIfNull(element); 63ArgumentNullException.ThrowIfNull(handler); 84ArgumentNullException.ThrowIfNull(element); 85ArgumentNullException.ThrowIfNull(handler); 97ArgumentNullException.ThrowIfNull(element); 98ArgumentNullException.ThrowIfNull(handler); 119ArgumentNullException.ThrowIfNull(element); 120ArgumentNullException.ThrowIfNull(handler); 132ArgumentNullException.ThrowIfNull(element); 133ArgumentNullException.ThrowIfNull(handler); 154ArgumentNullException.ThrowIfNull(element); 155ArgumentNullException.ThrowIfNull(handler); 167ArgumentNullException.ThrowIfNull(element); 168ArgumentNullException.ThrowIfNull(handler); 184ArgumentNullException.ThrowIfNull(type); 185ArgumentNullException.ThrowIfNull(inputBinding); 213ArgumentNullException.ThrowIfNull(type); 214ArgumentNullException.ThrowIfNull(commandBinding);
System\Windows\Input\Command\ExecutedRoutedEventArgs.cs (1)
29ArgumentNullException.ThrowIfNull(command);
System\Windows\Input\Command\InputBinding.cs (3)
38ArgumentNullException.ThrowIfNull(command); 40ArgumentNullException.ThrowIfNull(gesture); 142ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Command\InputBindingCollection.cs (1)
244ArgumentNullException.ThrowIfNull(collection);
System\Windows\Input\Command\InputGestureCollection.cs (3)
255ArgumentNullException.ThrowIfNull(inputGesture); 275ArgumentNullException.ThrowIfNull(collection); 336ArgumentNullException.ThrowIfNull(inputGesture);
System\Windows\Input\Command\KeyGesture.cs (1)
97ArgumentNullException.ThrowIfNull(displayString);
System\Windows\Input\Command\KeyGestureConverter.cs (1)
138ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\Command\MouseActionConverter.cs (1)
85ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\Command\MouseGestureConverter.cs (1)
142ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\Command\RoutedCommand.cs (2)
47ArgumentNullException.ThrowIfNull(name); 54ArgumentNullException.ThrowIfNull(ownerType);
System\Windows\Input\Command\RoutedUICommand.cs (2)
49ArgumentNullException.ThrowIfNull(text); 78ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Cursor.cs (2)
53ArgumentNullException.ThrowIfNull(cursorFile); 84ArgumentNullException.ThrowIfNull(cursorStream);
System\Windows\Input\CursorConverter.cs (1)
209ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\FocusManager.cs (5)
131ArgumentNullException.ThrowIfNull(element); 161ArgumentNullException.ThrowIfNull(element); 173ArgumentNullException.ThrowIfNull(element); 184ArgumentNullException.ThrowIfNull(element); 195ArgumentNullException.ThrowIfNull(element);
System\Windows\Input\InputLanguageManager.cs (14)
38ArgumentNullException.ThrowIfNull(target); 50ArgumentNullException.ThrowIfNull(target); 75ArgumentNullException.ThrowIfNull(target); 86ArgumentNullException.ThrowIfNull(target); 121ArgumentNullException.ThrowIfNull(inputLanguageSource); 146ArgumentNullException.ThrowIfNull(newLanguageId); 148ArgumentNullException.ThrowIfNull(previousLanguageId); 182ArgumentNullException.ThrowIfNull(newLanguageId); 184ArgumentNullException.ThrowIfNull(previousLanguageId); 259ArgumentNullException.ThrowIfNull(value); 294ArgumentNullException.ThrowIfNull(value); 306ArgumentNullException.ThrowIfNull(value); 324ArgumentNullException.ThrowIfNull(value); 336ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\InputManager.cs (3)
328ArgumentNullException.ThrowIfNull(menuSite); 349ArgumentNullException.ThrowIfNull(menuSite); 514ArgumentNullException.ThrowIfNull(input);
System\Windows\Input\InputMethod.cs (14)
225ArgumentNullException.ThrowIfNull(target); 236ArgumentNullException.ThrowIfNull(target); 258ArgumentNullException.ThrowIfNull(target); 269ArgumentNullException.ThrowIfNull(target); 292ArgumentNullException.ThrowIfNull(target); 303ArgumentNullException.ThrowIfNull(target); 325ArgumentNullException.ThrowIfNull(target); 336ArgumentNullException.ThrowIfNull(target); 358ArgumentNullException.ThrowIfNull(target); 369ArgumentNullException.ThrowIfNull(target); 390ArgumentNullException.ThrowIfNull(target); 401ArgumentNullException.ThrowIfNull(target); 1170ArgumentNullException.ThrowIfNull(value); 1183ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\InputReport.cs (1)
35ArgumentNullException.ThrowIfNull(inputSource);
System\Windows\Input\InputReportEventArgs.cs (1)
25ArgumentNullException.ThrowIfNull(report);
System\Windows\Input\InputScope.cs (4)
54ArgumentNullException.ThrowIfNull(value); 72ArgumentNullException.ThrowIfNull(value); 280ArgumentNullException.ThrowIfNull(name); 304ArgumentNullException.ThrowIfNull(name);
System\Windows\Input\KeyEventArgs.cs (1)
30ArgumentNullException.ThrowIfNull(inputSource);
System\Windows\Input\Manipulation.cs (15)
34ArgumentNullException.ThrowIfNull(element); 59ArgumentNullException.ThrowIfNull(element); 71ArgumentNullException.ThrowIfNull(element); 97ArgumentNullException.ThrowIfNull(element); 117ArgumentNullException.ThrowIfNull(element); 138ArgumentNullException.ThrowIfNull(element); 159ArgumentNullException.ThrowIfNull(element); 177ArgumentNullException.ThrowIfNull(element); 197ArgumentNullException.ThrowIfNull(element); 216ArgumentNullException.ThrowIfNull(element); 217ArgumentNullException.ThrowIfNull(manipulator); 235ArgumentNullException.ThrowIfNull(element); 236ArgumentNullException.ThrowIfNull(manipulator); 264ArgumentNullException.ThrowIfNull(element); 265ArgumentNullException.ThrowIfNull(parameter);
System\Windows\Input\ManipulationBoundaryFeedbackEventArgs.cs (2)
36ArgumentNullException.ThrowIfNull(genericHandler); 38ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\ManipulationCompletedEventArgs.cs (4)
28ArgumentNullException.ThrowIfNull(total); 30ArgumentNullException.ThrowIfNull(velocities); 46ArgumentNullException.ThrowIfNull(genericHandler); 48ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\ManipulationDeltaEventArgs.cs (6)
29ArgumentNullException.ThrowIfNull(delta); 31ArgumentNullException.ThrowIfNull(cumulative); 33ArgumentNullException.ThrowIfNull(velocities); 50ArgumentNullException.ThrowIfNull(genericHandler); 52ArgumentNullException.ThrowIfNull(genericTarget); 125ArgumentNullException.ThrowIfNull(unusedManipulation);
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (4)
30ArgumentNullException.ThrowIfNull(initialVelocities); 45ArgumentNullException.ThrowIfNull(genericHandler); 47ArgumentNullException.ThrowIfNull(genericTarget); 195ArgumentNullException.ThrowIfNull(parameter);
System\Windows\Input\ManipulationStartedEventArgs.cs (2)
36ArgumentNullException.ThrowIfNull(genericHandler); 38ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\ManipulationStartingEventArgs.cs (2)
110ArgumentNullException.ThrowIfNull(genericHandler); 112ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\Input\MouseEventArgs.cs (2)
24ArgumentNullException.ThrowIfNull(mouse); 42ArgumentNullException.ThrowIfNull(mouse);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (3)
98ArgumentNullException.ThrowIfNull(value); 729ArgumentNullException.ThrowIfNull(drawingContext); 1044ArgumentNullException.ThrowIfNull(value);
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (2)
49ArgumentNullException.ThrowIfNull(source); 50ArgumentNullException.ThrowIfNull(listener);
System\Windows\Input\Stylus\Common\RawStylusInput.cs (3)
27ArgumentNullException.ThrowIfNull(report); 32ArgumentNullException.ThrowIfNull(targetPlugInCollection); 99ArgumentNullException.ThrowIfNull(stylusPoints);
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
186ArgumentNullException.ThrowIfNull(data); 242ArgumentNullException.ThrowIfNull(data);
System\Windows\Input\Stylus\Common\Stylus.cs (8)
578ArgumentNullException.ThrowIfNull(element); 595ArgumentNullException.ThrowIfNull(element); 618ArgumentNullException.ThrowIfNull(element); 635ArgumentNullException.ThrowIfNull(element); 658ArgumentNullException.ThrowIfNull(element); 675ArgumentNullException.ThrowIfNull(element); 697ArgumentNullException.ThrowIfNull(element); 714ArgumentNullException.ThrowIfNull(element);
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
36ArgumentNullException.ThrowIfNull(impl);
System\Windows\Input\Stylus\Common\StylusEventArgs.cs (1)
26ArgumentNullException.ThrowIfNull(stylus);
System\Windows\Input\Stylus\Common\StylusPoint.cs (4)
102ArgumentNullException.ThrowIfNull(stylusPointDescription); 109ArgumentNullException.ThrowIfNull(additionalValues); 271ArgumentNullException.ThrowIfNull(stylusPointProperty); 336ArgumentNullException.ThrowIfNull(stylusPointProperty);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (6)
57ArgumentNullException.ThrowIfNull(stylusPointDescription); 84ArgumentNullException.ThrowIfNull(stylusPoints); 111ArgumentNullException.ThrowIfNull(points); 140ArgumentNullException.ThrowIfNull(stylusPointDescription); 201ArgumentNullException.ThrowIfNull(stylusPoints); 400ArgumentNullException.ThrowIfNull(e);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (6)
47ArgumentNullException.ThrowIfNull(stylusPointPropertyInfos); 114ArgumentNullException.ThrowIfNull(stylusPointProperty); 138ArgumentNullException.ThrowIfNull(stylusPointProperty); 331ArgumentNullException.ThrowIfNull(stylusPointDescription); 332ArgumentNullException.ThrowIfNull(stylusPointDescriptionPreserveInfo); 380ArgumentNullException.ThrowIfNull(stylusPointDescriptionSuperset);
System\Windows\Input\Stylus\Common\StylusPointProperty.cs (1)
37ArgumentNullException.ThrowIfNull(stylusPointProperty);
System\Windows\Input\Stylus\Common\StylusTraceLogger.cs (3)
206Requires<ArgumentNullException>(stylusData != null); 225Requires<ArgumentNullException>(error != null); 236Requires<ArgumentNullException>(deviceInfo != null);
System\Windows\Input\Stylus\Common\TabletDevice.cs (1)
28ArgumentNullException.ThrowIfNull(impl);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
689ArgumentNullException.ThrowIfNull(subsetToReformatTo);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1129ArgumentNullException.ThrowIfNull(subsetToReformatTo);
System\Windows\Input\TextCompositionEventArgs.cs (1)
30ArgumentNullException.ThrowIfNull(composition);
System\Windows\Input\TextCompositionManager.cs (15)
47ArgumentNullException.ThrowIfNull(element); 59ArgumentNullException.ThrowIfNull(element); 76ArgumentNullException.ThrowIfNull(element); 88ArgumentNullException.ThrowIfNull(element); 105ArgumentNullException.ThrowIfNull(element); 117ArgumentNullException.ThrowIfNull(element); 134ArgumentNullException.ThrowIfNull(element); 146ArgumentNullException.ThrowIfNull(element); 163ArgumentNullException.ThrowIfNull(element); 175ArgumentNullException.ThrowIfNull(element); 192ArgumentNullException.ThrowIfNull(element); 204ArgumentNullException.ThrowIfNull(element); 300ArgumentNullException.ThrowIfNull(composition); 323ArgumentNullException.ThrowIfNull(composition); 350ArgumentNullException.ThrowIfNull(composition);
System\Windows\Input\TouchPoint.cs (1)
35ArgumentNullException.ThrowIfNull(device);
System\Windows\InterOp\HwndPanningFeedback.cs (1)
25ArgumentNullException.ThrowIfNull(hwndSource);
System\Windows\InterOp\HwndSource.cs (3)
1910ArgumentNullException.ThrowIfNull(sink); 1964ArgumentNullException.ThrowIfNull(request); 1980ArgumentNullException.ThrowIfNull(request);
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (2)
13ArgumentNullException.ThrowIfNull(source); 14ArgumentNullException.ThrowIfNull(sink);
System\Windows\Markup\XmlLanguage.cs (5)
108/// <exception cref="ArgumentNullException"> 118ArgumentNullException.ThrowIfNull(ietfLanguageTag); 342ArgumentNullException.ThrowIfNull(culture); 706/// <exception cref="ArgumentNullException">tag is NULL.</exception> 710ArgumentNullException.ThrowIfNull(ietfLanguageTag);
System\Windows\Markup\XmlLanguageConverter.cs (3)
68/// <exception cref="ArgumentNullException"> 97/// <exception cref="ArgumentNullException"> 113ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Media\Animation\Generated\Animatable.cs (3)
62ArgumentNullException.ThrowIfNull(dp); 127ArgumentNullException.ThrowIfNull(dp); 181ArgumentNullException.ThrowIfNull(dp);
System\Windows\Media\Animation\Generated\BooleanAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 486ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\ByteAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\CharAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (4)
200ArgumentNullException.ThrowIfNull(child); 237/// <exception cref="ArgumentNullException">The childText parameter is 241ArgumentNullException.ThrowIfNull(childText); 485ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\ColorAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\DecimalAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\DoubleAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Int16AnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Int32AnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Int64AnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\MatrixAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (4)
200ArgumentNullException.ThrowIfNull(child); 237/// <exception cref="ArgumentNullException">The childText parameter is 241ArgumentNullException.ThrowIfNull(childText); 485ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\ObjectAnimationBase.cs (1)
78ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (4)
200ArgumentNullException.ThrowIfNull(child); 237/// <exception cref="ArgumentNullException">The childText parameter is 241ArgumentNullException.ThrowIfNull(childText); 485ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Point3DAnimationBase.cs (3)
79ArgumentNullException.ThrowIfNull(defaultOriginValue); 80ArgumentNullException.ThrowIfNull(defaultDestinationValue); 134ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (4)
202ArgumentNullException.ThrowIfNull(child); 239/// <exception cref="ArgumentNullException">The childText parameter is 243ArgumentNullException.ThrowIfNull(childText); 520ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\PointAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\QuaternionAnimationBase.cs (3)
79ArgumentNullException.ThrowIfNull(defaultOriginValue); 80ArgumentNullException.ThrowIfNull(defaultDestinationValue); 134ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (4)
202ArgumentNullException.ThrowIfNull(child); 239/// <exception cref="ArgumentNullException">The childText parameter is 243ArgumentNullException.ThrowIfNull(childText); 520ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\RectAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\Rotation3DAnimationBase.cs (1)
131ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (4)
202ArgumentNullException.ThrowIfNull(child); 239/// <exception cref="ArgumentNullException">The childText parameter is 243ArgumentNullException.ThrowIfNull(childText); 520ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\SingleAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\SizeAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (32)
63ArgumentNullException.ThrowIfNull(keySpline); 135ArgumentNullException.ThrowIfNull(value); 190ArgumentNullException.ThrowIfNull(keySpline); 262ArgumentNullException.ThrowIfNull(value); 317ArgumentNullException.ThrowIfNull(keySpline); 389ArgumentNullException.ThrowIfNull(value); 444ArgumentNullException.ThrowIfNull(keySpline); 516ArgumentNullException.ThrowIfNull(value); 571ArgumentNullException.ThrowIfNull(keySpline); 643ArgumentNullException.ThrowIfNull(value); 698ArgumentNullException.ThrowIfNull(keySpline); 770ArgumentNullException.ThrowIfNull(value); 825ArgumentNullException.ThrowIfNull(keySpline); 897ArgumentNullException.ThrowIfNull(value); 952ArgumentNullException.ThrowIfNull(keySpline); 1024ArgumentNullException.ThrowIfNull(value); 1079ArgumentNullException.ThrowIfNull(keySpline); 1151ArgumentNullException.ThrowIfNull(value); 1206ArgumentNullException.ThrowIfNull(keySpline); 1278ArgumentNullException.ThrowIfNull(value); 1333ArgumentNullException.ThrowIfNull(keySpline); 1405ArgumentNullException.ThrowIfNull(value); 1460ArgumentNullException.ThrowIfNull(keySpline); 1532ArgumentNullException.ThrowIfNull(value); 1587ArgumentNullException.ThrowIfNull(keySpline); 1659ArgumentNullException.ThrowIfNull(value); 1714ArgumentNullException.ThrowIfNull(keySpline); 1786ArgumentNullException.ThrowIfNull(value); 1841ArgumentNullException.ThrowIfNull(keySpline); 1913ArgumentNullException.ThrowIfNull(value); 1968ArgumentNullException.ThrowIfNull(keySpline); 2040ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\StringAnimationBase.cs (1)
129ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (4)
200ArgumentNullException.ThrowIfNull(child); 237/// <exception cref="ArgumentNullException">The childText parameter is 241ArgumentNullException.ThrowIfNull(childText); 485ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (3)
269ArgumentNullException.ThrowIfNull(array); 379ArgumentNullException.ThrowIfNull(array); 489ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Vector3DAnimationBase.cs (3)
79ArgumentNullException.ThrowIfNull(defaultOriginValue); 80ArgumentNullException.ThrowIfNull(defaultDestinationValue); 134ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (4)
202ArgumentNullException.ThrowIfNull(child); 239/// <exception cref="ArgumentNullException">The childText parameter is 243ArgumentNullException.ThrowIfNull(childText); 520ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Generated\VectorAnimationBase.cs (3)
77ArgumentNullException.ThrowIfNull(defaultOriginValue); 78ArgumentNullException.ThrowIfNull(defaultDestinationValue); 132ArgumentNullException.ThrowIfNull(animationClock);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (4)
201ArgumentNullException.ThrowIfNull(child); 238/// <exception cref="ArgumentNullException">The childText parameter is 242ArgumentNullException.ThrowIfNull(childText); 519ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (2)
283ArgumentNullException.ThrowIfNull(keyFrame); 364ArgumentNullException.ThrowIfNull(keyFrame);
System\Windows\Media\Animation\Timeline.cs (2)
377ArgumentNullException.ThrowIfNull(timeline); 390ArgumentNullException.ThrowIfNull(timeline);
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
93ArgumentNullException.ThrowIfNull(item);
System\Windows\Media\Animation\TimelineGroup.cs (3)
109ArgumentNullException.ThrowIfNull(child); 165/// <exception cref="ArgumentNullException">The childText parameter is 171ArgumentNullException.ThrowIfNull(childText);
System\Windows\Media\CharacterMetrics.cs (1)
52ArgumentNullException.ThrowIfNull(metrics);
System\Windows\Media\CharacterMetricsDictionary.cs (5)
117ArgumentNullException.ThrowIfNull(array); 174ArgumentNullException.ThrowIfNull(array); 358ArgumentNullException.ThrowIfNull(value); 484ArgumentNullException.ThrowIfNull(key); 516ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\ColorContext.cs (1)
484ArgumentNullException.ThrowIfNull(profileUri);
System\Windows\Media\CultureSpecificStringDictionary.cs (5)
109ArgumentNullException.ThrowIfNull(array); 143ArgumentNullException.ThrowIfNull(array); 300ArgumentNullException.ThrowIfNull(value); 311ArgumentNullException.ThrowIfNull(value); 324ArgumentNullException.ThrowIfNull(key);
System\Windows\Media\DrawingVisual.cs (2)
26ArgumentNullException.ThrowIfNull(hitTestParameters); 44ArgumentNullException.ThrowIfNull(hitTestParameters);
System\Windows\Media\Effects\BitmapEffect.cs (1)
93ArgumentNullException.ThrowIfNull(input);
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (4)
269ArgumentNullException.ThrowIfNull(array); 379ArgumentNullException.ThrowIfNull(array); 489ArgumentNullException.ThrowIfNull(value); 885ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\EventProxy.cs (1)
129ArgumentNullException.ThrowIfNull(invokable);
System\Windows\Media\FamilyMap.cs (1)
85ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\FamilyMapCollection.cs (5)
75ArgumentNullException.ThrowIfNull(array); 89ArgumentNullException.ThrowIfNull(array); 247ArgumentNullException.ThrowIfNull(item); 295ArgumentNullException.ThrowIfNull(item); 364ArgumentNullException.ThrowIfNull(obj);
System\Windows\Media\FamilyTypefaceCollection.cs (4)
232ArgumentNullException.ThrowIfNull(item); 299ArgumentNullException.ThrowIfNull(item); 356ArgumentNullException.ThrowIfNull(obj); 367ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\FontEmbeddingManager.cs (1)
44ArgumentNullException.ThrowIfNull(glyphRun);
System\Windows\Media\FontFamily.cs (1)
69ArgumentNullException.ThrowIfNull(familyName);
System\Windows\Media\FontFamilyConverter.cs (2)
116ArgumentNullException.ThrowIfNull(value); 124ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Media\Fonts.cs (5)
43ArgumentNullException.ThrowIfNull(location); 60ArgumentNullException.ThrowIfNull(baseUri); 136ArgumentNullException.ThrowIfNull(location); 153ArgumentNullException.ThrowIfNull(baseUri); 312ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\FormattedText.cs (5)
203ArgumentNullException.ThrowIfNull(textToFormat); 205ArgumentNullException.ThrowIfNull(typeface); 269ArgumentNullException.ThrowIfNull(culture); 370ArgumentNullException.ThrowIfNull(fontFamily); 392ArgumentNullException.ThrowIfNull(fontFamily);
System\Windows\Media\Generated\DoubleCollection.cs (4)
224ArgumentNullException.ThrowIfNull(array); 347ArgumentNullException.ThrowIfNull(array); 441ArgumentNullException.ThrowIfNull(value); 910ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\DrawingCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\GeneralTransformCollection.cs (4)
267ArgumentNullException.ThrowIfNull(array); 377ArgumentNullException.ThrowIfNull(array); 487ArgumentNullException.ThrowIfNull(value); 883ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\GeometryCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\GradientStopCollection.cs (4)
268ArgumentNullException.ThrowIfNull(array); 378ArgumentNullException.ThrowIfNull(array); 488ArgumentNullException.ThrowIfNull(value); 987ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\Int32Collection.cs (4)
223ArgumentNullException.ThrowIfNull(array); 346ArgumentNullException.ThrowIfNull(array); 440ArgumentNullException.ThrowIfNull(value); 909ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PathFigureCollection.cs (4)
273ArgumentNullException.ThrowIfNull(array); 383ArgumentNullException.ThrowIfNull(array); 493ArgumentNullException.ThrowIfNull(value); 978ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PathSegmentCollection.cs (4)
267ArgumentNullException.ThrowIfNull(array); 377ArgumentNullException.ThrowIfNull(array); 487ArgumentNullException.ThrowIfNull(value); 883ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PointCollection.cs (4)
223ArgumentNullException.ThrowIfNull(array); 346ArgumentNullException.ThrowIfNull(array); 440ArgumentNullException.ThrowIfNull(value); 911ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\PolyBezierSegmentFigureLogic.cs (2)
37ArgumentNullException.ThrowIfNull(points); 48ArgumentNullException.ThrowIfNull(points);
System\Windows\Media\Generated\PolyLineSegmentFigureLogic.cs (2)
37ArgumentNullException.ThrowIfNull(points); 48ArgumentNullException.ThrowIfNull(points);
System\Windows\Media\Generated\PolyQuadraticBezierSegmentFigureLogic.cs (2)
37ArgumentNullException.ThrowIfNull(points); 48ArgumentNullException.ThrowIfNull(points);
System\Windows\Media\Generated\TextEffectCollection.cs (3)
267ArgumentNullException.ThrowIfNull(array); 377ArgumentNullException.ThrowIfNull(array); 487ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Generated\TransformCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Generated\VectorCollection.cs (4)
223ArgumentNullException.ThrowIfNull(array); 346ArgumentNullException.ThrowIfNull(array); 440ArgumentNullException.ThrowIfNull(value); 911ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media\Geometry.cs (1)
663ArgumentNullException.ThrowIfNull(pen);
System\Windows\Media\GeometryHitTestParameters.cs (1)
37ArgumentNullException.ThrowIfNull(geometry);
System\Windows\Media\GlyphRun.cs (6)
430ArgumentNullException.ThrowIfNull(glyphTypeface); 431ArgumentNullException.ThrowIfNull(glyphIndices); 441ArgumentNullException.ThrowIfNull(advanceWidths); 904ArgumentNullException.ThrowIfNull(value); 1082ArgumentNullException.ThrowIfNull(value); 1112ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\GlyphsSerializer.cs (1)
25ArgumentNullException.ThrowIfNull(glyphRun);
System\Windows\Media\GlyphTypeface.cs (5)
114ArgumentNullException.ThrowIfNull(typefaceSource); 226ArgumentNullException.ThrowIfNull(glyphs); 291ArgumentNullException.ThrowIfNull(value); 1810ArgumentNullException.ThrowIfNull(array); 1895ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\Imaging\BitmapDecoder.cs (4)
61ArgumentNullException.ThrowIfNull(bitmapUri); 118ArgumentNullException.ThrowIfNull(bitmapStream); 462ArgumentNullException.ThrowIfNull(bitmapUri); 488ArgumentNullException.ThrowIfNull(bitmapStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (6)
131ArgumentNullException.ThrowIfNull(value); 158ArgumentNullException.ThrowIfNull(value); 187ArgumentNullException.ThrowIfNull(value); 219ArgumentNullException.ThrowIfNull(value); 274ArgumentNullException.ThrowIfNull(value); 301ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Imaging\BitmapFrame.cs (7)
111ArgumentNullException.ThrowIfNull(bitmapUri); 154ArgumentNullException.ThrowIfNull(bitmapUri); 175ArgumentNullException.ThrowIfNull(bitmapStream); 200ArgumentNullException.ThrowIfNull(bitmapStream); 220ArgumentNullException.ThrowIfNull(source); 252ArgumentNullException.ThrowIfNull(source); 290ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\BitmapImage.cs (1)
46ArgumentNullException.ThrowIfNull(uriSource);
System\Windows\Media\Imaging\BitmapMetadata.cs (7)
582ArgumentNullException.ThrowIfNull(containerFormat); 628ArgumentNullException.ThrowIfNull(bitmapMetadata); 1013ArgumentNullException.ThrowIfNull(query); 1015ArgumentNullException.ThrowIfNull(value); 1080ArgumentNullException.ThrowIfNull(query); 1132ArgumentNullException.ThrowIfNull(query); 1182ArgumentNullException.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); 1725ArgumentNullException.ThrowIfNull(bitmapSource);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
29ArgumentNullException.ThrowIfNull(bitmapTarget); 62ArgumentNullException.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)
34ArgumentNullException.ThrowIfNull(source); 36ArgumentNullException.ThrowIfNull(sourceColorContext); 38ArgumentNullException.ThrowIfNull(destinationColorContext);
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
32ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
35ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
33ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
710ArgumentNullException.ThrowIfNull(source);
System\Windows\Media\mediaeventargs.cs (3)
24ArgumentNullException.ThrowIfNull(errorException); 64ArgumentNullException.ThrowIfNull(parameterType); 66ArgumentNullException.ThrowIfNull(parameterValue);
System\Windows\Media\PathFigure.cs (1)
37ArgumentNullException.ThrowIfNull(segments);
System\Windows\Media\PathGeometry.cs (3)
45ArgumentNullException.ThrowIfNull(figures); 68ArgumentNullException.ThrowIfNull(figures); 355ArgumentNullException.ThrowIfNull(geometry);
System\Windows\Media\PixelFormat.cs (1)
193ArgumentNullException.ThrowIfNull(pixelFormatString);
System\Windows\Media\PixelFormatConverter.cs (2)
75ArgumentNullException.ThrowIfNull(destinationType); 76ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\RenderOptions.cs (12)
44ArgumentNullException.ThrowIfNull(target); 53ArgumentNullException.ThrowIfNull(target); 77ArgumentNullException.ThrowIfNull(target); 86ArgumentNullException.ThrowIfNull(target); 110ArgumentNullException.ThrowIfNull(target); 119ArgumentNullException.ThrowIfNull(target); 144ArgumentNullException.ThrowIfNull(target); 153ArgumentNullException.ThrowIfNull(target); 177ArgumentNullException.ThrowIfNull(target); 186ArgumentNullException.ThrowIfNull(target); 210ArgumentNullException.ThrowIfNull(target); 219ArgumentNullException.ThrowIfNull(target);
System\Windows\Media\RequestCachePolicyConverter.cs (2)
88/// <exception cref="ArgumentNullException"> 104ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Media\SolidColorBrush.cs (4)
56/// <exception cref="System.ArgumentNullException"> 67ArgumentNullException.ThrowIfNull(writer); 118/// <exception cref="System.ArgumentNullException"> 123ArgumentNullException.ThrowIfNull(reader);
System\Windows\Media\StreamAsIStream.cs (1)
631ArgumentNullException.ThrowIfNull(stream);
System\Windows\Media\textformatting\NumberSubstitution.cs (6)
144ArgumentNullException.ThrowIfNull(target); 155ArgumentNullException.ThrowIfNull(target); 177ArgumentNullException.ThrowIfNull(target); 189ArgumentNullException.ThrowIfNull(target); 208ArgumentNullException.ThrowIfNull(target); 219ArgumentNullException.ThrowIfNull(target);
System\Windows\Media\textformatting\TextCharacters.cs (1)
111ArgumentNullException.ThrowIfNull(textRunProperties);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
31ArgumentNullException.ThrowIfNull(textParagraphProperties);
System\Windows\Media\Typeface.cs (1)
100ArgumentNullException.ThrowIfNull(fontFamily);
System\Windows\Media\UniqueEventHelper.cs (2)
91ArgumentNullException.ThrowIfNull(handler); 111ArgumentNullException.ThrowIfNull(handler);
System\Windows\Media\Visual.cs (14)
1916ArgumentNullException.ThrowIfNull(resultCallback); 1918ArgumentNullException.ThrowIfNull(hitTestParameters); 2400ArgumentNullException.ThrowIfNull(hitTestParameters); 2418ArgumentNullException.ThrowIfNull(hitTestParameters); 4143ArgumentNullException.ThrowIfNull(ancestor); 4249/// <exception cref="ArgumentNullException">If the argument is null.</exception> 4254ArgumentNullException.ThrowIfNull(otherVisual); 4296/// <exception cref="ArgumentNullException"> 4306ArgumentNullException.ThrowIfNull(ancestor); 4317/// <exception cref="ArgumentNullException"> 4326ArgumentNullException.ThrowIfNull(ancestor); 4341/// <exception cref="ArgumentNullException">If the descendant argument is null.</exception> 4345ArgumentNullException.ThrowIfNull(descendant); 4358/// <exception cref="ArgumentNullException">If visual is null.</exception>
System\Windows\Media\VisualCollection.cs (3)
65ArgumentNullException.ThrowIfNull(parent); 171ArgumentNullException.ThrowIfNull(array); 199ArgumentNullException.ThrowIfNull(array);
System\Windows\Media\VisualTarget.cs (1)
33ArgumentNullException.ThrowIfNull(hostVisual);
System\Windows\Media\VisualTreeHelper.cs (3)
29ArgumentNullException.ThrowIfNull(reference); 223ArgumentNullException.ThrowIfNull(ancestor); 224ArgumentNullException.ThrowIfNull(descendant);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (4)
267ArgumentNullException.ThrowIfNull(array); 377ArgumentNullException.ThrowIfNull(array); 487ArgumentNullException.ThrowIfNull(value); 883ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\MaterialCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Model3DCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Point3DCollection.cs (4)
224ArgumentNullException.ThrowIfNull(array); 347ArgumentNullException.ThrowIfNull(array); 441ArgumentNullException.ThrowIfNull(value); 913ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Transform3DCollection.cs (4)
282ArgumentNullException.ThrowIfNull(array); 392ArgumentNullException.ThrowIfNull(array); 502ArgumentNullException.ThrowIfNull(value); 925ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Vector3DCollection.cs (4)
224ArgumentNullException.ThrowIfNull(array); 347ArgumentNullException.ThrowIfNull(array); 441ArgumentNullException.ThrowIfNull(value); 913ArgumentNullException.ThrowIfNull(collection);
System\Windows\Media3D\Generated\Visual3D.cs (3)
64ArgumentNullException.ThrowIfNull(dp); 129ArgumentNullException.ThrowIfNull(dp); 183ArgumentNullException.ThrowIfNull(dp);
System\Windows\Media3D\ModelVisual3D.cs (1)
74ArgumentNullException.ThrowIfNull(value);
System\Windows\Media3D\Visual3D.cs (11)
635ArgumentNullException.ThrowIfNull(resultCallback); 637ArgumentNullException.ThrowIfNull(hitTestParameters); 1314ArgumentNullException.ThrowIfNull(ancestor); 1399/// <exception cref="ArgumentNullException">If the argument is null.</exception> 1404ArgumentNullException.ThrowIfNull(otherVisual); 1605/// <exception cref="ArgumentNullException"> 1614ArgumentNullException.ThrowIfNull(ancestor); 1631/// <exception cref="ArgumentNullException">If the descendant argument is null.</exception> 1635ArgumentNullException.ThrowIfNull(descendant); 1767/// <exception cref="ArgumentNullException"> 1776ArgumentNullException.ThrowIfNull(ancestor);
System\Windows\Media3D\Visual3DCollection.cs (3)
133ArgumentNullException.ThrowIfNull(array); 149ArgumentNullException.ThrowIfNull(array); 447ArgumentNullException.ThrowIfNull(value);
System\Windows\Navigation\BaseUriHelper.cs (1)
527ArgumentNullException.ThrowIfNull(element);
System\Windows\PresentationSource.cs (4)
115ArgumentNullException.ThrowIfNull(element); 181ArgumentNullException.ThrowIfNull(e); 259ArgumentNullException.ThrowIfNull(ce); 541ArgumentNullException.ThrowIfNull(v);
System\Windows\RoutedEventArgs.cs (2)
275ArgumentNullException.ThrowIfNull(genericHandler); 277ArgumentNullException.ThrowIfNull(genericTarget);
System\Windows\TextDecorationCollection.cs (2)
68ArgumentNullException.ThrowIfNull(textDecorations); 92ArgumentNullException.ThrowIfNull(textDecorations);
System\Windows\UIElement.cs (6)
1639ArgumentNullException.ThrowIfNull(route); 1641ArgumentNullException.ThrowIfNull(args); 1877ArgumentNullException.ThrowIfNull(d); 1913ArgumentNullException.ThrowIfNull(d); 4552ArgumentNullException.ThrowIfNull(touchDevice); 4564ArgumentNullException.ThrowIfNull(touchDevice);
System\Windows\UIElement3D.cs (2)
1456ArgumentNullException.ThrowIfNull(touchDevice); 1468ArgumentNullException.ThrowIfNull(touchDevice);
PresentationCore.Tests (6)
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\TextDecorationCollectionConverter.Tests.cs (1)
243Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, null, value, destinationType));
TestUtilities\BinaryFormatterScope.cs (1)
53catch (ArgumentNullException)
PresentationFramework (1328)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (18)
32/// <exception cref="ArgumentNullException">manager is null</exception> 59/// <exception cref="ArgumentNullException">node is null</exception> 62ArgumentNullException.ThrowIfNull(node); 101ArgumentNullException.ThrowIfNull(node); 143/// <exception cref="ArgumentNullException">node is null</exception> 146ArgumentNullException.ThrowIfNull(node); 172/// <exception cref="ArgumentNullException">locatorPart or startNode are 178ArgumentNullException.ThrowIfNull(locatorPart); 179ArgumentNullException.ThrowIfNull(startNode); 273/// <exception cref="ArgumentNullException">d is null</exception> 276ArgumentNullException.ThrowIfNull(d); 287/// <exception cref="ArgumentNullException">d is null</exception> 291ArgumentNullException.ThrowIfNull(d); 313/// <exception cref="ArgumentNullException">d is null</exception> 316ArgumentNullException.ThrowIfNull(d); 328/// <exception cref="ArgumentNullException">d is null</exception> 332ArgumentNullException.ThrowIfNull(d); 383/// <exception cref="ArgumentNullException">node is null</exception>
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (8)
46/// <exception cref="ArgumentNullException">manager is null</exception> 73/// <exception cref="ArgumentNullException">node is null</exception> 76ArgumentNullException.ThrowIfNull(node); 103/// <exception cref="ArgumentNullException">node is null</exception> 108ArgumentNullException.ThrowIfNull(node); 161/// <exception cref="ArgumentNullException">locatorPart or startNode are 167ArgumentNullException.ThrowIfNull(locatorPart); 168ArgumentNullException.ThrowIfNull(startNode);
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (12)
82/// <exception cref="ArgumentNullException">selection is null</exception> 150/// <exception cref="ArgumentNullException">selection is null</exception> 166/// <exception cref="ArgumentNullException">selection is null</exception> 181/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 186ArgumentNullException.ThrowIfNull(startNode); 187ArgumentNullException.ThrowIfNull(selection); 248/// <exception cref="ArgumentNullException">locatorPart or startNode are 255ArgumentNullException.ThrowIfNull(startNode); 285ArgumentNullException.ThrowIfNull(locatorPart); 429ArgumentNullException.ThrowIfNull(selection); 469ArgumentNullException.ThrowIfNull(selection); 491ArgumentNullException.ThrowIfNull(locatorPart);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (32)
85/// <exception cref="ArgumentNullException">if the processor or processorId are null</exception> 90ArgumentNullException.ThrowIfNull(processor); 91ArgumentNullException.ThrowIfNull(processorId); 117/// <exception cref="ArgumentNullException">node is null</exception> 122ArgumentNullException.ThrowIfNull(node); 150/// <exception cref="ArgumentNullException">locatorPart is null</exception> 154ArgumentNullException.ThrowIfNull(locatorPart); 175/// <exception cref="ArgumentNullException">processor or selectionType is null</exception> 180ArgumentNullException.ThrowIfNull(processor); 181ArgumentNullException.ThrowIfNull(selectionType); 208/// <exception cref="ArgumentNullException">selectionType is null</exception> 212ArgumentNullException.ThrowIfNull(selectionType); 236/// <exception cref="ArgumentNullException">locatorPart is null</exception> 240ArgumentNullException.ThrowIfNull(locatorPart); 256/// <exception cref="ArgumentNullException">node is null</exception> 262ArgumentNullException.ThrowIfNull(node); 332/// <exception cref="ArgumentNullException">if selection is null</exception> 338ArgumentNullException.ThrowIfNull(selection); 384/// <exception cref="ArgumentNullException">locator or startNode are null</exception> 391ArgumentNullException.ThrowIfNull(locator); 392ArgumentNullException.ThrowIfNull(startNode); 449/// <exception cref="ArgumentNullException">d is null</exception> 452ArgumentNullException.ThrowIfNull(d); 464/// <exception cref="ArgumentNullException">d is null</exception> 468ArgumentNullException.ThrowIfNull(d); 492/// <exception cref="ArgumentNullException">subtree is null</exception> 495ArgumentNullException.ThrowIfNull(subTree); 519/// <exception cref="ArgumentNullException">startNode or locator is null</exception> 522ArgumentNullException.ThrowIfNull(startNode); 523ArgumentNullException.ThrowIfNull(locator); 630/// <exception cref="ArgumentNullException">root is null</exception> 742/// <exception cref="ArgumentNullException">node is null</exception>
MS\Internal\Annotations\Anchoring\PathNode.cs (4)
31/// <exception cref="ArgumentNullException">node is null</exception> 34ArgumentNullException.ThrowIfNull(node); 139/// <exception cref="ArgumentNullException">nodes is null</exception> 142ArgumentNullException.ThrowIfNull(nodes);
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (6)
63/// <exception cref="ArgumentNullException">selection1 or selection2 are 73/// <exception cref="ArgumentNullException">selection is null</exception> 82/// <exception cref="ArgumentNullException">selection is null</exception> 91/// <exception cref="ArgumentNullException">selection is null</exception> 104/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 119/// <exception cref="ArgumentNullException">locatorPart or startNode are
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (7)
42/// <exception cref="ArgumentNullException">manager is null</exception> 45ArgumentNullException.ThrowIfNull(manager); 72/// <exception cref="ArgumentNullException">node is null</exception> 87/// <exception cref="ArgumentNullException">node is null</exception> 90ArgumentNullException.ThrowIfNull(node); 116/// <exception cref="ArgumentNullException">node is null</exception> 136/// <exception cref="ArgumentNullException">locatorPart or startNode are
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (15)
66/// <exception cref="ArgumentNullException">anchor1 or anchor2 are null</exception> 102/// <exception cref="ArgumentNullException">selection is null</exception> 106ArgumentNullException.ThrowIfNull(selection); 146/// <exception cref="ArgumentNullException">selection is null</exception> 150ArgumentNullException.ThrowIfNull(selection); 167/// <exception cref="ArgumentNullException">pointer is null</exception> 170ArgumentNullException.ThrowIfNull(pointer); 220/// <exception cref="ArgumentNullException">anchor is null</exception> 224ArgumentNullException.ThrowIfNull(selection); 241/// <exception cref="ArgumentNullException">pointer is null</exception> 244ArgumentNullException.ThrowIfNull(pointer); 265/// <exception cref="ArgumentNullException">pointer is null</exception> 268ArgumentNullException.ThrowIfNull(pointer); 288/// <exception cref="ArgumentNullException">pointer is null</exception> 291ArgumentNullException.ThrowIfNull(pointer);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (11)
66/// <exception cref="ArgumentNullException">anchor1 or anchor2 are 80/// <exception cref="ArgumentNullException">selection is null</exception> 92/// <exception cref="ArgumentNullException">selection is null</exception> 105/// <exception cref="ArgumentNullException">selection is null</exception> 122/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 127ArgumentNullException.ThrowIfNull(startNode); 128ArgumentNullException.ThrowIfNull(selection); 184/// <exception cref="ArgumentNullException">locatorPart or startNode are 189ArgumentNullException.ThrowIfNull(startNode); 190ArgumentNullException.ThrowIfNull(locatorPart); 354ArgumentNullException.ThrowIfNull(locatorPart);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (9)
68/// <exception cref="ArgumentNullException">selection is null</exception> 83/// <exception cref="ArgumentNullException">selection is null</exception> 100/// <exception cref="ArgumentNullException">selection is null</exception> 120/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 125ArgumentNullException.ThrowIfNull(startNode); 164/// <exception cref="ArgumentNullException">locatorPart or startNode are null</exception> 167ArgumentNullException.ThrowIfNull(locatorPart); 168ArgumentNullException.ThrowIfNull(startNode); 261ArgumentNullException.ThrowIfNull(selection);
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (14)
60/// <exception cref="ArgumentNullException">selection1 or selection2 are 64ArgumentNullException.ThrowIfNull(selection1); 65ArgumentNullException.ThrowIfNull(selection2); 77/// <exception cref="ArgumentNullException">selection is null</exception> 89/// <exception cref="ArgumentNullException">selection is null</exception> 93ArgumentNullException.ThrowIfNull(selection); 109/// <exception cref="ArgumentNullException">selection is null</exception> 113ArgumentNullException.ThrowIfNull(selection); 135/// <exception cref="ArgumentNullException">startNode or selection is null</exception> 140ArgumentNullException.ThrowIfNull(startNode); 141ArgumentNullException.ThrowIfNull(selection); 156/// <exception cref="ArgumentNullException">locatorPart or startNode are 161ArgumentNullException.ThrowIfNull(startNode); 162ArgumentNullException.ThrowIfNull(locatorPart);
MS\Internal\Annotations\AnnotationObservableCollection.cs (1)
55/// <exception cref="ArgumentNullException"> list is a null reference </exception>
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (4)
39ArgumentNullException.ThrowIfNull(adornerLayer); 167ArgumentNullException.ThrowIfNull(component); 182ArgumentNullException.ThrowIfNull(component); 481ArgumentNullException.ThrowIfNull(component);
MS\Internal\Annotations\Component\HighlightComponent.cs (4)
47ArgumentNullException.ThrowIfNull(type); 264ArgumentNullException.ThrowIfNull(attachedAnnotation); 446ArgumentNullException.ThrowIfNull(selection); 508ArgumentNullException.ThrowIfNull(attachedAnnotation);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
55ArgumentNullException.ThrowIfNull(type); 232ArgumentNullException.ThrowIfNull(attachedAnnotation);
MS\Internal\Annotations\ObservableDictionary.cs (13)
60/// <exception cref="ArgumentNullException">key or val is null</exception> 64ArgumentNullException.ThrowIfNull(key); 65ArgumentNullException.ThrowIfNull(val); 139/// <exception cref="ArgumentNullException">key is null</exception> 142ArgumentNullException.ThrowIfNull(key); 151/// <exception cref="ArgumentNullException">pair is null</exception> 162/// <exception cref="ArgumentNullException">pair is null</exception> 173/// <exception cref="ArgumentNullException">pair is null</exception> 184/// <exception cref="ArgumentNullException">target is null</exception> 188ArgumentNullException.ThrowIfNull(target); 238ArgumentNullException.ThrowIfNull(key); 246ArgumentNullException.ThrowIfNull(key); 248ArgumentNullException.ThrowIfNull(value);
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (1)
107ArgumentNullException.ThrowIfNull(anchorLocator);
MS\Internal\Annotations\TextAnchor.cs (1)
102ArgumentNullException.ThrowIfNull(textPointer);
MS\Internal\AppModel\Journaling.cs (1)
533ArgumentNullException.ThrowIfNull(contentObject);
MS\Internal\Controls\ActiveXSite.cs (1)
35ArgumentNullException.ThrowIfNull(host);
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
32ArgumentNullException.ThrowIfNull(inkCanvas); 50ArgumentNullException.ThrowIfNull(transform);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
906ArgumentNullException.ThrowIfNull(attachedAnnotation); 930ArgumentNullException.ThrowIfNull(attachedAnnotation);
MS\Internal\Controls\StickyNote\StickyNoteHelper.cs (1)
57ArgumentNullException.ThrowIfNull(helper);
MS\Internal\Controls\ValidationRuleCollection.cs (2)
41ArgumentNullException.ThrowIfNull(item); 51ArgumentNullException.ThrowIfNull(item);
MS\Internal\Data\BindingCollection.cs (2)
80ArgumentNullException.ThrowIfNull(item); 94ArgumentNullException.ThrowIfNull(item);
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
49ArgumentNullException.ThrowIfNull(args);
MS\Internal\Data\ObjectRef.cs (7)
120/// <exception cref="ArgumentNullException"> name is a null reference </exception> 123ArgumentNullException.ThrowIfNull(name); 139ArgumentNullException.ThrowIfNull(d); 312/// <exception cref="ArgumentNullException"> relativeSource is a null reference </exception> 315ArgumentNullException.ThrowIfNull(relativeSource); 346/// <exception cref="ArgumentNullException"> d is a null reference </exception> 357/// <exception cref="ArgumentNullException"> d is a null reference </exception>
MS\Internal\Data\RBTree.cs (1)
570ArgumentNullException.ThrowIfNull(array);
MS\Internal\Data\StaticPropertyChangedEventManager.cs (4)
46ArgumentNullException.ThrowIfNull(type); 47ArgumentNullException.ThrowIfNull(handler); 57ArgumentNullException.ThrowIfNull(type); 58ArgumentNullException.ThrowIfNull(handler);
MS\Internal\Data\ValueChangedEventManager.cs (6)
64ArgumentNullException.ThrowIfNull(source); 65ArgumentNullException.ThrowIfNull(listener); 75ArgumentNullException.ThrowIfNull(source); 76ArgumentNullException.ThrowIfNull(listener); 86ArgumentNullException.ThrowIfNull(handler); 98ArgumentNullException.ThrowIfNull(handler);
MS\Internal\Data\XmlNodeChangedEventManager.cs (6)
43ArgumentNullException.ThrowIfNull(source); 44ArgumentNullException.ThrowIfNull(listener); 54ArgumentNullException.ThrowIfNull(source); 55ArgumentNullException.ThrowIfNull(listener); 65ArgumentNullException.ThrowIfNull(handler); 75ArgumentNullException.ThrowIfNull(handler);
MS\Internal\Documents\ContentElementCollection.cs (10)
54/// <exception cref="ArgumentNullException"> 67ArgumentNullException.ThrowIfNull(array); 87/// <exception cref="ArgumentNullException"> 103ArgumentNullException.ThrowIfNull(array); 142/// <exception cref="ArgumentNullException"> 205/// <exception cref="ArgumentNullException"> 225/// <exception cref="ArgumentNullException"> 404ArgumentNullException.ThrowIfNull(value); 450ArgumentNullException.ThrowIfNull(value); 504ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\DocumentGrid.cs (2)
1710ArgumentNullException.ThrowIfNull(e); 2678ArgumentNullException.ThrowIfNull(row);
MS\Internal\Documents\FlowDocumentPaginator.cs (4)
216ArgumentNullException.ThrowIfNull(contentPosition); 279ArgumentNullException.ThrowIfNull(contentPosition); 357ArgumentNullException.ThrowIfNull(page); 416ArgumentNullException.ThrowIfNull(o);
MS\Internal\Documents\ParentUndoUnit.cs (6)
56/// <exception cref="ArgumentNullException"> 63ArgumentNullException.ThrowIfNull(newUnit); 110/// <exception cref="ArgumentNullException"> 117ArgumentNullException.ThrowIfNull(unit); 213/// <exception cref="ArgumentNullException"> 225ArgumentNullException.ThrowIfNull(unit);
MS\Internal\Documents\TableColumnCollectionInternal.cs (7)
27/// <exception cref="ArgumentNullException"> 37ArgumentNullException.ThrowIfNull(item); 80/// <exception cref="ArgumentNullException"> 102ArgumentNullException.ThrowIfNull(item); 194/// <exception cref="ArgumentNullException"> 209ArgumentNullException.ThrowIfNull(item); 330ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (7)
32/// <exception cref="ArgumentNullException"> 42ArgumentNullException.ThrowIfNull(item); 85/// <exception cref="ArgumentNullException"> 107ArgumentNullException.ThrowIfNull(item); 132/// <exception cref="ArgumentNullException"> 147ArgumentNullException.ThrowIfNull(item); 417ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\TextParagraphView.cs (6)
90ArgumentNullException.ThrowIfNull(position); 109ArgumentNullException.ThrowIfNull(startPosition); 110ArgumentNullException.ThrowIfNull(endPosition); 134ArgumentNullException.ThrowIfNull(position); 263ArgumentNullException.ThrowIfNull(position); 282ArgumentNullException.ThrowIfNull(position);
MS\Internal\Documents\UndoManager.cs (11)
96ArgumentNullException.ThrowIfNull(scope); 97ArgumentNullException.ThrowIfNull(undoManager); 131ArgumentNullException.ThrowIfNull(scope); 182/// <exception cref="ArgumentNullException"> 194ArgumentNullException.ThrowIfNull(unit); 233/// <exception cref="ArgumentNullException"> 243ArgumentNullException.ThrowIfNull(unit); 309/// <exception cref="ArgumentNullException"> 319ArgumentNullException.ThrowIfNull(unit); 400/// <exception cref="ArgumentNullException"> 412ArgumentNullException.ThrowIfNull(unit);
MS\Internal\Ink\ClipboardProcessor.cs (1)
53ArgumentNullException.ThrowIfNull(inkCanvas);
MS\Internal\Ink\EditBehavior.cs (2)
40ArgumentNullException.ThrowIfNull(inkCanvas); 41ArgumentNullException.ThrowIfNull(editingCoordinator);
MS\Internal\Ink\EditingCoordinator.cs (1)
38ArgumentNullException.ThrowIfNull(inkCanvas);
MS\Internal\Ink\InkCanvasSelection.cs (1)
41ArgumentNullException.ThrowIfNull(inkCanvas);
MS\Internal\Ink\LassoHelper.cs (1)
67ArgumentNullException.ThrowIfNull(points);
MS\Internal\IO\Packaging\ContentDescriptor.cs (2)
24ArgumentNullException.ThrowIfNull(xmlNamespace); 25ArgumentNullException.ThrowIfNull(baseName);
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (1)
59ArgumentNullException.ThrowIfNull(coreProperties);
MS\Internal\IO\Packaging\EncryptedPackageFilter.cs (1)
34ArgumentNullException.ThrowIfNull(encryptedPackage);
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
47ArgumentNullException.ThrowIfNull(managedFilter);
MS\Internal\IO\Packaging\ManagedFilter.cs (1)
68ArgumentNullException.ThrowIfNull(value);
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
29ArgumentNullException.ThrowIfNull(ioStream);
MS\Internal\IO\Packaging\PackageFilter.cs (1)
58ArgumentNullException.ThrowIfNull(package);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
63ArgumentNullException.ThrowIfNull(oleStream);
MS\Internal\IO\Packaging\XpsFilter.cs (1)
521ArgumentNullException.ThrowIfNull(stream);
MS\Internal\ListOfObject.cs (1)
18ArgumentNullException.ThrowIfNull(list);
MS\Internal\Markup\StaticExtension.cs (1)
79ArgumentNullException.ThrowIfNull(serviceProvider);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
1140ArgumentNullException.ThrowIfNull(serviceType);
MS\Internal\WeakDictionary.cs (1)
294ArgumentNullException.ThrowIfNull(array);
MS\Internal\WeakHashSet.cs (1)
41ArgumentNullException.ThrowIfNull(array);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (12)
52/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 86/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 116/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 135/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 168/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 199/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 222/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 255/// <exception cref="ArgumentNullException"><i>methodName</i> is <b>null</b></exception> 275/// <exception cref="ArgumentNullException"><i>fieldName</i> is <b>null</b></exception> 381/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null</exception> 406/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null</exception> 422/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null</exception>
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
56ArgumentNullException.ThrowIfNull(uri);
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (6)
105Contract.Requires<ArgumentNullException>(eventSource != null, nameof(eventSource)); 144Contract.Requires<ArgumentNullException>(parentActivity != null, nameof(parentActivity)); 177Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 208Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 238Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName)); 257Contract.Requires<ArgumentNullException>(eventName != null, nameof(eventName));
System\ComponentModel\DesignerProperties.cs (2)
69ArgumentNullException.ThrowIfNull(element); 79ArgumentNullException.ThrowIfNull(element);
System\Windows\Annotations\Annotation.cs (8)
85/// <exception cref="ArgumentNullException">annotationType is null</exception> 89ArgumentNullException.ThrowIfNull(annotationType); 119/// <exception cref="ArgumentNullException">annotationType is null</exception> 125ArgumentNullException.ThrowIfNull(annotationType); 177/// <exception cref="ArgumentNullException">writer is null</exception> 180ArgumentNullException.ThrowIfNull(writer); 263/// <exception cref="ArgumentNullException">reader is null</exception> 266ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (2)
47/// <exception cref="ArgumentNullException">annotation is null</exception> 54ArgumentNullException.ThrowIfNull(annotation);
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
58ArgumentNullException.ThrowIfNull(attachedAnnotation);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
365ArgumentNullException.ThrowIfNull(dpv);
System\Windows\Annotations\AnnotationHelper.cs (11)
40/// <exception cref="ArgumentNullException">service is null</exception> 70/// <exception cref="ArgumentNullException">service is null</exception> 86/// <exception cref="ArgumentNullException">service is null</exception> 103/// <exception cref="ArgumentNullException">service is null</exception> 126/// <exception cref="ArgumentNullException">service is null</exception> 149/// <exception cref="ArgumentNullException">service is null</exception> 171/// <exception cref="ArgumentNullException">service or annotation is null</exception> 177ArgumentNullException.ThrowIfNull(annotation); 484/// <exception cref="ArgumentNullException">service is null</exception> 1077/// <exception cref="ArgumentNullException">service is null</exception> 1081ArgumentNullException.ThrowIfNull(service);
System\Windows\Annotations\AnnotationResource.cs (6)
56/// <exception cref="ArgumentNullException">name is null</exception> 60ArgumentNullException.ThrowIfNull(name); 108/// <exception cref="ArgumentNullException">writer is null</exception> 111ArgumentNullException.ThrowIfNull(writer); 157/// <exception cref="ArgumentNullException">reader is null</exception> 160ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (2)
47/// <exception cref="ArgumentNullException">annotation or action is null</exception> 54ArgumentNullException.ThrowIfNull(annotation);
System\Windows\Annotations\AnnotationService.cs (34)
88/// <exception cref="ArgumentNullException">viewer is null</exception> 91ArgumentNullException.ThrowIfNull(viewer); 101/// <exception cref="ArgumentNullException">viewer is null</exception> 104ArgumentNullException.ThrowIfNull(viewer); 114/// <exception cref="ArgumentNullException">viewer is null</exception> 117ArgumentNullException.ThrowIfNull(viewer); 128/// <exception cref="ArgumentNullException">root is null</exception> 132ArgumentNullException.ThrowIfNull(root); 154/// <exception cref="ArgumentNullException">store is null</exception> 161ArgumentNullException.ThrowIfNull(annotationStore); 285/// <exception cref="ArgumentNullException">viewer is null</exception> 288ArgumentNullException.ThrowIfNull(viewer); 300/// <exception cref="ArgumentNullException">reader is null</exception> 303ArgumentNullException.ThrowIfNull(reader); 315/// <exception cref="ArgumentNullException">viewer is null</exception> 318ArgumentNullException.ThrowIfNull(viewer); 341/// <exception cref="ArgumentNullException">element is null</exception> 351ArgumentNullException.ThrowIfNull(element); 381/// <exception cref="ArgumentNullException">element is null</exception> 386ArgumentNullException.ThrowIfNull(element); 519/// <exception cref="ArgumentNullException">d is null</exception> 522ArgumentNullException.ThrowIfNull(d); 542ArgumentNullException.ThrowIfNull(d); 564/// <exception cref="ArgumentNullException">d is null</exception> 567ArgumentNullException.ThrowIfNull(d); 568ArgumentNullException.ThrowIfNull(id); 580/// <exception cref="ArgumentNullException">d is null</exception> 583ArgumentNullException.ThrowIfNull(d); 602/// <exception cref="ArgumentNullException">d is null</exception> 605ArgumentNullException.ThrowIfNull(d); 606ArgumentNullException.ThrowIfNull(id); 618/// <exception cref="ArgumentNullException">d is null</exception> 621ArgumentNullException.ThrowIfNull(d); 858/// <exception cref="ArgumentNullException">element is null</exception>
System\Windows\Annotations\LocatorGroup.cs (4)
94/// <exception cref="ArgumentNullException">writer is null</exception> 97ArgumentNullException.ThrowIfNull(writer); 120/// <exception cref="ArgumentNullException">reader is null</exception> 123ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\LocatorPart.cs (2)
42/// <exception cref="ArgumentNullException">partType is null</exception> 46ArgumentNullException.ThrowIfNull(partType);
System\Windows\Annotations\LocatorPartList.cs (6)
63/// <exception cref="ArgumentNullException">locator is null</exception> 66ArgumentNullException.ThrowIfNull(locator); 137/// <exception cref="ArgumentNullException">writer is null</exception> 140ArgumentNullException.ThrowIfNull(writer); 188/// <exception cref="ArgumentNullException">reader is null</exception> 191ArgumentNullException.ThrowIfNull(reader);
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
59/// <exception cref="ArgumentNullException">newAnnotation is null</exception>
System\Windows\Annotations\Storage\StoreContentChangedEventArgs.cs (1)
64ArgumentNullException.ThrowIfNull(annotation);
System\Windows\Annotations\Storage\XmlStreamStore.cs (9)
60/// <exception cref="ArgumentNullException">stream is null</exception> 65ArgumentNullException.ThrowIfNull(stream); 86/// <exception cref="ArgumentNullException">stream is null</exception> 93ArgumentNullException.ThrowIfNull(stream); 113/// <exception cref="ArgumentNullException">newAnnotation is null</exception> 119ArgumentNullException.ThrowIfNull(newAnnotation); 230ArgumentNullException.ThrowIfNull(anchorLocator); 390ArgumentNullException.ThrowIfNull(name); 540/// <exception cref="ArgumentNullException">queryExpression is null</exception>
System\Windows\Application.cs (7)
349ArgumentNullException.ThrowIfNull(component); 350ArgumentNullException.ThrowIfNull(resourceLocator); 440ArgumentNullException.ThrowIfNull(resourceLocator); 577ArgumentNullException.ThrowIfNull(uriResource); 609ArgumentNullException.ThrowIfNull(uriContent); 638ArgumentNullException.ThrowIfNull(uriRemote); 1032ArgumentNullException.ThrowIfNull(value);
System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (2)
99ArgumentNullException.ThrowIfNull(d); 100ArgumentNullException.ThrowIfNull(dp);
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
143ArgumentNullException.ThrowIfNull(val);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
27ArgumentNullException.ThrowIfNull(owner); 417ArgumentNullException.ThrowIfNull(cellProviders); 439ArgumentNullException.ThrowIfNull(itemProviders);
System\Windows\Automation\Peers\DataGridCellAutomationPeer.cs (1)
25ArgumentNullException.ThrowIfNull(owner);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
26ArgumentNullException.ThrowIfNull(item); 27ArgumentNullException.ThrowIfNull(dataGridColumn);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
28ArgumentNullException.ThrowIfNull(item); 29ArgumentNullException.ThrowIfNull(dataGridPeer);
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
24ArgumentNullException.ThrowIfNull(owner);
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
26ArgumentNullException.ThrowIfNull(owningCalendar);
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
125ArgumentNullException.ThrowIfNull(value);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
96ArgumentNullException.ThrowIfNull(value);
System\Windows\ColorConvertedBitmapExtension.cs (1)
38ArgumentNullException.ThrowIfNull(image);
System\Windows\ComponentResourceKey.cs (3)
30ArgumentNullException.ThrowIfNull(typeInTargetAssembly); 31ArgumentNullException.ThrowIfNull(resourceId); 52ArgumentNullException.ThrowIfNull(value);
System\Windows\ComponentResourceKeyConverter.cs (3)
32ArgumentNullException.ThrowIfNull(sourceType); 52ArgumentNullException.ThrowIfNull(destinationType); 103ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Condition.cs (5)
48ArgumentNullException.ThrowIfNull(conditionProperty); 66ArgumentNullException.ThrowIfNull(binding); 261ArgumentNullException.ThrowIfNull(targetObject); 262ArgumentNullException.ThrowIfNull(eventArgs); 280ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\ConditionCollection.cs (1)
108ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\Canvas.cs (8)
75ArgumentNullException.ThrowIfNull(element); 87ArgumentNullException.ThrowIfNull(element); 101ArgumentNullException.ThrowIfNull(element); 113ArgumentNullException.ThrowIfNull(element); 127ArgumentNullException.ThrowIfNull(element); 139ArgumentNullException.ThrowIfNull(element); 153ArgumentNullException.ThrowIfNull(element); 165ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ColumnDefinition.cs (4)
76ArgumentNullException.ThrowIfNull(array); 102ArgumentNullException.ThrowIfNull(array); 544ArgumentNullException.ThrowIfNull(value); 565ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ContextMenuService.cs (18)
38ArgumentNullException.ThrowIfNull(element); 63ArgumentNullException.ThrowIfNull(element); 85ArgumentNullException.ThrowIfNull(element); 96ArgumentNullException.ThrowIfNull(element); 118ArgumentNullException.ThrowIfNull(element); 129ArgumentNullException.ThrowIfNull(element); 149ArgumentNullException.ThrowIfNull(element); 160ArgumentNullException.ThrowIfNull(element); 181ArgumentNullException.ThrowIfNull(element); 192ArgumentNullException.ThrowIfNull(element); 213ArgumentNullException.ThrowIfNull(element); 224ArgumentNullException.ThrowIfNull(element); 245ArgumentNullException.ThrowIfNull(element); 256ArgumentNullException.ThrowIfNull(element); 277ArgumentNullException.ThrowIfNull(element); 288ArgumentNullException.ThrowIfNull(element); 309ArgumentNullException.ThrowIfNull(element); 320ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\DataGrid.cs (2)
1531ArgumentNullException.ThrowIfNull(item); 7813ArgumentNullException.ThrowIfNull(itemProperties);
System\Windows\Controls\DataGridCellInfo.cs (2)
23ArgumentNullException.ThrowIfNull(column); 44ArgumentNullException.ThrowIfNull(cell);
System\Windows\Controls\DataGridColumn.cs (2)
615ArgumentNullException.ThrowIfNull(dataItem); 636ArgumentNullException.ThrowIfNull(dataGridRow);
System\Windows\Controls\DataGridLengthConverter.cs (3)
61/// <exception cref="ArgumentNullException"> 116/// <exception cref="ArgumentNullException"> 129ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Controls\DockPanel.cs (2)
101ArgumentNullException.ThrowIfNull(element); 114ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\DocumentViewer.cs (3)
1896ArgumentNullException.ThrowIfNull(data); 1914catch (ArgumentNullException) 1947ArgumentNullException.ThrowIfNull(data);
System\Windows\Controls\ExceptionRoutedEventArgs.cs (1)
23ArgumentNullException.ThrowIfNull(errorException);
System\Windows\Controls\FlowDocumentReader.cs (1)
1914ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1812ArgumentNullException.ThrowIfNull(value); 1852ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Controls\Grid.cs (11)
69ArgumentNullException.ThrowIfNull(value); 125ArgumentNullException.ThrowIfNull(element); 138ArgumentNullException.ThrowIfNull(element); 150ArgumentNullException.ThrowIfNull(element); 163ArgumentNullException.ThrowIfNull(element); 175ArgumentNullException.ThrowIfNull(element); 188ArgumentNullException.ThrowIfNull(element); 200ArgumentNullException.ThrowIfNull(element); 213ArgumentNullException.ThrowIfNull(element); 225ArgumentNullException.ThrowIfNull(element); 237ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\GridView.cs (2)
169ArgumentNullException.ThrowIfNull(element); 180ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\GridViewColumnCollection.cs (1)
428ArgumentNullException.ThrowIfNull(column);
System\Windows\Controls\Image.cs (6)
540ArgumentNullException.ThrowIfNull(handler); 550ArgumentNullException.ThrowIfNull(handler); 664ArgumentNullException.ThrowIfNull(handler); 674ArgumentNullException.ThrowIfNull(handler); 788ArgumentNullException.ThrowIfNull(handler); 798ArgumentNullException.ThrowIfNull(handler);
System\Windows\Controls\InkCanvas.cs (27)
436ArgumentNullException.ThrowIfNull(element); 448ArgumentNullException.ThrowIfNull(element); 470ArgumentNullException.ThrowIfNull(element); 482ArgumentNullException.ThrowIfNull(element); 504ArgumentNullException.ThrowIfNull(element); 516ArgumentNullException.ThrowIfNull(element); 538ArgumentNullException.ThrowIfNull(element); 550ArgumentNullException.ThrowIfNull(element); 769ArgumentNullException.ThrowIfNull(value); 964ArgumentNullException.ThrowIfNull(value); 987ArgumentNullException.ThrowIfNull(value); 1029ArgumentNullException.ThrowIfNull(e); 1160ArgumentNullException.ThrowIfNull(e); 1179ArgumentNullException.ThrowIfNull(e); 1200ArgumentNullException.ThrowIfNull(e); 1250ArgumentNullException.ThrowIfNull(e); 1307ArgumentNullException.ThrowIfNull(e); 1361ArgumentNullException.ThrowIfNull(e); 1393ArgumentNullException.ThrowIfNull(e); 1424ArgumentNullException.ThrowIfNull(e); 1460ArgumentNullException.ThrowIfNull(e); 1509ArgumentNullException.ThrowIfNull(e); 1536ArgumentNullException.ThrowIfNull(e); 1566ArgumentNullException.ThrowIfNull(e); 1600ArgumentNullException.ThrowIfNull(e); 1630ArgumentNullException.ThrowIfNull(e); 1912ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ItemCollection.cs (1)
285ArgumentNullException.ThrowIfNull(array);
System\Windows\Controls\ItemContainerGenerator.cs (2)
566ArgumentNullException.ThrowIfNull(container); 613ArgumentNullException.ThrowIfNull(container);
System\Windows\Controls\ItemsControl.cs (2)
1079ArgumentNullException.ThrowIfNull(element); 1177ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
151ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\Controls\Label.cs (1)
147ArgumentNullException.ThrowIfNull(o);
System\Windows\Controls\MediaScriptCommandRoutedEventArgs.cs (2)
22ArgumentNullException.ThrowIfNull(parameterType); 24ArgumentNullException.ThrowIfNull(parameterValue);
System\Windows\Controls\MultipleCopiesCollection.cs (2)
241ArgumentNullException.ThrowIfNull(value); 248ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\Panel.cs (3)
82ArgumentNullException.ThrowIfNull(value); 917ArgumentNullException.ThrowIfNull(element); 929ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
512ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (5)
323ArgumentNullException.ThrowIfNull(element); 334ArgumentNullException.ThrowIfNull(element); 486ArgumentNullException.ThrowIfNull(element); 1698ArgumentNullException.ThrowIfNull(value); 1740ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (6)
383ArgumentNullException.ThrowIfNull(source); 384ArgumentNullException.ThrowIfNull(listener); 394ArgumentNullException.ThrowIfNull(source); 395ArgumentNullException.ThrowIfNull(listener); 405ArgumentNullException.ThrowIfNull(handler); 415ArgumentNullException.ThrowIfNull(handler);
System\Windows\Controls\Primitives\LayoutInformation.cs (2)
21ArgumentNullException.ThrowIfNull(element); 56ArgumentNullException.ThrowIfNull(dispatcher);
System\Windows\Controls\Primitives\Popup.cs (2)
882ArgumentNullException.ThrowIfNull(popup); 883ArgumentNullException.ThrowIfNull(child);
System\Windows\Controls\Primitives\Selector.cs (3)
185ArgumentNullException.ThrowIfNull(element); 209ArgumentNullException.ThrowIfNull(element); 222ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1042ArgumentNullException.ThrowIfNull(e); 1519ArgumentNullException.ThrowIfNull(position);
System\Windows\Controls\PrintDialog.cs (2)
343ArgumentNullException.ThrowIfNull(visual); 372ArgumentNullException.ThrowIfNull(documentPaginator);
System\Windows\Controls\RichTextBox.cs (4)
150ArgumentNullException.ThrowIfNull(value); 175ArgumentNullException.ThrowIfNull(text); 355ArgumentNullException.ThrowIfNull(value); 574ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\RowDefinition.cs (4)
71ArgumentNullException.ThrowIfNull(array); 97ArgumentNullException.ThrowIfNull(array); 539ArgumentNullException.ThrowIfNull(value); 560ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ScrollViewer.cs (14)
453ArgumentNullException.ThrowIfNull(element); 463ArgumentNullException.ThrowIfNull(element); 487ArgumentNullException.ThrowIfNull(element); 497ArgumentNullException.ThrowIfNull(element); 521ArgumentNullException.ThrowIfNull(element); 531ArgumentNullException.ThrowIfNull(element); 785ArgumentNullException.ThrowIfNull(element); 797ArgumentNullException.ThrowIfNull(element); 1438ArgumentNullException.ThrowIfNull(element); 1448ArgumentNullException.ThrowIfNull(element); 1511ArgumentNullException.ThrowIfNull(element); 1521ArgumentNullException.ThrowIfNull(element); 1551ArgumentNullException.ThrowIfNull(element); 1561ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (4)
22ArgumentNullException.ThrowIfNull(addedCells); 23ArgumentNullException.ThrowIfNull(removedCells); 36ArgumentNullException.ThrowIfNull(addedCells); 37ArgumentNullException.ThrowIfNull(removedCells);
System\Windows\Controls\SelectionChangedEventArgs.cs (3)
35ArgumentNullException.ThrowIfNull(id); 36ArgumentNullException.ThrowIfNull(removedItems); 37ArgumentNullException.ThrowIfNull(addedItems);
System\Windows\Controls\SpellCheck.cs (4)
69ArgumentNullException.ThrowIfNull(textBoxBase); 79ArgumentNullException.ThrowIfNull(textBoxBase); 124ArgumentNullException.ThrowIfNull(textBoxBase); 163ArgumentNullException.ThrowIfNull(textBoxBase);
System\Windows\Controls\TextAdaptor.cs (1)
564ArgumentNullException.ThrowIfNull(childElementProvider);
System\Windows\Controls\TextBlock.cs (27)
122ArgumentNullException.ThrowIfNull(value); 175ArgumentNullException.ThrowIfNull(text); 268ArgumentNullException.ThrowIfNull(serviceType); 340ArgumentNullException.ThrowIfNull(inline); 540ArgumentNullException.ThrowIfNull(element); 551ArgumentNullException.ThrowIfNull(element); 640ArgumentNullException.ThrowIfNull(element); 651ArgumentNullException.ThrowIfNull(element); 679ArgumentNullException.ThrowIfNull(element); 690ArgumentNullException.ThrowIfNull(element); 718ArgumentNullException.ThrowIfNull(element); 729ArgumentNullException.ThrowIfNull(element); 757ArgumentNullException.ThrowIfNull(element); 768ArgumentNullException.ThrowIfNull(element); 799ArgumentNullException.ThrowIfNull(element); 811ArgumentNullException.ThrowIfNull(element); 840ArgumentNullException.ThrowIfNull(element); 851ArgumentNullException.ThrowIfNull(element); 939ArgumentNullException.ThrowIfNull(element); 951ArgumentNullException.ThrowIfNull(element); 978ArgumentNullException.ThrowIfNull(element); 989ArgumentNullException.ThrowIfNull(element); 1035ArgumentNullException.ThrowIfNull(element); 1046ArgumentNullException.ThrowIfNull(element); 1480ArgumentNullException.ThrowIfNull(ctx); 1628ArgumentNullException.ThrowIfNull(hitTestParameters); 1726ArgumentNullException.ThrowIfNull(child);
System\Windows\Controls\TextBox.cs (2)
128ArgumentNullException.ThrowIfNull(value); 142ArgumentNullException.ThrowIfNull(text);
System\Windows\Controls\TextChangedEventArgs.cs (1)
71ArgumentNullException.ThrowIfNull(id);
System\Windows\Controls\TextRangeAdaptor.cs (5)
1590ArgumentNullException.ThrowIfNull(range); 1612ArgumentNullException.ThrowIfNull(targetRange); 1658ArgumentNullException.ThrowIfNull(value); 1749ArgumentNullException.ThrowIfNull(text); 2005ArgumentNullException.ThrowIfNull(targetRange);
System\Windows\Controls\TextSearch.cs (6)
38ArgumentNullException.ThrowIfNull(itemsControl); 80ArgumentNullException.ThrowIfNull(element); 93ArgumentNullException.ThrowIfNull(element); 112ArgumentNullException.ThrowIfNull(element); 125ArgumentNullException.ThrowIfNull(element); 743ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ToolBar.cs (3)
359ArgumentNullException.ThrowIfNull(element); 419ArgumentNullException.ThrowIfNull(element); 431ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\ToolBarTray.cs (3)
151ArgumentNullException.ThrowIfNull(element); 162ArgumentNullException.ThrowIfNull(element); 268ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\ToolTipService.cs (28)
37ArgumentNullException.ThrowIfNull(element); 54ArgumentNullException.ThrowIfNull(element); 76ArgumentNullException.ThrowIfNull(element); 87ArgumentNullException.ThrowIfNull(element); 109ArgumentNullException.ThrowIfNull(element); 120ArgumentNullException.ThrowIfNull(element); 141ArgumentNullException.ThrowIfNull(element); 152ArgumentNullException.ThrowIfNull(element); 173ArgumentNullException.ThrowIfNull(element); 184ArgumentNullException.ThrowIfNull(element); 205ArgumentNullException.ThrowIfNull(element); 216ArgumentNullException.ThrowIfNull(element); 237ArgumentNullException.ThrowIfNull(element); 248ArgumentNullException.ThrowIfNull(element); 269ArgumentNullException.ThrowIfNull(element); 280ArgumentNullException.ThrowIfNull(element); 306ArgumentNullException.ThrowIfNull(element); 317ArgumentNullException.ThrowIfNull(element); 338ArgumentNullException.ThrowIfNull(element); 349ArgumentNullException.ThrowIfNull(element); 376ArgumentNullException.ThrowIfNull(element); 387ArgumentNullException.ThrowIfNull(element); 409ArgumentNullException.ThrowIfNull(element); 420ArgumentNullException.ThrowIfNull(element); 442ArgumentNullException.ThrowIfNull(element); 453ArgumentNullException.ThrowIfNull(element); 475ArgumentNullException.ThrowIfNull(element); 486ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\Validation.cs (19)
82/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 85ArgumentNullException.ThrowIfNull(element); 153/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 156ArgumentNullException.ThrowIfNull(element); 180/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 184ArgumentNullException.ThrowIfNull(element); 190/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 193ArgumentNullException.ThrowIfNull(element); 224/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 228ArgumentNullException.ThrowIfNull(element); 234/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 237ArgumentNullException.ThrowIfNull(element); 287/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 291ArgumentNullException.ThrowIfNull(element); 297/// <exception cref="ArgumentNullException"> DependencyObject element cannot be null </exception> 300ArgumentNullException.ThrowIfNull(element); 481ArgumentNullException.ThrowIfNull(bindingExpression); 482ArgumentNullException.ThrowIfNull(validationError); 493ArgumentNullException.ThrowIfNull(bindingExpression);
System\Windows\Controls\ValidationError.cs (2)
30ArgumentNullException.ThrowIfNull(ruleInError); 31ArgumentNullException.ThrowIfNull(bindingInError);
System\Windows\Controls\ViewPort3D.cs (1)
227ArgumentNullException.ThrowIfNull(value);
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (3)
84/// <exception cref="ArgumentNullException"> 118/// <exception cref="ArgumentNullException"> 131ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Controls\VirtualizingPanel.cs (15)
65ArgumentNullException.ThrowIfNull(element); 77ArgumentNullException.ThrowIfNull(element); 99ArgumentNullException.ThrowIfNull(element); 111ArgumentNullException.ThrowIfNull(element); 131ArgumentNullException.ThrowIfNull(element); 143ArgumentNullException.ThrowIfNull(element); 162ArgumentNullException.ThrowIfNull(element); 173ArgumentNullException.ThrowIfNull(element); 197ArgumentNullException.ThrowIfNull(element); 210ArgumentNullException.ThrowIfNull(element); 231ArgumentNullException.ThrowIfNull(element); 243ArgumentNullException.ThrowIfNull(element); 263ArgumentNullException.ThrowIfNull(element); 275ArgumentNullException.ThrowIfNull(element); 295ArgumentNullException.ThrowIfNull(element);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
10976ArgumentNullException.ThrowIfNull(child);
System\Windows\Controls\WebBrowser.cs (1)
155ArgumentNullException.ThrowIfNull(stream);
System\Windows\ControlTemplate.cs (1)
62ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\CornerRadiusConverter.cs (4)
79/// <exception cref="ArgumentNullException"> 105/// <exception cref="ArgumentNullException"> 118ArgumentNullException.ThrowIfNull(value); 120ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Data\Binding.cs (4)
159/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 162ArgumentNullException.ThrowIfNull(target); 168/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 171ArgumentNullException.ThrowIfNull(target);
System\Windows\Data\BindingExpression.cs (1)
209ArgumentNullException.ThrowIfNull(d);
System\Windows\Data\BindingExpressionBase.cs (3)
124ArgumentNullException.ThrowIfNull(binding); 361ArgumentNullException.ThrowIfNull(d); 362ArgumentNullException.ThrowIfNull(dp);
System\Windows\Data\BindingGroup.cs (2)
1974ArgumentNullException.ThrowIfNull(item); 1985ArgumentNullException.ThrowIfNull(item);
System\Windows\Data\BindingOperations.cs (27)
61/// <exception cref="ArgumentNullException"> target and dp and binding cannot be null </exception> 64ArgumentNullException.ThrowIfNull(target); 65ArgumentNullException.ThrowIfNull(dp); 66ArgumentNullException.ThrowIfNull(binding); 88/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 104/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 119/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 134/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 149/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 152ArgumentNullException.ThrowIfNull(target); 153ArgumentNullException.ThrowIfNull(dp); 169/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 190/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 205/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 222/// <exception cref="ArgumentNullException"> target and dp cannot be null </exception> 225ArgumentNullException.ThrowIfNull(target); 226ArgumentNullException.ThrowIfNull(dp); 237/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 240ArgumentNullException.ThrowIfNull(target); 266/// <exception cref="ArgumentNullException"> DependencyObject target cannot be null </exception> 269ArgumentNullException.ThrowIfNull(target); 270ArgumentNullException.ThrowIfNull(dp); 294ArgumentNullException.ThrowIfNull(collection); 295ArgumentNullException.ThrowIfNull(synchronizationCallback); 310ArgumentNullException.ThrowIfNull(collection); 311ArgumentNullException.ThrowIfNull(lockObject); 325ArgumentNullException.ThrowIfNull(collection);
System\Windows\Data\CollectionView.cs (4)
56ArgumentNullException.ThrowIfNull(collection); 165ArgumentNullException.ThrowIfNull(value); 911ArgumentNullException.ThrowIfNull(args); 1023ArgumentNullException.ThrowIfNull(args);
System\Windows\Data\DataChangedEventManager.cs (5)
40ArgumentNullException.ThrowIfNull(source); 41ArgumentNullException.ThrowIfNull(listener); 55ArgumentNullException.ThrowIfNull(listener); 65ArgumentNullException.ThrowIfNull(handler); 75ArgumentNullException.ThrowIfNull(handler);
System\Windows\Data\ListCollectionView.cs (1)
1657ArgumentNullException.ThrowIfNull(args);
System\Windows\Data\ValueConversionAttribute.cs (2)
52ArgumentNullException.ThrowIfNull(sourceType); 53ArgumentNullException.ThrowIfNull(targetType);
System\Windows\Data\XmlNamespaceMappingCollection.cs (8)
71ArgumentNullException.ThrowIfNull(text); 83/// <exception cref="ArgumentNullException">mapping is null</exception> 86ArgumentNullException.ThrowIfNull(mapping); 117/// <exception cref="ArgumentNullException">mapping is null</exception> 120ArgumentNullException.ThrowIfNull(mapping); 133ArgumentNullException.ThrowIfNull(array); 152/// <exception cref="ArgumentNullException">mapping is null</exception> 155ArgumentNullException.ThrowIfNull(mapping);
System\Windows\DataTemplate.cs (1)
188ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\DataTrigger.cs (2)
200ArgumentNullException.ThrowIfNull(targetObject); 201ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\DeferrableContentConverter.cs (1)
30ArgumentNullException.ThrowIfNull(context);
System\Windows\DependencyPropertyHelper.cs (4)
170ArgumentNullException.ThrowIfNull(dependencyObject); 171ArgumentNullException.ThrowIfNull(dependencyProperty); 196ArgumentNullException.ThrowIfNull(elementInTemplate); 197ArgumentNullException.ThrowIfNull(dependencyProperty);
System\Windows\Documents\Adorner.cs (1)
44ArgumentNullException.ThrowIfNull(adornedElement);
System\Windows\Documents\AdornerLayer.cs (7)
148ArgumentNullException.ThrowIfNull(context); 180ArgumentNullException.ThrowIfNull(adorner); 231ArgumentNullException.ThrowIfNull(element); 256ArgumentNullException.ThrowIfNull(element); 310ArgumentNullException.ThrowIfNull(visual); 511ArgumentNullException.ThrowIfNull(adorner); 678ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\Block.cs (8)
103ArgumentNullException.ThrowIfNull(element); 114ArgumentNullException.ThrowIfNull(element); 235ArgumentNullException.ThrowIfNull(element); 246ArgumentNullException.ThrowIfNull(element); 296ArgumentNullException.ThrowIfNull(element); 308ArgumentNullException.ThrowIfNull(element); 342ArgumentNullException.ThrowIfNull(element); 353ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\BlockUIContainer.cs (1)
51ArgumentNullException.ThrowIfNull(uiElement);
System\Windows\Documents\DocumentSequence.cs (8)
61ArgumentNullException.ThrowIfNull(serviceType); 94ArgumentNullException.ThrowIfNull(value); 270ArgumentNullException.ThrowIfNull(document); 295ArgumentNullException.ThrowIfNull(userState); 309ArgumentNullException.ThrowIfNull(contentPosition); 341ArgumentNullException.ThrowIfNull(userState); 359ArgumentNullException.ThrowIfNull(o); 1076ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
343ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
656ArgumentNullException.ThrowIfNull(textBuffer); 730ArgumentNullException.ThrowIfNull(property); 741ArgumentNullException.ThrowIfNull(property);
System\Windows\Documents\DocumentSequenceTextView.cs (3)
254ArgumentNullException.ThrowIfNull(position); 301ArgumentNullException.ThrowIfNull(position); 327ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
57ArgumentNullException.ThrowIfNull(element); 103ArgumentNullException.ThrowIfNull(element); 160ArgumentNullException.ThrowIfNull(element); 190ArgumentNullException.ThrowIfNull(listItem); 232ArgumentNullException.ThrowIfNull(element); 286ArgumentNullException.ThrowIfNull(tableRowGroup); 328ArgumentNullException.ThrowIfNull(tableRow); 371ArgumentNullException.ThrowIfNull(tableCell); 415ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
31ArgumentNullException.ThrowIfNull(storyFragment); 89ArgumentNullException.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)
43ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\FixedNode.cs (1)
148ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\FixedPage.cs (22)
174/// <exception cref="ArgumentNullException">value is NULL.</exception> 182ArgumentNullException.ThrowIfNull(value); 211/// <exception cref="ArgumentNullException">element is NULL.</exception> 219ArgumentNullException.ThrowIfNull(element); 226/// <exception cref="ArgumentNullException">element is NULL.</exception> 232ArgumentNullException.ThrowIfNull(element); 239/// <exception cref="ArgumentNullException">element is NULL.</exception> 247ArgumentNullException.ThrowIfNull(element); 254/// <exception cref="ArgumentNullException">element is NULL.</exception> 260ArgumentNullException.ThrowIfNull(element); 267/// <exception cref="ArgumentNullException">element is NULL.</exception> 275ArgumentNullException.ThrowIfNull(element); 282/// <exception cref="ArgumentNullException">element is NULL.</exception> 288ArgumentNullException.ThrowIfNull(element); 295/// <exception cref="ArgumentNullException">element is NULL.</exception> 303ArgumentNullException.ThrowIfNull(element); 310/// <exception cref="ArgumentNullException">element is NULL.</exception> 316ArgumentNullException.ThrowIfNull(element); 323/// <exception cref="ArgumentNullException">element is NULL.</exception> 328ArgumentNullException.ThrowIfNull(element); 335/// <exception cref="ArgumentNullException">element is NULL.</exception> 339ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
279ArgumentNullException.ThrowIfNull(path);
System\Windows\Documents\FixedTextContainer.cs (1)
310ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\FixedTextPointer.cs (4)
126ArgumentNullException.ThrowIfNull(textBuffer); 193ArgumentNullException.ThrowIfNull(property); 205ArgumentNullException.ThrowIfNull(property); 494ArgumentNullException.ThrowIfNull(textData);
System\Windows\Documents\FlowDocument.cs (3)
117ArgumentNullException.ThrowIfNull(block); 1626ArgumentNullException.ThrowIfNull(value); 1686ArgumentNullException.ThrowIfNull(serviceType);
System\Windows\Documents\FlowNode.cs (1)
109ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\FlowPosition.cs (1)
65ArgumentNullException.ThrowIfNull(o);
System\Windows\Documents\InlineCollection.cs (2)
189ArgumentNullException.ThrowIfNull(text); 235ArgumentNullException.ThrowIfNull(uiElement);
System\Windows\Documents\ITextView.cs (9)
80/// <exception cref="System.ArgumentNullException"> 117/// <exception cref="System.ArgumentNullException"> 177/// <exception cref="System.ArgumentNullException"> 223/// <exception cref="System.ArgumentNullException"> 255/// <exception cref="System.ArgumentNullException"> 294/// <exception cref="System.ArgumentNullException"> 320/// <exception cref="System.ArgumentNullException"> 349/// <exception cref="System.ArgumentNullException"> 378/// <exception cref="System.ArgumentNullException">
System\Windows\Documents\List.cs (2)
59ArgumentNullException.ThrowIfNull(listItem); 182ArgumentNullException.ThrowIfNull(item);
System\Windows\Documents\ListItem.cs (1)
50ArgumentNullException.ThrowIfNull(paragraph);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
61ArgumentNullException.ThrowIfNull(optionDescription);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
73ArgumentNullException.ThrowIfNull(error);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (4)
323ArgumentNullException.ThrowIfNull(dictionaryPath); 324ArgumentNullException.ThrowIfNull(languageTag); 354ArgumentNullException.ThrowIfNull(dictionaryPath); 355ArgumentNullException.ThrowIfNull(languageTag);
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (4)
34ArgumentNullException.ThrowIfNull(enumString); 78ArgumentNullException.ThrowIfNull(spellingErrors); 121ArgumentNullException.ThrowIfNull(errors); 145ArgumentNullException.ThrowIfNull(spellingErrors);
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (3)
284ArgumentNullException.ThrowIfNull(exception); 285ArgumentNullException.ThrowIfNull(exceptions); 299ArgumentNullException.ThrowIfNull(exceptions);
System\Windows\Documents\PageContent.cs (4)
157/// <exception cref="ArgumentNullException">value is NULL.</exception> 168ArgumentNullException.ThrowIfNull(value); 268ArgumentNullException.ThrowIfNull(value); 344ArgumentNullException.ThrowIfNull(pageVisual);
System\Windows\Documents\PageContentCollection.cs (2)
46/// <exception cref="ArgumentNullException"> 54ArgumentNullException.ThrowIfNull(newPageContent);
System\Windows\Documents\Paragraph.cs (1)
52ArgumentNullException.ThrowIfNull(inline);
System\Windows\Documents\RubberbandSelector.cs (1)
46ArgumentNullException.ThrowIfNull(scope);
System\windows\Documents\Section.cs (1)
45ArgumentNullException.ThrowIfNull(block);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
64ArgumentNullException.ThrowIfNull(factoryInstance);
System\Windows\Documents\Serialization\SerializerProvider.cs (4)
73ArgumentNullException.ThrowIfNull(serializerDescriptor); 99ArgumentNullException.ThrowIfNull(serializerDescriptor); 126ArgumentNullException.ThrowIfNull(serializerDescriptor); 134ArgumentNullException.ThrowIfNull(stream);
System\Windows\Documents\Span.cs (2)
89ArgumentNullException.ThrowIfNull(start); 90ArgumentNullException.ThrowIfNull(end);
System\Windows\Documents\Table.cs (1)
59ArgumentNullException.ThrowIfNull(value);
System\Windows\Documents\TableCell.cs (1)
61ArgumentNullException.ThrowIfNull(blockItem);
System\Windows\Documents\TableCellCollection.cs (5)
49/// <exception cref="ArgumentNullException"> 68/// <exception cref="ArgumentNullException"> 109/// <exception cref="ArgumentNullException"> 165/// <exception cref="ArgumentNullException"> 188/// <exception cref="ArgumentNullException">
System\Windows\Documents\TableColumnCollection.cs (5)
49/// <exception cref="ArgumentNullException"> 68/// <exception cref="ArgumentNullException"> 109/// <exception cref="ArgumentNullException"> 165/// <exception cref="ArgumentNullException"> 188/// <exception cref="ArgumentNullException">
System\Windows\Documents\TableRow.cs (1)
57ArgumentNullException.ThrowIfNull(value);
System\Windows\Documents\TableRowCollection.cs (5)
49/// <exception cref="ArgumentNullException"> 68/// <exception cref="ArgumentNullException"> 109/// <exception cref="ArgumentNullException"> 165/// <exception cref="ArgumentNullException"> 188/// <exception cref="ArgumentNullException">
System\Windows\Documents\TableRowGroup.cs (1)
58ArgumentNullException.ThrowIfNull(value);
System\Windows\Documents\TableRowGroupCollection.cs (5)
49/// <exception cref="ArgumentNullException"> 68/// <exception cref="ArgumentNullException"> 109/// <exception cref="ArgumentNullException"> 165/// <exception cref="ArgumentNullException"> 188/// <exception cref="ArgumentNullException">
System\Windows\Documents\TextContainer.cs (3)
215ArgumentNullException.ThrowIfNull(position); 216ArgumentNullException.ThrowIfNull(property); 257ArgumentNullException.ThrowIfNull(position);
System\Windows\Documents\TextEffectResolver.cs (3)
42ArgumentNullException.ThrowIfNull(effect); 131ArgumentNullException.ThrowIfNull(element); 132ArgumentNullException.ThrowIfNull(effect);
System\Windows\Documents\TextElement.cs (15)
474ArgumentNullException.ThrowIfNull(element); 485ArgumentNullException.ThrowIfNull(element); 519ArgumentNullException.ThrowIfNull(element); 530ArgumentNullException.ThrowIfNull(element); 564ArgumentNullException.ThrowIfNull(element); 575ArgumentNullException.ThrowIfNull(element); 609ArgumentNullException.ThrowIfNull(element); 620ArgumentNullException.ThrowIfNull(element); 657ArgumentNullException.ThrowIfNull(element); 669ArgumentNullException.ThrowIfNull(element); 705ArgumentNullException.ThrowIfNull(element); 716ArgumentNullException.ThrowIfNull(element); 858ArgumentNullException.ThrowIfNull(text); 1489ArgumentNullException.ThrowIfNull(textData); 1523ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\TextElementCollection.cs (10)
79ArgumentNullException.ThrowIfNull(item); 243ArgumentNullException.ThrowIfNull(previousSibling); 245ArgumentNullException.ThrowIfNull(newItem); 282ArgumentNullException.ThrowIfNull(nextSibling); 284ArgumentNullException.ThrowIfNull(newItem); 317ArgumentNullException.ThrowIfNull(range); 395ArgumentNullException.ThrowIfNull(value); 448ArgumentNullException.ThrowIfNull(value); 561ArgumentNullException.ThrowIfNull(value); 598ArgumentNullException.ThrowIfNull(array);
System\Windows\Documents\TextPointer.cs (8)
257ArgumentNullException.ThrowIfNull(textPointer); 265ArgumentNullException.ThrowIfNull(position); 432ArgumentNullException.ThrowIfNull(textPosition); 1272ArgumentNullException.ThrowIfNull(textData); 1750ArgumentNullException.ThrowIfNull(textBuffer); 2139ArgumentNullException.ThrowIfNull(uiElement); 2500ArgumentNullException.ThrowIfNull(formattingProperty); 2524ArgumentNullException.ThrowIfNull(formattingProperty);
System\Windows\Documents\TextRange.cs (4)
84ArgumentNullException.ThrowIfNull(position1); 85ArgumentNullException.ThrowIfNull(position2); 780ArgumentNullException.ThrowIfNull(formattingProperty); 849ArgumentNullException.ThrowIfNull(formattingProperty);
System\Windows\Documents\TextRangeBase.cs (8)
62ArgumentNullException.ThrowIfNull(textPointer); 186ArgumentNullException.ThrowIfNull(position); 236ArgumentNullException.ThrowIfNull(position); 1285ArgumentNullException.ThrowIfNull(textData); 1497ArgumentNullException.ThrowIfNull(stream); 1498ArgumentNullException.ThrowIfNull(dataFormat); 1545ArgumentNullException.ThrowIfNull(stream); 1546ArgumentNullException.ThrowIfNull(dataFormat);
System\Windows\Documents\Typography.cs (87)
31ArgumentNullException.ThrowIfNull(owner); 365ArgumentNullException.ThrowIfNull(element); 378ArgumentNullException.ThrowIfNull(element); 391ArgumentNullException.ThrowIfNull(element); 404ArgumentNullException.ThrowIfNull(element); 417ArgumentNullException.ThrowIfNull(element); 430ArgumentNullException.ThrowIfNull(element); 443ArgumentNullException.ThrowIfNull(element); 456ArgumentNullException.ThrowIfNull(element); 469ArgumentNullException.ThrowIfNull(element); 482ArgumentNullException.ThrowIfNull(element); 495ArgumentNullException.ThrowIfNull(element); 508ArgumentNullException.ThrowIfNull(element); 521ArgumentNullException.ThrowIfNull(element); 534ArgumentNullException.ThrowIfNull(element); 547ArgumentNullException.ThrowIfNull(element); 560ArgumentNullException.ThrowIfNull(element); 573ArgumentNullException.ThrowIfNull(element); 586ArgumentNullException.ThrowIfNull(element); 599ArgumentNullException.ThrowIfNull(element); 612ArgumentNullException.ThrowIfNull(element); 625ArgumentNullException.ThrowIfNull(element); 638ArgumentNullException.ThrowIfNull(element); 651ArgumentNullException.ThrowIfNull(element); 664ArgumentNullException.ThrowIfNull(element); 677ArgumentNullException.ThrowIfNull(element); 690ArgumentNullException.ThrowIfNull(element); 703ArgumentNullException.ThrowIfNull(element); 716ArgumentNullException.ThrowIfNull(element); 729ArgumentNullException.ThrowIfNull(element); 742ArgumentNullException.ThrowIfNull(element); 755ArgumentNullException.ThrowIfNull(element); 768ArgumentNullException.ThrowIfNull(element); 781ArgumentNullException.ThrowIfNull(element); 794ArgumentNullException.ThrowIfNull(element); 807ArgumentNullException.ThrowIfNull(element); 820ArgumentNullException.ThrowIfNull(element); 833ArgumentNullException.ThrowIfNull(element); 846ArgumentNullException.ThrowIfNull(element); 859ArgumentNullException.ThrowIfNull(element); 872ArgumentNullException.ThrowIfNull(element); 885ArgumentNullException.ThrowIfNull(element); 898ArgumentNullException.ThrowIfNull(element); 911ArgumentNullException.ThrowIfNull(element); 924ArgumentNullException.ThrowIfNull(element); 937ArgumentNullException.ThrowIfNull(element); 950ArgumentNullException.ThrowIfNull(element); 963ArgumentNullException.ThrowIfNull(element); 976ArgumentNullException.ThrowIfNull(element); 989ArgumentNullException.ThrowIfNull(element); 1002ArgumentNullException.ThrowIfNull(element); 1015ArgumentNullException.ThrowIfNull(element); 1028ArgumentNullException.ThrowIfNull(element); 1041ArgumentNullException.ThrowIfNull(element); 1054ArgumentNullException.ThrowIfNull(element); 1067ArgumentNullException.ThrowIfNull(element); 1080ArgumentNullException.ThrowIfNull(element); 1093ArgumentNullException.ThrowIfNull(element); 1106ArgumentNullException.ThrowIfNull(element); 1119ArgumentNullException.ThrowIfNull(element); 1132ArgumentNullException.ThrowIfNull(element); 1145ArgumentNullException.ThrowIfNull(element); 1158ArgumentNullException.ThrowIfNull(element); 1171ArgumentNullException.ThrowIfNull(element); 1184ArgumentNullException.ThrowIfNull(element); 1197ArgumentNullException.ThrowIfNull(element); 1210ArgumentNullException.ThrowIfNull(element); 1223ArgumentNullException.ThrowIfNull(element); 1236ArgumentNullException.ThrowIfNull(element); 1249ArgumentNullException.ThrowIfNull(element); 1262ArgumentNullException.ThrowIfNull(element); 1275ArgumentNullException.ThrowIfNull(element); 1288ArgumentNullException.ThrowIfNull(element); 1301ArgumentNullException.ThrowIfNull(element); 1314ArgumentNullException.ThrowIfNull(element); 1327ArgumentNullException.ThrowIfNull(element); 1340ArgumentNullException.ThrowIfNull(element); 1353ArgumentNullException.ThrowIfNull(element); 1366ArgumentNullException.ThrowIfNull(element); 1379ArgumentNullException.ThrowIfNull(element); 1392ArgumentNullException.ThrowIfNull(element); 1405ArgumentNullException.ThrowIfNull(element); 1418ArgumentNullException.ThrowIfNull(element); 1431ArgumentNullException.ThrowIfNull(element); 1444ArgumentNullException.ThrowIfNull(element); 1457ArgumentNullException.ThrowIfNull(element); 1470ArgumentNullException.ThrowIfNull(element);
System\Windows\Documents\ValidationHelper.cs (2)
56ArgumentNullException.ThrowIfNull(startPosition); 57ArgumentNullException.ThrowIfNull(endPosition);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
715/// <exception cref="ArgumentNullException">
System\Windows\Documents\WpfPayload.cs (4)
189ArgumentNullException.ThrowIfNull(range); 286/// <exception cref="ArgumentNullException"> 300ArgumentNullException.ThrowIfNull(stream); 481ArgumentNullException.ThrowIfNull(image);
System\Windows\Documents\XamlRtfConverter.cs (2)
53ArgumentNullException.ThrowIfNull(xamlContent); 90ArgumentNullException.ThrowIfNull(rtfContent);
System\Windows\Documents\ZoomPercentageConverter.cs (1)
190catch (ArgumentNullException) { }
System\Windows\DynamicResourceExtension.cs (2)
39ArgumentNullException.ThrowIfNull(resourceKey); 83ArgumentNullException.ThrowIfNull(value);
System\Windows\DynamicResourceExtensionConverter.cs (1)
43ArgumentNullException.ThrowIfNull(value);
System\Windows\EventSetter.cs (4)
33ArgumentNullException.ThrowIfNull(routedEvent); 34ArgumentNullException.ThrowIfNull(handler); 48ArgumentNullException.ThrowIfNull(value); 64ArgumentNullException.ThrowIfNull(value);
System\Windows\EventSetterHandlerConverter.cs (2)
51ArgumentNullException.ThrowIfNull(typeDescriptorContext); 52ArgumentNullException.ThrowIfNull(source);
System\Windows\EventTrigger.cs (1)
93ArgumentNullException.ThrowIfNull(value);
System\Windows\FigureLengthConverter.cs (3)
95/// <exception cref="ArgumentNullException"> 131/// <exception cref="ArgumentNullException"> 144ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\FontSizeConverter.cs (1)
100ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\FrameworkContentElement.cs (4)
340ArgumentNullException.ThrowIfNull(resourceKey); 367ArgumentNullException.ThrowIfNull(resourceKey); 424ArgumentNullException.ThrowIfNull(storyboard); 986ArgumentNullException.ThrowIfNull(request);
System\Windows\FrameworkElement.cs (6)
448ArgumentNullException.ThrowIfNull(storyboard); 820ArgumentNullException.ThrowIfNull(resourceKey); 848ArgumentNullException.ThrowIfNull(resourceKey); 3684ArgumentNullException.ThrowIfNull(element); 3694ArgumentNullException.ThrowIfNull(element); 5306ArgumentNullException.ThrowIfNull(request);
System\Windows\FrameworkElementFactory.cs (8)
125ArgumentNullException.ThrowIfNull(value); 164ArgumentNullException.ThrowIfNull(child); 203ArgumentNullException.ThrowIfNull(dp); 281ArgumentNullException.ThrowIfNull(dp); 306ArgumentNullException.ThrowIfNull(routedEvent); 307ArgumentNullException.ThrowIfNull(handler); 342ArgumentNullException.ThrowIfNull(routedEvent); 343ArgumentNullException.ThrowIfNull(handler);
System\Windows\FrameworkTemplate.cs (1)
304ArgumentNullException.ThrowIfNull(templatedParent);
System\Windows\GridLengthConverter.cs (3)
98/// <exception cref="ArgumentNullException"> 151/// <exception cref="ArgumentNullException"> 164ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Ink\Events.cs (10)
32ArgumentNullException.ThrowIfNull(stroke); 78ArgumentNullException.ThrowIfNull(newStrokes); 79ArgumentNullException.ThrowIfNull(previousStrokes); 127ArgumentNullException.ThrowIfNull(selectedStrokes); 128ArgumentNullException.ThrowIfNull(selectedElements); 166ArgumentNullException.ThrowIfNull(selectedElements); 189ArgumentNullException.ThrowIfNull(selectedStrokes); 266ArgumentNullException.ThrowIfNull(stroke); 303ArgumentNullException.ThrowIfNull(strokes); 308ArgumentNullException.ThrowIfNull(gestureRecognitionResults);
System\Windows\Input\Command\CommandConverter.cs (1)
170ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Input\KeyboardNavigation.cs (12)
325ArgumentNullException.ThrowIfNull(element); 338ArgumentNullException.ThrowIfNull(element); 350ArgumentNullException.ThrowIfNull(element); 363ArgumentNullException.ThrowIfNull(element); 375ArgumentNullException.ThrowIfNull(element); 389ArgumentNullException.ThrowIfNull(element); 401ArgumentNullException.ThrowIfNull(element); 415ArgumentNullException.ThrowIfNull(element); 427ArgumentNullException.ThrowIfNull(element); 441ArgumentNullException.ThrowIfNull(element); 453ArgumentNullException.ThrowIfNull(element); 466ArgumentNullException.ThrowIfNull(element);
System\Windows\Interop\WindowInteropHelper.cs (1)
35ArgumentNullException.ThrowIfNull(window);
System\Windows\LengthConverter.cs (3)
93/// <exception cref="ArgumentNullException"> 122/// <exception cref="ArgumentNullException"> 138ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Localization.cs (4)
55ArgumentNullException.ThrowIfNull(element); 67ArgumentNullException.ThrowIfNull(element); 81ArgumentNullException.ThrowIfNull(element); 93ArgumentNullException.ThrowIfNull(element);
System\Windows\LogicalTreeHelper.cs (6)
65ArgumentNullException.ThrowIfNull(logicalTreeNode); 116ArgumentNullException.ThrowIfNull(current); 140ArgumentNullException.ThrowIfNull(current); 162ArgumentNullException.ThrowIfNull(current); 172ArgumentNullException.ThrowIfNull(current); 182ArgumentNullException.ThrowIfNull(current);
System\Windows\LostFocusEventManager.cs (6)
43ArgumentNullException.ThrowIfNull(source); 44ArgumentNullException.ThrowIfNull(listener); 54ArgumentNullException.ThrowIfNull(source); 55ArgumentNullException.ThrowIfNull(listener); 65ArgumentNullException.ThrowIfNull(handler); 75ArgumentNullException.ThrowIfNull(handler);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
50ArgumentNullException.ThrowIfNull(fileName); 62ArgumentNullException.ThrowIfNull(stream); 72ArgumentNullException.ThrowIfNull(stream); 73ArgumentNullException.ThrowIfNull(xamlReaderSettings); 92ArgumentNullException.ThrowIfNull(stream); 93ArgumentNullException.ThrowIfNull(schemaContext);
System\Windows\Markup\Baml2006\Baml2006ReaderContext.cs (1)
13ArgumentNullException.ThrowIfNull(schemaContext);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (8)
340ArgumentNullException.ThrowIfNull(assemblyName); 364ArgumentNullException.ThrowIfNull(typeName); 391ArgumentNullException.ThrowIfNull(propertyName); 410ArgumentNullException.ThrowIfNull(value); 705ArgumentNullException.ThrowIfNull(name); 713ArgumentNullException.ThrowIfNull(assembly); 730ArgumentNullException.ThrowIfNull(name); 749ArgumentNullException.ThrowIfNull(name);
System\Windows\Markup\Baml2006\Baml6Assembly.cs (2)
21ArgumentNullException.ThrowIfNull(name); 29ArgumentNullException.ThrowIfNull(assembly);
System\Windows\Markup\Baml2006\SharedStream.cs (3)
26ArgumentNullException.ThrowIfNull(baseStream); 39ArgumentNullException.ThrowIfNull(baseStream); 166ArgumentNullException.ThrowIfNull(buffer);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
178ArgumentNullException.ThrowIfNull(type);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
21ArgumentNullException.ThrowIfNull(type);
System\Windows\Markup\BamlWriter.cs (1)
29ArgumentNullException.ThrowIfNull(stream);
System\Windows\Markup\DependencyPropertyConverter.cs (2)
65ArgumentNullException.ThrowIfNull(context); 66ArgumentNullException.ThrowIfNull(source);
System\Windows\Markup\Localizer\BamlLocalizableResourceKey.cs (3)
26ArgumentNullException.ThrowIfNull(uid); 27ArgumentNullException.ThrowIfNull(className); 28ArgumentNullException.ThrowIfNull(propertyName);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (9)
211ArgumentNullException.ThrowIfNull(key); 216ArgumentNullException.ThrowIfNull(key); 228ArgumentNullException.ThrowIfNull(key); 296ArgumentNullException.ThrowIfNull(array); 323ArgumentNullException.ThrowIfNull(key); 329ArgumentNullException.ThrowIfNull(key); 335ArgumentNullException.ThrowIfNull(key); 343ArgumentNullException.ThrowIfNull(key); 348ArgumentNullException.ThrowIfNull(key);
System\Windows\Markup\Localizer\BamlLocalizer.cs (3)
56ArgumentNullException.ThrowIfNull(source); 83ArgumentNullException.ThrowIfNull(target); 84ArgumentNullException.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)
140ArgumentNullException.ThrowIfNull(value); 141ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (2)
85ArgumentNullException.ThrowIfNull(serviceProvider); 86ArgumentNullException.ThrowIfNull(source);
System\Windows\Markup\XamlFigureLengthSerializer.cs (2)
64ArgumentNullException.ThrowIfNull(writer); 135ArgumentNullException.ThrowIfNull(reader);
System\Windows\Markup\XamlGridLengthSerializer.cs (2)
64ArgumentNullException.ThrowIfNull(writer); 135ArgumentNullException.ThrowIfNull(reader);
System\Windows\Markup\XamlReader.cs (7)
132ArgumentNullException.ThrowIfNull(reader); 160ArgumentNullException.ThrowIfNull(stream); 201ArgumentNullException.ThrowIfNull(stream); 244ArgumentNullException.ThrowIfNull(reader); 280ArgumentNullException.ThrowIfNull(stream); 320ArgumentNullException.ThrowIfNull(reader); 969ArgumentNullException.ThrowIfNull(reader);
System\Windows\Markup\XamlWriter.cs (9)
40ArgumentNullException.ThrowIfNull(obj); 75ArgumentNullException.ThrowIfNull(obj); 76ArgumentNullException.ThrowIfNull(writer); 100ArgumentNullException.ThrowIfNull(obj); 101ArgumentNullException.ThrowIfNull(stream); 127ArgumentNullException.ThrowIfNull(obj); 128ArgumentNullException.ThrowIfNull(xmlWriter); 157ArgumentNullException.ThrowIfNull(obj); 158ArgumentNullException.ThrowIfNull(manager);
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (2)
60ArgumentNullException.ThrowIfNull(keySpline); 132ArgumentNullException.ThrowIfNull(value);
System\Windows\Media\Animation\Generated\ThicknessAnimationBase.cs (3)
76ArgumentNullException.ThrowIfNull(defaultOriginValue); 77ArgumentNullException.ThrowIfNull(defaultDestinationValue); 131ArgumentNullException.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)
85ArgumentNullException.ThrowIfNull(element); 100ArgumentNullException.ThrowIfNull(element); 134ArgumentNullException.ThrowIfNull(element); 135ArgumentNullException.ThrowIfNull(name); 144ArgumentNullException.ThrowIfNull(element); 164ArgumentNullException.ThrowIfNull(element); 165ArgumentNullException.ThrowIfNull(path); 174ArgumentNullException.ThrowIfNull(element); 1212ArgumentNullException.ThrowIfNull(containingObject);
System\Windows\Media\TextOptions.cs (6)
65ArgumentNullException.ThrowIfNull(element); 72ArgumentNullException.ThrowIfNull(element); 79ArgumentNullException.ThrowIfNull(element); 86ArgumentNullException.ThrowIfNull(element); 94ArgumentNullException.ThrowIfNull(element); 101ArgumentNullException.ThrowIfNull(element);
System\Windows\Navigation\Journal.cs (1)
271ArgumentNullException.ThrowIfNull(journalEntry);
System\Windows\Navigation\JournalEntry.cs (6)
113ArgumentNullException.ThrowIfNull(info); 154ArgumentNullException.ThrowIfNull(dependencyObject); 170ArgumentNullException.ThrowIfNull(dependencyObject); 185ArgumentNullException.ThrowIfNull(dependencyObject); 260ArgumentNullException.ThrowIfNull(contentObject); 278ArgumentNullException.ThrowIfNull(contentObject);
System\Windows\Navigation\JournalEntryListConverter.cs (2)
85ArgumentNullException.ThrowIfNull(element); 95ArgumentNullException.ThrowIfNull(element);
System\Windows\Navigation\NavigationService.cs (1)
1295ArgumentNullException.ThrowIfNull(dependencyObject);
System\Windows\PropertyPathConverter.cs (5)
82/// <exception cref="ArgumentNullException"> 96ArgumentNullException.ThrowIfNull(source); 112/// <exception cref="ArgumentNullException"> 129ArgumentNullException.ThrowIfNull(value); 130ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\ResourceDictionary.cs (1)
88ArgumentNullException.ThrowIfNull(array);
System\Windows\ResourceDictionaryCollection.cs (2)
44ArgumentNullException.ThrowIfNull(item); 55ArgumentNullException.ThrowIfNull(item);
System\Windows\ResourceReferenceExpression.cs (2)
52ArgumentNullException.ThrowIfNull(d); 53ArgumentNullException.ThrowIfNull(dp);
System\Windows\ResourceReferenceExpressionConverter.cs (2)
64ArgumentNullException.ThrowIfNull(destinationType); 119ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Setter.cs (4)
64ArgumentNullException.ThrowIfNull(property); 220ArgumentNullException.ThrowIfNull(targetObject); 221ArgumentNullException.ThrowIfNull(eventArgs); 252ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\SetterBaseCollection.cs (1)
108ArgumentNullException.ThrowIfNull(setterBase);
System\Windows\SizeChangedEventArgs.cs (2)
25ArgumentNullException.ThrowIfNull(info); 26ArgumentNullException.ThrowIfNull(element);
System\Windows\Standard\ErrorCodes.cs (1)
422Assert.IsFalse(e is ArgumentNullException);
System\Windows\StaticResourceExtension.cs (2)
38ArgumentNullException.ThrowIfNull(resourceKey); 71ArgumentNullException.ThrowIfNull(value);
System\Windows\Style.cs (2)
162ArgumentNullException.ThrowIfNull(value); 392ArgumentNullException.ThrowIfNull(value);
System\Windows\SystemKeyConverter.cs (3)
40ArgumentNullException.ThrowIfNull(sourceType); 60ArgumentNullException.ThrowIfNull(destinationType); 113ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\TemplateBindingExtension.cs (3)
40ArgumentNullException.ThrowIfNull(property); 73ArgumentNullException.ThrowIfNull(value); 87ArgumentNullException.ThrowIfNull(value);
System\Windows\TemplateBindingExtensionConverter.cs (1)
47ArgumentNullException.ThrowIfNull(value);
System\Windows\TemplateContentLoader.cs (2)
13ArgumentNullException.ThrowIfNull(serviceProvider); 14ArgumentNullException.ThrowIfNull(xamlReader);
System\Windows\ThemeDictionaryExtension.cs (1)
34ArgumentNullException.ThrowIfNull(assemblyName);
System\Windows\ThemeManager.cs (3)
385ArgumentNullException.ThrowIfNull(newDictionary); 407ArgumentNullException.ThrowIfNull(rd); 425ArgumentNullException.ThrowIfNull(rd, nameof(rd));
System\Windows\ThemeModeConverter.cs (3)
54/// <exception cref="ArgumentNullException"> 78/// <exception cref="ArgumentNullException"> 96ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\ThicknessConverter.cs (4)
79/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException"> 121ArgumentNullException.ThrowIfNull(value); 122ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Trigger.cs (2)
176ArgumentNullException.ThrowIfNull(o); 288ArgumentNullException.ThrowIfNull(eventArgs);
System\Windows\TriggerActionCollection.cs (1)
304ArgumentNullException.ThrowIfNull(value);
System\Windows\TriggerBase.cs (1)
188ArgumentNullException.ThrowIfNull(target);
System\Windows\TriggerCollection.cs (1)
138ArgumentNullException.ThrowIfNull(triggerBase);
System\Windows\VisualStateManager.cs (16)
29ArgumentNullException.ThrowIfNull(stateName); 71ArgumentNullException.ThrowIfNull(control); 87ArgumentNullException.ThrowIfNull(stateGroupsRoot); 111ArgumentNullException.ThrowIfNull(obj); 118ArgumentNullException.ThrowIfNull(obj); 142ArgumentNullException.ThrowIfNull(obj); 158ArgumentNullException.ThrowIfNull(obj); 188ArgumentNullException.ThrowIfNull(stateGroupsRoot); 189ArgumentNullException.ThrowIfNull(state); 329ArgumentNullException.ThrowIfNull(stateGroup); 330ArgumentNullException.ThrowIfNull(newState); 342ArgumentNullException.ThrowIfNull(stateGroup); 343ArgumentNullException.ThrowIfNull(newState); 530ArgumentNullException.ThrowIfNull(element); 531ArgumentNullException.ThrowIfNull(group); 532ArgumentNullException.ThrowIfNull(to);
System\Windows\Window.cs (1)
525ArgumentNullException.ThrowIfNull(dependencyObject);
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
60ArgumentNullException.ThrowIfNull(element); 72ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
60ArgumentNullException.ThrowIfNull(element); 72ArgumentNullException.ThrowIfNull(element);
PresentationFramework.AeroLite (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
59ArgumentNullException.ThrowIfNull(element); 71ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
98ArgumentNullException.ThrowIfNull(element); 110ArgumentNullException.ThrowIfNull(element);
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
80ArgumentNullException.ThrowIfNull(element); 92ArgumentNullException.ThrowIfNull(element);
PresentationUI (62)
MS\Internal\Documents\Application\CommandEnforcer.cs (2)
27ArgumentNullException.ThrowIfNull(command); 88ArgumentNullException.ThrowIfNull(bind);
MS\Internal\Documents\Application\DocumentManager.cs (2)
499/// <exception cref="System.ArgumentNullException"/> 503ArgumentNullException.ThrowIfNull(document);
MS\Internal\Documents\Application\DocumentProperties.cs (1)
33ArgumentNullException.ThrowIfNull(uri);
MS\Internal\Documents\Application\DocumentStream.cs (10)
88/// <exception cref="System.ArgumentNullException"/> 327/// <exception cref="System.ArgumentNullException"/> 342/// <exception cref="System.ArgumentNullException"/> 377/// <exception cref="System.ArgumentNullException"/> 382ArgumentNullException.ThrowIfNull(existing); 484/// <exception cref="System.ArgumentNullException"/> 717/// <exception cref="System.ArgumentNullException"/> 948/// <exception cref="System.ArgumentNullException"/> 967/// <exception cref="System.ArgumentNullException"/> 971ArgumentNullException.ThrowIfNull(location);
MS\Internal\Documents\Application\PageTextBox.cs (1)
399ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (3)
31/// <exception cref="System.ArgumentNullException" /> 42/// <exception cref="System.ArgumentNullException" /> 46ArgumentNullException.ThrowIfNull(target);
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (2)
72ArgumentNullException.ThrowIfNull(exception); 267(exception is ArgumentNullException) ||
MS\Internal\Documents\Application\TransactionalPackage.cs (9)
53/// <exception cref="System.ArgumentNullException" /> 62ArgumentNullException.ThrowIfNull(original); 76/// <exception cref="System.ArgumentNullException" /> 79ArgumentNullException.ThrowIfNull(workspace); 94/// <exception cref="System.ArgumentNullException" /> 98ArgumentNullException.ThrowIfNull(target); 145ArgumentNullException.ThrowIfNull(newOriginal); 507/// <exception cref="System.ArgumentNullException" /> 519ArgumentNullException.ThrowIfNull(packagePart);
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (4)
52/// <exception cref="System.ArgumentNullException"/> 64ArgumentNullException.ThrowIfNull(container); 65ArgumentNullException.ThrowIfNull(readingPart); 66ArgumentNullException.ThrowIfNull(writeablePartFactory);
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (3)
41/// <exception cref="System.ArgumentNullException" /> 55ArgumentNullException.ThrowIfNull(readingStream); 56ArgumentNullException.ThrowIfNull(writeableStreamFactory);
MS\Internal\Documents\Application\ZoomComboBox.cs (2)
470catch (ArgumentNullException) { } 542ArgumentNullException.ThrowIfNull(value);
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
34ArgumentNullException.ThrowIfNull(package);
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (5)
224ArgumentNullException.ThrowIfNull(docSigManager); 225ArgumentNullException.ThrowIfNull(rmManager); 1634ArgumentNullException.ThrowIfNull(args); 1896catch (ArgumentNullException) { } 1987catch (ArgumentNullException) { }
MS\Internal\Documents\DocumentSignatureManager.cs (3)
39ArgumentNullException.ThrowIfNull(digSigProvider); 1080ArgumentNullException.ThrowIfNull(digitalSignature); 1148ArgumentNullException.ThrowIfNull(args);
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
318ArgumentNullException.ThrowIfNull(dataStream);
MS\Internal\Documents\RequestedSignatureDialog.cs (1)
24ArgumentNullException.ThrowIfNull(docSigManager);
MS\Internal\Documents\RightsManagementManager.cs (1)
43ArgumentNullException.ThrowIfNull(rmProvider);
MS\Internal\Documents\RightsManagementProvider.cs (3)
447ArgumentNullException.ThrowIfNull(user); 481ArgumentNullException.ThrowIfNull(user); 640ArgumentNullException.ThrowIfNull(licenses);
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
70ArgumentNullException.ThrowIfNull(user);
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (5)
622ArgumentNullException.ThrowIfNull(everyoneRow); 643ArgumentNullException.ThrowIfNull(everyoneRow); 644ArgumentNullException.ThrowIfNull(targetRow); 730ArgumentNullException.ThrowIfNull(everyoneRow); 761ArgumentNullException.ThrowIfNull(row);
MS\Internal\Documents\SigningDialog.cs (2)
34ArgumentNullException.ThrowIfNull(x509Certificate2); 35ArgumentNullException.ThrowIfNull(docSigManager);
ReachFramework (196)
AlphaFlattener\MetroDevice.cs (6)
433ArgumentNullException.ThrowIfNull(queue); 779ArgumentNullException.ThrowIfNull(ticket); 786ArgumentNullException.ThrowIfNull(ticket); 787ArgumentNullException.ThrowIfNull(devMode); 794ArgumentNullException.ThrowIfNull(ticket); 814ArgumentNullException.ThrowIfNull(ticket);
MS\Internal\Printing\Configuration\DevMode.cs (1)
30ArgumentNullException.ThrowIfNull(devModeBytes);
Packaging\PartEditor.cs (1)
41ArgumentNullException.ThrowIfNull(metroPart);
packaging\XpsDigitalSignature.cs (1)
157catch( ArgumentNullException )
Packaging\XpsDocument.cs (7)
159ArgumentNullException.ThrowIfNull(path); 356/// <exception cref="ArgumentNullException">certificate is null.</exception> 393/// <exception cref="ArgumentNullException">certificate is null.</exception> 434/// <exception cref="ArgumentNullException">certificate is null.</exception> 462/// <exception cref="ArgumentNullException">signature is null.</exception> 471ArgumentNullException.ThrowIfNull(signature); 835ArgumentNullException.ThrowIfNull(certificate);
Packaging\XpsFixedDocumentReaderWriter.cs (2)
254/// <exception cref="ArgumentNullException">part is null.</exception> 264ArgumentNullException.ThrowIfNull(part);
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (2)
190/// <exception cref="ArgumentNullException">part is null.</exception> 199ArgumentNullException.ThrowIfNull(part);
Packaging\XpsFixedPageReaderWriter.cs (8)
218/// <exception cref="ArgumentNullException">resourceName is null.</exception> 311/// <exception cref="ArgumentNullException">imageType is null.</exception> 438/// <exception cref="ArgumentNullException">part is null.</exception> 449ArgumentNullException.ThrowIfNull(part); 1186/// <exception cref="ArgumentNullException">imageType is null.</exception> 1210/// <exception cref="ArgumentNullException">imageType is null.</exception> 1223ArgumentNullException.ThrowIfNull(mimeType); 1243ArgumentNullException.ThrowIfNull(mimeType);
Packaging\XpsInterleavingPolicy.cs (1)
277ArgumentNullException.ThrowIfNull(node);
Packaging\XpsManager.cs (11)
298ArgumentNullException.ThrowIfNull(contentType); 348ArgumentNullException.ThrowIfNull(contentType); 435ArgumentNullException.ThrowIfNull(relatedPart); 436ArgumentNullException.ThrowIfNull(metroPart); 437ArgumentNullException.ThrowIfNull(printTicket); 490ArgumentNullException.ThrowIfNull(relatedPart); 491ArgumentNullException.ThrowIfNull(metroPart); 976ArgumentNullException.ThrowIfNull(metroPackage); 1006ArgumentNullException.ThrowIfNull(relatedPart); 1039ArgumentNullException.ThrowIfNull(contentType); 1469ArgumentNullException.ThrowIfNull(startingPart);
Packaging\XpsPartBase.cs (1)
37ArgumentNullException.ThrowIfNull(xpsManager);
Packaging\XpsResource.cs (3)
25/// <exception cref="ArgumentNullException">part is null.</exception> 38ArgumentNullException.ThrowIfNull(part); 68ArgumentNullException.ThrowIfNull(inUri);
Packaging\XpsResourcePolicy.cs (3)
74/// <exception cref="ArgumentNullException">service or serviceType is null..</exception> 83ArgumentNullException.ThrowIfNull(serviceType); 84ArgumentNullException.ThrowIfNull(service);
Packaging\XPSSignatureDefinition.cs (3)
327ArgumentNullException.ThrowIfNull(writer); 408ArgumentNullException.ThrowIfNull(reader); 486catch (ArgumentNullException)
PrintConfig\FallbackPTProvider.cs (1)
303ArgumentNullException.ThrowIfNull(devMode);
PrintConfig\PrintCapabilitesWriter.cs (1)
27ArgumentNullException.ThrowIfNull(stream);
PrintConfig\PrintSchemaShim.cs (2)
112ArgumentNullException.ThrowIfNull(ticket); 113ArgumentNullException.ThrowIfNull(oemDriverNamespace);
PrintConfig\PrtCap_Public.cs (2)
35/// <exception cref="ArgumentNullException"> 46ArgumentNullException.ThrowIfNull(xmlStream);
PrintConfig\PrtCap_Public_Simple.cs (1)
189/// <exception cref="ArgumentNullException">
PrintConfig\PrtTicket_Public.cs (4)
54/// <exception cref="ArgumentNullException"> 65ArgumentNullException.ThrowIfNull(xmlStream); 147/// <exception cref="ArgumentNullException"> 153ArgumentNullException.ThrowIfNull(outStream);
PrintConfig\PrtTicket_Public_Simple.cs (2)
258/// <exception cref="ArgumentNullException"> 308/// <exception cref="ArgumentNullException">
PrintConfig\PTConverter.cs (8)
61/// <exception cref="ArgumentNullException"> 75ArgumentNullException.ThrowIfNull(deviceName); 118/// <exception cref="ArgumentNullException"> 141/// <exception cref="ArgumentNullException"> 173/// <exception cref="ArgumentNullException"> 201/// <exception cref="ArgumentNullException"> 237ArgumentNullException.ThrowIfNull(devMode); 258ArgumentNullException.ThrowIfNull(printTicket);
PrintConfig\PTManager.cs (5)
195/// <exception cref="ArgumentNullException"> 209ArgumentNullException.ThrowIfNull(deviceName); 319/// <exception cref="ArgumentNullException"> 350/// <exception cref="ArgumentNullException"> 370ArgumentNullException.ThrowIfNull(basePrintTicket);
Serialization\ColorTypeConverter.cs (2)
106ArgumentNullException.ThrowIfNull(value); 279ArgumentNullException.ThrowIfNull(colorContext);
Serialization\FontTypeConverter.cs (2)
104ArgumentNullException.ThrowIfNull(value); 143ArgumentNullException.ThrowIfNull(context);
Serialization\ImageSourceTypeConverter.cs (2)
109ArgumentNullException.ThrowIfNull(value); 151ArgumentNullException.ThrowIfNull(context);
Serialization\Manager\MetroSerializationManager.cs (5)
152ArgumentNullException.ThrowIfNull(serializedObject); 504ArgumentNullException.ThrowIfNull(serializedObject); 698ArgumentNullException.ThrowIfNull(serializableObject); 757ArgumentNullException.ThrowIfNull(serializableObject); 944ArgumentNullException.ThrowIfNull(serializableObjectType);
Serialization\Manager\NGCPageContentCollectionSerializerAsync.cs (1)
108ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\NGCSerializationManager.cs (4)
31/// <exception cref="ArgumentNullException">queue is NULL.</exception> 39ArgumentNullException.ThrowIfNull(queue); 52/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 63ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\NGCSerializationManagerAsync.cs (4)
34/// <exception cref="ArgumentNullException">queue is NULL.</exception> 42ArgumentNullException.ThrowIfNull(queue); 62/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 71ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\NGCSerializer.cs (7)
70ArgumentNullException.ThrowIfNull(manager); 83ArgumentNullException.ThrowIfNull(serializedObject); 137ArgumentNullException.ThrowIfNull(manager); 151ArgumentNullException.ThrowIfNull(serializedObject); 216ArgumentNullException.ThrowIfNull(manager); 295ArgumentNullException.ThrowIfNull(manager); 466ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\NGCSerializerAsync.cs (19)
29ArgumentNullException.ThrowIfNull(manager); 121ArgumentNullException.ThrowIfNull(serializedProperty); 166ArgumentNullException.ThrowIfNull(serializedObject); 271ArgumentNullException.ThrowIfNull(serializableObjectContext); 294ArgumentNullException.ThrowIfNull(serializablePropertyContext); 359ArgumentNullException.ThrowIfNull(serializableObjectContext); 421ArgumentNullException.ThrowIfNull(serializablePropertyContext); 498ArgumentNullException.ThrowIfNull(manager); 571ArgumentNullException.ThrowIfNull(serializableObjectContext); 602ArgumentNullException.ThrowIfNull(manager); 683ArgumentNullException.ThrowIfNull(serializableObjectContext); 756ArgumentNullException.ThrowIfNull(manager); 835ArgumentNullException.ThrowIfNull(serializableObjectContext); 870ArgumentNullException.ThrowIfNull(manager); 947ArgumentNullException.ThrowIfNull(serializableObjectContext); 985ArgumentNullException.ThrowIfNull(manager); 1032ArgumentNullException.ThrowIfNull(serializableObjectContext); 1145ArgumentNullException.ThrowIfNull(serializableObjectContext); 1254ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\NGCUIElementCollectionSerializerAsync.cs (1)
122ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\NullPackagingPolicy.cs (2)
740/// <exception cref="ArgumentNullException">printTicket is NULL.</exception> 751ArgumentNullException.ThrowIfNull(printTicket);
Serialization\Manager\ReachDocumentReferenceCollectionSerializer.cs (1)
39ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachDocumentReferenceCollectionSerializerAsync.cs (1)
77ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachDocumentSequenceSerializer.cs (2)
143ArgumentNullException.ThrowIfNull(serializablePropertyContext); 165ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (2)
181ArgumentNullException.ThrowIfNull(serializablePropertyContext); 203ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedDocumentSerializer.cs (3)
125ArgumentNullException.ThrowIfNull(serializableObjectContext); 214ArgumentNullException.ThrowIfNull(serializablePropertyContext); 244ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (3)
154ArgumentNullException.ThrowIfNull(serializableObjectContext); 254ArgumentNullException.ThrowIfNull(serializablePropertyContext); 284ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedPageSerializer.cs (3)
141ArgumentNullException.ThrowIfNull(serializableObjectContext); 291ArgumentNullException.ThrowIfNull(serializablePropertyContext); 320ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
166ArgumentNullException.ThrowIfNull(serializableObjectContext); 263ArgumentNullException.ThrowIfNull(serializablePropertyContext); 292ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachObjectContext.cs (1)
59ArgumentNullException.ThrowIfNull(target);
Serialization\Manager\ReachPageContentCollectionSerializer.cs (1)
60ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachPageContentCollectionSerializerAsync.cs (1)
106ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachPrintTicketSerializer.cs (1)
99ArgumentNullException.ThrowIfNull(serializedProperty);
Serialization\Manager\ReachPrintTicketSerializerAsync.cs (1)
92ArgumentNullException.ThrowIfNull(serializedProperty);
Serialization\Manager\ReachSerializableProperties.cs (4)
365ArgumentNullException.ThrowIfNull(target); 367ArgumentNullException.ThrowIfNull(propertyCache); 386ArgumentNullException.ThrowIfNull(target); 387ArgumentNullException.ThrowIfNull(propertyCache);
Serialization\Manager\ReachSerializationCacheItems.cs (2)
283ArgumentNullException.ThrowIfNull(propertyInfo); 303ArgumentNullException.ThrowIfNull(propertyInfo);
Serialization\Manager\ReachSerializationUtils.cs (2)
280ArgumentNullException.ThrowIfNull(manager); 281ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\ReachSerializer.cs (7)
37ArgumentNullException.ThrowIfNull(manager); 71ArgumentNullException.ThrowIfNull(serializedObject); 130ArgumentNullException.ThrowIfNull(serializedProperty); 209ArgumentNullException.ThrowIfNull(serializableObjectContext); 232ArgumentNullException.ThrowIfNull(serializablePropertyContext); 297ArgumentNullException.ThrowIfNull(serializableObjectContext); 326ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachSerializerAsync.cs (7)
39ArgumentNullException.ThrowIfNull(manager); 133ArgumentNullException.ThrowIfNull(serializedProperty); 178ArgumentNullException.ThrowIfNull(serializedObject); 283ArgumentNullException.ThrowIfNull(serializableObjectContext); 306ArgumentNullException.ThrowIfNull(serializablePropertyContext); 371ArgumentNullException.ThrowIfNull(serializableObjectContext); 433ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\ReachUIElementCollectionSerializer.cs (1)
83ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\ReachUIElementCollectionSerializerAsync.cs (1)
123ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (1)
106ArgumentNullException.ThrowIfNull(serializableObjectContext);
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
121ArgumentNullException.ThrowIfNull(serializableObjectContext); 256ArgumentNullException.ThrowIfNull(serializablePropertyContext); 278ArgumentNullException.ThrowIfNull(serializablePropertyContext);
Serialization\Manager\XpsOMPackagingPolicy.cs (4)
32ArgumentNullException.ThrowIfNull(packageTarget); 401ArgumentNullException.ThrowIfNull(printTicket); 567ArgumentNullException.ThrowIfNull(resourceId); 836ArgumentNullException.ThrowIfNull(contentType);
Serialization\Manager\XpsOMSerializationManager.cs (1)
63ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\XpsOMSerializationManagerAsync.cs (1)
45ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\XpsPackagingPolicy.cs (5)
503/// <exception cref="ArgumentNullException">reachPackage is NULL.</exception> 514/// <exception cref="ArgumentNullException">reachPackage is NULL.</exception> 522ArgumentNullException.ThrowIfNull(xpsPackage); 1243/// <exception cref="ArgumentNullException">printTicket is NULL.</exception> 1254ArgumentNullException.ThrowIfNull(printTicket);
Serialization\Manager\XpsSerializationManager.cs (2)
80/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 93ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\Manager\XpsSerializationManagerAsync.cs (2)
57/// <exception cref="ArgumentNullException">serializedObject is NULL.</exception> 66ArgumentNullException.ThrowIfNull(serializedObject);
Serialization\XpsFontSubsetter.cs (4)
102ArgumentNullException.ThrowIfNull(packagingPolicy); 129ArgumentNullException.ThrowIfNull(glyphRun); 437ArgumentNullException.ThrowIfNull(packagingPolicy); 438ArgumentNullException.ThrowIfNull(glyphTypeface);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
56ArgumentNullException.ThrowIfNull(uri);
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)
32/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>. 51/// Throws an <see cref="System.ArgumentNullException"/> if the specified argument is <see langword="null"/>, 125/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/> 158/// Throws an <see cref="System.ArgumentNullException"/> if the string is <see langword="null"/>, 241/// Throws an <see cref="System.ArgumentNullException"/> if the collection is <see langword="null"/>, 301/// Throws an <see cref="System.ArgumentNullException"/>. 312/// 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 (3)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
46ArgumentNullException.ThrowIfNull(type);
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (2)
45ArgumentNullException.ThrowIfNull(value); 62ArgumentNullException.ThrowIfNull(value);
System.Collections (83)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ICollectionDebugView.cs (1)
15ArgumentNullException.ThrowIfNull(collection);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
13ArgumentNullException.ThrowIfNull(array);
System\Collections\BitArray.cs (8)
75ArgumentNullException.ThrowIfNull(bytes); 120ArgumentNullException.ThrowIfNull(values); 199ArgumentNullException.ThrowIfNull(values); 221ArgumentNullException.ThrowIfNull(bits); 317ArgumentNullException.ThrowIfNull(value); 390ArgumentNullException.ThrowIfNull(value); 463ArgumentNullException.ThrowIfNull(value); 750ArgumentNullException.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 (11)
10using static System.ArgumentNullException; 148/// <exception cref="ArgumentNullException"><paramref name="dictionary"/> is null.</exception> 165/// <exception cref="ArgumentNullException"><paramref name="dictionary"/> is null.</exception> 182/// <exception cref="ArgumentNullException"><paramref name="collection"/> is null.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="collection"/> is null.</exception> 362/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> 483/// <exception cref="ArgumentNullException">key is null.</exception> 495/// <exception cref="ArgumentNullException">key is null.</exception> 503/// <exception cref="ArgumentNullException">key is null.</exception> 610/// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> 720/// <exception cref="ArgumentNullException">key is null.</exception>
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); 1084/// <exception cref="ArgumentNullException"> 1198/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1200/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is a null reference 1239/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1241/// <exception cref="ArgumentNullException"><paramref name="valueFactory"/> is a null reference 1280/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1316/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1318/// <exception cref="ArgumentNullException"><paramref name="addValueFactory"/> is a null reference 1320/// <exception cref="ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference 1391/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1393/// <exception cref="ArgumentNullException"><paramref name="addValueFactory"/> is a null reference 1395/// <exception cref="ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference 1464/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1466/// <exception cref="ArgumentNullException"><paramref name="updateValueFactory"/> is a null reference 1563/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1588/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1620/// <exception cref="ArgumentNullException">The <paramref name="keyValuePair"/> of <paramref 1660/// <exception cref="ArgumentNullException">The Key property of <paramref 1689/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1726/// <exception cref="ArgumentNullException"> <paramref name="key"/> is a null reference 1777/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1808/// <exception cref="ArgumentNullException"><paramref name="key"/> is a null reference 1881/// <exception cref="ArgumentNullException"><paramref name="array"/> is a null reference 1892ArgumentNullException.ThrowIfNull(array); 2381/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2392/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2400/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2552/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2567/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2601/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 2613/// <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 (17)
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)
560/// <exception cref="ArgumentNullException"><paramref name="key"/> is null. 580/// <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 (39)
System\ComponentModel\DataAnnotations\AllowedValuesAttribute.cs (1)
22ArgumentNullException.ThrowIfNull(values);
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (2)
33/// <exception cref="System.ArgumentNullException">The value of associatedMetadataType is null.</exception> 39ArgumentNullException.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 (4)
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);
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); 552/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception> 556ArgumentNullException.ThrowIfNull(validationContext); 609/// <exception cref="ArgumentNullException">When <paramref name="validationContext" /> is null.</exception>
System.ComponentModel.Composition (212)
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\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 (10)
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); 107ArgumentNullException.ThrowIfNull(typeName);
System\ComponentModel\Composition\ExportFactoryOfT.cs (1)
12ArgumentNullException.ThrowIfNull(exportLifetimeContextCreator);
System\ComponentModel\Composition\ExportServices.cs (2)
28ArgumentNullException.ThrowIfNull(metadataViewType); 38ArgumentNullException.ThrowIfNull(metadataViewType);
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 (6)
27ArgumentNullException.ThrowIfNull(outerExportProvider); 59/// <exception cref="ArgumentNullException"> 131/// <exception cref="ArgumentNullException"> 557ArgumentNullException.ThrowIfNull(catalogPart); 605ArgumentNullException.ThrowIfNull(exportedValue); 606ArgumentNullException.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 (4)
34ArgumentNullException.ThrowIfNull(originalPartCreationInfo); 35ArgumentNullException.ThrowIfNull(originalPart); 36ArgumentNullException.ThrowIfNull(specialization); 179ArgumentNullException.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 (6)
46ArgumentNullException.ThrowIfNull(member); 83ArgumentNullException.ThrowIfNull(property); 100ArgumentNullException.ThrowIfNull(parameter); 117ArgumentNullException.ThrowIfNull(field); 124ArgumentNullException.ThrowIfNull(type); 131ArgumentNullException.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.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)
192ArgumentNullException.ThrowIfNull(type); 193ArgumentNullException.ThrowIfNull(attributes); 214ArgumentNullException.ThrowIfNull(instance); 215ArgumentNullException.ThrowIfNull(attributes); 248ArgumentNullException.ThrowIfNull(provider); 249ArgumentNullException.ThrowIfNull(type); 274ArgumentNullException.ThrowIfNull(provider); 275ArgumentNullException.ThrowIfNull(instance); 308ArgumentNullException.ThrowIfNull(provider); 309ArgumentNullException.ThrowIfNull(type); 324ArgumentNullException.ThrowIfNull(provider); 325ArgumentNullException.ThrowIfNull(instance); 407ArgumentNullException.ThrowIfNull(primary); 408ArgumentNullException.ThrowIfNull(secondary); 483ArgumentNullException.ThrowIfNull(objectType); 487ArgumentNullException.ThrowIfNull(args); 609ArgumentNullException.ThrowIfNull(type); 610ArgumentNullException.ThrowIfNull(primary); 973ArgumentNullException.ThrowIfNull(type, typeName); 987ArgumentNullException.ThrowIfNull(type, typeName); 1070ArgumentNullException.ThrowIfNull(editorBaseType); 1083ArgumentNullException.ThrowIfNull(editorBaseType); 1108ArgumentNullException.ThrowIfNull(componentType); 1306ArgumentNullException.ThrowIfNull(component); 1345ArgumentNullException.ThrowIfNull(componentType); 1528ArgumentNullException.ThrowIfNull(type); 1542ArgumentNullException.ThrowIfNull(instance); 1552ArgumentNullException.ThrowIfNull(component); 1606ArgumentNullException.ThrowIfNull(type); 1618ArgumentNullException.ThrowIfNull(instance); 2620ArgumentNullException.ThrowIfNull(primary); 2621ArgumentNullException.ThrowIfNull(secondary); 2650ArgumentNullException.ThrowIfNull(primary); 2664ArgumentNullException.ThrowIfNull(provider); 2665ArgumentNullException.ThrowIfNull(type); 2681ArgumentNullException.ThrowIfNull(provider); 2682ArgumentNullException.ThrowIfNull(instance); 2699ArgumentNullException.ThrowIfNull(provider); 2700ArgumentNullException.ThrowIfNull(type); 2714ArgumentNullException.ThrowIfNull(provider); 2715ArgumentNullException.ThrowIfNull(instance); 2750ArgumentNullException.ThrowIfNull(infos); 2780ArgumentNullException.ThrowIfNull(objectType); 3153ArgumentNullException.ThrowIfNull(editorBaseType); 3250ArgumentNullException.ThrowIfNull(objectType); 3254ArgumentNullException.ThrowIfNull(args); 3271ArgumentNullException.ThrowIfNull(instance); 3283ArgumentNullException.ThrowIfNull(instance); 3295ArgumentNullException.ThrowIfNull(instance); 3308ArgumentNullException.ThrowIfNull(instance); 3325ArgumentNullException.ThrowIfNull(component); 3339ArgumentNullException.ThrowIfNull(objectType); 3346ArgumentNullException.ThrowIfNull(objectType); 3357ArgumentNullException.ThrowIfNull(objectType); 3373ArgumentNullException.ThrowIfNull(objectType); 3399ArgumentNullException.ThrowIfNull(type); 3587ArgumentNullException.ThrowIfNull(editorBaseType); 3981ArgumentNullException.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)
63ArgumentNullException.ThrowIfNull(destinationType); 97ArgumentNullException.ThrowIfNull(propertyValues);
System\Drawing\RectangleConverter.cs (2)
61ArgumentNullException.ThrowIfNull(destinationType); 100ArgumentNullException.ThrowIfNull(propertyValues);
System\Drawing\SizeConverter.cs (2)
61ArgumentNullException.ThrowIfNull(destinationType); 95ArgumentNullException.ThrowIfNull(propertyValues);
System\Drawing\SizeFConverter.cs (2)
60ArgumentNullException.ThrowIfNull(destinationType); 92ArgumentNullException.ThrowIfNull(propertyValues);
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 (1)
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)
1087Assert.Throws<ArgumentNullException>(() => g.EndContainer(null)); 1143Assert.Throws<ArgumentNullException>(() => g.FillRectangles(null, new Rectangle[1])); 1151Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (Rectangle[])null)); 1167Assert.Throws<ArgumentNullException>(() => g.FillRectangles(null, new RectangleF[1])); 1175Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (RectangleF[])null)); 1596Assert.Throws<ArgumentNullException>(() => g.MeasureString("a", null)); 1597Assert.Throws<ArgumentNullException>(() => g.MeasureString("a".AsSpan(), null)); 1884Assert.Throws<ArgumentNullException>(() => g.MeasureCharacterRanges("a", null, default, null)); 1885Assert.Throws<ArgumentNullException>(() => g.MeasureCharacterRanges("a".AsSpan(), null, default, null)); 2337Assert.Throws<ArgumentNullException>(() => g.DrawIcon(null, new Rectangle(0, 0, 32, 32))); 2361Assert.Throws<ArgumentNullException>(() => g.DrawIcon(null, 4, 2)); 2378Assert.Throws<ArgumentNullException>(() => g.DrawIconUnstretched(null, new Rectangle(0, 0, 40, 20))); 2402Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new RectangleF(0, 0, 0, 0))); 2421Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new PointF(0, 0))); 2437Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, Array.Empty<PointF>())); 2445Assert.Throws<ArgumentNullException>(() => g.DrawImage(bmp, (PointF[])null)); 2472Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Rectangle(0, 0, 0, 0))); 2495Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Point(0, 0))); 2511Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, Array.Empty<Point>())); 2519Assert.Throws<ArgumentNullException>(() => g.DrawImage(bmp, (Point[])null)); 2543Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, int.MaxValue, int.MinValue)); 2567Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, float.MaxValue, float.MinValue)); 2591Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, default(Rectangle), default, GraphicsUnit.Display)); 2628Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, pts, r, GraphicsUnit.Pixel)); 2642Assert.Throws<ArgumentNullException>(() => DrawImage_ImagePointRectangleGraphicsUnit(null)); 2686Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, pts, r, GraphicsUnit.Pixel)); 2700Assert.Throws<ArgumentNullException>(() => DrawImage_ImagePointFRectangleGraphicsUnit(null)); 2765Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Point(0, 0))); 2781Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Rectangle(0, 0, -1, -1))); 2797Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, 0, 0)); 2813Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, 0, 0, -1, -1)); 2829Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaledAndClipped(null, new Rectangle(0, 0, 0, 0))); 2857Assert.Throws<ArgumentNullException>(() => g.DrawPath(null, path)); 2865Assert.Throws<ArgumentNullException>(() => g.DrawPath(Pens.Black, null)); 2899Assert.Throws<ArgumentNullException>(() => g.FillPath(null, path)); 2907Assert.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)
69AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null)); 70AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null, false)); 97AssertExtensions.Throws<ArgumentNullException, NullReferenceException>("type", () => new Bitmap(null, "name")); 113AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Bitmap(typeof(Bitmap), null)); 146AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null)); 147AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null, false)); 297AssertExtensions.Throws<ArgumentNullException>("g", null, () => new Bitmap(1, 1, null)); 342AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, new Size(1, 2))); 343AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, 1, 2)); 1095AssertExtensions.Throws<ArgumentNullException>("bitmapData", () => bitmap.LockBits(Rectangle.Empty, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, null)); 1235AssertExtensions.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)
312Assert.Throws<ArgumentNullException>(() => brush.Blend = null); 319Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend { Factors = null }); 326AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => brush.Blend = new Blend { Factors = new float[2], Positions = null }); 412AssertExtensions.Throws<ArgumentNullException>("value", () => brush.InterpolationColors = null); 586AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.Transform = null); 696AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null)); 697AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
System\Drawing\Drawing2D\MatrixTests.cs (9)
130AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default(RectangleF), null)); 131AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default, null)); 337AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null)); 338AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null, MatrixOrder.Prepend)); 730AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformPoints((Point[])null)); 731AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformPoints((PointF[])null)); 796AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.VectorTransformPoints(null)); 797AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformVectors((Point[])null)); 798AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformVectors((PointF[])null));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (13)
69AssertExtensions.Throws<ArgumentNullException>("points", () => new PathGradientBrush((Point[])null)); 70AssertExtensions.Throws<ArgumentNullException>("points", () => new PathGradientBrush((PointF[])null)); 106AssertExtensions.Throws<ArgumentNullException>("path", () => new PathGradientBrush((GraphicsPath)null)); 213AssertExtensions.Throws<ArgumentNullException>(() => brush.SurroundColors = null); 325Assert.Throws<ArgumentNullException>(() => brush.Blend = null); 326Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend() { Factors = null, Positions = null }); 327Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend() { Factors = null, Positions = [] }); 334AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => 575Assert.Throws<ArgumentNullException>(() => brush.InterpolationColors = null); 593AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => 661AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.Transform = null); 732AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null)); 733AssertExtensions.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)
110AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero)); 258AssertExtensions.Throws<ArgumentNullException>("image", () => Graphics.FromImage(null)); 1221AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null)); 1222AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null, MatrixOrder.Append)); 1873AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (Point[])null)); 1874AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (PointF[])null)); 1960AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new Rectangle(0, 0, 1, 1), 0, 90)); 1961AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0, 0, 1, 1, 0, 90)); 1962AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new RectangleF(0, 0, 1, 1), 0, 90)); 1963AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0f, 0f, 1f, 1f, 0, 90)); 2043AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new Rectangle(0, 0, 1, 1))); 2044AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0, 0, 1, 1)); 2045AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0f, 0f, 1f, 1f)); 2098AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new Rectangle[2])); 2099AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new RectangleF[2])); 2120AssertExtensions.Throws<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (Rectangle[])null)); 2121AssertExtensions.Throws<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (RectangleF[])null)); 2169AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new Rectangle(0, 0, 1, 1))); 2170AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0, 0, 1, 1)); 2171AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new RectangleF(0, 0, 1, 1))); 2172AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0f, 0f, 1f, 1f)); 2228AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new Rectangle(0, 0, 1, 1), 0, 90)); 2229AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0, 0, 1, 1, 0, 90)); 2230AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new RectangleF(0, 0, 1, 1), 0, 90)); 2231AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0f, 0f, 1f, 1f, 0, 90)); 2311AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new Point[2])); 2312AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new PointF[2])); 2333AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (Point[])null)); 2334AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (PointF[])null)); 2385AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPath(null, graphicsPath)); 2406AssertExtensions.Throws<ArgumentNullException>("path", () => graphics.DrawPath(pen, null)); 2456AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2])); 2457AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2])); 2458AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 1)); 2459AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 1)); 2460AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2)); 2461AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 0, 2, 1)); 2462AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2, 1)); 2488AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null)); 2489AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null)); 2490AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 1)); 2491AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 1)); 2492AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, null, 0, 2)); 2493AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 0, 2, 1)); 2494AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 0, 2, 1)); 2575AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3])); 2576AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3], 1, FillMode.Winding)); 2577AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3])); 2578AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3], 1, FillMode.Winding)); 2601AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null)); 2602AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null, 1, FillMode.Winding)); 2603AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null)); 2604AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null, 1, FillMode.Winding)); 2661AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new Rectangle(0, 0, 1, 1), 0, 90)); 2662AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, 0, 0, 1, 1, 0, 90)); 2663AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, 0f, 0f, 1f, 1f, 0, 90)); 2867Assert.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)
503AssertExtensions.Throws<ArgumentNullException>("path", () => Image.FromFile(null)); 504AssertExtensions.Throws<ArgumentNullException>("path", () => Image.FromFile(null, useEmbeddedColorManagement: true)); 562AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null)); 563AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null, useEmbeddedColorManagement: true)); 564AssertExtensions.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)
230AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null)); 231AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null, ColorMatrixFlag.Default)); 232AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => 448AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix)); 449AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix, ColorMatrixFlag.Default)); 451AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => 1082Assert.Throws<ArgumentNullException>(() => imageAttr.SetOutputChannelColorProfile(null)); 1083Assert.Throws<ArgumentNullException>(() => imageAttr.SetOutputChannelColorProfile(null, ColorAdjustType.Default)); 1221AssertExtensions.ThrowsAny<ArgumentNullException, ArgumentException>(() => imageAttr.SetRemapTable(_yellowToRedColorMap, type)); 1228Assert.Throws<ArgumentNullException>(() => imageAttr.SetRemapTable(null, ColorAdjustType.Default));
System\Drawing\Imaging\MetafileTests.cs (15)
66AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null)); 101AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Metafile((Stream)null)); 411AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc)); 412AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.EmfOnly)); 413AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.EmfOnly, "description")); 678AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, _rectangleF)); 679AssertExtensions.Throws<ArgumentNullException>("path", () => 681AssertExtensions.Throws<ArgumentNullException>("path", () => 683AssertExtensions.Throws<ArgumentNullException>("path", () => 827Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF)); 828Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible)); 829Assert.Throws<ArgumentNullException>(() => 831Assert.Throws<ArgumentNullException>(() => 861AssertExtensions.Throws<ArgumentNullException>("path", () => Metafile.GetMetafileHeader((string)null)); 875Assert.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)
241AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush((Image)null)); 242AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile)); 243AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty)); 244AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty)); 245AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty, null)); 246AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null)); 247AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, RectangleF.Empty)); 248AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, Rectangle.Empty)); 373AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null)); 374AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Prepend)); 597AssertExtensions.Throws<ArgumentNullException>("value", () => brush.Transform = null);
System.Formats.Asn1 (12)
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 (2)
225/// <exception cref="ArgumentNullException"> 267/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnWriter.Enumerated.cs (2)
14/// <exception cref="ArgumentNullException"> 49/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnWriter.NamedBitList.cs (2)
32/// <exception cref="ArgumentNullException"> 88/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnWriter.Oid.cs (1)
29/// <exception cref="ArgumentNullException">
System\Formats\Asn1\AsnWriter.Text.cs (1)
24/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/></exception>
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
19/// <exception cref="ArgumentNullException">The provided value cannot be <see langword="null" />.</exception> 102/// <exception cref="ArgumentNullException">The provided value cannot be <see langword="null" />.</exception>
System.Formats.Nrbf (7)
System\Formats\Nrbf\ArrayRecord.cs (1)
71ArgumentNullException.ThrowIfNull(expectedArrayType);
System\Formats\Nrbf\NrbfDecoder.cs (4)
47/// <exception cref="ArgumentNullException"><paramref name="stream" /> is <see langword="null" />.</exception> 55ArgumentNullException.ThrowIfNull(stream); 103/// <exception cref="ArgumentNullException"><paramref name="payload"/> is <see langword="null" />.</exception> 133ArgumentNullException.ThrowIfNull(payload);
System\Formats\Nrbf\SerializationRecord.cs (2)
53/// <exception cref="ArgumentNullException"><paramref name="type" /> is <see langword="null" />.</exception> 57ArgumentNullException.ThrowIfNull(type);
System.Formats.Tar (37)
System\Formats\Tar\GnuTarEntry.cs (1)
29/// <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)
48/// <exception cref="ArgumentNullException"><paramref name="entryName"/> is <see langword="null"/>.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="extendedAttributes"/> or <paramref name="entryName"/> is <see langword="null"/>.</exception> 94ArgumentNullException.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> 40/// <exception cref="ArgumentNullException"><paramref name="archiveStream"/> is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="archiveStream"/> is <see langword="null"/>.</exception> 61ArgumentNullException.ThrowIfNull(archiveStream); 218/// <exception cref="ArgumentNullException"><paramref name="entry"/> is <see langword="null"/>.</exception> 223ArgumentNullException.ThrowIfNull(entry); 262/// <exception cref="ArgumentNullException"><paramref name="entry"/> is <see langword="null"/>.</exception> 272ArgumentNullException.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 (18)
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.cs (9)
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> 123ArgumentNullException.ThrowIfNull(stream); 271/// <exception cref="ArgumentNullException">entryName is null.</exception> 285/// <exception cref="ArgumentNullException">entryName is null.</exception> 339/// <exception cref="ArgumentNullException">entryName is null.</exception> 347ArgumentNullException.ThrowIfNull(entryName);
System\IO\Compression\ZipArchiveEntry.cs (1)
236ArgumentNullException.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 (35)
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> 216/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 258/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 304/// <exception cref="ArgumentNullException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is null.</exception> 367/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 393/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 421/// <exception cref="ArgumentNullException"><paramref name="sourceDirectoryName" /> or <paramref name="destination" /> is <see langword="null" />.</exception> 452ArgumentNullException.ThrowIfNull(destination);
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.cs (5)
28/// <exception cref="ArgumentNullException">sourceFileName or entryName is null.</exception> 59/// <exception cref="ArgumentNullException">sourceFileName or entryName is null.</exception> 83ArgumentNullException.ThrowIfNull(destination); 84ArgumentNullException.ThrowIfNull(sourceFileName); 85ArgumentNullException.ThrowIfNull(entryName);
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (4)
21/// <exception cref="ArgumentNullException">destinationDirectoryName is null.</exception> 51/// <exception cref="ArgumentNullException">destinationDirectoryName is null.</exception> 70ArgumentNullException.ThrowIfNull(source); 71ArgumentNullException.ThrowIfNull(destinationDirectoryName);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (6)
17/// <exception cref="ArgumentNullException">destinationFileName is null.</exception> 45/// <exception cref="ArgumentNullException">destinationFileName is null.</exception> 65ArgumentNullException.ThrowIfNull(source); 66ArgumentNullException.ThrowIfNull(destinationFileName); 105ArgumentNullException.ThrowIfNull(source); 106ArgumentNullException.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); 375ArgumentNullException.ThrowIfNull(path);
System.IO.Hashing (15)
System\IO\Hashing\Crc32.cs (1)
91/// <exception cref="ArgumentNullException">
System\IO\Hashing\Crc64.cs (1)
89/// <exception cref="ArgumentNullException">
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (3)
82/// <exception cref="ArgumentNullException"> 100/// <exception cref="ArgumentNullException"> 127/// <exception cref="ArgumentNullException">
System\IO\Hashing\XxHash128.cs (3)
44/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 51/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 55ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\XxHash3.cs (3)
43/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 50/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 54ArgumentNullException.ThrowIfNull(source);
System\IO\Hashing\XxHash32.cs (2)
142/// <exception cref="ArgumentNullException"> 161/// <exception cref="ArgumentNullException">
System\IO\Hashing\XxHash64.cs (2)
142/// <exception cref="ArgumentNullException"> 161/// <exception cref="ArgumentNullException">
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 (60)
System\IO\Packaging\ContentType.cs (1)
69/// <exception cref="ArgumentNullException">If the contentType parameter is null</exception>
System\IO\Packaging\InternalRelationshipCollection.cs (1)
329catch (ArgumentNullException argNullEx)
System\IO\Packaging\Package.cs (22)
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> 914/// <exception cref="ArgumentNullException">If stream parameter is null</exception>
System\IO\Packaging\PackagePart.cs (14)
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> 377/// <exception cref="ArgumentNullException">If parameter "targetUri" is null</exception> 378/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 401/// <exception cref="ArgumentNullException">If parameter "targetUri" is null</exception> 402/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 426/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 468/// <exception cref="ArgumentNullException">If parameter "relationshipType" is null</exception> 493/// <exception cref="ArgumentNullException">If parameter "id" is null</exception> 516/// <exception cref="ArgumentNullException">If parameter "id" is null</exception>
System\IO\Packaging\PackageRelationshipSelector.cs (3)
24/// <exception cref="ArgumentNullException">If sourceUri is null</exception> 25/// <exception cref="ArgumentNullException">If selectionCriteria is null</exception> 114/// <exception cref="ArgumentNullException">If package parameter is null</exception>
System\IO\Packaging\PackUriHelper.cs (8)
30/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 76/// <exception cref="ArgumentNullException">If either sourcePartUri or targetUri parameter is null</exception> 109/// <exception cref="ArgumentNullException">If either the sourcePartUri or targetPartUri parameter is null</exception> 133/// <exception cref="ArgumentNullException">If partUri is null</exception> 180/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 205/// <exception cref="ArgumentNullException">If partUri parameter is null</exception> 259/// <exception cref="ArgumentNullException">If relationshipPartUri parameter is null</exception> 355/// <exception cref="ArgumentNullException">If partUri parameter is null</exception>
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)
28ArgumentNullException.ThrowIfNull(zipArchiveEntry); 159ArgumentNullException.ThrowIfNull(zipArchiveEntry); 160ArgumentNullException.ThrowIfNull(prefixName);
System.IO.Pipelines (1)
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 (34)
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\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\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\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 (351)
System\Linq\AggregateAsync.cs (14)
19/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 68/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 69/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 119/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 120/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 156/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 157/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 198/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 200/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 245/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 246/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 247/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception>
System\Linq\AggregateBy.cs (14)
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> 105/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 106/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 107/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 175/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 176/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 177/// <exception cref="ArgumentNullException"><paramref name="seedSelector"/> is <see langword="null"/>.</exception> 178/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception> 251/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="keyComparer"/> is <see langword="null"/>.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="seedSelector"/> is <see langword="null"/>.</exception> 254/// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null"/>.</exception>
System\Linq\AllAsync.cs (4)
22/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 59/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception>
System\Linq\AnyAsync.cs (5)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 52/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 53/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 89/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 90/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception>
System\Linq\Append.cs (1)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\AverageAsync.cs (10)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 52/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 120/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 153/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 186/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 218/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 250/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 281/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 312/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\Chunk.cs (1)
24/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\Concat.cs (2)
18/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 19/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception>
System\Linq\ContainsAsync.cs (1)
20/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\CountAsync.cs (6)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 91/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 163/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 197/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\CountBy.cs (4)
21/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 76/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 77/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception>
System\Linq\DefaultIfEmpty.cs (2)
19/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 32/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\Distinct.cs (1)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\DistinctBy.cs (6)
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> 74/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 80/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception>
System\Linq\ElementAtAsync.cs (6)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 39/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 55/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 62/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 84/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 90/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\Except.cs (2)
19/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception>
System\Linq\ExceptBy.cs (6)
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> 72/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception> 74/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception>
System\Linq\FirstAsync.cs (15)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 55/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 94/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 95/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 133/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 145/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 181/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 182/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 198/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 213/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 214/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 250/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 251/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\GroupBy.cs (24)
25/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 61/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 101/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="elementSelector"/> is <see langword="null"/>.</exception> 146/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 147/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 148/// <exception cref="ArgumentNullException"><paramref name="elementSelector"/> is <see langword="null"/>.</exception> 190/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 191/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 192/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 235/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 236/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 237/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 281/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 282/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception> 283/// <exception cref="ArgumentNullException"><paramref name="elementSelector" /> is <see langword="null" />.</exception> 284/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 331/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 332/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception> 333/// <exception cref="ArgumentNullException"><paramref name="elementSelector" /> is <see langword="null" />.</exception> 334/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\GroupJoin.cs (10)
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> 100/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 101/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 104/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\Index.cs (1)
17/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\Intersect.cs (2)
19/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception>
System\Linq\IntersectBy.cs (8)
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> 89/// <exception cref="ArgumentNullException"><paramref name="first" /> or <paramref name="second" /> is <see langword="null" />.</exception> 96/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 97/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 98/// <exception cref="ArgumentNullException"><paramref name="keySelector" /> is <see langword="null" />.</exception>
System\Linq\Join.cs (10)
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> 105/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 106/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 107/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 108/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 109/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\LastAsync.cs (15)
17/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 61/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 62/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 121/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 122/// <exception cref="ArgumentNullException"><paramref name="predicate"/> is <see langword="null"/>.</exception> 183/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 195/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 236/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 237/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 250/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 251/// <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> 324/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 325/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\LeftJoin.cs (10)
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> 100/// <exception cref="ArgumentNullException"><paramref name="outer" /> is <see langword="null" />.</exception> 101/// <exception cref="ArgumentNullException"><paramref name="inner" /> is <see langword="null" />.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="outerKeySelector" /> is <see langword="null" />.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="innerKeySelector" /> is <see langword="null" />.</exception> 104/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception>
System\Linq\MaxAsync.cs (1)
19/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\MaxByAsync.cs (2)
20/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 136/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\MinAsync.cs (1)
19/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\MinByAsync.cs (2)
20/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 136/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\OrderBy.cs (18)
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> 46/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 47/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 59/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 72/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 73/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 88/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 103/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 121/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 122/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 140/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 141/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 159/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 160/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception>
System\Linq\Prepend.cs (1)
18/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\Reverse.cs (1)
16/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\RightJoin.cs (10)
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> 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>
System\Linq\Select.cs (8)
22/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 23/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 54/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 55/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 89/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 90/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception>
System\Linq\SelectMany.cs (33)
25/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 63/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 64/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 101/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 102/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 140/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 141/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 180/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 181/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 220/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 221/// <exception cref="ArgumentNullException"><paramref name="selector"/> is <see langword="null"/>.</exception> 265/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 266/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 267/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 313/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 314/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 315/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 361/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 362/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 363/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 409/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 410/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 411/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 456/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 457/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 458/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 504/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 505/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 506/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception> 552/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 553/// <exception cref="ArgumentNullException"><paramref name="collectionSelector"/> is <see langword="null"/>.</exception> 554/// <exception cref="ArgumentNullException"><paramref name="resultSelector"/> is <see langword="null"/>.</exception>
System\Linq\SingleAsync.cs (15)
20/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 66/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 67/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 126/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 186/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 199/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 251/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 252/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 273/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 274/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 289/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 290/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 345/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 346/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\Skip.cs (1)
17/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\SkipLast.cs (1)
21/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\SkipWhile.cs (8)
25/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 26/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 78/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 79/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 136/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 193/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 194/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\SumAsync.cs (10)
17/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 43/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 69/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 94/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 119/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 144/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 173/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 202/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 230/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 258/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\Take.cs (2)
22/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 59/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\TakeWhile.cs (8)
21/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 56/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 95/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 96/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 135/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 136/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\ToArrayAsync.cs (1)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\ToAsyncEnumerable.cs (1)
14/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\ToDictionaryAsync.cs (12)
22/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 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> 112/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 113/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 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> 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>
System\Linq\ToHashSetAsync.cs (1)
19/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception>
System\Linq\ToListAsync.cs (1)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
System\Linq\ToLookupAsync.cs (8)
26/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 27/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 65/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 66/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 107/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 108/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception> 151/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 152/// <exception cref="ArgumentNullException"><paramref name="keySelector"/> is <see langword="null"/>.</exception>
System\Linq\Union.cs (2)
19/// <exception cref="ArgumentNullException"><paramref name="first"/> is <see langword="null"/>.</exception> 20/// <exception cref="ArgumentNullException"><paramref name="second"/> is <see langword="null"/>.</exception>
System\Linq\UnionBy.cs (4)
21/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 22/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 70/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 71/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception>
System\Linq\Where.cs (8)
18/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 19/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 49/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 50/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 86/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 87/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception> 124/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 125/// <exception cref="ArgumentNullException"><paramref name="predicate" /> is <see langword="null" />.</exception>
System\Linq\Zip.cs (11)
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> 79/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 80/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 81/// <exception cref="ArgumentNullException"><paramref name="resultSelector" /> is <see langword="null" />.</exception> 129/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 130/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 177/// <exception cref="ArgumentNullException"><paramref name="first" /> is <see langword="null" />.</exception> 178/// <exception cref="ArgumentNullException"><paramref name="second" /> is <see langword="null" />.</exception> 179/// <exception cref="ArgumentNullException"><paramref name="third" /> is <see langword="null" />.</exception>
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 (344)
System\Linq\EnumerableQuery.cs (4)
65ArgumentNullException.ThrowIfNull(expression); 75ArgumentNullException.ThrowIfNull(expression); 86ArgumentNullException.ThrowIfNull(expression); 93ArgumentNullException.ThrowIfNull(expression);
System\Linq\Queryable.cs (340)
20ArgumentNullException.ThrowIfNull(source); 29ArgumentNullException.ThrowIfNull(source); 48ArgumentNullException.ThrowIfNull(source); 49ArgumentNullException.ThrowIfNull(predicate); 61ArgumentNullException.ThrowIfNull(source); 62ArgumentNullException.ThrowIfNull(predicate); 74ArgumentNullException.ThrowIfNull(source); 86ArgumentNullException.ThrowIfNull(source); 98ArgumentNullException.ThrowIfNull(source); 99ArgumentNullException.ThrowIfNull(selector); 111ArgumentNullException.ThrowIfNull(source); 112ArgumentNullException.ThrowIfNull(selector); 124ArgumentNullException.ThrowIfNull(source); 125ArgumentNullException.ThrowIfNull(selector); 137ArgumentNullException.ThrowIfNull(source); 138ArgumentNullException.ThrowIfNull(selector); 150ArgumentNullException.ThrowIfNull(source); 151ArgumentNullException.ThrowIfNull(collectionSelector); 152ArgumentNullException.ThrowIfNull(resultSelector); 164ArgumentNullException.ThrowIfNull(source); 165ArgumentNullException.ThrowIfNull(collectionSelector); 166ArgumentNullException.ThrowIfNull(resultSelector); 184ArgumentNullException.ThrowIfNull(outer); 185ArgumentNullException.ThrowIfNull(inner); 186ArgumentNullException.ThrowIfNull(outerKeySelector); 187ArgumentNullException.ThrowIfNull(innerKeySelector); 188ArgumentNullException.ThrowIfNull(resultSelector); 200ArgumentNullException.ThrowIfNull(outer); 201ArgumentNullException.ThrowIfNull(inner); 202ArgumentNullException.ThrowIfNull(outerKeySelector); 203ArgumentNullException.ThrowIfNull(innerKeySelector); 204ArgumentNullException.ThrowIfNull(resultSelector); 216ArgumentNullException.ThrowIfNull(outer); 217ArgumentNullException.ThrowIfNull(inner); 218ArgumentNullException.ThrowIfNull(outerKeySelector); 219ArgumentNullException.ThrowIfNull(innerKeySelector); 220ArgumentNullException.ThrowIfNull(resultSelector); 232ArgumentNullException.ThrowIfNull(outer); 233ArgumentNullException.ThrowIfNull(inner); 234ArgumentNullException.ThrowIfNull(outerKeySelector); 235ArgumentNullException.ThrowIfNull(innerKeySelector); 236ArgumentNullException.ThrowIfNull(resultSelector); 248ArgumentNullException.ThrowIfNull(outer); 249ArgumentNullException.ThrowIfNull(inner); 250ArgumentNullException.ThrowIfNull(outerKeySelector); 251ArgumentNullException.ThrowIfNull(innerKeySelector); 252ArgumentNullException.ThrowIfNull(resultSelector); 264ArgumentNullException.ThrowIfNull(outer); 265ArgumentNullException.ThrowIfNull(inner); 266ArgumentNullException.ThrowIfNull(outerKeySelector); 267ArgumentNullException.ThrowIfNull(innerKeySelector); 268ArgumentNullException.ThrowIfNull(resultSelector); 283/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 304ArgumentNullException.ThrowIfNull(source); 320/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 341ArgumentNullException.ThrowIfNull(source); 353ArgumentNullException.ThrowIfNull(source); 354ArgumentNullException.ThrowIfNull(keySelector); 366ArgumentNullException.ThrowIfNull(source); 367ArgumentNullException.ThrowIfNull(keySelector); 382/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 403ArgumentNullException.ThrowIfNull(source); 419/// <exception cref="ArgumentNullException"><paramref name="source"/> is <see langword="null"/>.</exception> 440ArgumentNullException.ThrowIfNull(source); 452ArgumentNullException.ThrowIfNull(source); 453ArgumentNullException.ThrowIfNull(keySelector); 465ArgumentNullException.ThrowIfNull(source); 466ArgumentNullException.ThrowIfNull(keySelector); 478ArgumentNullException.ThrowIfNull(outer); 479ArgumentNullException.ThrowIfNull(inner); 480ArgumentNullException.ThrowIfNull(outerKeySelector); 481ArgumentNullException.ThrowIfNull(innerKeySelector); 482ArgumentNullException.ThrowIfNull(resultSelector); 494ArgumentNullException.ThrowIfNull(outer); 495ArgumentNullException.ThrowIfNull(inner); 496ArgumentNullException.ThrowIfNull(outerKeySelector); 497ArgumentNullException.ThrowIfNull(innerKeySelector); 498ArgumentNullException.ThrowIfNull(resultSelector); 510ArgumentNullException.ThrowIfNull(source); 511ArgumentNullException.ThrowIfNull(keySelector); 523ArgumentNullException.ThrowIfNull(source); 524ArgumentNullException.ThrowIfNull(keySelector); 536ArgumentNullException.ThrowIfNull(source); 537ArgumentNullException.ThrowIfNull(keySelector); 549ArgumentNullException.ThrowIfNull(source); 550ArgumentNullException.ThrowIfNull(keySelector); 562ArgumentNullException.ThrowIfNull(source); 575/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 580ArgumentNullException.ThrowIfNull(source); 592ArgumentNullException.ThrowIfNull(source); 593ArgumentNullException.ThrowIfNull(predicate); 605ArgumentNullException.ThrowIfNull(source); 606ArgumentNullException.ThrowIfNull(predicate); 618ArgumentNullException.ThrowIfNull(source); 630ArgumentNullException.ThrowIfNull(source); 631ArgumentNullException.ThrowIfNull(predicate); 643ArgumentNullException.ThrowIfNull(source); 644ArgumentNullException.ThrowIfNull(predicate); 656ArgumentNullException.ThrowIfNull(source); 657ArgumentNullException.ThrowIfNull(keySelector); 669ArgumentNullException.ThrowIfNull(source); 670ArgumentNullException.ThrowIfNull(keySelector); 671ArgumentNullException.ThrowIfNull(elementSelector); 683ArgumentNullException.ThrowIfNull(source); 684ArgumentNullException.ThrowIfNull(keySelector); 696ArgumentNullException.ThrowIfNull(source); 697ArgumentNullException.ThrowIfNull(keySelector); 698ArgumentNullException.ThrowIfNull(elementSelector); 710ArgumentNullException.ThrowIfNull(source); 711ArgumentNullException.ThrowIfNull(keySelector); 712ArgumentNullException.ThrowIfNull(elementSelector); 713ArgumentNullException.ThrowIfNull(resultSelector); 725ArgumentNullException.ThrowIfNull(source); 726ArgumentNullException.ThrowIfNull(keySelector); 727ArgumentNullException.ThrowIfNull(resultSelector); 739ArgumentNullException.ThrowIfNull(source); 740ArgumentNullException.ThrowIfNull(keySelector); 741ArgumentNullException.ThrowIfNull(resultSelector); 753ArgumentNullException.ThrowIfNull(source); 754ArgumentNullException.ThrowIfNull(keySelector); 755ArgumentNullException.ThrowIfNull(elementSelector); 756ArgumentNullException.ThrowIfNull(resultSelector); 768ArgumentNullException.ThrowIfNull(source); 780ArgumentNullException.ThrowIfNull(source); 795/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 799ArgumentNullException.ThrowIfNull(source); 800ArgumentNullException.ThrowIfNull(keySelector); 816/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 820ArgumentNullException.ThrowIfNull(source); 821ArgumentNullException.ThrowIfNull(keySelector); 835/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception> 844ArgumentNullException.ThrowIfNull(source); 856ArgumentNullException.ThrowIfNull(source1); 857ArgumentNullException.ThrowIfNull(source2); 869ArgumentNullException.ThrowIfNull(source1); 870ArgumentNullException.ThrowIfNull(source2); 882ArgumentNullException.ThrowIfNull(source1); 883ArgumentNullException.ThrowIfNull(source2); 884ArgumentNullException.ThrowIfNull(resultSelector); 906ArgumentNullException.ThrowIfNull(source1); 907ArgumentNullException.ThrowIfNull(source2); 908ArgumentNullException.ThrowIfNull(source3); 920ArgumentNullException.ThrowIfNull(source1); 921ArgumentNullException.ThrowIfNull(source2); 933ArgumentNullException.ThrowIfNull(source1); 934ArgumentNullException.ThrowIfNull(source2); 952/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 956ArgumentNullException.ThrowIfNull(source1); 957ArgumentNullException.ThrowIfNull(source2); 958ArgumentNullException.ThrowIfNull(keySelector); 975/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 979ArgumentNullException.ThrowIfNull(source1); 980ArgumentNullException.ThrowIfNull(source2); 981ArgumentNullException.ThrowIfNull(keySelector); 997/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1001ArgumentNullException.ThrowIfNull(source); 1013ArgumentNullException.ThrowIfNull(source1); 1014ArgumentNullException.ThrowIfNull(source2); 1026ArgumentNullException.ThrowIfNull(source1); 1027ArgumentNullException.ThrowIfNull(source2); 1045/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 1049ArgumentNullException.ThrowIfNull(source1); 1050ArgumentNullException.ThrowIfNull(source2); 1051ArgumentNullException.ThrowIfNull(keySelector); 1070/// <exception cref="ArgumentNullException"><paramref name="source1" /> or <paramref name="source2" /> is <see langword="null" />.</exception> 1074ArgumentNullException.ThrowIfNull(source1); 1075ArgumentNullException.ThrowIfNull(source2); 1076ArgumentNullException.ThrowIfNull(keySelector); 1091ArgumentNullException.ThrowIfNull(source1); 1092ArgumentNullException.ThrowIfNull(source2); 1104ArgumentNullException.ThrowIfNull(source1); 1105ArgumentNullException.ThrowIfNull(source2); 1128ArgumentNullException.ThrowIfNull(source1); 1129ArgumentNullException.ThrowIfNull(source2); 1130ArgumentNullException.ThrowIfNull(keySelector); 1154ArgumentNullException.ThrowIfNull(source1); 1155ArgumentNullException.ThrowIfNull(source2); 1156ArgumentNullException.ThrowIfNull(keySelector); 1171ArgumentNullException.ThrowIfNull(source); 1183ArgumentNullException.ThrowIfNull(source); 1184ArgumentNullException.ThrowIfNull(predicate); 1196ArgumentNullException.ThrowIfNull(source); 1210/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1214ArgumentNullException.ThrowIfNull(source); 1226ArgumentNullException.ThrowIfNull(source); 1227ArgumentNullException.ThrowIfNull(predicate); 1242/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception> 1246ArgumentNullException.ThrowIfNull(source); 1247ArgumentNullException.ThrowIfNull(predicate); 1259ArgumentNullException.ThrowIfNull(source); 1271ArgumentNullException.ThrowIfNull(source); 1272ArgumentNullException.ThrowIfNull(predicate); 1284ArgumentNullException.ThrowIfNull(source); 1298/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1302ArgumentNullException.ThrowIfNull(source); 1314ArgumentNullException.ThrowIfNull(source); 1315ArgumentNullException.ThrowIfNull(predicate); 1330/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception> 1334ArgumentNullException.ThrowIfNull(source); 1335ArgumentNullException.ThrowIfNull(predicate); 1348ArgumentNullException.ThrowIfNull(source); 1360ArgumentNullException.ThrowIfNull(source); 1361ArgumentNullException.ThrowIfNull(predicate); 1373ArgumentNullException.ThrowIfNull(source); 1387/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1392ArgumentNullException.ThrowIfNull(source); 1404ArgumentNullException.ThrowIfNull(source); 1405ArgumentNullException.ThrowIfNull(predicate); 1420/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.</exception> 1425ArgumentNullException.ThrowIfNull(source); 1426ArgumentNullException.ThrowIfNull(predicate); 1438ArgumentNullException.ThrowIfNull(source); 1454/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1460ArgumentNullException.ThrowIfNull(source); 1475ArgumentNullException.ThrowIfNull(source); 1488/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1493ArgumentNullException.ThrowIfNull(source); 1505ArgumentNullException.ThrowIfNull(source); 1517ArgumentNullException.ThrowIfNull(source); 1529ArgumentNullException.ThrowIfNull(source); 1541ArgumentNullException.ThrowIfNull(source); 1553ArgumentNullException.ThrowIfNull(source); 1565ArgumentNullException.ThrowIfNull(source1); 1566ArgumentNullException.ThrowIfNull(source2); 1578ArgumentNullException.ThrowIfNull(source1); 1579ArgumentNullException.ThrowIfNull(source2); 1593ArgumentNullException.ThrowIfNull(source); 1605ArgumentNullException.ThrowIfNull(source); 1606ArgumentNullException.ThrowIfNull(predicate); 1618ArgumentNullException.ThrowIfNull(source); 1619ArgumentNullException.ThrowIfNull(predicate); 1631ArgumentNullException.ThrowIfNull(source); 1643ArgumentNullException.ThrowIfNull(source); 1644ArgumentNullException.ThrowIfNull(predicate); 1660/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1664ArgumentNullException.ThrowIfNull(source); 1665ArgumentNullException.ThrowIfNull(keySelector); 1677ArgumentNullException.ThrowIfNull(source); 1689ArgumentNullException.ThrowIfNull(source); 1690ArgumentNullException.ThrowIfNull(predicate); 1702ArgumentNullException.ThrowIfNull(source); 1716/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1721ArgumentNullException.ThrowIfNull(source); 1734ArgumentNullException.ThrowIfNull(source); 1735ArgumentNullException.ThrowIfNull(selector); 1750/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1755ArgumentNullException.ThrowIfNull(source); 1756ArgumentNullException.ThrowIfNull(keySelector); 1773/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1778ArgumentNullException.ThrowIfNull(source); 1779ArgumentNullException.ThrowIfNull(keySelector); 1793ArgumentNullException.ThrowIfNull(source); 1807/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1811ArgumentNullException.ThrowIfNull(source); 1824ArgumentNullException.ThrowIfNull(source); 1825ArgumentNullException.ThrowIfNull(selector); 1840/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1845ArgumentNullException.ThrowIfNull(source); 1846ArgumentNullException.ThrowIfNull(keySelector); 1863/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception> 1868ArgumentNullException.ThrowIfNull(source); 1869ArgumentNullException.ThrowIfNull(keySelector); 1883ArgumentNullException.ThrowIfNull(source); 1895ArgumentNullException.ThrowIfNull(source); 1907ArgumentNullException.ThrowIfNull(source); 1919ArgumentNullException.ThrowIfNull(source); 1931ArgumentNullException.ThrowIfNull(source); 1943ArgumentNullException.ThrowIfNull(source); 1955ArgumentNullException.ThrowIfNull(source); 1967ArgumentNullException.ThrowIfNull(source); 1979ArgumentNullException.ThrowIfNull(source); 1991ArgumentNullException.ThrowIfNull(source); 2003ArgumentNullException.ThrowIfNull(source); 2004ArgumentNullException.ThrowIfNull(selector); 2016ArgumentNullException.ThrowIfNull(source); 2017ArgumentNullException.ThrowIfNull(selector); 2029ArgumentNullException.ThrowIfNull(source); 2030ArgumentNullException.ThrowIfNull(selector); 2042ArgumentNullException.ThrowIfNull(source); 2043ArgumentNullException.ThrowIfNull(selector); 2055ArgumentNullException.ThrowIfNull(source); 2056ArgumentNullException.ThrowIfNull(selector); 2068ArgumentNullException.ThrowIfNull(source); 2069ArgumentNullException.ThrowIfNull(selector); 2081ArgumentNullException.ThrowIfNull(source); 2082ArgumentNullException.ThrowIfNull(selector); 2094ArgumentNullException.ThrowIfNull(source); 2095ArgumentNullException.ThrowIfNull(selector); 2107ArgumentNullException.ThrowIfNull(source); 2108ArgumentNullException.ThrowIfNull(selector); 2120ArgumentNullException.ThrowIfNull(source); 2121ArgumentNullException.ThrowIfNull(selector); 2133ArgumentNullException.ThrowIfNull(source); 2145ArgumentNullException.ThrowIfNull(source); 2157ArgumentNullException.ThrowIfNull(source); 2169ArgumentNullException.ThrowIfNull(source); 2181ArgumentNullException.ThrowIfNull(source); 2193ArgumentNullException.ThrowIfNull(source); 2205ArgumentNullException.ThrowIfNull(source); 2217ArgumentNullException.ThrowIfNull(source); 2229ArgumentNullException.ThrowIfNull(source); 2241ArgumentNullException.ThrowIfNull(source); 2253ArgumentNullException.ThrowIfNull(source); 2254ArgumentNullException.ThrowIfNull(selector); 2266ArgumentNullException.ThrowIfNull(source); 2267ArgumentNullException.ThrowIfNull(selector); 2279ArgumentNullException.ThrowIfNull(source); 2280ArgumentNullException.ThrowIfNull(selector); 2292ArgumentNullException.ThrowIfNull(source); 2293ArgumentNullException.ThrowIfNull(selector); 2305ArgumentNullException.ThrowIfNull(source); 2306ArgumentNullException.ThrowIfNull(selector); 2318ArgumentNullException.ThrowIfNull(source); 2319ArgumentNullException.ThrowIfNull(selector); 2331ArgumentNullException.ThrowIfNull(source); 2332ArgumentNullException.ThrowIfNull(selector); 2344ArgumentNullException.ThrowIfNull(source); 2345ArgumentNullException.ThrowIfNull(selector); 2357ArgumentNullException.ThrowIfNull(source); 2358ArgumentNullException.ThrowIfNull(selector); 2370ArgumentNullException.ThrowIfNull(source); 2371ArgumentNullException.ThrowIfNull(selector); 2383ArgumentNullException.ThrowIfNull(source); 2384ArgumentNullException.ThrowIfNull(func); 2396ArgumentNullException.ThrowIfNull(source); 2397ArgumentNullException.ThrowIfNull(func); 2409ArgumentNullException.ThrowIfNull(source); 2410ArgumentNullException.ThrowIfNull(func); 2411ArgumentNullException.ThrowIfNull(selector); 2439ArgumentNullException.ThrowIfNull(source); 2440ArgumentNullException.ThrowIfNull(keySelector); 2441ArgumentNullException.ThrowIfNull(func); 2469ArgumentNullException.ThrowIfNull(source); 2470ArgumentNullException.ThrowIfNull(keySelector); 2471ArgumentNullException.ThrowIfNull(seedSelector); 2472ArgumentNullException.ThrowIfNull(func); 2484ArgumentNullException.ThrowIfNull(source); 2497ArgumentNullException.ThrowIfNull(source); 2509ArgumentNullException.ThrowIfNull(source); 2521ArgumentNullException.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.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)
101ArgumentNullException.ThrowIfNull(values); 170ArgumentNullException.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)
131ArgumentNullException.ThrowIfNull(value); 359ArgumentNullException.ThrowIfNull(request); 366ArgumentNullException.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)
40ArgumentNullException.ThrowIfNull(value); 90ArgumentNullException.ThrowIfNull(value); 126ArgumentNullException.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)
581ArgumentNullException.ThrowIfNull(request); 611ArgumentNullException.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 (28)
src\libraries\Common\src\System\ThrowHelper.cs (1)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
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 (6)
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>
System\Net\Http\Json\HttpClientJsonExtensions.Patch.cs (6)
24/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 48/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 71/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 86/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 102/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception> 124/// <exception cref="ArgumentNullException">The <paramref name="client"/> is null.</exception>
System\Net\Http\Json\HttpContentJsonExtensions.AsyncEnumerable.cs (3)
25/// <exception cref="ArgumentNullException"> 45/// <exception cref="ArgumentNullException"> 72/// <exception cref="ArgumentNullException">
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 (40)
System\Net\DelegatedStream.cs (1)
16ArgumentNullException.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)
61ArgumentNullException.ThrowIfNull(from); 62ArgumentNullException.ThrowIfNull(to); 76ArgumentNullException.ThrowIfNull(value);
System\Net\Mail\MailPriority.cs (3)
88ArgumentNullException.ThrowIfNull(value); 234ArgumentNullException.ThrowIfNull(value); 301ArgumentNullException.ThrowIfNull(asyncResult);
System\Net\Mail\MailWriter.cs (1)
27ArgumentNullException.ThrowIfNull(headers);
System\Net\Mail\SmtpAuthenticationManager.cs (1)
21ArgumentNullException.ThrowIfNull(module);
System\Net\Mail\SmtpClient.cs (2)
408ArgumentNullException.ThrowIfNull(message); 557ArgumentNullException.ThrowIfNull(message);
System\Net\Mail\SmtpFailedRecipientsException.cs (2)
43ArgumentNullException.ThrowIfNull(innerExceptions); 53ArgumentNullException.ThrowIfNull(innerExceptions);
System\Net\Mail\SmtpTransport.cs (5)
34ArgumentNullException.ThrowIfNull(authenticationModules); 152ArgumentNullException.ThrowIfNull(sender); 153ArgumentNullException.ThrowIfNull(recipients); 196ArgumentNullException.ThrowIfNull(sender); 197ArgumentNullException.ThrowIfNull(recipients);
System\Net\Mime\BaseWriter.cs (3)
30ArgumentNullException.ThrowIfNull(stream); 45ArgumentNullException.ThrowIfNull(name); 46ArgumentNullException.ThrowIfNull(value);
System\Net\Mime\ContentDisposition.cs (1)
59ArgumentNullException.ThrowIfNull(disposition);
System\Net\Mime\MimeBasePart.cs (3)
112ArgumentNullException.ThrowIfNull(value); 170ArgumentNullException.ThrowIfNull(value); 202ArgumentNullException.ThrowIfNull(asyncResult);
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)
43ArgumentNullException.ThrowIfNull(address); 70ArgumentNullException.ThrowIfNull(hostNameOrAddress); 155ArgumentNullException.ThrowIfNull(address); 182ArgumentNullException.ThrowIfNull(asyncResult); 200ArgumentNullException.ThrowIfNull(hostNameOrAddress); 258ArgumentNullException.ThrowIfNull(asyncResult); 266ArgumentNullException.ThrowIfNull(hostName); 285ArgumentNullException.ThrowIfNull(asyncResult); 295ArgumentNullException.ThrowIfNull(address); 308ArgumentNullException.ThrowIfNull(address); 319ArgumentNullException.ThrowIfNull(hostName); 512ArgumentNullException.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)
214ArgumentNullException.ThrowIfNull(cookie); 575ArgumentNullException.ThrowIfNull(cookies); 655ArgumentNullException.ThrowIfNull(uri); 656ArgumentNullException.ThrowIfNull(cookie); 666ArgumentNullException.ThrowIfNull(uri); 667ArgumentNullException.ThrowIfNull(cookies); 762ArgumentNullException.ThrowIfNull(uri); 989ArgumentNullException.ThrowIfNull(uri); 1025ArgumentNullException.ThrowIfNull(uri); 1026ArgumentNullException.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); 564ArgumentNullException.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); 1494ArgumentNullException.ThrowIfNull(rangeSpecifier); 1521ArgumentNullException.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); 881ArgumentNullException.ThrowIfNull(address); 906ArgumentNullException.ThrowIfNull(host); 937ArgumentNullException.ThrowIfNull(addresses); 1144ArgumentNullException.ThrowIfNull(buffers); 1350ArgumentNullException.ThrowIfNull(remoteEP); 1408/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1425/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1433ArgumentNullException.ThrowIfNull(remoteEP); 1468/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1476ArgumentNullException.ThrowIfNull(socketAddress); 1631ArgumentNullException.ThrowIfNull(buffers); 1737/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception> 1749ArgumentNullException.ThrowIfNull(remoteEP); 1914/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 1929/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 2012/// <exception cref="ArgumentNullException"><c>remoteEP</c> is <see langword="null" />.</exception> 2020ArgumentNullException.ThrowIfNull(receivedAddress, nameof(receivedAddress)); 2116ArgumentNullException.ThrowIfNull(optionValue); 2386/// <exception cref="ArgumentNullException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter is <see langword="null"/> or empty.</exception> 2428/// <exception cref="ArgumentNullException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter is <see langword="null"/> or empty.</exception> 2580ArgumentNullException.ThrowIfNull(remoteEP); 2690ArgumentNullException.ThrowIfNull(endPoint); 2730ArgumentNullException.ThrowIfNull(endPoint); 2839ArgumentNullException.ThrowIfNull(e); 2888ArgumentNullException.ThrowIfNull(e); 2893ArgumentNullException.ThrowIfNull(e.RemoteEndPoint, "remoteEP"); 2987ArgumentNullException.ThrowIfNull(e); 3031ArgumentNullException.ThrowIfNull(e); 3043ArgumentNullException.ThrowIfNull(e); 3068ArgumentNullException.ThrowIfNull(e); 3093ArgumentNullException.ThrowIfNull(e); 3150ArgumentNullException.ThrowIfNull(e); 3197ArgumentNullException.ThrowIfNull(e); 3222ArgumentNullException.ThrowIfNull(e); 3255ArgumentNullException.ThrowIfNull(e); 3956ArgumentNullException.ThrowIfNull(remoteEndPoint, remoteEndPointArgumentName);
System\Net\Sockets\Socket.Tasks.cs (8)
165ArgumentNullException.ThrowIfNull(addresses); 240ArgumentNullException.ThrowIfNull(host); 437ArgumentNullException.ThrowIfNull(receivedAddress, nameof(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 (5)
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.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 (1642)
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); 50/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 69/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 74ArgumentNullException.ThrowIfNull(asyncResult); 94/// <exception cref="ArgumentNullException"><paramref name="asyncResult"/> is null.</exception> 103ArgumentNullException.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)
110ArgumentNullException.ThrowIfNull(friendlyName); 121ArgumentNullException.ThrowIfNull(assemblyFile); 178ArgumentNullException.ThrowIfNull(domain); 278ArgumentNullException.ThrowIfNull(principal); 290ArgumentNullException.ThrowIfNull(assemblyName); 298ArgumentNullException.ThrowIfNull(assemblyName); 313ArgumentNullException.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 (18)
75ArgumentNullException.ThrowIfNull(elementType); 89ArgumentNullException.ThrowIfNull(elementType); 105ArgumentNullException.ThrowIfNull(elementType); 121ArgumentNullException.ThrowIfNull(elementType); 122ArgumentNullException.ThrowIfNull(lengths); 146ArgumentNullException.ThrowIfNull(elementType); 147ArgumentNullException.ThrowIfNull(lengths); 148ArgumentNullException.ThrowIfNull(lowerBounds); 175ArgumentNullException.ThrowIfNull(lengths); 197/// <exception cref="ArgumentNullException"><paramref name="arrayType"/> is null.</exception> 207ArgumentNullException.ThrowIfNull(arrayType); 229/// <exception cref="ArgumentNullException"><para><paramref name="arrayType"/> is null.</para> 244ArgumentNullException.ThrowIfNull(arrayType); 245ArgumentNullException.ThrowIfNull(lengths); 276/// <exception cref="ArgumentNullException"><para><paramref name="arrayType"/> is null.</para> 296ArgumentNullException.ThrowIfNull(arrayType); 297ArgumentNullException.ThrowIfNull(lengths); 298ArgumentNullException.ThrowIfNull(lowerBounds);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (16)
388/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 413/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 451/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 489/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 527/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 562/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 592/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 622/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 652/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 689/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 717/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 745/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception> 773/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 829/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 846/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 861/// <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)
18ArgumentNullException.ThrowIfNull(src); 19ArgumentNullException.ThrowIfNull(dst); 57ArgumentNullException.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\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> 163/// <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)
15ArgumentNullException.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)
370ArgumentNullException.ThrowIfNull(eventSourceType); 455ArgumentNullException.ThrowIfNull(eventSourceType); 503ArgumentNullException.ThrowIfNull(eventSource); 1748ArgumentNullException.ThrowIfNull(eventSourceType); 4243ArgumentNullException.ThrowIfNull(eventSource); 4261ArgumentNullException.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)
68ArgumentNullException.ThrowIfNull(variable); 78ArgumentNullException.ThrowIfNull(variable); 140ArgumentNullException.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); 1067ArgumentNullException.ThrowIfNull(name); 1068ArgumentNullException.ThrowIfNull(altName); 1106ArgumentNullException.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)
123ArgumentNullException.ThrowIfNull(d); 266ArgumentNullException.ThrowIfNull(g); 333ArgumentNullException.ThrowIfNull(input); 374ArgumentNullException.ThrowIfNull(input); 375ArgumentNullException.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 (4)
202ArgumentNullException.ThrowIfNull(path); 203ArgumentNullException.ThrowIfNull(searchPattern); 251ArgumentNullException.ThrowIfNull(path); 299/// <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 (3)
18ArgumentNullException.ThrowIfNull(path); 76ArgumentNullException.ThrowIfNull(path); 188ArgumentNullException.ThrowIfNull(searchPattern);
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); 1260ArgumentNullException.ThrowIfNull(bytes); 1272/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception> 1331ArgumentNullException.ThrowIfNull(contents); 1418/// <exception cref="ArgumentNullException"><paramref name="path"/> or <paramref name="pathToTarget"/> is <see langword="null"/>.</exception> 1455ArgumentNullException.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 (22)
157/// <exception cref="ArgumentNullException"><paramref name="text"/> is null.</exception> 2151/// <summary>Throws an <see cref="ArgumentNullException"/> for <paramref name="lowInclusive"/> or <paramref name="highInclusive"/> being null.</summary> 4148/// <exception cref="ArgumentNullException"> 4170/// <exception cref="ArgumentNullException"> 4195/// <exception cref="ArgumentNullException"> 4218/// <exception cref="ArgumentNullException"> 4240/// <exception cref="ArgumentNullException"> 4266/// <exception cref="ArgumentNullException"> 4325/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception> 4395/// <exception cref="ArgumentNullException"><paramref name="comparison"/> is null.</exception> 5503/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5507ArgumentNullException.ThrowIfNull(format); 5525/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5529ArgumentNullException.ThrowIfNull(format); 5549/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5553ArgumentNullException.ThrowIfNull(format); 5568/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5569/// <exception cref="ArgumentNullException"><paramref name="args"/> is null.</exception> 5573ArgumentNullException.ThrowIfNull(format); 5574ArgumentNullException.ThrowIfNull(args); 5588/// <exception cref="ArgumentNullException"><paramref name="format"/> is null.</exception> 5592ArgumentNullException.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, nameof(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)
298ArgumentNullException.ThrowIfNull(reference); 299ArgumentNullException.ThrowIfNull(definition);
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (1)
51ArgumentNullException.ThrowIfNull(constructor, nameof(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, nameof(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> 71ArgumentNullException.ThrowIfNull(parameterInfo); 192/// <exception cref="ArgumentNullException">If the propertyInfo parameter is null</exception> 197ArgumentNullException.ThrowIfNull(propertyInfo); 248/// <exception cref="ArgumentNullException">If the eventInfo parameter is null</exception> 253ArgumentNullException.ThrowIfNull(eventInfo); 266/// <exception cref="ArgumentNullException">If the fieldInfo parameter is null</exception> 271ArgumentNullException.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 (3)
14ArgumentNullException.ThrowIfNull(genericTypeDefinition); 15ArgumentNullException.ThrowIfNull(typeArguments); 20ArgumentNullException.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)
138ArgumentNullException.ThrowIfNull(resourceName);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
127ArgumentNullException.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)
274ArgumentNullException.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 (5)
198/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 217/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="valueFactory"/> are <see langword="null"/>.</exception> 226ArgumentNullException.ThrowIfNull(valueFactory); 249/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="valueFactory"/> are <see langword="null"/>.</exception> 259ArgumentNullException.ThrowIfNull(valueFactory);
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 (2)
20/// <exception cref="ArgumentNullException">If handler is null</exception> 24ArgumentNullException.ThrowIfNull(handler);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
125/// 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"/>.
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> 39ArgumentNullException.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 (3)
99ArgumentNullException.ThrowIfNull(value); 212ArgumentNullException.Throw(nameof(value)); 271ArgumentNullException.Throw(nameof(value));
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)
255/// <exception cref="ArgumentNullException">The <paramref name="condition"/> argument is null.</exception> 275/// <exception cref="ArgumentNullException">The <paramref name="condition"/> argument is null.</exception> 300/// <exception cref="ArgumentNullException">The <paramref name="condition"/> argument is null.</exception> 310ArgumentNullException.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)
564ArgumentNullException.ThrowIfNull(timeProvider); 584ArgumentNullException.ThrowIfNull(timeProvider); 626/// <exception cref="ArgumentNullException"> 649/// <exception cref="ArgumentNullException"> 674/// <exception cref="ArgumentNullException"> 677/// <exception cref="ArgumentNullException"> 706/// <exception cref="ArgumentNullException"> 743/// <exception cref="ArgumentNullException"> 750/// <exception cref="ArgumentNullException"> 807/// <exception cref="ArgumentNullException"> 831/// <exception cref="ArgumentNullException"> 857/// <exception cref="ArgumentNullException"> 860/// <exception cref="ArgumentNullException"> 890/// <exception cref="ArgumentNullException"> 928/// <exception cref="ArgumentNullException"> 935/// <exception cref="ArgumentNullException"> 995/// <exception cref="ArgumentNullException"> 1021/// <exception cref="ArgumentNullException"> 1051/// <exception cref="ArgumentNullException"> 1054/// <exception cref="ArgumentNullException"> 1092/// <exception cref="ArgumentNullException"> 1139/// <exception cref="ArgumentNullException"> 1146/// <exception cref="ArgumentNullException"> 1209/// <exception cref="ArgumentNullException"> 1236/// <exception cref="ArgumentNullException"> 1268/// <exception cref="ArgumentNullException"> 1271/// <exception cref="ArgumentNullException"> 1311/// <exception cref="ArgumentNullException"> 1360/// <exception cref="ArgumentNullException"> 1367/// <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)
354/// <exception cref="ArgumentNullException">The <paramref name="action"/> argument is null.</exception> 366/// <exception cref="ArgumentNullException">The <paramref name="action"/> argument is null.</exception> 383/// <exception cref="ArgumentNullException"> 404/// <exception cref="ArgumentNullException"> 424/// <exception cref="ArgumentNullException"> 438/// <exception cref="ArgumentNullException"> 458/// <exception cref="ArgumentNullException"> 480/// <exception cref="ArgumentNullException"> 933/// <exception cref="ArgumentNullException"> 1026/// <exception cref="ArgumentNullException">The <paramref name="scheduler"/> parameter 2805/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 2808ArgumentNullException.ThrowIfNull(timeProvider); 2824/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 2827ArgumentNullException.ThrowIfNull(timeProvider); 3642/// <exception cref="ArgumentNullException"> 3664/// <exception cref="ArgumentNullException"> 3688/// <exception cref="ArgumentNullException"> 3691/// <exception cref="ArgumentNullException"> 3720/// <exception cref="ArgumentNullException"> 3757/// <exception cref="ArgumentNullException"> 3764/// <exception cref="ArgumentNullException"> 3820/// <exception cref="ArgumentNullException"> 3843/// <exception cref="ArgumentNullException"> 3868/// <exception cref="ArgumentNullException"> 3871/// <exception cref="ArgumentNullException"> 3901/// <exception cref="ArgumentNullException"> 3939/// <exception cref="ArgumentNullException"> 3946/// <exception cref="ArgumentNullException"> 4005/// <exception cref="ArgumentNullException"> 4031/// <exception cref="ArgumentNullException"> 4061/// <exception cref="ArgumentNullException"> 4064/// <exception cref="ArgumentNullException"> 4096/// <exception cref="ArgumentNullException"> 4136/// <exception cref="ArgumentNullException"> 4143/// <exception cref="ArgumentNullException"> 4205/// <exception cref="ArgumentNullException"> 4232/// <exception cref="ArgumentNullException"> 4263/// <exception cref="ArgumentNullException"> 4266/// <exception cref="ArgumentNullException"> 4299/// <exception cref="ArgumentNullException"> 4340/// <exception cref="ArgumentNullException"> 4347/// <exception cref="ArgumentNullException"> 4695/// <exception cref="ArgumentNullException"> 4698/// <exception cref="ArgumentNullException"> 4727/// <exception cref="ArgumentNullException"> 4758/// <exception cref="ArgumentNullException"> 4806/// <exception cref="ArgumentNullException"> 4844/// <exception cref="ArgumentNullException"> 4889/// <exception cref="ArgumentNullException"> 4924/// <exception cref="ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception> 5179/// <exception cref="ArgumentNullException"> 5207/// <exception cref="ArgumentNullException"> 5242/// <exception cref="ArgumentNullException"> 5271/// <exception cref="ArgumentNullException"> 5304/// <exception cref="ArgumentNullException"> 5526/// <exception cref="ArgumentNullException"> 5541/// <exception cref="ArgumentNullException"> 5558/// <exception cref="ArgumentNullException"> 5573/// <exception cref="ArgumentNullException"> 5591/// <exception cref="ArgumentNullException"> 5606/// <exception cref="ArgumentNullException"> 5637/// <exception cref="ArgumentNullException"> 5653/// <exception cref="ArgumentNullException"> 5697/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 5728/// <exception cref="ArgumentNullException">The <paramref name="timeProvider"/> argument is null.</exception> 5731ArgumentNullException.ThrowIfNull(timeProvider); 5927/// <exception cref="ArgumentNullException"> 5993/// <exception cref="ArgumentNullException"> 6233/// <exception cref="ArgumentNullException"> 6316/// <exception cref="ArgumentNullException"> 6506/// <exception cref="ArgumentNullException"> 6514ArgumentNullException.ThrowIfNull(tasks); 6581/// <exception cref="ArgumentNullException"> 6595/// <exception cref="ArgumentNullException"> 6600ArgumentNullException.ThrowIfNull(task1); 6601ArgumentNullException.ThrowIfNull(task2); 6698/// <exception cref="ArgumentNullException"> 6792/// <exception cref="ArgumentNullException"> 6800ArgumentNullException.ThrowIfNull(tasks); 6830/// <exception cref="ArgumentNullException"> 6846/// <exception cref="ArgumentNullException"> 6864/// <exception cref="ArgumentNullException"><paramref name="tasks"/> is null.</exception> 6868ArgumentNullException.ThrowIfNull(tasks); 6887ArgumentNullException.ThrowIfNull(tasks); 6969ArgumentNullException.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)
121ArgumentNullException.ThrowIfNull(start); 130ArgumentNullException.ThrowIfNull(start); 141ArgumentNullException.ThrowIfNull(start); 150ArgumentNullException.ThrowIfNull(start); 272ArgumentNullException.ThrowIfNull(value); 695ArgumentNullException.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 (17)
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);
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\Array.CoreCLR.cs (1)
364/// <exception cref="ArgumentNullException"><paramref name="array"/> is null.</exception>
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)
163ArgumentNullException.ThrowIfNull(obj); 299ArgumentNullException.ThrowIfNull(obj, nameof(wo)); 354ArgumentNullException.ThrowIfNull(obj); 368ArgumentNullException.ThrowIfNull(obj); 654ArgumentNullException.ThrowIfNull(notification); 694/// <exception cref="ArgumentNullException">The <paramref name="callback"/> argument is null.</exception> 706ArgumentNullException.ThrowIfNull(callback); 767ArgumentNullException.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); 243ArgumentNullException.ThrowIfNull(methodInfo); 281ArgumentNullException.ThrowIfNull(signature); 351ArgumentNullException.ThrowIfNull(exceptionType); 889ArgumentNullException.ThrowIfNull(code); 906ArgumentNullException.ThrowIfNull(exceptions); 921ArgumentNullException.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); 601ArgumentNullException.ThrowIfNull(methodInfo); 635ArgumentNullException.ThrowIfNull(signature); 668ArgumentNullException.ThrowIfNull(con); 774ArgumentNullException.ThrowIfNull(labels); 819ArgumentNullException.ThrowIfNull(local); 1025ArgumentNullException.ThrowIfNull(exceptionType); 1178ArgumentNullException.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)
166ArgumentNullException.ThrowIfNull(module); 167ArgumentNullException.ThrowIfNull(type); 280ArgumentNullException.ThrowIfNull(t, nameof(optionalCustomModifiers)); 302ArgumentNullException.ThrowIfNull(t, nameof(requiredCustomModifiers)); 795ArgumentNullException.ThrowIfNull(argument); 823ArgumentNullException.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)
48ArgumentNullException.ThrowIfNull(typeName);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
341ArgumentNullException.ThrowIfNull(type); 553/// <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.cs (5)
152ArgumentNullException.ThrowIfNull(instance); 263ArgumentNullException.ThrowIfNull(wrapper); 293ArgumentNullException.ThrowIfNull(externalComObject); 325ArgumentNullException.ThrowIfNull(instance); 356ArgumentNullException.ThrowIfNull(instance);
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(instantiation);
src\System\String.CoreCLR.cs (2)
20ArgumentNullException.ThrowIfNull(str); 30ArgumentNullException.ThrowIfNull(str);
src\System\StubHelpers.cs (1)
515ArgumentNullException.ThrowIfNull(handle);
src\System\Threading\Monitor.CoreCLR.cs (4)
130ArgumentNullException.ThrowIfNull(obj); 154ArgumentNullException.ThrowIfNull(obj); 170ArgumentNullException.ThrowIfNull(obj); 182ArgumentNullException.ThrowIfNull(obj);
System.Private.DataContractSerialization (177)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
46ArgumentNullException.ThrowIfNull(type);
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (2)
45ArgumentNullException.ThrowIfNull(value); 62ArgumentNullException.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); 4973ArgumentNullException.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 (14)
System\ArgumentValidation.cs (1)
12ArgumentNullException.ThrowIfNull(argument, paramName);
System\IO\StreamExtensions.cs (1)
16ArgumentNullException.ThrowIfNull(stream);
System\Private\Windows\Ole\DataStore.cs (3)
86ArgumentNullException.ThrowIfNull(format); 98ArgumentNullException.ThrowIfNull(format); 104ArgumentNullException.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)
113ArgumentNullException.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.TestUtilities (4)
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); 671ArgumentNullException.ThrowIfNull(mappings); 672ArgumentNullException.ThrowIfNull(stream); 775ArgumentNullException.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.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)
71ArgumentNullException.ThrowIfNull(_parameterTypes[i] = parameterTypes[i], nameof(parameterTypes)); 124ArgumentNullException.ThrowIfNull(names, nameof(names)); 233ArgumentNullException.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)); 245ArgumentNullException.ThrowIfNull(eventtype); 282ArgumentNullException.ThrowIfNull(name, nameof(names)); 671ArgumentNullException.ThrowIfNull(types); 675ArgumentNullException.ThrowIfNull(types[i], nameof(types)); 802ArgumentNullException.ThrowIfNull(name); 877ArgumentNullException.ThrowIfNull(name); 918ArgumentNullException.ThrowIfNull(name); 963ArgumentNullException.ThrowIfNull(name); 1026ArgumentNullException.ThrowIfNull(name); 1068ArgumentNullException.ThrowIfNull(name); 1130ArgumentNullException.ThrowIfNull(name); 1168ArgumentNullException.ThrowIfNull(name); 1192ArgumentNullException.ThrowIfNull(name); 1276ArgumentNullException.ThrowIfNull(interfaceType);
System.Reflection.Metadata (90)
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 (2)
419/// <exception cref="ArgumentNullException"><paramref name="label"/> has default value.</exception> 477/// <exception cref="ArgumentNullException"><paramref name="label"/> has default value.</exception>
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (2)
134/// <exception cref="ArgumentNullException"><paramref name="instructionEncoder"/> has default value.</exception> 157/// <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)
53/// <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\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 (1)
System\Reflection\PathAssemblyResolver.cs (1)
30/// <exception cref="System.ArgumentNullException">Thrown when assemblyPaths is null.</exception>
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); 175ArgumentNullException.ThrowIfNull(type); 190ArgumentNullException.ThrowIfNull(type); 200ArgumentNullException.ThrowIfNull(type); 210ArgumentNullException.ThrowIfNull(type); 221ArgumentNullException.ThrowIfNull(type); 232ArgumentNullException.ThrowIfNull(type); 241ArgumentNullException.ThrowIfNull(type); 251ArgumentNullException.ThrowIfNull(type); 262ArgumentNullException.ThrowIfNull(type); 272ArgumentNullException.ThrowIfNull(type); 281ArgumentNullException.ThrowIfNull(type); 291ArgumentNullException.ThrowIfNull(type); 301ArgumentNullException.ThrowIfNull(type); 312ArgumentNullException.ThrowIfNull(type); 323ArgumentNullException.ThrowIfNull(type); 335ArgumentNullException.ThrowIfNull(type); 343ArgumentNullException.ThrowIfNull(type); 351ArgumentNullException.ThrowIfNull(type); 363ArgumentNullException.ThrowIfNull(assembly); 371ArgumentNullException.ThrowIfNull(assembly); 379ArgumentNullException.ThrowIfNull(assembly); 391ArgumentNullException.ThrowIfNull(eventInfo); 399ArgumentNullException.ThrowIfNull(eventInfo); 407ArgumentNullException.ThrowIfNull(eventInfo); 415ArgumentNullException.ThrowIfNull(eventInfo); 423ArgumentNullException.ThrowIfNull(eventInfo); 431ArgumentNullException.ThrowIfNull(eventInfo); 449ArgumentNullException.ThrowIfNull(member); 472ArgumentNullException.ThrowIfNull(member); 507ArgumentNullException.ThrowIfNull(method); 519ArgumentNullException.ThrowIfNull(module); 527ArgumentNullException.ThrowIfNull(module); 539ArgumentNullException.ThrowIfNull(property); 547ArgumentNullException.ThrowIfNull(property); 555ArgumentNullException.ThrowIfNull(property); 563ArgumentNullException.ThrowIfNull(property); 571ArgumentNullException.ThrowIfNull(property); 579ArgumentNullException.ThrowIfNull(property);
System.Resources.Writer (4)
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.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 (82)
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 (30)
200/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 203ArgumentNullException.ThrowIfNull(reader); 212/// <exception cref="ArgumentNullException">if 'other' is null.</exception> 215ArgumentNullException.ThrowIfNull(other); 249/// <exception cref="ArgumentNullException">Thrown is the <paramref name="info"/> is null.</exception> 412/// <exception cref="ArgumentNullException">if 'claim' is null.</exception> 415ArgumentNullException.ThrowIfNull(claim); 432/// <exception cref="ArgumentNullException">if 'claims' is null.</exception> 435ArgumentNullException.ThrowIfNull(claims); 546/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 549ArgumentNullException.ThrowIfNull(match); 570/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 573ArgumentNullException.ThrowIfNull(type); 596/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 599ArgumentNullException.ThrowIfNull(match); 618/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 621ArgumentNullException.ThrowIfNull(type); 642/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 645ArgumentNullException.ThrowIfNull(match); 665/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 666/// <exception cref="ArgumentNullException">if 'value' is null.</exception> 669ArgumentNullException.ThrowIfNull(type); 670ArgumentNullException.ThrowIfNull(value); 690/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 693ArgumentNullException.ThrowIfNull(reader); 773ArgumentNullException.ThrowIfNull(reader); 782/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 793/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 796ArgumentNullException.ThrowIfNull(writer); 933/// <exception cref="ArgumentNullException">Thrown if the info parameter is null.</exception>
System\Security\Claims\ClaimsPrincipal.cs (32)
62ArgumentNullException.ThrowIfNull(identities); 110/// <exception cref="ArgumentNullException">if 'identities' is null.</exception> 113ArgumentNullException.ThrowIfNull(identities); 122/// <exception cref="ArgumentNullException">if 'identity' is null.</exception> 125ArgumentNullException.ThrowIfNull(identity); 141/// <exception cref="ArgumentNullException">if 'principal' is null.</exception> 144ArgumentNullException.ThrowIfNull(principal); 169/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 172ArgumentNullException.ThrowIfNull(reader); 205/// <exception cref="ArgumentNullException">if 'identity' is null.</exception> 208ArgumentNullException.ThrowIfNull(identity); 217/// <exception cref="ArgumentNullException">if 'identities' is null.</exception> 220ArgumentNullException.ThrowIfNull(identities); 265/// <exception cref="ArgumentNullException">if 'reader' is null.</exception> 269ArgumentNullException.ThrowIfNull(reader); 292/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 295ArgumentNullException.ThrowIfNull(match); 319/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 322ArgumentNullException.ThrowIfNull(type); 346/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 349ArgumentNullException.ThrowIfNull(match); 374/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 377ArgumentNullException.ThrowIfNull(type); 402/// <exception cref="ArgumentNullException">if 'match' is null.</exception> 405ArgumentNullException.ThrowIfNull(match); 428/// <exception cref="ArgumentNullException">if 'type' is null.</exception> 429/// <exception cref="ArgumentNullException">if 'value' is null.</exception> 432ArgumentNullException.ThrowIfNull(type); 433ArgumentNullException.ThrowIfNull(value); 504/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 515/// <exception cref="ArgumentNullException">if 'writer' is null.</exception> 518ArgumentNullException.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 (824)
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\Asn1\AttributeAsn.manual.cs (1)
11ArgumentNullException.ThrowIfNull(attribute);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
13ArgumentNullException.ThrowIfNull(extension);
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\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\SP800108HmacCounterKdf.cs (11)
49/// <exception cref="ArgumentNullException"> 72/// <exception cref="ArgumentNullException"> 111/// <exception cref="ArgumentNullException"> 169/// <exception cref="ArgumentNullException"> 235/// <exception cref="ArgumentNullException"> 268/// <exception cref="ArgumentNullException"> 299/// <exception cref="ArgumentNullException"> 340/// <exception cref="ArgumentNullException"> 377/// <exception cref="ArgumentNullException"> 431/// <exception cref="ArgumentNullException"> 507/// <exception cref="ArgumentNullException">
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\Pkcs12LoaderLimits.cs (2)
97/// <exception cref="ArgumentNullException"> 103ArgumentNullException.ThrowIfNull(copyFrom);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (10)
49/// <exception cref="ArgumentNullException"> 70/// <exception cref="ArgumentNullException"> 100/// <exception cref="ArgumentNullException"> 159/// <exception cref="ArgumentNullException"> 227/// <exception cref="ArgumentNullException"> 289/// <exception cref="ArgumentNullException"> 353/// <exception cref="ArgumentNullException"> 401/// <exception cref="ArgumentNullException"> 461/// <exception cref="ArgumentNullException"> 513/// <exception cref="ArgumentNullException">
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\AesGcm.cs (9)
75/// <exception cref="ArgumentNullException">The <paramref name="key" /> parameter is null.</exception> 107ArgumentNullException.ThrowIfNull(nonce); 108ArgumentNullException.ThrowIfNull(plaintext); 109ArgumentNullException.ThrowIfNull(ciphertext); 110ArgumentNullException.ThrowIfNull(tag); 128ArgumentNullException.ThrowIfNull(nonce); 129ArgumentNullException.ThrowIfNull(ciphertext); 130ArgumentNullException.ThrowIfNull(tag); 131ArgumentNullException.ThrowIfNull(plaintext);
System\Security\Cryptography\AesImplementation.cs (1)
183ArgumentNullException.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)
308ArgumentNullException.ThrowIfNull(algorithm); 311ArgumentNullException.ThrowIfNull(names); 334ArgumentNullException.ThrowIfNull(name); 502ArgumentNullException.ThrowIfNull(oid); 503ArgumentNullException.ThrowIfNull(names); 529ArgumentNullException.ThrowIfNull(name); 554ArgumentNullException.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)
346ArgumentNullException.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\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\SymmetricAlgorithm.cs (16)
74ArgumentNullException.ThrowIfNull(value); 93ArgumentNullException.ThrowIfNull(value); 432/// <exception cref="ArgumentNullException"> 446ArgumentNullException.ThrowIfNull(ciphertext); 550/// <exception cref="ArgumentNullException"> 564ArgumentNullException.ThrowIfNull(plaintext); 669/// <exception cref="ArgumentNullException"> 687ArgumentNullException.ThrowIfNull(ciphertext); 688ArgumentNullException.ThrowIfNull(iv); 824/// <exception cref="ArgumentNullException"> 842ArgumentNullException.ThrowIfNull(plaintext); 843ArgumentNullException.ThrowIfNull(iv); 980/// <exception cref="ArgumentNullException"> 1014ArgumentNullException.ThrowIfNull(ciphertext); 1015ArgumentNullException.ThrowIfNull(iv); 1220/// <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 (27)
73ArgumentNullException.ThrowIfNull(subjectName); 74ArgumentNullException.ThrowIfNull(key); 100ArgumentNullException.ThrowIfNull(subjectName); 101ArgumentNullException.ThrowIfNull(key); 131ArgumentNullException.ThrowIfNull(subjectName); 132ArgumentNullException.ThrowIfNull(key); 134ArgumentNullException.ThrowIfNull(padding); 167ArgumentNullException.ThrowIfNull(subjectName); 168ArgumentNullException.ThrowIfNull(key); 170ArgumentNullException.ThrowIfNull(padding); 195ArgumentNullException.ThrowIfNull(subjectName); 196ArgumentNullException.ThrowIfNull(publicKey); 226ArgumentNullException.ThrowIfNull(subjectName); 227ArgumentNullException.ThrowIfNull(publicKey); 293/// <exception cref="ArgumentNullException"> 335ArgumentNullException.ThrowIfNull(signatureGenerator); 429/// <exception cref="ArgumentNullException"> 466ArgumentNullException.ThrowIfNull(signatureGenerator); 556/// <exception cref="ArgumentNullException"><paramref name="issuerCertificate"/> is null.</exception> 607/// <exception cref="ArgumentNullException"><paramref name="issuerCertificate"/> is null.</exception> 631ArgumentNullException.ThrowIfNull(issuerCertificate); 755/// <exception cref="ArgumentNullException"><paramref name="issuerName"/> is null.</exception> 756/// <exception cref="ArgumentNullException"><paramref name="generator"/> is null.</exception> 796/// <exception cref="ArgumentNullException"><paramref name="issuerName"/> is null.</exception> 797/// <exception cref="ArgumentNullException"><paramref name="generator"/> is null.</exception> 810ArgumentNullException.ThrowIfNull(issuerName); 811ArgumentNullException.ThrowIfNull(generator);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
24ArgumentNullException.ThrowIfNull(pkcs10Pem); 86ArgumentNullException.ThrowIfNull(pkcs10);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (6)
46/// <exception cref="ArgumentNullException"> 133ArgumentNullException.ThrowIfNull(issuerCertificate); 265/// <exception cref="ArgumentNullException"> 320ArgumentNullException.ThrowIfNull(issuerName); 321ArgumentNullException.ThrowIfNull(generator); 328ArgumentNullException.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\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\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 (4)
170ArgumentNullException.ThrowIfNull(fileName); 182ArgumentNullException.ThrowIfNull(fileName); 199ArgumentNullException.ThrowIfNull(fileName); 212ArgumentNullException.ThrowIfNull(cert);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (8)
416ArgumentNullException.ThrowIfNull(fileName); 736/// <exception cref="ArgumentNullException"><paramref name="privateKey" /> is <see langword="null"/>.</exception> 751ArgumentNullException.ThrowIfNull(privateKey); 802/// <exception cref="ArgumentNullException"> 831ArgumentNullException.ThrowIfNull(certPemFilePath); 871/// <exception cref="ArgumentNullException"> 897ArgumentNullException.ThrowIfNull(certPemFilePath); 1266ArgumentNullException.ThrowIfNull(hostname);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (17)
50ArgumentNullException.ThrowIfNull(certificate); 57ArgumentNullException.ThrowIfNull(certificates); 79ArgumentNullException.ThrowIfNull(certificates); 127ArgumentNullException.ThrowIfNull(findValue); 142ArgumentNullException.ThrowIfNull(rawData); 165ArgumentNullException.ThrowIfNull(rawData); 215ArgumentNullException.ThrowIfNull(fileName); 226ArgumentNullException.ThrowIfNull(fileName); 252ArgumentNullException.ThrowIfNull(fileName); 265ArgumentNullException.ThrowIfNull(certificate); 272ArgumentNullException.ThrowIfNull(certificate); 279ArgumentNullException.ThrowIfNull(certificates); 301ArgumentNullException.ThrowIfNull(certificates); 343/// <exception cref="ArgumentNullException"> 348ArgumentNullException.ThrowIfNull(certPemFilePath); 594/// <exception cref="ArgumentNullException"> 624ArgumentNullException.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\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 (3)
18ArgumentNullException.ThrowIfNull(key); 25ArgumentNullException.ThrowIfNull(key); 26ArgumentNullException.ThrowIfNull(signaturePadding);
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 (43)
System\Security\Cryptography\Cose\CoseHeaderLabel.cs (1)
59/// <exception cref="ArgumentNullException"><paramref name="label"/> is <see langword="null"/>.</exception>
System\Security\Cryptography\Cose\CoseHeaderValue.cs (3)
48/// <exception cref="ArgumentNullException"><paramref name="encodedValue"/> is <see langword="null"/>.</exception> 85/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception> 118/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
System\Security\Cryptography\Cose\CoseMessage.cs (2)
91/// <exception cref="ArgumentNullException"><paramref name="cborPayload"/> is <see langword="null"/>.</exception> 177/// <exception cref="ArgumentNullException"><paramref name="cborPayload"/> is <see langword="null"/>.</exception>
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (15)
53/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 84/// <exception cref="ArgumentNullException"><paramref name="embeddedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 115/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 142/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 168/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 234/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 305/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 333/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 638/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 657/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 689/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 716/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 748/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 824/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 890/// <exception cref="ArgumentNullException"><paramref name="signature"/> is <see langword="null"/>.</exception>
System\Security\Cryptography\Cose\CoseSign1Message.cs (14)
41/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 69/// <exception cref="ArgumentNullException"><paramref name="embeddedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 97/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 122/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 147/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 201/// <exception cref="ArgumentNullException"><paramref name="detachedContent"/> or <paramref name="signer"/> is <see langword="null"/>.</exception> 253/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 275/// <exception cref="ArgumentNullException"><paramref name="signer"/> is <see langword="null"/>.</exception> 372/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 415/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 458/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 506/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 550/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 651/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception>
System\Security\Cryptography\Cose\CoseSignature.cs (6)
78/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 121/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 165/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 214/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 258/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception> 326/// <exception cref="ArgumentNullException"><paramref name="key"/> or <paramref name="detachedContent"/> is <see langword="null"/>.</exception>
System\Security\Cryptography\Cose\CoseSigner.cs (2)
43/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception> 90/// <exception cref="ArgumentNullException"><paramref name="key"/> is <see langword="null"/>.</exception>
System.Security.Cryptography.Pkcs (2)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs (1)
11ArgumentNullException.ThrowIfNull(attribute);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
13ArgumentNullException.ThrowIfNull(extension);
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
148/// <exception cref="ArgumentNullException">
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
103/// <exception cref="ArgumentNullException">
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.UnixDomainSocket.Tests (1)
ServiceModel\UnixDomainSocketBindingTest.cs (1)
104Assert.Throws<ArgumentNullException>(() => binding.Security = null);
System.Text.Json (136)
System\Text\Json\Document\JsonDocument.cs (1)
95/// <exception cref="ArgumentNullException">
System\Text\Json\Document\JsonElement.cs (3)
127/// <exception cref="ArgumentNullException"> 249/// <exception cref="ArgumentNullException"> 1538/// <exception cref="ArgumentNullException">
System\Text\Json\Document\JsonProperty.cs (1)
103/// <exception cref="ArgumentNullException">
System\Text\Json\JsonEncodedText.cs (1)
45/// <exception cref="ArgumentNullException">
System\Text\Json\JsonException.cs (1)
85/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonArray.IList.cs (2)
122/// <exception cref="ArgumentNullException"> 201/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonNode.cs (1)
230/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonNode.Parse.cs (1)
64/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonNode.To.cs (1)
75/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonObject.IDictionary.cs (6)
20/// <exception cref="ArgumentNullException"> 46/// <exception cref="ArgumentNullException"> 79/// <exception cref="ArgumentNullException"> 104/// <exception cref="ArgumentNullException"> 140/// <exception cref="ArgumentNullException"> 193/// <exception cref="ArgumentNullException">
System\Text\Json\Nodes\JsonObject.IList.cs (2)
55/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null.</exception> 70/// <exception cref="ArgumentNullException"><paramref name="propertyName"/> is null.</exception>
System\Text\Json\Serialization\JsonSerializer.Read.Document.cs (5)
19/// <exception cref="System.ArgumentNullException"> 50/// <exception cref="System.ArgumentNullException"> 85/// <exception cref="System.ArgumentNullException"> 117/// <exception cref="System.ArgumentNullException"> 147/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Read.Element.cs (4)
42/// <exception cref="System.ArgumentNullException"> 73/// <exception cref="System.ArgumentNullException"> 101/// <exception cref="System.ArgumentNullException"> 123/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (3)
70/// <exception cref="System.ArgumentNullException"> 93/// <exception cref="System.ArgumentNullException"> 114/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
44/// <exception cref="System.ArgumentNullException"> 120/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (14)
30/// <exception cref="System.ArgumentNullException"> 66/// <exception cref="System.ArgumentNullException"> 104/// <exception cref="System.ArgumentNullException"> 145/// <exception cref="System.ArgumentNullException"> 188/// <exception cref="System.ArgumentNullException"> 224/// <exception cref="System.ArgumentNullException"> 257/// <exception cref="System.ArgumentNullException"> 289/// <exception cref="System.ArgumentNullException"> 324/// <exception cref="System.ArgumentNullException"> 371/// <exception cref="System.ArgumentNullException"> 418/// <exception cref="System.ArgumentNullException"> 441/// <exception cref="System.ArgumentNullException"> 476/// <exception cref="System.ArgumentNullException"> 497/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Read.String.cs (9)
25/// <exception cref="System.ArgumentNullException"> 97/// <exception cref="System.ArgumentNullException"> 141/// <exception cref="System.ArgumentNullException"> 183/// <exception cref="System.ArgumentNullException"> 225/// <exception cref="System.ArgumentNullException"> 262/// <exception cref="System.ArgumentNullException"> 299/// <exception cref="System.ArgumentNullException"> 329/// <exception cref="System.ArgumentNullException"> 383/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (2)
72/// <exception cref="ArgumentNullException"> 229/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (4)
43/// <exception cref="System.ArgumentNullException"> 68/// <exception cref="ArgumentNullException"> 88/// <exception cref="ArgumentNullException"> 115/// <exception cref="System.ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (4)
43/// <exception cref="ArgumentNullException"> 65/// <exception cref="ArgumentNullException"> 85/// <exception cref="ArgumentNullException"> 117/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (4)
43/// <exception cref="ArgumentNullException"> 65/// <exception cref="ArgumentNullException"> 85/// <exception cref="ArgumentNullException"> 117/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (4)
44/// <exception cref="ArgumentNullException"> 66/// <exception cref="ArgumentNullException"> 86/// <exception cref="ArgumentNullException"> 118/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (5)
24/// <exception cref="ArgumentNullException"> 55/// <exception cref="ArgumentNullException"> 87/// <exception cref="ArgumentNullException"> 125/// <exception cref="ArgumentNullException"> 167/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs (10)
32/// <exception cref="ArgumentNullException"> 63/// <exception cref="ArgumentNullException"> 98/// <exception cref="ArgumentNullException"> 134/// <exception cref="ArgumentNullException"> 168/// <exception cref="ArgumentNullException"> 197/// <exception cref="ArgumentNullException"> 226/// <exception cref="ArgumentNullException"> 257/// <exception cref="ArgumentNullException"> 293/// <exception cref="ArgumentNullException"> 331/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (4)
50/// <exception cref="ArgumentNullException"> 76/// <exception cref="ArgumentNullException"> 100/// <exception cref="ArgumentNullException"> 136/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs (5)
19/// <exception cref="ArgumentNullException"> 52/// <exception cref="ArgumentNullException"> 84/// <exception cref="ArgumentNullException"> 108/// <exception cref="ArgumentNullException"> 139/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (2)
48/// <exception cref="ArgumentNullException"><paramref name="type"/> is <see langword="null"/>.</exception> 76/// <exception cref="ArgumentNullException"><paramref name="type"/> is <see langword="null"/>.</exception>
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
113/// <exception cref="System.ArgumentNullException"> 764/// <exception cref="ArgumentNullException">
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.cs (1)
42/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs (1)
60/// <exception cref="ArgumentNullException">Thrown when <paramref name="options"/> or <paramref name="objectInfo"/> is null.</exception>
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
778/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
894/// <exception cref="ArgumentNullException"><paramref name="options"/> is null.</exception> 924/// <exception cref="ArgumentNullException"><paramref name="type"/> or <paramref name="options"/> is null.</exception> 989/// <exception cref="ArgumentNullException"><paramref name="propertyType"/> or <paramref name="name"/> is null.</exception>
System\Text\Json\Writer\JsonWriterOptions.cs (1)
144/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.cs (6)
214/// <exception cref="ArgumentNullException"> 235/// <exception cref="ArgumentNullException"> 295/// <exception cref="ArgumentNullException"> 332/// <exception cref="ArgumentNullException"> 851/// <exception cref="ArgumentNullException"> 877/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (1)
39/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (1)
43/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (1)
42/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (1)
42/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (1)
44/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (1)
44/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (1)
42/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (2)
65/// <exception cref="ArgumentNullException"> 163/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (2)
42/// <exception cref="ArgumentNullException"> 133/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (5)
61/// <exception cref="ArgumentNullException"> 447/// <exception cref="ArgumentNullException"> 473/// <exception cref="ArgumentNullException"> 633/// <exception cref="ArgumentNullException"> 723/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (2)
43/// <exception cref="ArgumentNullException"> 138/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (1)
21/// <exception cref="ArgumentNullException">
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (1)
17/// <exception cref="ArgumentNullException">Thrown if <paramref name="json"/> is <see langword="null"/>.</exception>
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)
22/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 40/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 60/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception>
System\Text\RegularExpressions\Regex.EnumerateSplits.cs (3)
31/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 57/// <exception cref="ArgumentNullException"><paramref name="pattern"/> is null.</exception> 85/// <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.Threading.Channels (1)
System\Threading\Channels\Channel.netcoreapp.cs (1)
31ArgumentNullException.ThrowIfNull(options);
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\PartitionedRateLimiter.cs (1)
52/// <exception cref="ArgumentNullException"><paramref name="limiters"/> is a null parameter.</exception>
System.Threading.Tasks.Dataflow (76)
Base\DataflowBlock.cs (42)
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> 56/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 57/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 58/// <exception cref="System.ArgumentNullException">The <paramref name="predicate"/> is null (Nothing in Visual Basic).</exception> 74/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 75/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 76/// <exception cref="System.ArgumentNullException">The <paramref name="linkOptions"/> is null (Nothing in Visual Basic).</exception> 77/// <exception cref="System.ArgumentNullException">The <paramref name="predicate"/> is null (Nothing in Visual Basic).</exception> 279/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 306/// <exception cref="System.ArgumentNullException">The <paramref name="target"/> is null (Nothing in Visual Basic).</exception> 810/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 827/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 844/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 865/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 890/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 904/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 925/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 944/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception> 1702/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1703/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1704/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1705/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 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="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 1799/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1800/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1801/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1802/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 1803/// <exception cref="System.ArgumentNullException">The <paramref name="source3"/> is null (Nothing in Visual Basic).</exception> 1804/// <exception cref="System.ArgumentNullException">The <paramref name="action3"/> is null (Nothing in Visual Basic).</exception> 1841/// <exception cref="System.ArgumentNullException">The <paramref name="source1"/> is null (Nothing in Visual Basic).</exception> 1842/// <exception cref="System.ArgumentNullException">The <paramref name="action1"/> is null (Nothing in Visual Basic).</exception> 1843/// <exception cref="System.ArgumentNullException">The <paramref name="source2"/> is null (Nothing in Visual Basic).</exception> 1844/// <exception cref="System.ArgumentNullException">The <paramref name="action2"/> is null (Nothing in Visual Basic).</exception> 1845/// <exception cref="System.ArgumentNullException">The <paramref name="source3"/> is null (Nothing in Visual Basic).</exception> 1846/// <exception cref="System.ArgumentNullException">The <paramref name="action3"/> is null (Nothing in Visual Basic).</exception> 1847/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 2232/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception>
Base\DataflowBlock.IAsyncEnumerable.cs (1)
16/// <exception cref="System.ArgumentNullException">The <paramref name="source"/> is null (Nothing in Visual Basic).</exception>
Blocks\ActionBlock.cs (8)
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>
Blocks\BatchBlock.cs (2)
45/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 306/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
Blocks\BatchedJoinBlock.cs (2)
53/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 301/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
Blocks\BroadcastBlock.cs (1)
64/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
Blocks\BufferBlock.cs (1)
45/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
Blocks\JoinBlock.cs (2)
49/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception> 276/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
Blocks\TransformBlock.cs (8)
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>
Blocks\TransformManyBlock.cs (6)
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>
Blocks\TransformManyBlock.IAsyncEnumerable.cs (2)
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>
Blocks\WriteOnceBlock.cs (1)
62/// <exception cref="System.ArgumentNullException">The <paramref name="dataflowBlockOptions"/> is null (Nothing in Visual Basic).</exception>
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)
118ArgumentNullException.ThrowIfNull(value);
Microsoft\Windows\Controls\KeyTipService.cs (11)
62ArgumentNullException.ThrowIfNull(element); 71ArgumentNullException.ThrowIfNull(element); 100ArgumentNullException.ThrowIfNull(element); 106ArgumentNullException.ThrowIfNull(element); 121ArgumentNullException.ThrowIfNull(element); 127ArgumentNullException.ThrowIfNull(element); 413ArgumentNullException.ThrowIfNull(element); 419ArgumentNullException.ThrowIfNull(element); 1279ArgumentNullException.ThrowIfNull(element); 1285ArgumentNullException.ThrowIfNull(element); 1302ArgumentNullException.ThrowIfNull(visual);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
52ArgumentNullException.ThrowIfNull(starLayoutInfoProvider); 67ArgumentNullException.ThrowIfNull(starLayoutInfoProvider);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
31ArgumentNullException.ThrowIfNull(starLayoutInfoProvider); 41ArgumentNullException.ThrowIfNull(starLayoutInfoProvider);
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
118ArgumentNullException.ThrowIfNull(destinationType);
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (54)
46ArgumentNullException.ThrowIfNull(element); 55ArgumentNullException.ThrowIfNull(element); 77ArgumentNullException.ThrowIfNull(element); 86ArgumentNullException.ThrowIfNull(element); 112ArgumentNullException.ThrowIfNull(element); 121ArgumentNullException.ThrowIfNull(element); 146ArgumentNullException.ThrowIfNull(element); 155ArgumentNullException.ThrowIfNull(element); 171ArgumentNullException.ThrowIfNull(element); 180ArgumentNullException.ThrowIfNull(element); 196ArgumentNullException.ThrowIfNull(element); 205ArgumentNullException.ThrowIfNull(element); 221ArgumentNullException.ThrowIfNull(element); 230ArgumentNullException.ThrowIfNull(element); 246ArgumentNullException.ThrowIfNull(element); 255ArgumentNullException.ThrowIfNull(element); 271ArgumentNullException.ThrowIfNull(element); 280ArgumentNullException.ThrowIfNull(element); 310ArgumentNullException.ThrowIfNull(element); 319ArgumentNullException.ThrowIfNull(element); 338ArgumentNullException.ThrowIfNull(element); 347ArgumentNullException.ThrowIfNull(element); 366ArgumentNullException.ThrowIfNull(element); 375ArgumentNullException.ThrowIfNull(element); 394ArgumentNullException.ThrowIfNull(element); 403ArgumentNullException.ThrowIfNull(element); 422ArgumentNullException.ThrowIfNull(element); 431ArgumentNullException.ThrowIfNull(element); 450ArgumentNullException.ThrowIfNull(element); 459ArgumentNullException.ThrowIfNull(element); 478ArgumentNullException.ThrowIfNull(element); 487ArgumentNullException.ThrowIfNull(element); 506ArgumentNullException.ThrowIfNull(element); 515ArgumentNullException.ThrowIfNull(element); 534ArgumentNullException.ThrowIfNull(element); 543ArgumentNullException.ThrowIfNull(element); 564ArgumentNullException.ThrowIfNull(element); 575ArgumentNullException.ThrowIfNull(element); 601ArgumentNullException.ThrowIfNull(element); 610ArgumentNullException.ThrowIfNull(element); 647ArgumentNullException.ThrowIfNull(element); 653ArgumentNullException.ThrowIfNull(element); 736ArgumentNullException.ThrowIfNull(element); 746ArgumentNullException.ThrowIfNull(element); 768ArgumentNullException.ThrowIfNull(element); 774ArgumentNullException.ThrowIfNull(element); 797ArgumentNullException.ThrowIfNull(element); 806ArgumentNullException.ThrowIfNull(element); 825ArgumentNullException.ThrowIfNull(element); 834ArgumentNullException.ThrowIfNull(element); 854ArgumentNullException.ThrowIfNull(element); 863ArgumentNullException.ThrowIfNull(element); 876ArgumentNullException.ThrowIfNull(element); 885ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1499ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
276ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (4)
218ArgumentNullException.ThrowIfNull(element); 224ArgumentNullException.ThrowIfNull(element); 243ArgumentNullException.ThrowIfNull(element); 249ArgumentNullException.ThrowIfNull(element);
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (2)
101ArgumentNullException.ThrowIfNull(value); 102ArgumentNullException.ThrowIfNull(destinationType);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
38ArgumentNullException.ThrowIfNull(itemsControl); 777ArgumentNullException.ThrowIfNull(element);
System.Windows.Forms (415)
misc\CollectionHelper.cs (1)
16ArgumentNullException.ThrowIfNull(target);
System\Resources\ResXDataNode.cs (1)
79ArgumentNullException.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)
1350/// <exception cref="ArgumentNullException"><paramref name="font"/> is <see langword="null"/>.</exception> 1366ArgumentNullException.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)
2346ArgumentNullException.ThrowIfNull(control); 4901ArgumentNullException.ThrowIfNull(bitmap); 4953ArgumentNullException.ThrowIfNull(asyncResult); 7080ArgumentNullException.ThrowIfNull(e); 8077ArgumentNullException.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\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)
9764ArgumentNullException.ThrowIfNull(dataGridViewCell); 10739ArgumentNullException.ThrowIfNull(dataGridViewColumn); 11001ArgumentNullException.ThrowIfNull(dataGridViewRow); 11238ArgumentNullException.ThrowIfNull(previousModes, nameof(e.PreviousModes)); 25351ArgumentNullException.ThrowIfNull(dataGridViewCurrentCell); 28168ArgumentNullException.ThrowIfNull(dataGridViewColumn); 28190ArgumentNullException.ThrowIfNull(comparer);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
151ArgumentNullException.ThrowIfNull(cellStyle); 219ArgumentNullException.ThrowIfNull(cellStyle); 290ArgumentNullException.ThrowIfNull(cellStyle); 612ArgumentNullException.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); 3715ArgumentNullException.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); 1005ArgumentNullException.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); 836ArgumentNullException.ThrowIfNull(cellStyle); 1173ArgumentNullException.ThrowIfNull(cellStyle); 1408ArgumentNullException.ThrowIfNull(key); 1825ArgumentNullException.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); 492ArgumentNullException.ThrowIfNull(cellStyle); 547ArgumentNullException.ThrowIfNull(cellStyle); 848ArgumentNullException.ThrowIfNull(cellStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (8)
1095ArgumentNullException.ThrowIfNull(dataGridView); 1120ArgumentNullException.ThrowIfNull(values); 1184ArgumentNullException.ThrowIfNull(graphics); 1185ArgumentNullException.ThrowIfNull(cellStyle); 1419ArgumentNullException.ThrowIfNull(graphics); 1495ArgumentNullException.ThrowIfNull(graphics); 1688ArgumentNullException.ThrowIfNull(graphics); 1770ArgumentNullException.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); 328ArgumentNullException.ThrowIfNull(cellStyle); 399ArgumentNullException.ThrowIfNull(cellStyle); 611ArgumentNullException.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)
3813ArgumentNullException.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)
454ArgumentNullException.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)
4848ArgumentNullException.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)
998ArgumentNullException.ThrowIfNull(tabPage); 1009ArgumentNullException.ThrowIfNull(tabPageName); 1128ArgumentNullException.ThrowIfNull(item); 1165ArgumentNullException.ThrowIfNull(tabPage); 1640ArgumentNullException.ThrowIfNull(value); 1673ArgumentNullException.ThrowIfNull(tabPage); 1684ArgumentNullException.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)
123ArgumentNullException.ThrowIfNull(mask); 135ArgumentNullException.ThrowIfNull(maskedTextProvider); 350ArgumentNullException.ThrowIfNull(value);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4062ArgumentNullException.ThrowIfNull(item);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (2)
69ArgumentNullException.ThrowIfNull(service); 117ArgumentNullException.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)
621ArgumentNullException.ThrowIfNull(targetForm); 631ArgumentNullException.ThrowIfNull(targetForm); 644ArgumentNullException.ThrowIfNull(sourceForm); 654ArgumentNullException.ThrowIfNull(sourceForm); 655ArgumentNullException.ThrowIfNull(key); 1085ArgumentNullException.ThrowIfNull(sourceToolStrip); 1086ArgumentNullException.ThrowIfNull(targetToolStrip); 1257ArgumentNullException.ThrowIfNull(sourceToolStrip); 1258ArgumentNullException.ThrowIfNull(targetName); 1270ArgumentNullException.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 (6)
607ArgumentNullException.ThrowIfNull(e); 770ArgumentNullException.ThrowIfNull(e); 813ArgumentNullException.ThrowIfNull(e); 856ArgumentNullException.ThrowIfNull(e); 958ArgumentNullException.ThrowIfNull(e); 1028ArgumentNullException.ThrowIfNull(normalImage);
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)
73ArgumentNullException.ThrowIfNull(parentControl); 83ArgumentNullException.ThrowIfNull(container); 713ArgumentNullException.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)
222ArgumentNullException.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 (1)
45ArgumentNullException.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)
150ArgumentNullException.ThrowIfNull(bitmap); 246ArgumentNullException.ThrowIfNull(bitmap); 305ArgumentNullException.ThrowIfNull(bitmap); 396ArgumentNullException.ThrowIfNull(graphics); 424ArgumentNullException.ThrowIfNull(g); 523ArgumentNullException.ThrowIfNull(graphics); 555ArgumentNullException.ThrowIfNull(graphics); 1025ArgumentNullException.ThrowIfNull(graphics); 1057ArgumentNullException.ThrowIfNull(graphics); 1146ArgumentNullException.ThrowIfNull(context); 1275ArgumentNullException.ThrowIfNull(graphics); 1319ArgumentNullException.ThrowIfNull(graphics); 1344ArgumentNullException.ThrowIfNull(graphics); 1415ArgumentNullException.ThrowIfNull(graphics); 1436ArgumentNullException.ThrowIfNull(graphics); 1485ArgumentNullException.ThrowIfNull(graphics); 1512ArgumentNullException.ThrowIfNull(graphics); 1561ArgumentNullException.ThrowIfNull(graphics); 1602ArgumentNullException.ThrowIfNull(graphics); 1603ArgumentNullException.ThrowIfNull(image); 1685ArgumentNullException.ThrowIfNull(graphics); 1874ArgumentNullException.ThrowIfNull(graphics); 1895ArgumentNullException.ThrowIfNull(graphics); 1952ArgumentNullException.ThrowIfNull(graphics); 1984ArgumentNullException.ThrowIfNull(dc); 2023ArgumentNullException.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)
664ArgumentNullException.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 (212)
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); 933ArgumentNullException.ThrowIfNull(componentType); 999ArgumentNullException.ThrowIfNull(component); 1034ArgumentNullException.ThrowIfNull(component); 1041ArgumentNullException.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); 879ArgumentNullException.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)
1014ArgumentNullException.ThrowIfNull(dataType); 1109ArgumentNullException.ThrowIfNull(name); 1181ArgumentNullException.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); 1659ArgumentNullException.ThrowIfNull(manager); 1660ArgumentNullException.ThrowIfNull(value); 1755ArgumentNullException.ThrowIfNull(manager); 1859ArgumentNullException.ThrowIfNull(manager); 1860ArgumentNullException.ThrowIfNull(value); 1879ArgumentNullException.ThrowIfNull(manager); 1880ArgumentNullException.ThrowIfNull(value); 2059ArgumentNullException.ThrowIfNull(manager); 2060ArgumentNullException.ThrowIfNull(value); 2102ArgumentNullException.ThrowIfNull(manager); 2103ArgumentNullException.ThrowIfNull(statements); 2104ArgumentNullException.ThrowIfNull(value); 2105ArgumentNullException.ThrowIfNull(descriptor); 2248ArgumentNullException.ThrowIfNull(manager); 2249ArgumentNullException.ThrowIfNull(value); 2250ArgumentNullException.ThrowIfNull(propertyToSerialize); 2251ArgumentNullException.ThrowIfNull(statements); 2589ArgumentNullException.ThrowIfNull(manager); 2590ArgumentNullException.ThrowIfNull(value); 2591ArgumentNullException.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\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); 103ArgumentNullException.ThrowIfNull(values);
System.Windows.Forms.Design.Tests (127)
Serialization\TypeCodeDomSerializerTests.cs (4)
21Assert.Throws<ArgumentNullException>(() => underTest.Serialize(null, null, null)); 29Assert.Throws<ArgumentNullException>(() => underTest.Serialize(mockSerializationManager.Object, null, null)); 36Assert.Throws<ArgumentNullException>(() => underTest.Deserialize(null, null)); 44Assert.Throws<ArgumentNullException>(() => underTest.Deserialize(mockSerializationManager.Object, null));
System\ComponentModel\Design\ArrayEditorTests.cs (2)
212Assert.Throws<ArgumentNullException>("elementType", () => editor.SetItems(null, Array.Empty<object>())); 213Assert.Throws<ArgumentNullException>("elementType", () => editor.SetItems(Array.Empty<object>(), Array.Empty<object>()));
System\ComponentModel\Design\ByteViewerTests.cs (3)
612Assert.Throws<ArgumentNullException>("path", () => control.SaveToFile(null)); 717Assert.Throws<ArgumentNullException>("bytes", () => control.SetBytes(null)); 881Assert.Throws<ArgumentNullException>("path", () => control.SetFile(null));
System\ComponentModel\Design\CollectionEditorTests.cs (7)
44Assert.Throws<ArgumentNullException>("type", () => editor.CollectionItemType); 49Assert.Throws<ArgumentNullException>("type", () => editor.NewItemTypes); 113Assert.Throws<ArgumentNullException>("type", editor.CreateCollectionForm); 138Assert.Throws<ArgumentNullException>("type", editor.CreateCollectionItemType); 361Assert.Throws<ArgumentNullException>("itemType", () => editor.CreateInstance(null)); 386Assert.Throws<ArgumentNullException>("type", editor.CreateNewItemTypes); 745Assert.Throws<ArgumentNullException>("type", () => editor.EditValue(mockContext.Object, mockServiceProvider.Object, value));
System\ComponentModel\Design\CollectionFormTests.cs (3)
33Assert.Throws<ArgumentNullException>("editor", () => new SubCollectionForm(null)); 710Assert.Throws<ArgumentNullException>("itemType", () => form.CreateInstance(null)); 822Assert.Throws<ArgumentNullException>("edSvc", () => form.ShowEditorDialog(null));
System\ComponentModel\Design\DesignerActionItemCollectionTests.cs (4)
38Assert.Throws<ArgumentNullException>("value", () => collection.Add(null)); 64Assert.Throws<ArgumentNullException>("value", () => collection.Insert(0, null)); 85Assert.Throws<ArgumentNullException>("value", () => collection.Remove(null)); 112Assert.Throws<ArgumentNullException>("value", () => collection[0] = null);
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (3)
32Assert.Throws<ArgumentNullException>("value", () => new DesignerActionListCollection(null)); 89Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerActionList[])null)); 90Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerActionListCollection)null));
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (1)
227Assert.Throws<ArgumentNullException>("name", item.Invoke);
System\ComponentModel\Design\DesignerActionServiceTests.cs (14)
103Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (DesignerActionListCollection)null)); 104Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (DesignerActionList)null)); 159Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (DesignerActionListCollection)null)); 246Assert.Throws<ArgumentNullException>("comp", () => service.Contains(null)); 386Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null)); 387Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null, ComponentActionsType.All)); 612Assert.Throws<ArgumentNullException>("component", () => service.GetComponentDesignerActions(null, null)); 619Assert.Throws<ArgumentNullException>("actionLists", () => service.GetComponentDesignerActions(new Component(), null)); 647Assert.Throws<ArgumentNullException>("component", () => service.GetComponentServiceActions(null, null)); 654Assert.Throws<ArgumentNullException>("actionLists", () => service.GetComponentServiceActions(new Component(), null)); 1029Assert.Throws<ArgumentNullException>("comp", () => service.Remove((IComponent)null)); 1030Assert.Throws<ArgumentNullException>("comp", () => service.Remove(null, null)); 1037Assert.Throws<ArgumentNullException>("actionList", () => service.Remove((DesignerActionList)null)); 1038Assert.Throws<ArgumentNullException>("actionList", () => service.Remove(new Component(), null));
System\ComponentModel\Design\DesignerHostTests.cs (8)
978Assert.Throws<ArgumentNullException>("key", () => service.GetValue(null)); 996Assert.Throws<ArgumentNullException>("key", () => service.GetValue(null)); 1043Assert.Throws<ArgumentNullException>("key", () => service.SetValue(null, new object())); 1593Assert.Throws<ArgumentNullException>("service", () => component.Site.GetService(null)); 1863Assert.Throws<ArgumentNullException>("componentType", () => host.CreateComponent(null)); 2273Assert.Throws<ArgumentNullException>("component", () => host.GetDesigner(null)); 2373Assert.Throws<ArgumentNullException>("service", () => host.GetService(null)); 2428Assert.Throws<ArgumentNullException>("typeName", () => host.GetType(null));
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (3)
32Assert.Throws<ArgumentNullException>("value", () => new DesignerVerbCollection(null)); 89Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerVerb[])null)); 90Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerVerbCollection)null));
System\ComponentModel\Design\DesignSurfaceTests.cs (11)
169Assert.Throws<ArgumentNullException>("rootComponentType", () => new DesignSurface((Type)null)); 170Assert.Throws<ArgumentNullException>("rootComponentType", () => new DesignSurface(mockServiceProvider.Object, null)); 319Assert.Throws<ArgumentNullException>("serviceType", () => container.RemoveService(null)); 922Assert.Throws<ArgumentNullException>("loader", () => surface.BeginLoad((DesignerLoader)null)); 944Assert.Throws<ArgumentNullException>("rootComponentType", () => surface.BeginLoad((Type)null)); 1008Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, true)); 1009Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, false)); 1069Assert.Throws<ArgumentNullException>("type", () => surface.CreateComponent(null)); 1125Assert.Throws<ArgumentNullException>("type", () => surface.CreateInstance(null)); 1153Assert.Throws<ArgumentNullException>("owningComponent", () => surface.CreateNestedContainer(null)); 1154Assert.Throws<ArgumentNullException>("owningComponent", () => surface.CreateNestedContainer(null, "name"));
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (2)
43Assert.Throws<ArgumentNullException>("provider", () => providerService.AddExtenderProvider(null)); 102Assert.Throws<ArgumentNullException>("provider", () => providerService.RemoveExtenderProvider(null));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (11)
681Assert.Throws<ArgumentNullException>("info", () => serializable.GetObjectData(null, default)); 890Assert.Throws<ArgumentNullException>("store", () => service.Serialize(null, new object())); 898Assert.Throws<ArgumentNullException>("value", () => service.Serialize(mockStore.Object, null)); 1098Assert.Throws<ArgumentNullException>("store", () => service.SerializeAbsolute(null, new object())); 1106Assert.Throws<ArgumentNullException>("value", () => service.SerializeAbsolute(mockStore.Object, null)); 1366Assert.Throws<ArgumentNullException>("store", () => service.SerializeMember(null, new DataClass(), member)); 1375Assert.Throws<ArgumentNullException>("owningObject", () => service.SerializeMember(store, null, member)); 1383Assert.Throws<ArgumentNullException>("member", () => service.SerializeMember(store, new DataClass(), null)); 1645Assert.Throws<ArgumentNullException>("store", () => service.SerializeMemberAbsolute(null, new DataClass(), member)); 1654Assert.Throws<ArgumentNullException>("owningObject", () => service.SerializeMemberAbsolute(store, null, member)); 1662Assert.Throws<ArgumentNullException>("member", () => service.SerializeMemberAbsolute(store, new DataClass(), null));
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (2)
83Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException("message", (IDesignerSerializationManager)null)); 84Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException(new InvalidOperationException(), (IDesignerSerializationManager)null));
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (12)
73Assert.Throws<ArgumentNullException>("provider", () => new DesignerSerializationManager(null)); 259Assert.Throws<ArgumentNullException>("property", () => iManager.Properties); 262Assert.Throws<ArgumentNullException>("property", () => iManager.Properties); 859Assert.Throws<ArgumentNullException>("name", () => iManager.GetInstance(null)); 958Assert.Throws<ArgumentNullException>("value", () => iManager.GetName(null)); 1147Assert.Throws<ArgumentNullException>("typeName", () => manager.GetRuntimeType(null)); 1292Assert.Throws<ArgumentNullException>("serializerType", () => manager.GetSerializer(objectType, null)); 1413Assert.Throws<ArgumentNullException>("serializerType", () => iManager.GetSerializer(objectType, null)); 1552Assert.Throws<ArgumentNullException>("typeName", () => manager.GetType(null)); 1640Assert.Throws<ArgumentNullException>("typeName", () => iManager.GetType(null)); 1935Assert.Throws<ArgumentNullException>("instance", () => iManager.SetName(null, "name")); 1944Assert.Throws<ArgumentNullException>("name", () => iManager.SetName(new object(), null));
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (3)
46Assert.Throws<ArgumentNullException>("expression", () => new ExpressionContext(null, typeof(int), new object(), new object())); 52Assert.Throws<ArgumentNullException>("expressionType", () => new ExpressionContext(new CodeExpression(), null, new object(), new object())); 58Assert.Throws<ArgumentNullException>("owner", () => new ExpressionContext(new CodeExpression(), typeof(int), null, new object()));
System\ComponentModel\Design\Serialization\RootContextTests.cs (2)
23Assert.Throws<ArgumentNullException>("expression", () => new RootContext(null, new object())); 30Assert.Throws<ArgumentNullException>("value", () => new RootContext(expression, null));
System\ComponentModel\Design\UndoUnitTests.cs (1)
45Assert.Throws<ArgumentNullException>("engine", () => new UndoUnit(null, "name"));
System\Drawing\Design\BitmapEditorTests.cs (1)
97Assert.Throws<ArgumentNullException>("stream", () => editor.LoadFromStream(null));
System\Drawing\Design\ImageEditorTests.cs (2)
51Assert.Throws<ArgumentNullException>("e", () => SubImageEditor.CreateFilterEntry(null)); 153Assert.Throws<ArgumentNullException>("stream", () => editor.LoadFromStream(null));
System\Drawing\Design\MetafileEditorTests.cs (1)
76Assert.Throws<ArgumentNullException>("stream", () => editor.LoadFromStream(null));
System\Drawing\Design\ToolboxItemCollectionTests.cs (2)
22Assert.Throws<ArgumentNullException>("c", () => new ToolboxItemCollection((ToolboxItem[])null)); 40Assert.Throws<ArgumentNullException>("c", () => new ToolboxItemCollection((ToolboxItemCollection)null));
System\Drawing\Design\ToolboxItemTests.cs (5)
305Assert.Throws<ArgumentNullException>("value", () => item.Properties.Add("IsTransient", null)); 1309Assert.Throws<ArgumentNullException>("typeName", () => item.GetType(mockDesignerHost.Object, null, null, false)); 1310Assert.Throws<ArgumentNullException>("typeName", () => item.GetType(null, null, null, false)); 1582Assert.Throws<ArgumentNullException>("value", () => item.ValidatePropertyValue(propertyName, null)); 1607Assert.Throws<ArgumentNullException>("value", () => item.ValidatePropertyType(propertyName, null, expectedType, allowNull: false));
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (12)
29Assert.Throws<ArgumentNullException>( 39Assert.Throws<ArgumentNullException>( 51Assert.Throws<ArgumentNullException>( 61Assert.Throws<ArgumentNullException>( 77Assert.Throws<ArgumentNullException>( 87Assert.Throws<ArgumentNullException>( 99Assert.Throws<ArgumentNullException>( 109Assert.Throws<ArgumentNullException>( 125Assert.Throws<ArgumentNullException>( 135Assert.Throws<ArgumentNullException>( 150Assert.Throws<ArgumentNullException>( 160Assert.Throws<ArgumentNullException>(
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
32action.Should().Throw<ArgumentNullException>();
System\Windows\Forms\Design\EventHandlerServiceTests.cs (3)
24Assert.Throws<ArgumentNullException>(() => service.GetHandler(null)); 92Assert.Throws<ArgumentNullException>(() => service.PopHandler(null)); 150Assert.Throws<ArgumentNullException>(() => service.PushHandler(null));
System\Windows\Forms\Design\FileNameEditorTests.cs (1)
57Assert.Throws<ArgumentNullException>("openFileDialog", () => editor.InitializeDialog(null));
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (3)
27act.Should().Throw<ArgumentNullException>().WithMessage("*manager*"); 34act.Should().Throw<ArgumentNullException>().WithMessage("*codeObject*"); 41act.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 (586)
BindingNavigatorTests.cs (2)
43ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => new BindingNavigator(nullContainer));
ContextMenuStripTests.cs (2)
27ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => new ContextMenuStrip(nullContainer));
MaskedTextBoxTests.cs (1)
222.Should().Throw<ArgumentNullException>();
misc\CollectionHelperTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => source.HashtableCopyTo(target: null, index: 0));
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
35AssertExtensions.Throws<ArgumentNullException>("graphics", () => new PaintValueEventArgs(null, new object(), null, Rectangle.Empty));
System\Drawing\Design\PropertyValueUIItemTests.cs (2)
31Assert.Throws<ArgumentNullException>("uiItemImage", () => new PropertyValueUIItem(null, Dummy_PropertyValueUIItemInvokeHandler, "tooltip")); 38Assert.Throws<ArgumentNullException>("handler", () => new PropertyValueUIItem(uiItemImage, null, "tooltip"));
System\Drawing\Design\UITypeEditorTests.cs (1)
145Assert.Throws<ArgumentNullException>("graphics", () => editor.PaintValue(new object(), null, Rectangle.Empty));
System\Resources\ResXResourceWriterTests.cs (1)
277Assert.Throws<ArgumentNullException>(() =>
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (3)
17Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(null, new ItemArray.Entry("A"), accessibleObject); }); 27Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(checkedListBox, null, accessibleObject); }); 36Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(checkedListBox, new ItemArray.Entry("A"), null); });
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new ListViewColumnHeaderAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (1)
11Assert.Throws<ArgumentNullException>(() => new ComboBox.ChildAccessibleObject(null, IntPtr.Zero));
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
120Assert.Throws<ArgumentNullException>("ownerControl", () => new Control.ControlAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
23Assert.Throws<ArgumentNullException>(() => new DataGridViewTextBoxEditingControlAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
17Assert.Throws<ArgumentNullException>(() => new ScrollBarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (1)
163action.Should().Throw<ArgumentNullException>();
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (2)
18Assert.Throws<ArgumentNullException>(() => new LinkAccessibleObject(link: null, linkLabel)); 24Assert.Throws<ArgumentNullException>(() => new LinkAccessibleObject(new Link(), owner: null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new SubListViewItemBaseAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new ListViewItemDetailsAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemListAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new ListViewItemListAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemTileAccessibleObjectTests.cs (1)
13Assert.Throws<ArgumentNullException>(() => new ListViewItemTileAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (4)
125Assert.Throws<ArgumentNullException>(() => new ListViewLabelEditAccessibleObject(null, labelEdit)); 131Assert.Throws<ArgumentNullException>(() => new ListViewLabelEditNativeWindow(null)); 140Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(null, labelEdit, labelEdit.AccessibilityObject)); 149Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(listView, labelEdit, null));
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => new MonthCalendarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarChildAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new SubObject(null));
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>("ownerControl", () => new Panel.PanelAccessibleObject(owner: null));
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (1)
14Assert.Throws<ArgumentNullException>("ownerControl", () => new PictureBox.PictureBoxAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
30Assert.Throws<ArgumentNullException>(() => new PropertyGridViewAccessibleObject(null, null));
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new RadioButtonAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => new ScrollBar.ScrollBarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (1)
14Assert.Throws<ArgumentNullException>("ownerControl", () => new Splitter.SplitterAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => new ToolStripControlHostAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (1)
13Assert.Throws<ArgumentNullException>(() => new ToolStripDropDownItemAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
39Assert.Throws<ArgumentNullException>("ownerItem", () => new ToolStripItem.ToolStripItemAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => new ToolStripSplitButtonExAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
514Assert.Throws<ArgumentNullException>(() => new TrackBar.TrackBarAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (1)
15Assert.Throws<ArgumentNullException>(() => new SubTrackBarChildAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
31Assert.Throws<ArgumentNullException>(() => new TreeNodeAccessibleObject(null, control)); 40Assert.Throws<ArgumentNullException>(() => new TreeNodeAccessibleObject(node, null));
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
25Assert.Throws<ArgumentNullException>(() => new TreeViewAccessibleObject(null));
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (4)
124Assert.Throws<ArgumentNullException>(() => new TreeViewLabelEditAccessibleObject(null, labelEdit)); 130Assert.Throws<ArgumentNullException>(() => new TreeViewLabelEditNativeWindow(null)); 139Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(null, labelEdit, labelEdit.AccessibilityObject)); 148Assert.Throws<ArgumentNullException>(() => new LabelEditUiaTextProvider(treeView, labelEdit, null));
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (2)
26Assert.Throws<ArgumentNullException>(() => new UpDownBase.UpDownEdit.UpDownEditAccessibleObject(upDownEdit, null)); 33Assert.Throws<ArgumentNullException>(() => new UpDownBase.UpDownEdit.UpDownEditAccessibleObject(null, upDown));
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
16Assert.Throws<ArgumentNullException>(() => new ScrollBarAccessibleObject(null));
System\Windows\Forms\ApplicationTests.cs (2)
72Assert.Throws<ArgumentNullException>("value", () => Application.CurrentCulture = null); 241Assert.Throws<ArgumentNullException>("font", () => Application.SetDefaultFont(null));
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (2)
35Assert.Throws<ArgumentNullException>("value", () => collection.AddRange(null)); 50Assert.Throws<ArgumentNullException>("value", () => collection.AddRange(null!));
System\Windows\Forms\AxHostTests.cs (2)
216Assert.Throws<ArgumentNullException>("g", () => new SubAxHost(null)); 217Assert.Throws<ArgumentNullException>("g", () => new SubAxHost(null, 0));
System\Windows\Forms\BindingContextTests.cs (15)
61Assert.Throws<ArgumentNullException>("dataSource", () => context.Add(null, source.CurrencyManager)); 106Assert.Throws<ArgumentNullException>("listManager", () => context.Add(1, null)); 152Assert.Throws<ArgumentNullException>("dataSource", () => context.AddCore(null, source.CurrencyManager)); 159Assert.Throws<ArgumentNullException>("listManager", () => context.AddCore(1, null)); 266Assert.Throws<ArgumentNullException>("dataSource", () => context.Remove(null)); 299Assert.Throws<ArgumentNullException>("dataSource", () => context.RemoveCore(null)); 396Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null)); 397Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, null)); 398Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, string.Empty)); 470Assert.Throws<ArgumentNullException>("dataSource", () => context[mockIListSource.Object]); 682Assert.Throws<ArgumentNullException>("dataSource", () => context[dataSource, "Property"]); 734Assert.Throws<ArgumentNullException>("dataSource", () => context[null]); 735Assert.Throws<ArgumentNullException>("dataSource", () => context[null, null]); 736Assert.Throws<ArgumentNullException>("dataSource", () => context[null, string.Empty]); 1015Assert.Throws<ArgumentNullException>("binding", () => BindingContext.UpdateBinding([], null));
System\Windows\Forms\BindingManagerBaseTests.cs (2)
34Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 105Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Remove(null));
System\Windows\Forms\BindingsCollectionTests.cs (2)
84Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 150Assert.Throws<ArgumentNullException>("dataBinding", () => collection.AddCore(null));
System\Windows\Forms\BindingSourceTests.cs (1)
524Assert.Throws<ArgumentNullException>("container", () => new SubBindingSource(null));
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
28Assert.Throws<ArgumentNullException>("owner", () => { new CheckedListBox.CheckedIndexCollection(null); });
System\Windows\Forms\ClipboardTests.cs (8)
193action.Should().Throw<ArgumentNullException>().WithParameterName("audioBytes"); 225action.Should().Throw<ArgumentNullException>().WithParameterName("audioStream"); 347action.Should().Throw<ArgumentNullException>().WithParameterName("data"); 417action.Should().Throw<ArgumentNullException>().WithParameterName("filePaths"); 499action.Should().Throw<ArgumentNullException>().WithParameterName("image"); 516action.Should().Throw<ArgumentNullException>().WithParameterName("text"); 518action.Should().Throw<ArgumentNullException>().WithParameterName("text"); 1185clipboardSet.Should().Throw<ArgumentNullException>();
System\Windows\Forms\ColumnHeaderCollectionTests.cs (5)
22Assert.Throws<ArgumentNullException>("owner", () => new ListView.ColumnHeaderCollection(null)); 318Assert.Throws<ArgumentNullException>("ch", () => collection.Add((ColumnHeader)null)); 418Assert.Throws<ArgumentNullException>("values", () => collection.AddRange(null)); 426Assert.Throws<ArgumentNullException>("values", () => collection.AddRange([null])); 821Assert.Throws<ArgumentNullException>("ch", () => collection.Insert(1, (ColumnHeader)null));
System\Windows\Forms\ColumnHeaderConverterTests.cs (1)
123Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
35Assert.Throws<ArgumentNullException>(() => new ComboBox.ComboBoxUiaTextProvider(null));
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (6)
95Assert.Throws<ArgumentNullException>("item", () => comboBoxObjectCollection.Add(null)); 375Assert.Throws<ArgumentNullException>("items", () => comboBoxObjectCollection.AddRange(null)); 533Assert.Throws<ArgumentNullException>("destination", () => comboBoxObjectCollection.CopyTo(null, 1)); 771Assert.Throws<ArgumentNullException>("item", () => comboBoxObjectCollection.Insert(0, null)); 1141Assert.Throws<ArgumentNullException>("value", () => comboBoxObjectCollection.SetItemInternal(0, null)); 1318Assert.Throws<ArgumentNullException>("value", () => comboBoxObjectCollection[0] = null);
System\Windows\Forms\ControlBindingsCollectionTests.cs (8)
228Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember")); 229Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true)); 230Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged)); 231Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null")); 232Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString")); 233Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture)); 272Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 343Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Remove(null));
System\Windows\Forms\ControlPaintTests.cs (40)
82Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmap16Bit(null, Color.Red)); 193Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmapColorMask(null, IntPtr.Zero)); 261Assert.Throws<ArgumentNullException>("bitmap", () => ControlPaint.CreateHBitmapTransparencyMask(null)); 675Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, style)); 683Assert.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)); 802Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4))); 803Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4), style)); 804Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4), style, Border3DSide.All)); 805Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4)); 806Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4, style)); 807Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4, style, Border3DSide.All)); 850Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, new Rectangle(1, 2, 3, 4), state)); 851Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, 1, 2, 3, 4, state)); 934Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCaptionButton(null, new Rectangle(1, 2, 3, 4), CaptionButton.Close, state)); 935Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCaptionButton(null, 1, 2, 3, 4, CaptionButton.Close, state)); 1014Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCheckBox(null, new Rectangle(1, 2, 3, 4), state)); 1015Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCheckBox(null, 1, 2, 3, 4, state)); 1095Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawComboButton(null, new Rectangle(1, 2, 3, 4), state)); 1096Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawComboButton(null, 1, 2, 3, 4, state)); 1160Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawContainerGrabHandle(null, new Rectangle(1, 2, 3, 4))); 1219Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4))); 1220Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue)); 1258Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrabHandle(null, new Rectangle(1, 2, 3, 4), primary, enabled)); 1291Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrid(null, new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Red)); 1341Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawImageDisabled(null, image, 0, 0, Color.Red)); 1382Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawLockedFrame(null, new Rectangle(1, 2, 3, 4), primary)); 1470Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMenuGlyph(null, new Rectangle(1, 2, 3, 4), glyph)); 1471Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMenuGlyph(null, 1, 2, 3, 4, glyph)); 1556Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, new Rectangle(1, 2, 3, 4), state)); 1557Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, 1, 2, 3, 4, state)); 1636Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawRadioButton(null, new Rectangle(1, 2, 3, 4), state)); 1637Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawRadioButton(null, 1, 2, 3, 4, state)); 1774Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, new Rectangle(1, 2, 3, 4), ScrollButton.Up, state)); 1775Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, 1, 2, 3, 4, ScrollButton.Up, state)); 1847Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSelectionFrame(null, active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.Red)); 1892Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, new Rectangle(1, 2, 3, 4))); 1893Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, 1, 2, 3, 4)); 1941Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat())); 1977Assert.Throws<ArgumentNullException>("dc", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default)); 2005Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawVisualStyleBorder(null, new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\ControlTests.ControlCollection.cs (5)
28Assert.Throws<ArgumentNullException>("owner", () => new Control.ControlCollection(null)); 1279Assert.Throws<ArgumentNullException>("controls", () => collection.AddRange(null)); 1516Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 1517Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false)); 3413Assert.Throws<ArgumentNullException>("child", () => collection.SetChildIndex(null, 0));
System\Windows\Forms\ControlTests.Handlers.cs (2)
4170Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null)); 4771Assert.Throws<ArgumentNullException>("e", () => control.OnPrint(null));
System\Windows\Forms\ControlTests.Methods.cs (4)
1818dragDrop.Should().Throw<ArgumentNullException>("data"); 1826dragDrop.Should().Throw<ArgumentNullException>("data"); 1881Assert.Throws<ArgumentNullException>("bitmap", () => control.DrawToBitmap(null, new Rectangle(1, 2, 3, 4))); 4329Assert.Throws<ArgumentNullException>(() => control.InvokePaintBackground(otherControl, null));
System\Windows\Forms\CursorConverterTests.cs (1)
169Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\CursorTests.cs (6)
92Assert.Throws<ArgumentNullException>("stream", () => new Cursor((Stream)null)); 128Assert.Throws<ArgumentNullException>("path", () => new Cursor((string)null)); 165Assert.Throws<ArgumentNullException>("type", () => new Cursor((Type)null, "resource")); 174Assert.Throws<ArgumentNullException>("stream", () => new Cursor(type, resource)); 398Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new Rectangle(Point.Empty, cursor.Size))); 435Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new Rectangle(Point.Empty, cursor.Size)));
System\Windows\Forms\DataFormatsTests.cs (1)
109Assert.Throws<ArgumentNullException>("format", () => DataFormats.GetFormat(null));
System\Windows\Forms\DataGridView.DataGridViewControlCollectionTests.cs (1)
22Assert.Throws<ArgumentNullException>("owner", () => new DataGridView.DataGridViewControlCollection(null));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
47Assert.Throws<ArgumentNullException>("e", () => new DataGridViewCellMouseEventArgs(1, 2, 1, 2, null));
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (6)
46Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewCellPaintingEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All)); 53Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewCellPaintingEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All)); 62Assert.Throws<ArgumentNullException>("cellStyle", () => new DataGridViewCellPaintingEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, null, null, DataGridViewPaintParts.All)); 96Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None)); 146Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.PaintBackground(new Rectangle(1, 2, 3, 4), true)); 196Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.PaintContent(new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellStateChangedEventArgsTests.cs (1)
23Assert.Throws<ArgumentNullException>("dataGridViewCell", () => new DataGridViewCellStateChangedEventArgs(null, DataGridViewElementStates.None));
System\Windows\Forms\DataGridViewCellStyleTests.cs (2)
105Assert.Throws<ArgumentNullException>("dataGridViewCellStyle", () => new DataGridViewCellStyle(null)); 701Assert.Throws<ArgumentNullException>("dataGridViewCellStyle", () => style.ApplyStyle(null));
System\Windows\Forms\DataGridViewCellTests.cs (17)
3109Assert.Throws<ArgumentNullException>("dataGridViewAdvancedBorderStyleInput", () => cell.AdjustCellBorderStyle(null, controlAdvancedBorderStylePlaceholder, true, true, true, true)); 3141Assert.Throws<ArgumentNullException>("dataGridViewAdvancedBorderStylePlaceholder", () => cell.AdjustCellBorderStyle(controlAdvancedBorderStyleInput, null, true, true, true, true)); 3303Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => cell.BorderWidths(null)); 5281Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5282Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default, out widthTruncated)); 5292Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default)); 5293Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default, out widthTruncated)); 5348Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextPreferredSize(null, "text", SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default)); 5356Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", null, 0.2f, TextFormatFlags.Default)); 5404Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextSize(null, "text", SystemFonts.DefaultFont, TextFormatFlags.Default)); 5412Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextSize(graphics, "text", null, TextFormatFlags.Default)); 5450Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextWidth(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5458Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextWidth(graphics, "text", null, 10, TextFormatFlags.Default)); 6036Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintBorder(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle())); 6045Assert.Throws<ArgumentNullException>("cellStyle", () => cell.PaintBorder(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), null, new DataGridViewAdvancedBorderStyle())); 6081Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintErrorIcon(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, cellValueBoundsWidth, cellValueBoundsHeight), errorText)); 6162Assert.Throws<ArgumentNullException>("cellStyle", () => cell.ParseFormattedValue(1, null, new Int32Converter(), new Int32Converter()));
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (1)
330Assert.Throws<ArgumentNullException>("dataGridViewColumn", () => collection.Add(null));
System\Windows\Forms\DataGridViewColumnConverterTests.cs (1)
57action.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (1)
40Assert.Throws<ArgumentNullException>("e", () => new DataGridViewColumnDividerDoubleClickEventArgs(1, null));
System\Windows\Forms\DataGridViewColumnEventArgsTests.cs (1)
20Assert.Throws<ArgumentNullException>("dataGridViewColumn", () => new DataGridViewColumnEventArgs(null));
System\Windows\Forms\DataGridViewColumnStateChangedEventArgsTests.cs (1)
21Assert.Throws<ArgumentNullException>(() => new DataGridViewColumnStateChangedEventArgs(null, DataGridViewElementStates.Displayed));
System\Windows\Forms\DataGridViewComboBoxCell.ObjectCollectionTests.cs (6)
70action.Should().Throw<ArgumentNullException>(); 165action.Should().Throw<ArgumentNullException>(); 198action.Should().Throw<ArgumentNullException>(); 219actionNullDestination.Should().Throw<ArgumentNullException>(); 277action.Should().Throw<ArgumentNullException>(); 313actionNullItem.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DataGridViewEditingControlShowingEventArgsTests.cs (2)
19Assert.Throws<ArgumentNullException>(() => new DataGridViewEditingControlShowingEventArgs(control, cellStyle)); 37Assert.Throws<ArgumentNullException>("value", () => e.CellStyle = null);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4620Assert.Throws<ArgumentNullException>("cellStyle", () => cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null, DataGridViewPaintParts.All));
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (2)
33Assert.Throws<ArgumentNullException>("e", () => new DataGridViewRowDividerDoubleClickEventArgs(-2, null)); 40Assert.Throws<ArgumentNullException>("e", () => new DataGridViewRowDividerDoubleClickEventArgs(1, null));
System\Windows\Forms\DataGridViewRowEventArgsTests.cs (1)
20Assert.Throws<ArgumentNullException>("dataGridViewRow", () => new DataGridViewRowEventArgs(null));
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (3)
42Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPostPaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 49Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPostPaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 58Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPostPaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false));
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (3)
43Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPrePaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 50Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPrePaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 59Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPrePaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false));
System\Windows\Forms\DataGridViewRowTests.cs (24)
4111Assert.Throws<ArgumentNullException>("dataGridView", () => row.CreateCells(null)); 4112Assert.Throws<ArgumentNullException>("dataGridView", () => row.CreateCells(null, Array.Empty<object>())); 4145Assert.Throws<ArgumentNullException>("values", () => row.CreateCells(control, null)); 4229Assert.Throws<ArgumentNullException>("graphics", () => row.DrawFocus(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, new DataGridViewCellStyle(), true)); 4245Assert.Throws<ArgumentNullException>("cellStyle", () => row.DrawFocus(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, null, true)); 4857Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4861Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4866Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4927Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4931Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4935Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4940Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4955Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, Rectangle.Empty, 1, DataGridViewElementStates.None, true, true)); 4969Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true)); 4983Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true)); 5250Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5264Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5278Assert.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)); 5292Assert.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)); 5571Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5586Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5601Assert.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)); 5616Assert.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)); 5725Assert.Throws<ArgumentNullException>("values", () => row.SetValues(null));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
969Assert.Throws<ArgumentNullException>("dataGridViewCellStyle", () => control.ApplyCellStyleToEditingControl(null));
System\Windows\Forms\DataObjectExtensionsTests.cs (6)
19tryGetData1.Should().Throw<ArgumentNullException>(); 21tryGetData2.Should().Throw<ArgumentNullException>(); 23tryGetData3.Should().Throw<ArgumentNullException>(); 25tryGetData4.Should().Throw<ArgumentNullException>(); 27tryGetData5.Should().Throw<ArgumentNullException>(); 29tryGetData6.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DataObjectTests.cs (12)
1097action.Should().Throw<ArgumentNullException>().WithParameterName("audioBytes"); 1155action.Should().Throw<ArgumentNullException>().WithParameterName("audioStream"); 1238((Action)(() => dataObject.SetData(null))).Should().Throw<ArgumentNullException>().WithParameterName("data"); 1568.Throw<ArgumentNullException>().WithParameterName("format"); 1570.Throw<ArgumentNullException>().WithParameterName("format"); 1572.Throw<ArgumentNullException>().WithParameterName("format"); 1574.Throw<ArgumentNullException>().WithParameterName("format"); 1664action.Should().Throw<ArgumentNullException>().WithParameterName("filePaths"); 1726action.Should().Throw<ArgumentNullException>().WithParameterName("image"); 1899.Throw<ArgumentNullException>().WithParameterName("textData"); 1901.Throw<ArgumentNullException>().WithParameterName("textData"); 3091dataObjectSet.Should().Throw<ArgumentNullException>();
System\Windows\Forms\DragDropHelperTests.cs (6)
74Assert.Throws<ArgumentNullException>(nameof(dataObject), () => DragDropHelper.IsInDragLoop(dataObject)); 81Assert.Throws<ArgumentNullException>(nameof(dataObject), () => DragDropHelper.IsInDragLoop(dataObject)); 175Assert.Throws<ArgumentNullException>(nameof(dataObject), 183Assert.Throws<ArgumentNullException>(nameof(e), () => DragDropHelper.SetDragImage(new DataObject(), e)); 266Assert.Throws<ArgumentNullException>(nameof(dataObject), 343Assert.Throws<ArgumentNullException>(nameof(dataObject), () => DragDropHelper.SetInDragLoop(dataObject, true));
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
65Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None)); 66Assert.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)
40Assert.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)
38Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewItemEventArgs(null, new ListViewItem(), new Rectangle(1, 2, 3, 4), 0, ListViewItemStates.Default)); 46Assert.Throws<ArgumentNullException>("item", () => new DrawListViewItemEventArgs(graphics, null, new Rectangle(1, 2, 3, 4), 0, ListViewItemStates.Default));
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (3)
41Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 49Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 59Assert.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)
59Assert.Throws<ArgumentNullException>("parentControl", () => new ErrorProvider((ContainerControl)null)); 86Assert.Throws<ArgumentNullException>("container", () => new ErrorProvider((IContainer)null)); 585Assert.Throws<ArgumentNullException>("value", () => provider.Icon = null); 964Assert.Throws<ArgumentNullException>("control", () => provider.GetError(null)); 982Assert.Throws<ArgumentNullException>("control", () => provider.GetIconAlignment(null)); 1000Assert.Throws<ArgumentNullException>("control", () => provider.GetIconPadding(null)); 1064Assert.Throws<ArgumentNullException>("control", () => provider.SetError(null, value)); 1088Assert.Throws<ArgumentNullException>("control", () => provider.SetIconAlignment(null, value)); 1119Assert.Throws<ArgumentNullException>("control", () => provider.SetIconPadding(null, 0));
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
259Assert.Throws<ArgumentNullException>("control", () => control.GetFlowBreak(null)); 417Assert.Throws<ArgumentNullException>("control", () => control.SetFlowBreak(null, value));
System\Windows\Forms\FlowLayoutSettingsTests.cs (2)
111Assert.Throws<ArgumentNullException>("child", () => settings.GetFlowBreak(null)); 237Assert.Throws<ArgumentNullException>("child", () => settings.SetFlowBreak(null, value));
System\Windows\Forms\Form.ControlCollectionTests.cs (1)
22Assert.Throws<ArgumentNullException>("owner", () => new Form.ControlCollection(null));
System\Windows\Forms\GroupBoxTests.cs (1)
1944Assert.Throws<ArgumentNullException>(() => control.OnPaint(null));
System\Windows\Forms\HelpProviderTests.cs (10)
97Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpKeyword(null)); 111Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpNavigator(null)); 125Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpString(null)); 139Assert.Throws<ArgumentNullException>("ctl", () => provider.GetShowHelp(null)); 168Assert.Throws<ArgumentNullException>("ctl", () => provider.ResetShowHelp(null)); 280Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpKeyword(null, "keyword")); 342Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpNavigator(null, navigator)); 416Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpString(null, "keyword")); 483Assert.Throws<ArgumentNullException>("ctl", () => provider.SetShowHelp(null, true)); 497Assert.Throws<ArgumentNullException>("ctl", () => provider.ShouldSerializeShowHelp(null));
System\Windows\Forms\ImageList.ImageCollectionTests.cs (7)
328Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 793Assert.Throws<ArgumentNullException>("value", () => collection.Add((Image)null)); 794Assert.Throws<ArgumentNullException>("value", () => collection.Add(null, Color.Transparent)); 796Assert.Throws<ArgumentNullException>("value", () => collection.Add((Icon)null)); 866Assert.Throws<ArgumentNullException>("images", () => collection.AddRange(null)); 874Assert.Throws<ArgumentNullException>("value", () => collection.AddRange([null])); 941Assert.Throws<ArgumentNullException>("value", () => collection.AddStrip(null));
System\Windows\Forms\ImageListTests.cs (1)
51Assert.Throws<ArgumentNullException>("container", () => new ImageList(null));
System\Windows\Forms\InputLanguageChangedEventArgsTests.cs (2)
30Assert.Throws<ArgumentNullException>("culture", () => new InputLanguageChangedEventArgs((CultureInfo)null, 0)); 71Assert.Throws<ArgumentNullException>("inputLanguage", () => new InputLanguageChangedEventArgs((InputLanguage)null, 0));
System\Windows\Forms\InputLanguageChangingEventArgsTests.cs (2)
31Assert.Throws<ArgumentNullException>("culture", () => new InputLanguageChangingEventArgs((CultureInfo)null, true)); 72Assert.Throws<ArgumentNullException>("inputLanguage", () => new InputLanguageChangingEventArgs((InputLanguage)null, true));
System\Windows\Forms\InputLanguageTests.cs (1)
103Assert.Throws<ArgumentNullException>("culture", () => InputLanguage.FromCulture(null));
System\Windows\Forms\ItemCheckedEventArgsTests.cs (1)
12Assert.Throws<ArgumentNullException>(() => new ItemCheckedEventArgs(null));
System\Windows\Forms\Layout\FlowLayoutTests.cs (2)
32Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All)); 289Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\Layout\LayoutEngineTests.cs (2)
28Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All)); 49Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (21)
179Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 187Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 269Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null)); 277Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null)); 320Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 328Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 370Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null)); 378Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null)); 420Assert.Throws<ArgumentNullException>("control", () => settings.GetRowSpan(null)); 428Assert.Throws<ArgumentNullException>("control", () => settings.GetRowSpan(null)); 648Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default)); 656Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default)); 870Assert.Throws<ArgumentNullException>("control", () => settings.SetColumn(null, value)); 880Assert.Throws<ArgumentNullException>("control", () => settings.SetColumn(null, value)); 1101Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, value)); 1111Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, value)); 1112Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 1346Assert.Throws<ArgumentNullException>("control", () => settings.SetRow(null, value)); 1356Assert.Throws<ArgumentNullException>("control", () => settings.SetRow(null, value)); 1577Assert.Throws<ArgumentNullException>("control", () => settings.SetRowSpan(null, value)); 1587Assert.Throws<ArgumentNullException>("control", () => settings.SetRowSpan(null, value));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
250Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, 1)); 288Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\LinkAreaConverterTests.cs (2)
94Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null)); 130Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(null, null));
System\Windows\Forms\LinkConverterTests.cs (1)
103Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (5)
22Assert.Throws<ArgumentNullException>("owner", () => new ListBox.IntegerCollection(null)); 748Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((int[])null)); 749Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((ListBox.IntegerCollection)null)); 1045Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 1056Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0));
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (24)
49Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null)); 50Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null, new ListBox.ObjectCollection(owner))); 51Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null, Array.Empty<object>())); 78Assert.Throws<ArgumentNullException>("value", () => new ListBox.ObjectCollection(owner, (object[])null)); 79Assert.Throws<ArgumentNullException>("value", () => new ListBox.ObjectCollection(owner, (ListBox.ObjectCollection)null)); 1253Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 1268Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 2184Assert.Throws<ArgumentNullException>("item", () => collection.Add(null)); 3648Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((object[])null)); 3649Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((ListBox.ObjectCollection)null)); 3657Assert.Throws<ArgumentNullException>("item", () => collection.AddRange((object[])[null])); 3978Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null)); 4010Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 4021Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 4116Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null)); 5022Assert.Throws<ArgumentNullException>("item", () => collection.Insert(0, null)); 8058Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 8073Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 8989Assert.Throws<ArgumentNullException>("item", () => collection.Add(null)); 9300Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null)); 9332Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 9343Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0)); 9438Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null)); 10344Assert.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)
23Assert.Throws<ArgumentNullException>("owner", () => new ListBox.SelectedObjectCollection(null));
System\Windows\Forms\ListBoxTests.cs (2)
6063Assert.Throws<ArgumentNullException>("value", () => control.SetItemsCore(null)); 6073Assert.Throws<ArgumentNullException>("value", () => control.SetItemsCore(null));
System\Windows\Forms\ListControlTests.cs (1)
2067Assert.Throws<ArgumentNullException>("key", () => control.SelectedValue = null);
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (1)
11Assert.Throws<ArgumentNullException>("owner", () => { new ListView.CheckedIndexCollection(null); });
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (1)
11Assert.Throws<ArgumentNullException>("owner", () => { new ListView.CheckedListViewItemCollection(null); });
System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (2)
98Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllSubItems: true)); 99Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllSubItems: false));
System\Windows\Forms\ListView.SelectedListViewItemCollectionTests.cs (1)
11Assert.Throws<ArgumentNullException>("owner", () => { new ListView.SelectedListViewItemCollection(null); });
System\Windows\Forms\ListViewGroupCollectionTests.cs (7)
175Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 364Assert.Throws<ArgumentNullException>("value", () => collection["key"] = null); 480Assert.Throws<ArgumentNullException>("group", () => collection.Add(null)); 578Assert.Throws<ArgumentNullException>("groups", () => collection.AddRange((ListViewGroup[])null)); 579Assert.Throws<ArgumentNullException>("groups", () => collection.AddRange((ListViewGroupCollection)null)); 588Assert.Throws<ArgumentNullException>("group", () => collection.AddRange((ListViewGroup[])[group, null])); 864Assert.Throws<ArgumentNullException>("group", () => collection.Insert(index, null));
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
221Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ListViewGroupTests.cs (1)
1422Assert.Throws<ArgumentNullException>("info", () => iSerializable.GetObjectData(null, context));
System\Windows\Forms\ListViewItemConverterTests.cs (1)
276Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\ListViewItemTests.cs (8)
831Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey")); 832Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 1)); 833Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey", new ListViewGroup())); 834Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 0, new ListViewGroup())); 841Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey")); 842Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1)); 843Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey", new ListViewGroup())); 844Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1, new ListViewGroup()));
System\Windows\Forms\ListViewSubItemCollectionTests.cs (7)
23Assert.Throws<ArgumentNullException>("owner", () => new ListViewItem.ListViewSubItemCollection(null)); 97Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 284Assert.Throws<ArgumentNullException>("item", () => collection.Add((ListViewItem.ListViewSubItem)null)); 417Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((ListViewItem.ListViewSubItem[])null)); 418Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null)); 419Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.Blue, SystemFonts.MenuFont)); 652Assert.Throws<ArgumentNullException>("item", () => collection.Insert(1, null));
System\Windows\Forms\ListViewSubItemConverterTests.cs (1)
89Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\MdiClient.ControlCollectionTests.cs (1)
22Assert.Throws<ArgumentNullException>("owner", () => new MdiClient.ControlCollection(null));
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (1)
34/// <exception cref="ArgumentNullException"></exception>
System\Windows\Forms\NotifyIconTests.cs (1)
48Assert.Throws<ArgumentNullException>("container", () => new NotifyIcon(null));
System\Windows\Forms\OpacityConverterTests.cs (1)
96Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\PaddingConverterTests.cs (2)
106Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null)); 178Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object, null));
System\Windows\Forms\PaintEventArgsTests.cs (1)
33Assert.Throws<ArgumentNullException>("graphics", () => new PaintEventArgs((Graphics)null, new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (1)
28Assert.Throws<ArgumentNullException>(() => new PrintPreviewControlAccessibleObject(null));
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
32Assert.Throws<ArgumentNullException>(() =>
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
26Assert.Throws<ArgumentNullException>(() =>
System\Windows\Forms\PropertyGridTests.cs (1)
2387Assert.Throws<ArgumentNullException>("items", () => control.SelectedGridItem = null);
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (1)
22Assert.Throws<ArgumentNullException>("owner", () => new ReadOnlyControlCollection(null, false));
System\Windows\Forms\RichTextBoxTests.cs (35)
8431Assert.Throws<ArgumentNullException>("str", () => control.Find((string)null)); 8432Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8433Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8434Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None)); 8436Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8437Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8438Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, 0, RichTextBoxFinds.None)); 8439Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8449Assert.Throws<ArgumentNullException>("str", () => control.Find((string)null)); 8450Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8451Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8452Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None)); 8454Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8455Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8456Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, 0, RichTextBoxFinds.None)); 8457Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8464Assert.Throws<ArgumentNullException>("characterSet", () => control.Find((char[])null)); 8465Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0)); 8466Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1)); 8467Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1)); 8468Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8469Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8470Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1, 0)); 8471Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8481Assert.Throws<ArgumentNullException>("characterSet", () => control.Find((char[])null)); 8482Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0)); 8483Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1)); 8484Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2)); 8485Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8486Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8487Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2, 0)); 8488Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8760Assert.Throws<ArgumentNullException>("data", () => control.LoadFile((Stream)null, RichTextBoxStreamType.RichText));
System\Windows\Forms\ScreenTests.cs (3)
85Assert.Throws<ArgumentNullException>("control", () => Screen.FromControl(null)); 166Assert.Throws<ArgumentNullException>("control", () => Screen.GetBounds(null)); 196Assert.Throws<ArgumentNullException>("control", () => Screen.GetWorkingArea(null));
System\Windows\Forms\ScrollableControlTests.cs (1)
1886Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
System\Windows\Forms\SplitContainer.SplitContainerTypedControlCollectionTests.cs (1)
22Assert.Throws<ArgumentNullException>("owner", () => new SplitContainer.SplitContainerTypedControlCollection(null, typeof(SplitterPanel), false));
System\Windows\Forms\StatusStripTests.cs (1)
1244Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
System\Windows\Forms\TabControl.ControlCollectionTests.cs (2)
26Assert.Throws<ArgumentNullException>("owner", () => new TabControl.ControlCollection(null)); 884Assert.Throws<ArgumentNullException>(() => collection.Add(null));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (11)
883Assert.Throws<ArgumentNullException>("value", () => collection.Add((TabPage)null)); 1161Assert.Throws<ArgumentNullException>("pages", () => collection.AddRange(null)); 1181Assert.Throws<ArgumentNullException>("owner", () => new TabControl.TabPageCollection(null)); 1222Assert.Throws<ArgumentNullException>("destinationArray", () => iList.CopyTo(null, 0)); 1276Assert.Throws<ArgumentNullException>("sourceArray", () => iList.CopyTo(array, 1)); 1571Assert.Throws<ArgumentNullException>("page", () => collection.Contains(null)); 1876Assert.Throws<ArgumentNullException>("page", () => collection.IndexOf(null)); 2907Assert.Throws<ArgumentNullException>("tabPage", () => collection.Insert(0, (TabPage)null)); 3671Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 3683Assert.Throws<ArgumentNullException>("value", () => collection[0] = null); 4691Assert.Throws<ArgumentNullException>("value", () => collection.Remove(null));
System\Windows\Forms\TabControlTests.cs (9)
3365Assert.Throws<ArgumentNullException>("tabPageName", () => control.DeselectTab((string)null)); 3374Assert.Throws<ArgumentNullException>("tabPage", () => control.DeselectTab(tabPageName)); 3387Assert.Throws<ArgumentNullException>("tabPage", () => control.DeselectTab(tabPageName)); 3895Assert.Throws<ArgumentNullException>("elementType", () => control.GetItems(null)); 3980Assert.Throws<ArgumentNullException>("item", () => control.GetToolTipText(null)); 5323Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab((TabPage)null)); 5490Assert.Throws<ArgumentNullException>("tabPageName", () => control.SelectTab((string)null)); 5499Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab(tabPageName)); 5513Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab(tabPageName));
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
37Assert.Throws<ArgumentNullException>("graphics", () => new TableLayoutCellPaintEventArgs(
System\Windows\Forms\TableLayoutControlCollectionTests.cs (2)
21Assert.Throws<ArgumentNullException>("container", () => new TableLayoutControlCollection(null)); 68Assert.Throws<ArgumentNullException>("control", () => collection.Add(null, 1, 2));
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (2)
185Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null)); 220Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(null, null));
System\Windows\Forms\TableLayoutPanelTests.cs (11)
655Assert.Throws<ArgumentNullException>("control", () => control.GetCellPosition(null)); 688Assert.Throws<ArgumentNullException>("control", () => control.GetColumn(null)); 703Assert.Throws<ArgumentNullException>("control", () => control.GetColumnSpan(null)); 941Assert.Throws<ArgumentNullException>("control", () => control.GetRow(null)); 1149Assert.Throws<ArgumentNullException>("control", () => control.GetRowSpan(null)); 1539Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null)); 1655Assert.Throws<ArgumentNullException>("control", () => control.SetCellPosition(null, default)); 1761Assert.Throws<ArgumentNullException>("control", () => control.SetColumn(null, 1)); 1873Assert.Throws<ArgumentNullException>("control", () => control.SetColumnSpan(null, value)); 1988Assert.Throws<ArgumentNullException>("control", () => control.SetRow(null, 1)); 2099Assert.Throws<ArgumentNullException>("control", () => control.SetRowSpan(null, value));
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (5)
53Assert.Throws<ArgumentNullException>("style", () => collection.Add(null)); 54Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Add(null)); 98Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Insert(index, null)); 158Assert.Throws<ArgumentNullException>("value", () => collection[index] = null); 159Assert.Throws<ArgumentNullException>("value", () => ((IList)collection)[index] = null);
System\Windows\Forms\TableLayoutStyleTests.cs (1)
156Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new object(), null));
System\Windows\Forms\TabPageTests.cs (1)
4254Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (1)
21Assert.Throws<ArgumentNullException>("owner", () => new TabPage.TabPageControlCollection(null));
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
27Assert.Throws<ArgumentNullException>(() => new TextBoxBaseUiaTextProvider(null));
System\Windows\Forms\TextRendererTests.cs (4)
391Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.DrawText(null, "text", SystemFonts.MenuFont, Point.Empty, Color.Red)); 564Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont)); 565Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400))); 566Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\TimerTests.cs (1)
39Assert.Throws<ArgumentNullException>("container", () => new Timer(null));
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (1)
14Assert.Throws<ArgumentNullException>(() => new ToolStripArrowRenderEventArgs(null, toolStripButton, Rectangle.Empty, Color.Empty, ArrowDirection.Up));
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripContentPanelRenderEventArgs(g, toolStripContentPanel));
System\Windows\Forms\ToolStripControlHostTests.cs (5)
129Assert.Throws<ArgumentNullException>("c", () => new SubToolStripControlHost(null)); 130Assert.Throws<ArgumentNullException>("c", () => new SubToolStripControlHost(null, "name")); 2018Assert.Throws<ArgumentNullException>("service", () => c.Site.GetService(null)); 2121Assert.Throws<ArgumentNullException>("key", () => iDictionaryService.GetValue(null)); 2172Assert.Throws<ArgumentNullException>("key", () => iDictionaryService.SetValue(null, "value"));
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripGripRenderEventArgs(g, toolStrip));
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
101Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 102Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripItemImageRenderEventArgs(g, toolStripItem, Rectangle.Empty));
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripItemRenderEventArgs(g, toolStripItem));
System\Windows\Forms\ToolStripItemTests.cs (1)
10235Assert.Throws<ArgumentNullException>("data", () => item.DoDragDrop(null, DragDropEffects.All));
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
66Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top)); 67Assert.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)
94action.Should().Throw<ArgumentNullException>() 103action.Should().Throw<ArgumentNullException>() 131action.Should().Throw<ArgumentNullException>() 272action.Should().Throw<ArgumentNullException>()
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripPanelRenderEventArgs(g, toolStripPanel));
System\Windows\Forms\ToolStripRendererTests.cs (11)
23Assert.Throws<ArgumentNullException>("normalImage", () => ToolStripRenderer.CreateDisabledImage(null)); 72Assert.Throws<ArgumentNullException>("e", () => renderer.DrawArrow(null)); 232Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemCheck(null)); 265Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemImage(null)); 340Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemText(null)); 513Assert.Throws<ArgumentNullException>("e", () => renderer.DrawStatusStripSizingGrip(null)); 739Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderArrow(null)); 814Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemCheck(null)); 834Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemImage(null)); 856Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemText(null)); 933Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderStatusStripSizingGrip(null));
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripRenderEventArgs(g, toolStrip));
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripSeparatorRenderEventArgs(g, toolStripSeparator, true));
System\Windows\Forms\ToolStripSplitButton.ToolStripSplitButtonUiaProviderTests.cs (1)
13Assert.Throws<ArgumentNullException>(() => new ToolStripSplitButtonUiaProvider(null));
System\Windows\Forms\ToolStripTests.cs (4)
326Assert.Throws<ArgumentNullException>("toolStripItems", () => new ToolStrip(null)); 332Assert.Throws<ArgumentNullException>("value", () => new ToolStrip([null])); 6225Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null)); 7097Assert.Throws<ArgumentNullException>("item", () => control.SetItemLocation(null, Point.Empty));
System\Windows\Forms\ToolTipTests.cs (4)
76Assert.Throws<ArgumentNullException>("cont", () => new ToolTip(null)); 713Assert.Throws<ArgumentNullException>("control", () => toolTip.SetToolTip(null, caption)); 766Assert.Throws<ArgumentNullException>("window", () => toolTip.Show("text", null)); 767Assert.Throws<ArgumentNullException>("window", () => toolTip.Show("text", null, 1));
System\Windows\Forms\TreeNodeCollectionTests.cs (3)
86Assert.Throws<ArgumentNullException>(() => collection[0] = null); 338Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 339Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));
System\Windows\Forms\TreeNodeTests.cs (4)
234Assert.Throws<ArgumentNullException>("nodes", () => new TreeNode("text", null)); 235Assert.Throws<ArgumentNullException>("nodes", () => new TreeNode("text", 0, 0, null)); 241Assert.Throws<ArgumentNullException>("node", () => new TreeNode("text", [null])); 242Assert.Throws<ArgumentNullException>("node", () => new TreeNode("text", 0, 0, [null]));
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (1)
22Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(context: null, culture: null, new object(), destinationType: null));
System\Windows\Forms\TypedControlCollectionTests.cs (1)
22Assert.Throws<ArgumentNullException>("owner", () => new TypedControlCollection(null, typeof(Panel), false));
System\Windows\Forms\UpDownBaseTests.cs (1)
2348Assert.Throws<ArgumentNullException>(() => control.OnPaint(null));
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (1)
28Assert.Throws<ArgumentNullException>("className", () => VisualStyleElement.CreateElement(null, 1, 2));
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (16)
39Assert.Throws<ArgumentNullException>("className", () => new VisualStyleRenderer(null, 0, 0)); 114Assert.Throws<ArgumentNullException>("element", () => VisualStyleRenderer.IsElementDefined(null)); 180Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4))); 181Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4))); 215Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawEdge(null, new Rectangle(1, 2, 3, 4), Edges.Top, EdgeStyle.Bump, EdgeEffects.FillInterior)); 295Assert.Throws<ArgumentNullException>("g", () => renderer.DrawImage(null, new Rectangle(1, 2, 3, 4), image)); 296Assert.Throws<ArgumentNullException>("g", () => renderer.DrawImage(null, new Rectangle(1, 2, 3, 4), imageList, 0)); 306Assert.Throws<ArgumentNullException>("image", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), null)); 316Assert.Throws<ArgumentNullException>("imageList", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), null, 0)); 393Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawParentBackground(null, new Rectangle(1, 2, 3, 4), childControl)); 491Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text")); 492Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", true)); 493Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", false)); 494Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", true, TextFormatFlags.Default)); 495Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", false, TextFormatFlags.Default)); 549Assert.Throws<ArgumentNullException>("element", () => renderer.SetParameters(null));
WebBrowserBaseTests.cs (1)
706Assert.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)
329ArgumentNullException.ThrowIfNull(parameters);
System\Windows\Input\Manipulations\ManipulationProcessor2D.cs (1)
314ArgumentNullException.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)
21ArgumentNullException.ThrowIfNull(sourceType);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
443ArgumentNullException.ThrowIfNull(type);
System\Windows\Markup\ArrayExtension.cs (1)
44ArgumentNullException.ThrowIfNull(elements);
System\Windows\Markup\NameReferenceConverter.cs (2)
27ArgumentNullException.ThrowIfNull(context); 68ArgumentNullException.ThrowIfNull(context);
System\Windows\Markup\Reference.cs (1)
28ArgumentNullException.ThrowIfNull(serviceProvider);
System\Windows\Markup\StaticExtension.cs (1)
81ArgumentNullException.ThrowIfNull(serviceProvider);
System\Windows\Markup\TypeExtension.cs (1)
68ArgumentNullException.ThrowIfNull(serviceProvider);
System\Windows\Markup\ValueSerializer.cs (3)
106ArgumentNullException.ThrowIfNull(type); 166ArgumentNullException.ThrowIfNull(descriptor); 236ArgumentNullException.ThrowIfNull(destinationType);
System\Windows\Markup\XamlDeferLoadAttribute.cs (2)
12ArgumentNullException.ThrowIfNull(loaderType); 13ArgumentNullException.ThrowIfNull(contentType);
System\Xaml\AttachablePropertyServices.cs (1)
70ArgumentNullException.ThrowIfNull(name);
System\Xaml\Context\ServiceProviderContext.cs (5)
133ArgumentNullException.ThrowIfNull(properties); 149ArgumentNullException.ThrowIfNull(types); 167ArgumentNullException.ThrowIfNull(properties); 183ArgumentNullException.ThrowIfNull(types); 203ArgumentNullException.ThrowIfNull(properties);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (7)
48ArgumentNullException.ThrowIfNull(schemaContext); 54ArgumentNullException.ThrowIfNull(schemaContext); 60ArgumentNullException.ThrowIfNull(savedContext); 74ArgumentNullException.ThrowIfNull(schemaContext); 315ArgumentNullException.ThrowIfNull(xamlType); 574ArgumentNullException.ThrowIfNull(property); 896ArgumentNullException.ThrowIfNull(namespaceDeclaration);
System\Xaml\InfosetObjects\XamlObjectWriterSettings.cs (1)
20ArgumentNullException.ThrowIfNull(settings);
System\Xaml\InfosetObjects\XamlXmlReader.cs (24)
30ArgumentNullException.ThrowIfNull(xmlReader); 37ArgumentNullException.ThrowIfNull(xmlReader); 44ArgumentNullException.ThrowIfNull(schemaContext); 45ArgumentNullException.ThrowIfNull(xmlReader); 52ArgumentNullException.ThrowIfNull(schemaContext); 53ArgumentNullException.ThrowIfNull(xmlReader); 60ArgumentNullException.ThrowIfNull(fileName); 66ArgumentNullException.ThrowIfNull(fileName); 73ArgumentNullException.ThrowIfNull(fileName); 74ArgumentNullException.ThrowIfNull(schemaContext); 81ArgumentNullException.ThrowIfNull(fileName); 82ArgumentNullException.ThrowIfNull(schemaContext); 95ArgumentNullException.ThrowIfNull(stream); 101ArgumentNullException.ThrowIfNull(stream); 107ArgumentNullException.ThrowIfNull(stream); 108ArgumentNullException.ThrowIfNull(schemaContext); 115ArgumentNullException.ThrowIfNull(stream); 116ArgumentNullException.ThrowIfNull(schemaContext); 129ArgumentNullException.ThrowIfNull(textReader); 135ArgumentNullException.ThrowIfNull(textReader); 141ArgumentNullException.ThrowIfNull(textReader); 142ArgumentNullException.ThrowIfNull(schemaContext); 149ArgumentNullException.ThrowIfNull(textReader); 150ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\NameScope.cs (8)
29ArgumentNullException.ThrowIfNull(name); 30ArgumentNullException.ThrowIfNull(scopedElement); 68ArgumentNullException.ThrowIfNull(name); 171ArgumentNullException.ThrowIfNull(key); 176ArgumentNullException.ThrowIfNull(key); 177ArgumentNullException.ThrowIfNull(value); 185ArgumentNullException.ThrowIfNull(key); 192ArgumentNullException.ThrowIfNull(key);
System\Xaml\NameScopeDictionary.cs (4)
39ArgumentNullException.ThrowIfNull(name); 41ArgumentNullException.ThrowIfNull(scopedElement); 81ArgumentNullException.ThrowIfNull(name); 106ArgumentNullException.ThrowIfNull(name);
System\Xaml\Schema\XamlDirective.cs (3)
37ArgumentNullException.ThrowIfNull(xamlType); 38ArgumentNullException.ThrowIfNull(xamlNamespaces); 56ArgumentNullException.ThrowIfNull(xamlNamespace);
System\Xaml\Schema\XamlMemberInvoker.cs (2)
55ArgumentNullException.ThrowIfNull(instance); 74ArgumentNullException.ThrowIfNull(instance);
System\Xaml\Schema\XamlTypeInvoker.cs (4)
60ArgumentNullException.ThrowIfNull(instance); 94ArgumentNullException.ThrowIfNull(instance); 143ArgumentNullException.ThrowIfNull(contentType); 213ArgumentNullException.ThrowIfNull(instance);
System\Xaml\XamlBackgroundReader.cs (1)
41ArgumentNullException.ThrowIfNull(wrappedReader);
System\Xaml\XamlException.cs (4)
70ArgumentNullException.ThrowIfNull(info); 80ArgumentNullException.ThrowIfNull(info); 162ArgumentNullException.ThrowIfNull(info); 171ArgumentNullException.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)
24ArgumentNullException.ThrowIfNull(schemaContext); 30ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\XamlNodeQueue.cs (1)
25ArgumentNullException.ThrowIfNull(schemaContext);
System\Xaml\XamlObjectReader.cs (1)
2872ArgumentNullException.ThrowIfNull(value);
System\Xaml\XamlSchemaContext.cs (10)
141ArgumentNullException.ThrowIfNull(xmlns); 260ArgumentNullException.ThrowIfNull(xamlNamespace); 261ArgumentNullException.ThrowIfNull(name); 277ArgumentNullException.ThrowIfNull(xamlTypeName); 312ArgumentNullException.ThrowIfNull(xamlNamespace); 313ArgumentNullException.ThrowIfNull(name); 383ArgumentNullException.ThrowIfNull(xamlNamespace); 544ArgumentNullException.ThrowIfNull(type); 551ArgumentNullException.ThrowIfNull(type); 569ArgumentNullException.ThrowIfNull(type);
System\Xaml\XamlServices.cs (13)
23ArgumentNullException.ThrowIfNull(xaml); 35ArgumentNullException.ThrowIfNull(fileName); 46ArgumentNullException.ThrowIfNull(stream); 57ArgumentNullException.ThrowIfNull(textReader); 68ArgumentNullException.ThrowIfNull(xmlReader); 80ArgumentNullException.ThrowIfNull(xamlReader); 97ArgumentNullException.ThrowIfNull(xamlReader); 99ArgumentNullException.ThrowIfNull(xamlWriter); 142ArgumentNullException.ThrowIfNull(fileName); 159ArgumentNullException.ThrowIfNull(stream); 169ArgumentNullException.ThrowIfNull(writer); 179ArgumentNullException.ThrowIfNull(writer); 188ArgumentNullException.ThrowIfNull(writer);
System\Xaml\XamlType.cs (2)
48ArgumentNullException.ThrowIfNull(unknownTypeNamespace); 69ArgumentNullException.ThrowIfNull(underlyingType);
System\Xaml\XamlTypeName.cs (11)
42ArgumentNullException.ThrowIfNull(xamlType); 88ArgumentNullException.ThrowIfNull(typeNameList); 89ArgumentNullException.ThrowIfNull(prefixLookup); 95ArgumentNullException.ThrowIfNull(typeName); 96ArgumentNullException.ThrowIfNull(namespaceResolver); 110ArgumentNullException.ThrowIfNull(typeNameList); 111ArgumentNullException.ThrowIfNull(namespaceResolver); 126ArgumentNullException.ThrowIfNull(typeName); 127ArgumentNullException.ThrowIfNull(namespaceResolver); 136ArgumentNullException.ThrowIfNull(typeNameList); 137ArgumentNullException.ThrowIfNull(namespaceResolver);
System\Xaml\XamlWriter.cs (1)
24ArgumentNullException.ThrowIfNull(reader);
System\Xaml\XamlXmlWriter.cs (6)
53ArgumentNullException.ThrowIfNull(stream); 72ArgumentNullException.ThrowIfNull(textWriter); 91ArgumentNullException.ThrowIfNull(xmlWriter); 164ArgumentNullException.ThrowIfNull(type); 189ArgumentNullException.ThrowIfNull(property); 228ArgumentNullException.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);
UIAutomationClient (67)
MS\Internal\Automation\Misc.cs (4)
39ArgumentNullException.ThrowIfNull(a1); 40ArgumentNullException.ThrowIfNull(a2); 61ArgumentNullException.ThrowIfNull(el1); 62ArgumentNullException.ThrowIfNull(el2);
System\Windows\Automation\AndCondition.cs (2)
32ArgumentNullException.ThrowIfNull(conditions); 36ArgumentNullException.ThrowIfNull(condition, nameof(conditions));
System\Windows\Automation\Automation.cs (18)
91ArgumentNullException.ThrowIfNull(property); 104ArgumentNullException.ThrowIfNull(pattern); 126ArgumentNullException.ThrowIfNull(element); 127ArgumentNullException.ThrowIfNull(eventHandler); 194ArgumentNullException.ThrowIfNull(element); 195ArgumentNullException.ThrowIfNull(eventHandler); 218ArgumentNullException.ThrowIfNull(element); 219ArgumentNullException.ThrowIfNull(eventHandler); 220ArgumentNullException.ThrowIfNull(properties); 231ArgumentNullException.ThrowIfNull(property, nameof(properties)); 249ArgumentNullException.ThrowIfNull(element); 250ArgumentNullException.ThrowIfNull(eventHandler); 264ArgumentNullException.ThrowIfNull(element); 265ArgumentNullException.ThrowIfNull(eventHandler); 280ArgumentNullException.ThrowIfNull(element); 281ArgumentNullException.ThrowIfNull(eventHandler); 295ArgumentNullException.ThrowIfNull(eventHandler); 313ArgumentNullException.ThrowIfNull(eventHandler);
System\Windows\Automation\AutomationElement.cs (9)
453ArgumentNullException.ThrowIfNull(localImpl); 496ArgumentNullException.ThrowIfNull(property); 576ArgumentNullException.ThrowIfNull(pattern); 643ArgumentNullException.ThrowIfNull(property); 695ArgumentNullException.ThrowIfNull(pattern); 729ArgumentNullException.ThrowIfNull(request); 749ArgumentNullException.ThrowIfNull(condition); 772ArgumentNullException.ThrowIfNull(condition); 1284ArgumentNullException.ThrowIfNull(condition);
System\Windows\Automation\CacheRequest.cs (3)
243ArgumentNullException.ThrowIfNull(property); 261ArgumentNullException.ThrowIfNull(pattern); 338ArgumentNullException.ThrowIfNull(value, nameof(TreeFilter));
System\Windows\Automation\ClientSettings.cs (2)
43ArgumentNullException.ThrowIfNull(assemblyName); 54ArgumentNullException.ThrowIfNull(clientSideProviderDescription);
System\Windows\Automation\NotCondition.cs (1)
33ArgumentNullException.ThrowIfNull(condition);
System\Windows\Automation\OrCondition.cs (2)
32ArgumentNullException.ThrowIfNull(conditions); 36ArgumentNullException.ThrowIfNull(condition, nameof(conditions));
System\Windows\Automation\PropertyCondition.cs (1)
123ArgumentNullException.ThrowIfNull(property);
System\Windows\Automation\Text\TextRange.cs (4)
174ArgumentNullException.ThrowIfNull(attribute); 175ArgumentNullException.ThrowIfNull(value); // no text attributes can have null as a valid value 216ArgumentNullException.ThrowIfNull(text); 232ArgumentNullException.ThrowIfNull(attribute);
System\Windows\Automation\TextPattern.cs (1)
201ArgumentNullException.ThrowIfNull(childElement);
System\Windows\Automation\TreeWalker.cs (19)
36ArgumentNullException.ThrowIfNull(condition); 88ArgumentNullException.ThrowIfNull(element); 103ArgumentNullException.ThrowIfNull(element); 118ArgumentNullException.ThrowIfNull(element); 133ArgumentNullException.ThrowIfNull(element); 148ArgumentNullException.ThrowIfNull(element); 173ArgumentNullException.ThrowIfNull(element); 191ArgumentNullException.ThrowIfNull(element); 192ArgumentNullException.ThrowIfNull(request); 209ArgumentNullException.ThrowIfNull(element); 210ArgumentNullException.ThrowIfNull(request); 227ArgumentNullException.ThrowIfNull(element); 228ArgumentNullException.ThrowIfNull(request); 245ArgumentNullException.ThrowIfNull(element); 246ArgumentNullException.ThrowIfNull(request); 263ArgumentNullException.ThrowIfNull(element); 264ArgumentNullException.ThrowIfNull(request); 291ArgumentNullException.ThrowIfNull(element); 292ArgumentNullException.ThrowIfNull(request);
System\Windows\Automation\ValuePattern.cs (1)
73ArgumentNullException.ThrowIfNull(value);
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
748ArgumentNullException.ThrowIfNull(val);
UIAutomationProvider (8)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (8)
74ArgumentNullException.ThrowIfNull(el); 97ArgumentNullException.ThrowIfNull(element); 98ArgumentNullException.ThrowIfNull(e); 112ArgumentNullException.ThrowIfNull(eventId); 113ArgumentNullException.ThrowIfNull(provider); 114ArgumentNullException.ThrowIfNull(e); 164ArgumentNullException.ThrowIfNull(provider); 165ArgumentNullException.ThrowIfNull(e);
UIAutomationTypes (4)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
1688ArgumentNullException.ThrowIfNull(lf);
System\Windows\Automation\AutomationIdentifier.cs (1)
126ArgumentNullException.ThrowIfNull(obj);
System\Windows\Automation\StructureChangedEventArgs.cs (1)
76ArgumentNullException.ThrowIfNull(runtimeId);
System\Windows\Automation\WindowClosedEventArgs.cs (1)
32ArgumentNullException.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)); 1109Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttachedReadOnly(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata())); 1110Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttachedReadOnly(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 1123Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata())); 1124Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 1149Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata())); 1150Assert.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>