5253 references to ArgumentException
aspire (3)
Backchannel\ExtensionBackchannel.cs (1)
252throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidSocketPath, endpoint));
src\Shared\CircularBuffer.cs (1)
243throw new ArgumentException("Array does not contain enough space for items");
Utils\CliDownloader.cs (1)
40throw new ArgumentException($"Unsupported channel '{channelName}'. Available channels: {string.Join(", ", channels.Select(c => c.Name))}");
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
119throw new ArgumentException($"The connection string contains multiple deployment/model keys: {string.Join(", ", deploymentKeys)}. Only one of 'Deployment', 'DeploymentId', or 'Model' should be specified.");
Aspire.Cli.EndToEnd.Tests (1)
tests\Shared\CliInstallStrategy.cs (1)
627throw new ArgumentException($"Invalid ASPIRE_E2E_QUALITY value: '{qualityStr}'. Must be one of: {string.Join(", ", Enum.GetNames<CliInstallQuality>())}");
Aspire.Cli.Tests (1)
Commands\TelemetryCommandTests.cs (1)
368_ => throw new ArgumentException($"Unknown message key: {key}")
Aspire.Dashboard (2)
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
922throw new ArgumentException("Span has no SpanId");
src\Shared\CircularBuffer.cs (1)
243throw new ArgumentException("Array does not contain enough space for items");
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (1)
2426throw new ArgumentException("Span has no SpanId");
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\CliInstallStrategy.cs (1)
627throw new ArgumentException($"Invalid ASPIRE_E2E_QUALITY value: '{qualityStr}'. Must be one of: {string.Join(", ", Enum.GetNames<CliInstallQuality>())}");
Aspire.EndToEnd.Tests (13)
IntegrationServicesFixture.cs (3)
99throw new ArgumentException($"Only one resource is supported at a time. resource: {resource}"); 106_ => throw new ArgumentException($"Unknown resource: {resource}") 139_ => throw new ArgumentException($"Unknown test scenario '{TestScenario}'")
tests\Shared\TemplatesTesting\BuildEnvironment.cs (6)
106throw new ArgumentException($"Could not find dotnet.exe in PATH={Environment.GetEnvironmentVariable("PATH")}"); 129throw new ArgumentException($"Could not find dotnet.exe in PATH={Environment.GetEnvironmentVariable("PATH")}"); 138throw new ArgumentException($"Environment variable SDK_FOR_TEMPLATES_TESTING_PATH is unset"); 144throw new ArgumentException($"Cannot find base directory for SDK_FOR_TEMPLATES_TESTING_PATH - {baseDir}"); 152throw new ArgumentException($"Cannot find 'BUILT_NUGETS_PATH={EnvironmentVariables.BuiltNuGetsPath}' or {BuiltNuGetsPath}"); 159throw new ArgumentException($"Cannot find TestAssetsPath={TestAssetsPath}");
tests\Shared\TemplatesTesting\DotNetNewCommand.cs (1)
23throw new ArgumentException("No custom hive directory was provided, and the BuildEnvironment does not have one set either");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (2)
91throw new ArgumentException($"Cannot find {templatePackageId}*.nupkg in {builtNuGetsPath}. Packages found in {builtNuGetsPath}: {string.Join(", ", Directory.EnumerateFiles(builtNuGetsPath).Select(Path.GetFileName))}"); 95throw new ArgumentException($"Found more than one {templatePackageId}*.nupkg in {builtNuGetsPath}: {string.Join(", ", packages.Select(Path.GetFileName))}");
tests\testproject\Common\TestResourceNames.cs (1)
30throw new ArgumentException($"Unknown resource name: {resourceName}");
Aspire.Hosting (13)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
441throw new ArgumentException($"Only one of '{nameof(contents)}' or '{nameof(sourcePath)}' can be specified, not both.");
Dashboard\DashboardServiceHost.cs (1)
208throw new ArgumentException($"{KnownConfigNames.ResourceServiceEndpointUrl} must contain a local loopback address.");
Dcp\DcpExecutor.cs (1)
903throw new ArgumentException($"All resources should be of the same kind when calling CreateRenderedResourcesAsync. Found resource kinds: {string.Join(", ", allResourceKinds)}");
Dcp\DcpNameGenerator.cs (1)
135throw new ArgumentException($"Could not generate a unique name for service '{candidateName}'");
Dcp\Model\Container.cs (5)
285throw new ArgumentException("Port protocol value must be 'TCP' or 'UDP'"); 299throw new ArgumentException("Supported protocols are TCP and UDP"); 312throw new ArgumentException("Supported protocols are TCP and UDP"); 385_ => throw new ArgumentException("Unknown file system entry type") 405throw new ArgumentException("Both SourcePath and Contents are set for a file entry");
Eventing\DistributedApplicationEventing.cs (1)
124throw new ArgumentException($"Cannot subscribe to interface or abstract type '{typeof(T).Name}'. Subscribe to a concrete event type instead.");
src\Shared\CircularBuffer.cs (1)
243throw new ArgumentException("Array does not contain enough space for items");
src\Shared\PasswordGenerator.cs (2)
75void ThrowArgumentException() => throw new ArgumentException($"'{minValueParamName}' must be 0 if '{enabledParamName}' is disabled."); 110(false, false, false, false) => throw new ArgumentException("At least one character type must be enabled.")
Aspire.Hosting.Azure.AppContainers (1)
src\Shared\BicepFormattingHelpers.cs (1)
29_ => throw new ArgumentException($"Invalid expression type for '{format}' encoding: {val.GetType()}")
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceComputeResourceExtensions.cs (1)
44throw new ArgumentException("configure or configureSlot must be provided.");
src\Shared\BicepFormattingHelpers.cs (1)
29_ => throw new ArgumentException($"Invalid expression type for '{format}' encoding: {val.GetType()}")
Aspire.Hosting.Azure.Kubernetes (1)
src\Shared\BicepFormattingHelpers.cs (1)
29_ => throw new ArgumentException($"Invalid expression type for '{format}' encoding: {val.GetType()}")
Aspire.Hosting.Azure.Kusto.Tests (3)
KustoFunctionalTests.cs (3)
63var connectionString = sp.GetRequiredService<IConfiguration>().GetConnectionString("KustoConnection") ?? throw new ArgumentException("Connection string for Kusto is not set in configuration."); 116var connectionString = sp.GetRequiredService<IConfiguration>().GetConnectionString("KustoTestDbConnection") ?? throw new ArgumentException("Connection string for Kusto is not set in configuration."); 123var connectionString = sp.GetRequiredService<IConfiguration>().GetConnectionString("KustoTestDbConnection") ?? throw new ArgumentException("Connection string for Kusto TestDb is not set in configuration.");
Aspire.Hosting.DevTunnels (2)
DevTunnelCli.cs (1)
143throw new ArgumentException($"Must specify either {nameof(anonymous)} or {nameof(deny)} as true, or both, but not neither.");
DevTunnelResourceBuilderExtensions.cs (1)
565_ => throw new ArgumentException($"Cannot tunnel endpoint '{targetEndpoint.EndpointName}' on resource '{targetResource.Name}' because it uses the unsupported scheme '{targetEndpoint.Scheme}'. Only 'http' and 'https' endpoints can be tunneled."),
Aspire.Hosting.Docker (2)
EnvVarEscaper.cs (2)
208throw new ArgumentException("Variable content exceeds maximum allowed length"); 273throw new ArgumentException("Variable content exceeds maximum allowed length");
Aspire.Hosting.Kubernetes (1)
KubernetesManifestResource.cs (1)
243throw new ArgumentException("Manifest field dictionaries must use string keys.");
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (1)
467env.Subscriber.FailBuildWith(env.Android, new ArgumentException("Unexpected error"));
MauiOtlpTemplateTests.cs (1)
101_ => throw new ArgumentException($"Unknown platform: {platform}")
Aspire.Hosting.RemoteHost (3)
CodeGeneration\CodeGenerationService.cs (1)
246throw new ArgumentException(BuildNoCodeGeneratorMessage(language));
Language\LanguageService.cs (2)
58throw new ArgumentException(BuildNoLanguageSupportMessage(language)); 138throw new ArgumentException(BuildNoLanguageSupportMessage(language));
Aspire.Hosting.Testing.Tests (1)
tests\testproject\Common\TestResourceNames.cs (1)
30throw new ArgumentException($"Unknown resource name: {resourceName}");
Aspire.Hosting.Tests (3)
Dcp\TestKubernetesService.cs (2)
63throw new ArgumentException($"Resource '{namespaceParameter ?? ""}/{name}' not found"); 346throw new ArgumentException($"Resource '{obj.Metadata.NamespaceProperty}/{obj.Metadata.Name}' not found");
SlimTestProgramTests.cs (1)
35var app = testProgram.App ?? throw new ArgumentException("TestProgram.App is null");
Aspire.Hosting.Yarp (3)
YarpJsonConfigGeneratorBuilder.cs (3)
34throw new ArgumentException("Configuring programmatically clusters while providing a configuration file isn't supported"); 44throw new ArgumentException("Configuring programmatically routes while providing a configuration file isn't supported"); 54throw new ArgumentException("Providing a configuration file isn't supported when configuring routes and clusters programmatically");
Aspire.Playground.Tests (2)
src\Shared\PasswordGenerator.cs (2)
75void ThrowArgumentException() => throw new ArgumentException($"'{minValueParamName}' must be 0 if '{enabledParamName}' is disabled."); 110(false, false, false, false) => throw new ArgumentException("At least one character type must be enabled.")
Aspire.Templates.Tests (10)
LocalhostTldHostnameTests.cs (1)
71_ => throw new ArgumentException($"Unknown template: {templateName}")
tests\Shared\TemplatesTesting\BuildEnvironment.cs (6)
106throw new ArgumentException($"Could not find dotnet.exe in PATH={Environment.GetEnvironmentVariable("PATH")}"); 129throw new ArgumentException($"Could not find dotnet.exe in PATH={Environment.GetEnvironmentVariable("PATH")}"); 138throw new ArgumentException($"Environment variable SDK_FOR_TEMPLATES_TESTING_PATH is unset"); 144throw new ArgumentException($"Cannot find base directory for SDK_FOR_TEMPLATES_TESTING_PATH - {baseDir}"); 152throw new ArgumentException($"Cannot find 'BUILT_NUGETS_PATH={EnvironmentVariables.BuiltNuGetsPath}' or {BuiltNuGetsPath}"); 159throw new ArgumentException($"Cannot find TestAssetsPath={TestAssetsPath}");
tests\Shared\TemplatesTesting\DotNetNewCommand.cs (1)
23throw new ArgumentException("No custom hive directory was provided, and the BuildEnvironment does not have one set either");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (2)
91throw new ArgumentException($"Cannot find {templatePackageId}*.nupkg in {builtNuGetsPath}. Packages found in {builtNuGetsPath}: {string.Join(", ", Directory.EnumerateFiles(builtNuGetsPath).Select(Path.GetFileName))}"); 95throw new ArgumentException($"Found more than one {templatePackageId}*.nupkg in {builtNuGetsPath}: {string.Join(", ", packages.Select(Path.GetFileName))}");
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\Logger.cs (1)
122throw new ArgumentException(
csc (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
134throw new ArgumentException($"Request is over {MaximumRequestSize >> 20}MB in length");
datacollector (1)
DataCollectorMain.cs (1)
137throw new ArgumentException("Incorrect/No Port number");
datacollector.arm64 (1)
src\vstest\src\datacollector\DataCollectorMain.cs (1)
137throw new ArgumentException("Incorrect/No Port number");
dotnet (12)
Commands\Test\MTP\IPC\NamedPipeBase.cs (2)
30: throw new ArgumentException((string.Format( 41: throw new ArgumentException(string.Format(
Commands\Test\VSTest\VSTestArgumentConverter.cs (1)
103throw new ArgumentException("Inline settings should not be passed to Convert.");
Commands\Workload\Install\WorkloadManifestUpdater.Managed.cs (1)
199throw new ArgumentException(string.Format(
Commands\Workload\WorkloadInfoHelper.cs (1)
131throw new ArgumentException(
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
185throw new ArgumentException($"Package download folder must be specified either via {nameof(NuGetPackageDownloader)} constructor or via {nameof(downloadFolder)} method argument.");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildProtocol.cs (1)
134throw new ArgumentException($"Request is over {MaximumRequestSize >> 20}MB in length");
ToolManifest\ToolManifestEditor.cs (1)
106throw new ArgumentException($"Manifest {manifest.Value} does not contain package id '{packageId}'.");
ToolPackage\RestoredCommandIdentifier.cs (3)
23public NuGetVersion Version { get; } = version ?? throw new ArgumentException(nameof(version)); 24public NuGetFramework TargetFramework { get; } = targetFramework ?? throw new ArgumentException(nameof(targetFramework)); 25public string RuntimeIdentifier { get; } = runtimeIdentifier ?? throw new ArgumentException(nameof(runtimeIdentifier));
ToolPackage\ToolPackageUninstaller.cs (1)
13private readonly IToolPackageStore _toolPackageStoreQuery = toolPackageStoreQuery ?? throw new ArgumentException(nameof(toolPackageStoreQuery));
dotnet-aot (5)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
185throw new ArgumentException($"Package download folder must be specified either via {nameof(NuGetPackageDownloader)} constructor or via {nameof(downloadFolder)} method argument.");
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestEditor.cs (1)
106throw new ArgumentException($"Manifest {manifest.Value} does not contain package id '{packageId}'.");
src\sdk\src\Cli\dotnet\ToolPackage\RestoredCommandIdentifier.cs (3)
23public NuGetVersion Version { get; } = version ?? throw new ArgumentException(nameof(version)); 24public NuGetFramework TargetFramework { get; } = targetFramework ?? throw new ArgumentException(nameof(targetFramework)); 25public string RuntimeIdentifier { get; } = runtimeIdentifier ?? throw new ArgumentException(nameof(runtimeIdentifier));
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
332throw new ArgumentException(SR.Format(SR.ErrDirectoryNotExists, outputDirectory));
dotnet-openapi (12)
Commands\AddProjectCommand.cs (1)
49throw new ArgumentException($"{SourceProjectArgName} of '{sourceFile}' was not valid. Valid values must be project file(s)");
Commands\BaseCommand.cs (9)
104throw new ArgumentException($"The project '{project}' does not exist."); 112throw new ArgumentException("No project files were found in the current directory. Either move to a new directory or provide the project explicitly"); 116throw new ArgumentException("More than one project was found in this directory, either remove a duplicate or explicitly provide the project."); 218throw new ArgumentException("dotnet was not found on the path."); 235throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` took longer than {timeout} seconds."); 251throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` returned ExitCode `{process.ExitCode}` and gave error `{error}` and output `{output}`"); 286throw new ArgumentException($"The given url returned '{response.StatusCode}', indicating failure. The url might be wrong, or there might be a networking issue."); 432throw new ArgumentException($"Invalid value '{value}' given as code generator."); 518throw new ArgumentException($"File '{destinationPath}' already exists. Aborting to avoid conflicts. Provide the '--output-file' argument with an unused file to resolve.");
Commands\RefreshCommand.cs (2)
53throw new ArgumentException("There was no OpenAPI reference to refresh with the given URL."); 62throw new ArgumentException("'dotnet openapi refresh' must be given a URL");
dotnet-svcutil-lib (208)
CodeDomFixup\ConfigToCode.cs (1)
450throw new ArgumentException(SR.NotClientBaseType);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
1803throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString())); 2165throw new ArgumentException(string.Format(SRCodeDom.InvalidIdentifier, value));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (3)
701throw new ArgumentException(string.Format(SRCodeDom.ArityDoesntMatch, baseType, e.TypeArguments.Count)); 1025throw new ArgumentException(string.Format(SRCodeDom.InvalidPathCharsInChecksum, e.FileName)); 1031throw new ArgumentException(string.Format(SRCodeDom.InvalidRegion, e.RegionText));
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
1405throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString())); 3641throw new ArgumentException(string.Format(SRCodeDom.InvalidIdentifier, value));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (8)
143throw new ArgumentException(ResXml.Xml_EmptyLocalName); 161throw new ArgumentException(ResXml.Xml_EmptyLocalName); 254throw new ArgumentException(string.Format(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i))); 326throw new ArgumentException(ResXml.Xml_EmptyName); 369throw new ArgumentException(ResXml.Xml_EmptyName); 374throw new ArgumentException(string.Format(len == 0 ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 382throw new ArgumentException(ResXml.Xml_EmptyName); 389throw new ArgumentException(string.Format(res, XmlException.BuildCharExceptionArgs(name, len)));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (3)
1527throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 1733throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1780throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextEncoder.cs (3)
224throw new ArgumentException(ResXml.Xml_SurrogatePairSplit); 457throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 517throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
8295throw new ArgumentException((_incReadDecoder is IncrementalReadCharsDecoder) ? "count" : "len");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (26)
345throw new ArgumentException(ResXml.Xml_InvalidIndentation); 365throw new ArgumentException(ResXml.Xml_InvalidQuote); 397throw new ArgumentException(ResXml.Xml_ClosedOrError); 401throw new ArgumentException(ResXml.Xml_NoRoot); 475throw new ArgumentException(ResXml.Xml_UndefPrefix); 518throw new ArgumentException(ResXml.Xml_NoNamespaces); 584throw new ArgumentException(ResXml.Xml_XmlnsBelongsToReservedNs); 603throw new ArgumentException(ResXml.Xml_XmlnsBelongsToReservedNs); 615throw new ArgumentException(ResXml.Xml_UndefPrefix); 656throw new ArgumentException(ResXml.Xml_NoNamespaces); 707throw new ArgumentException(ResXml.Xml_InvalidCDataChars); 731throw new ArgumentException(ResXml.Xml_InvalidCommentChars); 755throw new ArgumentException(ResXml.Xml_InvalidPiChars); 759throw new ArgumentException(ResXml.Xml_DupXmlDecl); 814throw new ArgumentException(ResXml.Xml_NonWhitespace); 1033throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1047throw new ArgumentException(ResXml.Xml_NoNamespaces); 1063throw new ArgumentException(ResXml.Xml_EmptyName); 1113throw new ArgumentException(ResXml.Xml_EmptyName); 1117throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1415throw new ArgumentException(ResXml.Xml_CanNotBindToReservedNamespace); 1442throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs); 1627throw new ArgumentException(ResXml.Xml_EmptyName); 1677throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1701throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value)); 1724throw new ArgumentException(ResXml.Xml_InvalidPrefix);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlUtf8RawTextWriter.cs (3)
1375throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 1613throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1660throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (25)
361throw new ArgumentException(ResXml.Xml_NoRoot); 381throw new ArgumentException(ResXml.Xml_EmptyName); 449throw new ArgumentException(ResXml.Xml_EmptyLocalName); 476throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs); 640throw new ArgumentException(ResXml.Xml_EmptyLocalName); 679throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 702throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 712throw new ArgumentException(ResXml.Xml_XmlPrefix); 808throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs); 812throw new ArgumentException(ResXml.Xml_CanNotBindToReservedNamespace); 852throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value)); 924throw new ArgumentException(ResXml.Xml_EmptyName); 939throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? ResXml.Xml_DupXmlDecl : ResXml.Xml_CannotWriteXmlDecl); 975throw new ArgumentException(ResXml.Xml_EmptyName); 1002throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 1058throw new ArgumentException(ResXml.Xml_NonWhitespace); 1368throw new ArgumentException(ResXml.Xml_EmptyLocalName); 1381throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1716throw new ArgumentException(ResXml.Xml_XmlPrefix); 1726throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 1743throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix)); 1827throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix)); 1835throw new ArgumentException(ResXml.Xml_XmlPrefix); 1840throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 2190return new ArgumentException(string.Format(ResXml.Xml_InvalidNameCharsDetail, args));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (2)
243throw new ArgumentException(ResXml.Xml_EmptyName); 263throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns));
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
1275throw new ArgumentException(string.Format(ResXml.XPathDocument_SchemaSetNotAllowed, null));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttribute.cs (1)
30throw new ArgumentException(ResXml.Xdom_Attr_Name);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (7)
118throw new ArgumentException(ResXml.Xdom_AttrCol_Object); 137throw new ArgumentException(ResXml.Xdom_NamedNode_Context); 156throw new ArgumentException(ResXml.Xdom_NamedNode_Context); 182throw new ArgumentException(ResXml.Xdom_AttrCol_Insert); 185throw new ArgumentException(ResXml.Xdom_NamedNode_Context); 211throw new ArgumentException(ResXml.Xdom_AttrCol_Insert); 214throw new ArgumentException(ResXml.Xdom_NamedNode_Context);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDeclaration.cs (4)
25throw new ArgumentException(ResXml.Xdom_Version); 28throw new ArgumentException(string.Format(ResXml.Xdom_standalone, standalone)); 61throw new ArgumentException(string.Format(ResXml.Xdom_standalone, value)); 108throw new ArgumentException(ResXml.Xdom_Version);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (4)
170throw new ArgumentException(string.Format(ResXml.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1101throw new ArgumentException(string.Format(ResXml.Arg_CannotCreateNode, type)); 1196throw new ArgumentException(string.Format(ResXml.Xdom_Invalid_NT_String, nodeTypeString)); 1440throw new ArgumentException(string.Format(ResXml.XmlDocument_NodeNotFromDocument, "nodeToValidate"));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocumentFragment.cs (1)
56throw new ArgumentException(ResXml.Xdom_Node_Null_Doc);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlElement.cs (1)
33throw new ArgumentException(ResXml.Xdom_Empty_LocalName);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntityReference.cs (1)
45throw new ArgumentException(ResXml.Xdom_InvalidCharacter_EntityReference);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (4)
41throw new ArgumentException(ResXml.Xdom_Load_NoDocument); 43throw new ArgumentException(ResXml.Xdom_Load_NoReader); 79throw new ArgumentException(ResXml.Xdom_Load_NoDocument); 81throw new ArgumentException(ResXml.Xdom_Load_NoReader);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (10)
30throw new ArgumentException(ResXml.Xdom_Node_Null_Doc); 236throw new ArgumentException(ResXml.Xdom_Node_Insert_Child); 245throw new ArgumentException(ResXml.Xdom_Node_Insert_Path); 253throw new ArgumentException(ResXml.Xdom_Node_Insert_Context); 350throw new ArgumentException(ResXml.Xdom_Node_Insert_Child); 359throw new ArgumentException(ResXml.Xdom_Node_Insert_Path); 367throw new ArgumentException(ResXml.Xdom_Node_Insert_Context); 480throw new ArgumentException(ResXml.Xdom_Node_Remove_Child); 577throw new ArgumentException(ResXml.Xdom_Node_Insert_Child); 584throw new ArgumentException(ResXml.Xdom_Node_Insert_Context);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlSignificantWhitespace.cs (2)
18throw new ArgumentException(ResXml.Xdom_WS_Char); 91throw new ArgumentException(ResXml.Xdom_WS_Char);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlWhitespace.cs (2)
18throw new ArgumentException(ResXml.Xdom_WS_Char); 84throw new ArgumentException(ResXml.Xdom_WS_Char);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
401throw new ArgumentException(ResXml.Sch_InvalidPartialValidationType);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (1)
518throw new ArgumentException(string.Format(ResXml.Sch_XsdDateTimeCompare, left.TypeCode, right.TypeCode));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
79throw new ArgumentException(string.Format(ResXml.XmlInvalidSchemaExtension, type));
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (5)
867throw new ArgumentException(string.Format(ResXml.Sch_InvalidDateTimeOption, dateTimeOption, "dateTimeOption")); 1421throw new ArgumentException(string.Format(ResXml.Sch_InvalidDateTimeOption, dateTimeOption, "dateTimeOption")); 1768return new ArgumentException(res); 1785return new ArgumentException(string.Format(res, arg)); 1802return new ArgumentException(string.Format(res, args));
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (2)
144throw new ArgumentException(ResXml.Xml_XmlPrefix); 148throw new ArgumentException(ResXml.Xml_XmlnsPrefix);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (2)
79throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.CannotImportNullSchema))); 102throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.CannotImportNullDataContractName)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.NullKnownType, "knownTypes")));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (6)
261throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xmlns", ns))); 263throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xml", ns))); 322throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue))); 375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue))); 1942throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xmlns", uri))); 1945throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xml", uri)));
FrameworkFork\System.ServiceModel\Framework\System\ComponentModel\InvalidEnumArgumentException.cs (1)
26: base(message)
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
41return (ArgumentException)this.ThrowHelperError(new ArgumentException(message));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SymmetricKeyLengthTooShort, symmetricKey.Length)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (3)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.MessageHeaderIsNull0)); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.MessageHeaderIsNull0)); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleMessageHeaders, name, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (3)
169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.CannotImportProtectionLevelForContract, contract.Name, contract.Namespace))); 373throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.CannotImportProtectionLevelForContract, policyContext.Contract.Name, policyContext.Contract.Namespace))); 401throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.CannotImportProtectionLevelForContract, policyContext.Contract.Name, policyContext.Contract.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
353return new ArgumentException(string.Format(SRServiceModel.HttpToMustEqualVia, to, via));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (4)
67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessagePropertyNotFound, name))); 464throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.MessagePropertyReturnedNullCopy)); 636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.DuplicateMessageProperty, name))); 728throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.MessagePropertiesArraySize0));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
79throw TraceUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SuppliedMessageIsNotAReplyItHasNoRelatesTo0), reply);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
791throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxInvalidCallbackIAsyncResult));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.TransactionFlowBadOption)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
705throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidCallbackContractType, callbackType.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.EndpointsMustHaveAValidBinding1, endpoint.Name))); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.DuplicateContractQNameNameOnExport, contract.Name, contract.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
231throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.WsdlImporterContractMustBeInKnownContracts));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
409throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SPS_InvalidAsyncResult));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageOperationFormatter.cs (5)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxParametersMustBeEmpty)); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxParameterMustBeArrayOfOneElement)); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxResultMustBeMessage)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxParametersMustBeEmpty)); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxParameterMustBeMessage));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
251throw TraceUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidStreamOffsetLength, offset + count)), _message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxInvalidCallbackIAsyncResult));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SFxInvalidCallbackIAsyncResult));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReason.cs (1)
94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.NoMatchingTranslationFoundForFaultText));
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderT.cs (1)
173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException("typedHeaderInstance"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityAlgorithmSuite.cs (2)
266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.Psha1KeyLengthInvalid, this.DefaultEncryptionKeyDerivationLength))); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.Psha1KeyLengthInvalid, this.DefaultSignatureKeyDerivationLength)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
749throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType()))); 756throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WindowsClientCredential.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (2)
306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.SynchronizedCollectionWrongTypeNull)); 311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SynchronizedCollectionWrongType1, value.GetType().FullName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (2)
102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.CannotAddTwoItemsWithTheSameKeyToSynchronizedKeyedCollection0)); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRServiceModel.ItemDoesNotExistInSynchronizedKeyedCollection0));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
269throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(message));
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (3)
184if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "group")); 196if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "capture")); 208if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "repeats"));
Metadata\MetadataDocumentLoader.cs (3)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrInvalidUriFormat, uri)); 139throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrInvalidUriFormat, uri)); 144throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrUrlNotAllowedOnMultipleInputsFormat, metadataUri));
Metadata\MetadataFileNameManager.cs (1)
255throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrDirectoryInsteadOfFileFormat, path));
Metadata\ServiceDescriptor.cs (2)
37throw new ArgumentException(nameof(serviceUri)); 50throw new ArgumentException(nameof(metadataFiles));
Shared\MSBuildProj.cs (2)
393throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorFullPathNotAProjectFilePathFormat, fullPath)); 398throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorProjectFileAlreadyExistsFormat, fullPath));
Shared\Options\ApplicationOptions.cs (2)
205throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.WarningUnrecognizedOptionFormat, optionId)); 288var ex = new ArgumentException(error);
Shared\Options\ListValue.cs (1)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionDuplicateValueFormat, this.Owner.Name, value));
Shared\Options\OptionBase.cs (1)
182throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionAlreadyDeserializedFormat, this.SerializationName));
Shared\Options\OptionsSerializer.cs (1)
70var jOptionsObject = jPropInfo.Value as JObject ?? throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, jPropInfo.Value?.Type, option.SerializationName));
Shared\Options\OptionValueParser.cs (2)
240throw new ArgumentException(string.Concat(invalidValueError, " ", supportedValues)); 271throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name));
Shared\ProjectDependency.cs (10)
77throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath))); 82throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 91throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageVersion, nameof(packageVersion))); 96throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, dependencyType, nameof(dependencyType))); 104throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 110throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 120throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName))); 127throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath))); 140throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath))); 180throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, dependencySpec, nameof(dependencySpec)));
Shared\ProjectPropertyResolver.cs (1)
248throw new ArgumentException(nameof(propertyName));
ToolArgumentException.cs (1)
24internal ToolArgumentException(String message) : base(message)
dotnet-svcutil.xmlserializer (9)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (6)
176throw new ArgumentException(SR.Format(SR.ErrSwitchMissing, arg)); 187throw new ArgumentException(SR.Format(SR.ErrUnexpectedDelimiter)); 215throw new ArgumentException(SR.Format(SR.ErrUnknownSwitch, arg.ToLower(CultureInfo.InvariantCulture))); 223throw new ArgumentException(SR.Format(SR.ErrUnexpectedValue, arg.ToLower(CultureInfo.InvariantCulture))); 228throw new ArgumentException(SR.Format(SR.ErrExpectedValue, arg.ToLower(CultureInfo.InvariantCulture))); 235throw new ArgumentException(SR.Format(SR.ErrSingleUseSwitch, arg.ToLower(CultureInfo.InvariantCulture)));
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
440throw new ArgumentException("Invalid smreference value"); 473throw new ArgumentException("Need to pass the System.ServiceModel.Primitives.dll path through the 'smreference' parameter.");
Microsoft\Tools\ServiceModel\SvcUtil\ToolArgumentException.cs (1)
26internal ToolArgumentException(String message) : base(message)
dotnet-user-jwts (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
28throw new ArgumentException(SecretsHelpersResources.FormatError_InvalidSecretsId(newSecretsId));
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
28throw new ArgumentException(SecretsHelpersResources.FormatError_InvalidSecretsId(newSecretsId));
GenerateDocumentationAndConfigFiles (16)
Program.cs (1)
1340throw new ArgumentException($"Unexpected arguments. '{nameof(enable)}' can't be false while '{nameof(enableAsWarning)}' is true.");
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
287throw new ArgumentException($"Unsupported symbol kind '{symbol.Kind}' for symbol '{symbol}'");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
239throw new ArgumentException(WorkspaceExtensionsResources.Could_not_find_location_to_generation_symbol_into); 485throw new ArgumentException(WorkspaceExtensionsResources.No_location_provided_to_add_statements_to); 490throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_not_in_source); 495throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_from_a_different_tree);
ILAssembler (1)
EntityRegistry.cs (1)
731throw new ArgumentException("The method signature must be defined before recording the method definition, to enable detecting duplicate methods.");
ILCompiler.Compiler (12)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
205throw new ArgumentException("Signature must have at least one type for the return value");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (1)
145throw new ArgumentException("Max must be provided when LimitType is HasMinAndMax");
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
490throw new ArgumentException("Unknown schema marshal " + marshal);
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
40throw new ArgumentException("assemblyName");
src\runtime\src\tools\illink\src\ILLink.Shared\DiagnosticId.cs (1)
261_ => throw new ArgumentException($"The provided diagnostic id '{diagnosticId}' does not fall into the range of supported warning codes 2001 to 6000 (inclusive).")
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
443_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 457_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 501_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 569throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is an unexpected intrinsic."); 796_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 826throw new ArgumentException($"Error processing reflection call '{calledMethod.GetDisplayName()}' inside {GetContainingSymbolDisplayName()}. Unexpected member kind.");
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
ILCompiler.MetadataTransform (1)
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeMetadataReader.cs (1)
104throw new ArgumentException("Invalid handle type");
ILCompiler.ReadyToRun (12)
Compiler\CryptographicHashProvider.cs (3)
82throw new ArgumentException("algorithmId"); 98throw new ArgumentException("algorithmId"); 128throw new ArgumentException("algorithmId");
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (1)
70throw new System.ArgumentException(nameof(helperId));
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
205throw new ArgumentException("Signature must have at least one type for the return value");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (1)
145throw new ArgumentException("Max must be provided when LimitType is HasMinAndMax");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
4623_ => throw new ArgumentException("Unsupported relocation type: " + reloc),
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
490throw new ArgumentException("Unknown schema marshal " + marshal);
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
40throw new ArgumentException("assemblyName");
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
TypeSystem\Mutable\MutableModule.cs (2)
406throw new ArgumentException($"Invalid EntityHandle {MetadataTokens.GetToken(handle):X} passed to MutableModule.GetObject"); 418throw new ArgumentException("Invalid UserStringHandle passed to MutableModule.GetObject");
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
4623_ => throw new ArgumentException("Unsupported relocation type: " + reloc),
illink (19)
ILLink.RoslynAnalyzer (9)
DataFlowAnalyzerContext.cs (1)
20throw new System.ArgumentException($"Analyzer {analyzer.GetType().Name} is not in the cache");
src\runtime\src\tools\illink\src\ILLink.Shared\DiagnosticId.cs (1)
261_ => throw new ArgumentException($"The provided diagnostic id '{diagnosticId}' does not fall into the range of supported warning codes 2001 to 6000 (inclusive).")
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
443_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 457_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 501_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 569throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is an unexpected intrinsic."); 796_ => throw new ArgumentException($"Reflection call '{calledMethod.GetDisplayName()}' inside '{GetContainingSymbolDisplayName()}' is of unexpected member type."), 826throw new ArgumentException($"Error processing reflection call '{calledMethod.GetDisplayName()}' inside {GetContainingSymbolDisplayName()}. Unexpected member kind.");
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
ILLink.Tasks (6)
LinkTask.cs (6)
402throw new ArgumentException($"optimization metadata {optimization} must be True or False"); 412throw new ArgumentException($"TrimmerSingleWarn metadata must be True or False"); 488throw new ArgumentException("custom data requires \"Value\" metadata"); 500throw new ArgumentException("feature settings require \"Value\" metadata"); 525throw new ArgumentException("custom step requires \"Type\" metadata"); 532throw new ArgumentException("custom step may not have both \"BeforeStep\" and \"AfterStep\" metadata");
installer.tasks (3)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
56?? throw new ArgumentException($"{item.ItemSpec} specifies no Branch.");
StaticFileRegeneration\TpnDocument.cs (1)
47throw new ArgumentException($"No sections found.");
StaticFileRegeneration\TpnSectionHeader.cs (1)
108throw new ArgumentException(
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\VirtualCharSequence.cs (2)
58throw new ArgumentException("Span start out of range."); 63throw new ArgumentException("Span end out of range.");
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationScheme.cs (1)
26throw new ArgumentException("handlerType must implement IAuthenticationHandler.");
Microsoft.AspNetCore.Authentication.Negotiate (1)
LdapSettings.cs (1)
89throw new ArgumentException($"{nameof(MachineAccountPassword)} should only be specified when {nameof(MachineAccountName)} is configured.");
Microsoft.AspNetCore.Components (17)
CascadingValue.cs (3)
81throw new ArgumentException($"The parameter '{nameof(Name)}' for component '{nameof(CascadingValue<TValue>)}' does not allow null or empty values."); 90throw new ArgumentException($"The component '{nameof(CascadingValue<TValue>)}' does not accept a parameter with the name '{parameter.Name}'."); 105throw new ArgumentException($"Missing required parameter '{nameof(Value)}' for component '{GetType().Name}'.");
LayoutAttribute.cs (1)
25throw new ArgumentException($"Invalid layout type: {layoutType.FullName} " +
NavigationManager.cs (3)
347throw new ArgumentException(message); 373throw new ArgumentException(message); 653throw new ArgumentException(message);
PersistentComponentState.cs (3)
120throw new ArgumentException($"There is already a persisted object under the same key '{key}'"); 136throw new ArgumentException($"There is already a persisted object under the same key '{key}'"); 156throw new ArgumentException($"There is already a persisted object under the same key '{key}'");
Rendering\RenderTreeBuilder.cs (2)
428throw new ArgumentException($"The {nameof(frame.FrameType)} must be {RenderTreeFrameType.Attribute}."); 506throw new ArgumentException($"The component type must implement {typeof(IComponent).FullName}.");
RenderTree\Renderer.cs (1)
804: throw new ArgumentException($"The renderer does not have a component with ID {componentId}.");
RenderTree\StackObjectPool.cs (1)
64throw new ArgumentException($"Attempting to return wrong pooled instance. {nameof(Get)}/{nameof(Return)} calls must form a stack.");
Sections\SectionContent.cs (1)
107throw new ArgumentException($"Unknown parameter '{param.Name}'");
src\aspnetcore\src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
379throw new ArgumentException($"An element with the key '{key}' already exists in the {nameof(RouteValueDictionary)}.");
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
734throw new ArgumentException(Resources.FormatTemplateRoute_InvalidLiteral(content));
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
108throw new ArgumentException(Resources.FormatTypeMustDeriveFromType(componentType, typeof(IComponent)));
Microsoft.AspNetCore.Components.Forms (11)
FieldIdentifier.cs (11)
131throw new ArgumentException("The provided expression must evaluate to a non-null value."); 149throw new ArgumentException("The provided expression must evaluate to a non-null value."); 154throw new ArgumentException($"The provided expression contains a {accessorBody.GetType().Name} which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object."); 166throw new ArgumentException($"The provided expression contains a {accessorBody.GetType().Name} which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object."); 180value = model.Value ?? throw new ArgumentException("The provided expression must evaluate to a non-null value."); 184throw new ArgumentException("The provided expression must evaluate to a non-null value."); 199throw new ArgumentException("The provided expression must evaluate to a non-null value."); 236throw new ArgumentException("The provided expression must evaluate to a non-null value."); 263_ => throw new ArgumentException( 268return value ?? throw new ArgumentException("The provided expression must evaluate to a non-null value."); 298_ => throw new ArgumentException(
Microsoft.AspNetCore.Components.QuickGrid (2)
Columns\GridSort.cs (2)
149throw new ArgumentException(ExpressionNotRepresentableMessage); 174throw new ArgumentException(ExpressionNotRepresentableMessage);
Microsoft.AspNetCore.Components.Server (4)
Circuits\CircuitRegistry.cs (1)
82throw new ArgumentException($"Circuit with identity {circuitHost.CircuitId} is already registered.");
Circuits\RemoteJSDataStream.cs (1)
50throw new ArgumentException($"SignalR MaximumIncomingBytes must be at least 1 kb.");
Circuits\RemoteJSRuntime.cs (1)
186throw new ArgumentException($"The stream {streamId} is already pending.");
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
211throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Components.Web (5)
Forms\ExpressionMemberAccessor.cs (1)
38throw new ArgumentException(
JSComponents\JSComponentInterop.cs (2)
70throw new ArgumentException($"There is no registered JS component with identifier '{identifier}'."); 137throw new ArgumentException($"There is no declared parameter named '{parameterName}', so the supplied object cannot be deserialized.");
Routing\NavigationLock.cs (1)
61throw new ArgumentException($"The component '{nameof(NavigationLock)}' does not accept a parameter with the name '{parameter.Name}'.");
WebEventData\ChangeEventArgsReader.cs (1)
37throw new ArgumentException($"Unsupported {nameof(ChangeEventArgs)} value {jsonElement}.");
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
211throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
211throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesMiddleware.cs (1)
30throw new ArgumentException("Missing options.HandleAsync implementation.");
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\JsonConverterHelper.cs (2)
126throw new ArgumentException("Invalid field type"); 222throw new ArgumentException("Invalid field type");
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
198throw new ArgumentException("The key is null");
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UsePathBaseMiddleware.cs (1)
27throw new ArgumentException($"{nameof(pathBase)} cannot be null or empty.");
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
235throw new ArgumentException($"{nameof(methodInfo)} does not have a declaring type.");
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
56_ => throw new ArgumentException($"Received unexpected HTTP method: {endpoint.HttpMethod}")
Microsoft.AspNetCore.Localization (1)
ApplicationBuilderExtensions.cs (1)
86throw new ArgumentException(Resources.Exception_CulturesShouldNotBeEmpty);
Microsoft.AspNetCore.Mvc.Core (11)
ActionConstraints\HttpMethodActionConstraint.cs (1)
41throw new ArgumentException($"{nameof(httpMethods)} cannot contain null or empty strings.");
ActionResultOfT.cs (2)
28throw new ArgumentException(error); 44throw new ArgumentException(error);
Controllers\DefaultControllerActivator.cs (2)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerFactory.cs (1)
45throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Formatters\MediaType.cs (1)
64throw new ArgumentException(Resources.FormatArgument_InvalidOffsetLength(nameof(offset), nameof(length)));
Infrastructure\ModelStateInvalidFilter.cs (1)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
ModelBinding\Validation\ValidationVisitor.cs (1)
173throw new ArgumentException(Resources.FormatValidationVisitor_ContainerCannotBeSpecified(metadata.MetadataKind));
Routing\UrlHelperFactory.cs (2)
25throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 32throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\CompiledViewDescriptor.cs (1)
46throw new ArgumentException(Resources.FormatCompiledViewDescriptor_NoData(nameof(item), nameof(attribute)));
Microsoft.AspNetCore.Mvc.RazorPages (1)
PageResult.cs (1)
54throw new ArgumentException(Resources.FormatPageViewResult_ContextIsInvalid(
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperFormatter.cs (1)
22throw new ArgumentException(
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ExpressionHelper.cs (1)
208throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
ViewComponents\DefaultViewComponentActivator.cs (1)
43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
91throw new ArgumentException(Resources.TagCannotBeNull);
Microsoft.AspNetCore.Rewrite (5)
ApacheModRewrite\RuleBuilder.cs (3)
98throw new ArgumentException("Invalid operation for integer comparison."); 121throw new ArgumentException("Invalid operation for string comparison."); 149throw new ArgumentException("Invalid operation for property comparison");
RedirectToNonWwwRule.cs (1)
27throw new ArgumentException($"One or more {nameof(domains)} must be provided.");
RedirectToWwwRule.cs (1)
27throw new ArgumentException($"One or more {nameof(domains)} must be provided.");
Microsoft.AspNetCore.Routing (10)
Matching\CandidateSet.cs (1)
43throw new ArgumentException($"The provided {nameof(endpoints)}, {nameof(values)}, and {nameof(scores)} must have the same length.");
Patterns\RoutePatternFactory.cs (9)
734throw new ArgumentException(Resources.FormatTemplateRoute_InvalidLiteral(content)); 775throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 798throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 825throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 830throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue); 859throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 864throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue); 895throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 900throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue);
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Deployers\ApplicationDeployer.cs (1)
34throw new ArgumentException($"Invalid ServerType '{DeploymentParameters.ServerType}'.");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (6)
39throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerName}' for {nameof(RemoteWindowsDeploymentParameters.ServerName)}"); 44throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountName}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountName)}." + 50throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountPassword}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountPassword)}." + 57throw new ArgumentException($"Invalid value '{_deploymentParameters.DotnetRuntimePath}' for {nameof(RemoteWindowsDeploymentParameters.DotnetRuntimePath)}. " + 63throw new ArgumentException($"Invalid value for {nameof(RemoteWindowsDeploymentParameters.RemoteServerFileSharePath)}." + 69throw new ArgumentException($"Invalid value for {nameof(RemoteWindowsDeploymentParameters.ApplicationBaseUriHint)}.");
TestMatrix.cs (3)
96throw new ArgumentException("No servers were specified."); 102throw new ArgumentException("No TFMs were specified."); 160throw new ArgumentException(server.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpHeaders.cs (1)
112throw new ArgumentException(CoreStrings.KeyAlreadyExists);
ListenOptionsHttpsExtensions.cs (1)
258throw new ArgumentException($"{nameof(TlsHandshakeCallbackOptions.OnConnection)} must not be null.");
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\CompletionMessage.cs (1)
41throw new ArgumentException($"Expected either '{nameof(error)}' or '{nameof(result)}' to be provided, but not both");
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
26throw new ArgumentException($"The {nameof(options.RootPath)} property " +
Microsoft.AspNetCore.StaticFiles (1)
Infrastructure\SharedOptions.cs (1)
34throw new ArgumentException("Request path must not end in a slash");
Microsoft.AspNetCore.WebUtilities (1)
FormPipeReader.cs (1)
58throw new ArgumentException("UTF7 is unsupported and insecure. Please select a different encoding.");
Microsoft.Build (15)
Collections\ItemDictionary.cs (1)
398throw new ArgumentException(nameof(array));
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (3)
637throw new ArgumentException("index"); 676throw new ArgumentException("arrayIndex"); 781throw new ArgumentException("newSize");
Graph\GraphBuilder.cs (1)
268throw new ArgumentException(
Graph\ParallelWorkSet.cs (1)
83throw new ArgumentException("Degree of parallelism must be a positive integer.");
Graph\ProjectGraph.cs (1)
824throw new ArgumentException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("OM_TargetNameNullOrEmpty", nameof(GetTargetLists)));
Instance\ProjectInstance.cs (2)
998throw new ArgumentException(nameof(linkedProject)); 1113throw new ArgumentException(nameof(elementsCollection));
Logging\TerminalLogger\TerminalNodeStatus.cs (1)
37throw new ArgumentException("Target should not contain any escape codes, if you want to colorize target use the other constructor.");
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
Microsoft.Build.Framework (10)
ErrorUtilities.cs (1)
109throw new ArgumentException(SR.FormatParameterCannotHaveInvalidPathChars(parameterName, parameter));
FileUtilities.cs (2)
461throw new ArgumentException(SR.FormatDebugPathTooLong(directory)); 1681throw new ArgumentException(SR.FormatInvalidGetPathOfFileAboveParameter(file));
Utilities\ConversionUtilities.cs (1)
39throw new ArgumentException(SR.FormatCannotConvertStringToBool(parameterValue));
Utilities\FrameworkLocationHelper.cs (6)
673throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 688throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 718throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 733throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 1176: throw new ArgumentException(SR.FormatUnsupportedVisualStudioVersion(version)); 1181: throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(version));
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
162return new ArgumentException(string.Format(CultureInfo.CurrentCulture, errorString, args));
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
134throw new ArgumentException($"Request is over {MaximumRequestSize >> 20}MB in length");
Microsoft.Build.Tasks.Core (22)
ManifestUtil\mansign2.cs (2)
1171throw new ArgumentException("value"); 1195throw new ArgumentException("value");
ManifestUtil\SecurityUtil.cs (1)
587throw new ArgumentException("TargetFrameworkVersion");
ManifestUtil\TrustInfo.cs (1)
506throw new ArgumentException("Partial trust is not supported.");
ResourceHandling\MSBuildResXReader.cs (4)
345throw new ArgumentException(nameof(stringValue)); 351throw new ArgumentException(nameof(stringValue)); 361throw new ArgumentException(nameof(stringValue)); 367throw new ArgumentException(nameof(stringValue));
ResourceHandling\NameUtilities.cs (1)
22throw new ArgumentException(nameof(assemblyQualifiedName));
system.design\stronglytypedresourcebuilder.cs (1)
201throw new ArgumentException(SR.GetString(SR.InvalidIdentifier, className));
XmlPeek.cs (4)
211throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", prefixAttr)); 218throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", uriAttr)); 255throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooMany")); 260throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooFew"));
XmlPoke.cs (2)
205throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", prefixAttr)); 212throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", uriAttr));
XslTransformation.cs (6)
310throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Name")); 315throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Value")); 356throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooMany")); 360throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooFew")); 477throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooMany")); 481throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooFew"));
Microsoft.CodeAnalysis (26)
CodeAnalysisEventSource.Common.cs (1)
191throw new ArgumentException("Pinned value must match string.");
Compilation\Compilation.cs (4)
1492throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeMemberAndNamesCountMismatch2, 1498throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2, 1504throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2, 1510throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2,
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
138throw new ArgumentException(nameof(isSuppressed));
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
230throw new ArgumentException($"Not a valid assembly: {originalPath}");
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
440throw new ArgumentException("language");
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
1952throw new ArgumentException(message); 1959throw new ArgumentException(message);
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
378throw new ArgumentException($"Shadow copy path '{shadowCopyPath}' must not be the root directory");
DiagnosticAnalyzer\Suppression.cs (1)
27throw new ArgumentException(message);
MetadataReference\CompilationReference.cs (1)
91throw new ArgumentException(CodeAnalysisResources.CannotCreateReferenceToModule);
RuleSet\RuleSet.cs (1)
74throw new ArgumentException("Effective action cannot be applied to rulesets with Includes");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
SymbolDisplay\SymbolDisplayExtensions.cs (2)
27throw new ArgumentException(nameof(parts)); 60throw new ArgumentException(nameof(parts));
Syntax\SyntaxList`1.cs (1)
340throw new ArgumentException(nameof(nodeInList));
Syntax\SyntaxListBuilder.cs (1)
74throw new ArgumentException("Cannot add a null node.");
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
47throw new ArgumentException(CodeAnalysisResources.InvalidNodeToTrack);
Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
Microsoft.CodeAnalysis.Analyzers (15)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
287throw new ArgumentException($"Unsupported symbol kind '{symbol.Kind}' for symbol '{symbol}'");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
239throw new ArgumentException(WorkspaceExtensionsResources.Could_not_find_location_to_generation_symbol_into); 485throw new ArgumentException(WorkspaceExtensionsResources.No_location_provided_to_add_statements_to); 490throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_not_in_source); 495throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_from_a_different_tree);
Microsoft.CodeAnalysis.AnalyzerUtilities (14)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
287throw new ArgumentException($"Unsupported symbol kind '{symbol.Kind}' for symbol '{symbol}'");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (1)
96throw new ArgumentException($"ConstructorMapper PropertyAbstractValues has invalid length (expected {propertyCount}, actual length {this.PropertyAbstractValues.Length})");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (1)
66throw new ArgumentException("Can't specify constantArrayLengthMatcher unless taintConstantArray is true");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisPredicate.cs (1)
27throw new ArgumentException("You must provide at least one non-null predicate argument");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
239throw new ArgumentException(WorkspaceExtensionsResources.Could_not_find_location_to_generation_symbol_into); 485throw new ArgumentException(WorkspaceExtensionsResources.No_location_provided_to_add_statements_to); 490throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_not_in_source); 495throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_from_a_different_tree);
Microsoft.CodeAnalysis.CSharp (1537)
_generated\0\Syntax.xml.Main.Generated.cs (498)
2289default: throw new ArgumentException(nameof(identifier)); 2298if (dotToken.Kind() != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 2310if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 2326if (lessThanToken.Kind() != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 2327if (greaterThanToken.Kind() != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 2339if (colonColonToken.Kind() != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 2373default: throw new ArgumentException(nameof(keyword)); 2392if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 2393if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 2405if (asteriskToken.Kind() != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 2416if (delegateKeyword.Kind() != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 2417if (asteriskToken.Kind() != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 2433if (lessThanToken.Kind() != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 2434if (greaterThanToken.Kind() != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 2449default: throw new ArgumentException(nameof(managedOrUnmanagedKeyword)); 2461if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 2462if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 2473if (name.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 2481if (questionToken.Kind() != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 2492if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 2493if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 2509default: throw new ArgumentException(nameof(identifier)); 2521if (omittedTypeArgumentToken.Kind() != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 2532if (refKeyword.Kind() != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 2537default: throw new ArgumentException(nameof(readOnlyKeyword)); 2550if (scopedKeyword.Kind() != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 2562if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 2564if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 2575if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 2576if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 2598default: throw new ArgumentException(nameof(kind)); 2611default: throw new ArgumentException(nameof(operatorToken)); 2639if (awaitKeyword.Kind() != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 2656default: throw new ArgumentException(nameof(kind)); 2664default: throw new ArgumentException(nameof(operatorToken)); 2689default: throw new ArgumentException(nameof(kind)); 2696default: throw new ArgumentException(nameof(operatorToken)); 2718if (operatorToken.Kind() != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 2730if (operatorToken.Kind() != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 2753if (operatorToken.Kind() != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 2803default: throw new ArgumentException(nameof(kind)); 2830default: throw new ArgumentException(nameof(operatorToken)); 2886default: throw new ArgumentException(nameof(kind)); 2904default: throw new ArgumentException(nameof(operatorToken)); 2937if (questionToken.Kind() != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 2939if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 2951if (token.Kind() != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 2962if (token.Kind() != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 2984default: throw new ArgumentException(nameof(kind)); 3001default: throw new ArgumentException(nameof(token)); 3009if (token.Kind() != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 3020if (keyword.Kind() != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 3021if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3023if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3034if (keyword.Kind() != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 3035if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3037if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3048if (keyword.Kind() != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 3049if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3051if (comma.Kind() != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 3053if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3068default: throw new ArgumentException(nameof(kind)); 3074default: throw new ArgumentException(nameof(keyword)); 3076if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3078if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3098if (keyword.Kind() != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(keyword)); 3099if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3101if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3113if (keyword.Kind() != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 3114if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3116if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3127if (keyword.Kind() != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 3128if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3130if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3141if (keyword.Kind() != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 3142if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3144if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3179if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3180if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3191if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 3192if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 3209default: throw new ArgumentException(nameof(refKindKeyword)); 3223if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 3231if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 3246if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3248if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3260if (delegateKeyword.Kind() != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 3269if (arrowToken.Kind() != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 3276if (refKeyword.Kind() != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 3289if (arrowToken.Kind() != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 3311default: throw new ArgumentException(nameof(kind)); 3313if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 3314if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 3325if (newKeyword.Kind() != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 3341if (newKeyword.Kind() != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 3358if (withKeyword.Kind() != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 3381if (newKeyword.Kind() != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 3382if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 3383if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 3394if (newKeyword.Kind() != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 3410if (newKeyword.Kind() != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 3411if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 3412if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 3428if (stackAllocKeyword.Kind() != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 3444if (stackAllocKeyword.Kind() != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 3445if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 3446if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 3458if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 3459if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 3477if (operatorToken.Kind() != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 3489if (withKeyword.Kind() != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 3520if (fromKeyword.Kind() != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 3521if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 3522if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 3542if (letKeyword.Kind() != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 3543if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 3544if (equalsToken.Kind() != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 3560if (joinKeyword.Kind() != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 3561if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 3562if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 3564if (onKeyword.Kind() != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 3566if (equalsKeyword.Kind() != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 3586if (intoKeyword.Kind() != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 3587if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 3602if (whereKeyword.Kind() != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 3614if (orderByKeyword.Kind() != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 3629default: throw new ArgumentException(nameof(kind)); 3637default: throw new ArgumentException(nameof(ascendingOrDescendingKeyword)); 3657if (selectKeyword.Kind() != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 3669if (groupKeyword.Kind() != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 3671if (byKeyword.Kind() != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 3683if (intoKeyword.Kind() != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 3684if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 3700if (omittedArraySizeExpressionToken.Kind() != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 3717default: throw new ArgumentException(nameof(stringStartToken)); 3723default: throw new ArgumentException(nameof(stringEndToken)); 3736if (isKeyword.Kind() != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 3748if (throwKeyword.Kind() != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 3760if (whenKeyword.Kind() != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 3772if (underscoreToken.Kind() != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 3791if (varKeyword.Kind() != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 3813if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3814if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3825if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 3826if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 3855if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 3857if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 3876default: throw new ArgumentException(nameof(operatorToken)); 3896default: throw new ArgumentException(nameof(kind)); 3903default: throw new ArgumentException(nameof(operatorToken)); 3924if (operatorToken.Kind() != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 3936if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 3937if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 3952if (dotDotToken.Kind() != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 3963if (textToken.Kind() != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 3974if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 3976if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 3998if (formatStringToken.Kind() != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 4020if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 4021if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 4039if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 4045default: throw new ArgumentException(nameof(semicolonToken)); 4069default: throw new ArgumentException(nameof(awaitKeyword)); 4075default: throw new ArgumentException(nameof(usingKeyword)); 4078if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4104if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 4119if (equalsToken.Kind() != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 4131if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 4138if (underscoreToken.Kind() != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 4149if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4150if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4162if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4177if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4192if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 4193if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 4218default: throw new ArgumentException(nameof(kind)); 4220if (gotoKeyword.Kind() != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 4226default: throw new ArgumentException(nameof(caseOrDefaultKeyword)); 4228if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4245if (breakKeyword.Kind() != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 4246if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4263if (continueKeyword.Kind() != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 4264if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4281if (returnKeyword.Kind() != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 4282if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4299if (throwKeyword.Kind() != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 4300if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4321default: throw new ArgumentException(nameof(kind)); 4323if (yieldKeyword.Kind() != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 4328default: throw new ArgumentException(nameof(returnOrBreakKeyword)); 4330if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4355if (whileKeyword.Kind() != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 4356if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4358if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4374if (doKeyword.Kind() != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 4376if (whileKeyword.Kind() != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 4377if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4379if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4380if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4395if (forKeyword.Kind() != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 4396if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4397if (firstSemicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 4398if (secondSemicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 4399if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4419default: throw new ArgumentException(nameof(awaitKeyword)); 4421if (forEachKeyword.Kind() != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 4422if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4424if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 4425if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 4427if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4451default: throw new ArgumentException(nameof(awaitKeyword)); 4453if (forEachKeyword.Kind() != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 4454if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4456if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 4458if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4478default: throw new ArgumentException(nameof(awaitKeyword)); 4480if (usingKeyword.Kind() != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 4481if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4482if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4498if (fixedKeyword.Kind() != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 4499if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4501if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4521default: throw new ArgumentException(nameof(kind)); 4527default: throw new ArgumentException(nameof(keyword)); 4554if (unsafeKeyword.Kind() != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 4572if (lockKeyword.Kind() != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 4573if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4575if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4591if (ifKeyword.Kind() != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 4592if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4594if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4610if (elseKeyword.Kind() != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 4622if (switchKeyword.Kind() != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 4627default: throw new ArgumentException(nameof(openParenToken)); 4634default: throw new ArgumentException(nameof(closeParenToken)); 4636if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 4637if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 4654if (keyword.Kind() != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 4656if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 4671if (keyword.Kind() != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 4673if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 4684if (keyword.Kind() != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 4685if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 4697if (switchKeyword.Kind() != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 4698if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 4699if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 4715if (equalsGreaterThanToken.Kind() != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 4731if (tryKeyword.Kind() != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 4749if (catchKeyword.Kind() != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 4765if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4771default: throw new ArgumentException(nameof(identifier)); 4773if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4788if (whenKeyword.Kind() != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 4789if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4791if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4802if (finallyKeyword.Kind() != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 4814if (endOfFileToken.Kind() != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 4829if (externKeyword.Kind() != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 4830if (aliasKeyword.Kind() != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 4831if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 4832if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4851default: throw new ArgumentException(nameof(globalKeyword)); 4853if (usingKeyword.Kind() != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 4858default: throw new ArgumentException(nameof(staticKeyword)); 4864default: throw new ArgumentException(nameof(unsafeKeyword)); 4867if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4882if (namespaceKeyword.Kind() != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 4884if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 4885if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 4890default: throw new ArgumentException(nameof(semicolonToken)); 4906if (namespaceKeyword.Kind() != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 4908if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 4923if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 4924if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 4939if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 4961if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 4962if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 4985if (equalsToken.Kind() != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 5000if (lessThanToken.Kind() != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 5001if (greaterThanToken.Kind() != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 5017default: throw new ArgumentException(nameof(varianceKeyword)); 5019if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5034if (keyword.Kind() != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 5035if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5040default: throw new ArgumentException(nameof(openBraceToken)); 5046default: throw new ArgumentException(nameof(closeBraceToken)); 5052default: throw new ArgumentException(nameof(semicolonToken)); 5060if (keyword.Kind() != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 5061if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5066default: throw new ArgumentException(nameof(openBraceToken)); 5072default: throw new ArgumentException(nameof(closeBraceToken)); 5078default: throw new ArgumentException(nameof(semicolonToken)); 5086if (keyword.Kind() != SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword)); 5087if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5092default: throw new ArgumentException(nameof(openBraceToken)); 5098default: throw new ArgumentException(nameof(closeBraceToken)); 5104default: throw new ArgumentException(nameof(semicolonToken)); 5112if (keyword.Kind() != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 5113if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5118default: throw new ArgumentException(nameof(openBraceToken)); 5124default: throw new ArgumentException(nameof(closeBraceToken)); 5130default: throw new ArgumentException(nameof(semicolonToken)); 5142default: throw new ArgumentException(nameof(kind)); 5149default: throw new ArgumentException(nameof(classOrStructKeyword)); 5151if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5156default: throw new ArgumentException(nameof(openBraceToken)); 5162default: throw new ArgumentException(nameof(closeBraceToken)); 5168default: throw new ArgumentException(nameof(semicolonToken)); 5196if (enumKeyword.Kind() != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 5197if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5202default: throw new ArgumentException(nameof(openBraceToken)); 5208default: throw new ArgumentException(nameof(closeBraceToken)); 5214default: throw new ArgumentException(nameof(semicolonToken)); 5222if (delegateKeyword.Kind() != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 5224if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5226if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 5245if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5260if (keyword.Kind() != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 5265default: throw new ArgumentException(nameof(openBraceToken)); 5271default: throw new ArgumentException(nameof(closeBraceToken)); 5277default: throw new ArgumentException(nameof(semicolonToken)); 5293if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 5323if (whereKeyword.Kind() != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 5325if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 5344if (newKeyword.Kind() != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 5345if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 5346if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 5361default: throw new ArgumentException(nameof(kind)); 5367default: throw new ArgumentException(nameof(classOrStructKeyword)); 5373default: throw new ArgumentException(nameof(questionToken)); 5400if (defaultKeyword.Kind() != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 5411if (allowsKeyword.Kind() != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 5422if (refKeyword.Kind() != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 5423if (structKeyword.Kind() != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 5435if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 5450if (eventKeyword.Kind() != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 5452if (semicolonToken.Kind() != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 5468if (dotToken.Kind() != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 5480if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5486default: throw new ArgumentException(nameof(semicolonToken)); 5507if (operatorKeyword.Kind() != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 5512default: throw new ArgumentException(nameof(checkedKeyword)); 5551default: throw new ArgumentException(nameof(operatorToken)); 5558default: throw new ArgumentException(nameof(semicolonToken)); 5578default: throw new ArgumentException(nameof(implicitOrExplicitKeyword)); 5580if (operatorKeyword.Kind() != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 5585default: throw new ArgumentException(nameof(checkedKeyword)); 5593default: throw new ArgumentException(nameof(semicolonToken)); 5609if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5615default: throw new ArgumentException(nameof(semicolonToken)); 5639default: throw new ArgumentException(nameof(kind)); 5641if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 5646default: throw new ArgumentException(nameof(thisOrBaseKeyword)); 5667if (tildeToken.Kind() != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 5668if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5674default: throw new ArgumentException(nameof(semicolonToken)); 5695if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5700default: throw new ArgumentException(nameof(semicolonToken)); 5720if (arrowToken.Kind() != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 5732if (eventKeyword.Kind() != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 5734if (identifier.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 5739default: throw new ArgumentException(nameof(semicolonToken)); 5760if (thisKeyword.Kind() != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 5766default: throw new ArgumentException(nameof(semicolonToken)); 5782if (openBraceToken.Kind() != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 5783if (closeBraceToken.Kind() != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 5802default: throw new ArgumentException(nameof(kind)); 5812default: throw new ArgumentException(nameof(keyword)); 5818default: throw new ArgumentException(nameof(semicolonToken)); 5846if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 5847if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 5858if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 5859if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 5875default: throw new ArgumentException(nameof(identifier)); 5920default: throw new ArgumentException(nameof(kind)); 5922if (endOfComment.Kind() != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 5941if (dotToken.Kind() != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 5964if (extensionKeyword.Kind() != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 5966if (dotToken.Kind() != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 5982if (thisKeyword.Kind() != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 5993if (operatorKeyword.Kind() != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 5998default: throw new ArgumentException(nameof(checkedKeyword)); 6036default: throw new ArgumentException(nameof(operatorToken)); 6056default: throw new ArgumentException(nameof(implicitOrExplicitKeyword)); 6058if (operatorKeyword.Kind() != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 6063default: throw new ArgumentException(nameof(checkedKeyword)); 6080if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 6081if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 6092if (openBracketToken.Kind() != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 6093if (closeBracketToken.Kind() != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 6110default: throw new ArgumentException(nameof(refKindKeyword)); 6116default: throw new ArgumentException(nameof(readOnlyKeyword)); 6145if (lessThanToken.Kind() != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 6147if (greaterThanToken.Kind() != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 6162if (lessThanSlashToken.Kind() != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 6164if (greaterThanToken.Kind() != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 6175if (lessThanToken.Kind() != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 6177if (slashGreaterThanToken.Kind() != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 6192if (localName.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 6207if (prefix.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 6208if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 6224if (equalsToken.Kind() != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 6229default: throw new ArgumentException(nameof(startQuoteToken)); 6235default: throw new ArgumentException(nameof(endQuoteToken)); 6252if (equalsToken.Kind() != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 6257default: throw new ArgumentException(nameof(startQuoteToken)); 6264default: throw new ArgumentException(nameof(endQuoteToken)); 6277if (equalsToken.Kind() != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 6282default: throw new ArgumentException(nameof(startQuoteToken)); 6289default: throw new ArgumentException(nameof(endQuoteToken)); 6315if (startCDataToken.Kind() != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 6316if (endCDataToken.Kind() != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 6327if (startProcessingInstructionToken.Kind() != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 6329if (endProcessingInstructionToken.Kind() != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 6344if (lessThanExclamationMinusMinusToken.Kind() != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 6345if (minusMinusGreaterThanToken.Kind() != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 6356if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6357if (ifKeyword.Kind() != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 6359if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6370if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6371if (elifKeyword.Kind() != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 6373if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6384if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6385if (elseKeyword.Kind() != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 6386if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6397if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6398if (endIfKeyword.Kind() != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 6399if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6410if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6411if (regionKeyword.Kind() != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 6412if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6423if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6424if (endRegionKeyword.Kind() != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 6425if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6436if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6437if (errorKeyword.Kind() != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 6438if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6449if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6450if (warningKeyword.Kind() != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 6451if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6462if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6463if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6474if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6475if (defineKeyword.Kind() != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 6476if (name.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 6477if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6492if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6493if (undefKeyword.Kind() != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 6494if (name.Kind() != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 6495if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6510if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6511if (lineKeyword.Kind() != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 6517default: throw new ArgumentException(nameof(line)); 6523default: throw new ArgumentException(nameof(file)); 6525if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6540if (openParenToken.Kind() != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 6541if (line.Kind() != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 6542if (commaToken.Kind() != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 6543if (character.Kind() != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 6544if (closeParenToken.Kind() != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 6555if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6556if (lineKeyword.Kind() != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 6558if (minusToken.Kind() != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 6564default: throw new ArgumentException(nameof(characterOffset)); 6566if (file.Kind() != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 6567if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6582if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6583if (pragmaKeyword.Kind() != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 6584if (warningKeyword.Kind() != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 6589default: throw new ArgumentException(nameof(disableOrRestoreKeyword)); 6591if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6606if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6607if (pragmaKeyword.Kind() != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 6608if (checksumKeyword.Kind() != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 6609if (file.Kind() != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 6610if (guid.Kind() != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 6611if (bytes.Kind() != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 6612if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6623if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6624if (referenceKeyword.Kind() != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 6625if (file.Kind() != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 6626if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6637if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6638if (loadKeyword.Kind() != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 6639if (file.Kind() != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 6640if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6651if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6652if (exclamationToken.Kind() != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 6653if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6664if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6665if (colonToken.Kind() != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 6670default: throw new ArgumentException(nameof(content)); 6672if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 6687if (hashToken.Kind() != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 6688if (nullableKeyword.Kind() != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 6694default: throw new ArgumentException(nameof(settingToken)); 6701default: throw new ArgumentException(nameof(targetToken)); 6703if (endOfDirectiveToken.Kind() != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
_generated\1\Syntax.xml.Internal.Generated.cs (986)
28691default: throw new ArgumentException(nameof(identifier)); 28713if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 28734if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 28755if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 28757if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 28778if (colonColonToken.Kind != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 28817default: throw new ArgumentException(nameof(keyword)); 28857if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 28859if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 28880if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 28900if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 28902if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 28913if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 28915if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 28939default: throw new ArgumentException(nameof(managedOrUnmanagedKeyword)); 28960if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 28962if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 28982if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 29003if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 29023if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29025if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29051default: throw new ArgumentException(nameof(identifier)); 29073if (omittedTypeArgumentToken.Kind != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 29093if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 29100default: throw new ArgumentException(nameof(readOnlyKeyword)); 29123if (scopedKeyword.Kind != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 29144if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29147if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29167if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29169if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29198default: throw new ArgumentException(nameof(kind)); 29213default: throw new ArgumentException(nameof(operatorToken)); 29235if (awaitKeyword.Kind != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 29259default: throw new ArgumentException(nameof(kind)); 29269default: throw new ArgumentException(nameof(operatorToken)); 29292default: throw new ArgumentException(nameof(kind)); 29301default: throw new ArgumentException(nameof(operatorToken)); 29324if (operatorToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 29345if (operatorToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 29385if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 29446default: throw new ArgumentException(nameof(kind)); 29475default: throw new ArgumentException(nameof(operatorToken)); 29510default: throw new ArgumentException(nameof(kind)); 29530default: throw new ArgumentException(nameof(operatorToken)); 29553if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 29556if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 29567if (token.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 29587if (token.Kind != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 29616default: throw new ArgumentException(nameof(kind)); 29635default: throw new ArgumentException(nameof(token)); 29656if (token.Kind != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 29676if (keyword.Kind != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 29678if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29681if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29691if (keyword.Kind != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 29693if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29696if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29706if (keyword.Kind != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 29708if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29711if (comma.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 29714if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29726default: throw new ArgumentException(nameof(kind)); 29734default: throw new ArgumentException(nameof(keyword)); 29737if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29740if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29750if (keyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(keyword)); 29752if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29755if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29765if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 29767if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29770if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29780if (keyword.Kind != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 29782if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29785if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29795if (keyword.Kind != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 29797if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29800if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29850if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29852if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29872if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29874if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29901default: throw new ArgumentException(nameof(refKindKeyword)); 29984if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29987if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29998if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 30010if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 30020if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 30042if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 30057default: throw new ArgumentException(nameof(kind)); 30061if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30063if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30083if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 30104if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 30116if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 30156if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 30158if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30160if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30170if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 30191if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 30193if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 30195if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 30206if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 30227if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 30229if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 30231if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 30242if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 30244if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 30283if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 30304if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 30364if (fromKeyword.Kind != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 30366if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30368if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 30379if (letKeyword.Kind != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 30381if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30383if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 30394if (joinKeyword.Kind != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 30396if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30398if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 30401if (onKeyword.Kind != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 30404if (equalsKeyword.Kind != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 30415if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 30417if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30437if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 30458if (orderByKeyword.Kind != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 30480default: throw new ArgumentException(nameof(kind)); 30491default: throw new ArgumentException(nameof(ascendingOrDescendingKeyword)); 30513if (selectKeyword.Kind != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 30534if (groupKeyword.Kind != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 30537if (byKeyword.Kind != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 30548if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 30550if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30571if (omittedArraySizeExpressionToken.Kind != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 30597default: throw new ArgumentException(nameof(stringStartToken)); 30604default: throw new ArgumentException(nameof(stringEndToken)); 30626if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 30647if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 30668if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 30689if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 30729if (varKeyword.Kind != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 30758if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30760if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30780if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30782if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30840if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30843if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30871default: throw new ArgumentException(nameof(operatorToken)); 30914default: throw new ArgumentException(nameof(kind)); 30923default: throw new ArgumentException(nameof(operatorToken)); 30945if (operatorToken.Kind != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 30966if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 30968if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 30978if (dotDotToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 30998if (textToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 31018if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31021if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31052if (formatStringToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 31091if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31093if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31104if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31112default: throw new ArgumentException(nameof(semicolonToken)); 31129default: throw new ArgumentException(nameof(awaitKeyword)); 31138default: throw new ArgumentException(nameof(usingKeyword)); 31143if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31172if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31192if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 31213if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31233if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 31253if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31255if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31276if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31296if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31316if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31318if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 31332default: throw new ArgumentException(nameof(kind)); 31336if (gotoKeyword.Kind != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 31344default: throw new ArgumentException(nameof(caseOrDefaultKeyword)); 31348if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31358if (breakKeyword.Kind != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 31360if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31370if (continueKeyword.Kind != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 31372if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31382if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 31384if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31394if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 31396if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31408default: throw new ArgumentException(nameof(kind)); 31412if (yieldKeyword.Kind != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 31418default: throw new ArgumentException(nameof(returnOrBreakKeyword)); 31421if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31431if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 31433if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31436if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31447if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 31450if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 31452if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31455if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31457if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31467if (forKeyword.Kind != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 31469if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31471if (firstSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 31473if (secondSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 31475if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31491default: throw new ArgumentException(nameof(awaitKeyword)); 31495if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 31497if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31500if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31502if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31505if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31521default: throw new ArgumentException(nameof(awaitKeyword)); 31525if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 31527if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31530if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31533if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31549default: throw new ArgumentException(nameof(awaitKeyword)); 31553if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 31555if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31557if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31568if (fixedKeyword.Kind != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 31570if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31573if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31586default: throw new ArgumentException(nameof(kind)); 31594default: throw new ArgumentException(nameof(keyword)); 31616if (unsafeKeyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 31637if (lockKeyword.Kind != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 31639if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31642if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31653if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 31655if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31658if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31669if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 31690if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 31697default: throw new ArgumentException(nameof(openParenToken)); 31707default: throw new ArgumentException(nameof(closeParenToken)); 31711if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31713if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31741if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 31753if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 31775if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 31797if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 31799if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31801if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31812if (equalsGreaterThanToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 31823if (tryKeyword.Kind != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 31834if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 31845if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31853default: throw new ArgumentException(nameof(identifier)); 31857if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31867if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 31869if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31872if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31882if (finallyKeyword.Kind != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 31903if (endOfFileToken.Kind != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 31913if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 31915if (aliasKeyword.Kind != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 31917if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31919if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31934default: throw new ArgumentException(nameof(globalKeyword)); 31938if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 31945default: throw new ArgumentException(nameof(staticKeyword)); 31954default: throw new ArgumentException(nameof(unsafeKeyword)); 31959if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31969if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31972if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31974if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31981default: throw new ArgumentException(nameof(semicolonToken)); 31993if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31996if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32006if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 32008if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 32019if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32048if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32050if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32090if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 32110if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 32112if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 32138default: throw new ArgumentException(nameof(varianceKeyword)); 32142if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32162if (keyword.Kind != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 32164if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32171default: throw new ArgumentException(nameof(openBraceToken)); 32180default: throw new ArgumentException(nameof(closeBraceToken)); 32189default: throw new ArgumentException(nameof(semicolonToken)); 32201if (keyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 32203if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32210default: throw new ArgumentException(nameof(openBraceToken)); 32219default: throw new ArgumentException(nameof(closeBraceToken)); 32228default: throw new ArgumentException(nameof(semicolonToken)); 32240if (keyword.Kind != SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword)); 32242if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32249default: throw new ArgumentException(nameof(openBraceToken)); 32258default: throw new ArgumentException(nameof(closeBraceToken)); 32267default: throw new ArgumentException(nameof(semicolonToken)); 32279if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 32281if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32288default: throw new ArgumentException(nameof(openBraceToken)); 32297default: throw new ArgumentException(nameof(closeBraceToken)); 32306default: throw new ArgumentException(nameof(semicolonToken)); 32320default: throw new ArgumentException(nameof(kind)); 32331default: throw new ArgumentException(nameof(classOrStructKeyword)); 32335if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32342default: throw new ArgumentException(nameof(openBraceToken)); 32351default: throw new ArgumentException(nameof(closeBraceToken)); 32360default: throw new ArgumentException(nameof(semicolonToken)); 32372if (enumKeyword.Kind != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 32374if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32381default: throw new ArgumentException(nameof(openBraceToken)); 32390default: throw new ArgumentException(nameof(closeBraceToken)); 32399default: throw new ArgumentException(nameof(semicolonToken)); 32411if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 32414if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32417if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32427if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32437if (keyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 32444default: throw new ArgumentException(nameof(openBraceToken)); 32453default: throw new ArgumentException(nameof(closeBraceToken)); 32462default: throw new ArgumentException(nameof(semicolonToken)); 32474if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32533if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 32536if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32546if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 32548if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32550if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32572default: throw new ArgumentException(nameof(kind)); 32580default: throw new ArgumentException(nameof(classOrStructKeyword)); 32588default: throw new ArgumentException(nameof(questionToken)); 32629if (defaultKeyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 32649if (allowsKeyword.Kind != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 32669if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 32671if (structKeyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 32692if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32702if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 32705if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32716if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32737if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32745default: throw new ArgumentException(nameof(semicolonToken)); 32758if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32765default: throw new ArgumentException(nameof(checkedKeyword)); 32806default: throw new ArgumentException(nameof(operatorToken)); 32815default: throw new ArgumentException(nameof(semicolonToken)); 32831default: throw new ArgumentException(nameof(implicitOrExplicitKeyword)); 32834if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32841default: throw new ArgumentException(nameof(checkedKeyword)); 32852default: throw new ArgumentException(nameof(semicolonToken)); 32864if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32872default: throw new ArgumentException(nameof(semicolonToken)); 32886default: throw new ArgumentException(nameof(kind)); 32890if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32896default: throw new ArgumentException(nameof(thisOrBaseKeyword)); 32918if (tildeToken.Kind != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 32920if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32928default: throw new ArgumentException(nameof(semicolonToken)); 32941if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32948default: throw new ArgumentException(nameof(semicolonToken)); 32960if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 32981if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 32984if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32991default: throw new ArgumentException(nameof(semicolonToken)); 33004if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 33012default: throw new ArgumentException(nameof(semicolonToken)); 33024if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 33026if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 33052default: throw new ArgumentException(nameof(kind)); 33064default: throw new ArgumentException(nameof(keyword)); 33072default: throw new ArgumentException(nameof(semicolonToken)); 33084if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 33086if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 33106if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 33108if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 33134default: throw new ArgumentException(nameof(identifier)); 33183default: throw new ArgumentException(nameof(kind)); 33187if (endOfComment.Kind != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 33217if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 33257if (extensionKeyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 33260if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 33271if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 33291if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 33298default: throw new ArgumentException(nameof(checkedKeyword)); 33338default: throw new ArgumentException(nameof(operatorToken)); 33353default: throw new ArgumentException(nameof(implicitOrExplicitKeyword)); 33356if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 33363default: throw new ArgumentException(nameof(checkedKeyword)); 33376if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 33378if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 33398if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 33400if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 33427default: throw new ArgumentException(nameof(refKindKeyword)); 33436default: throw new ArgumentException(nameof(readOnlyKeyword)); 33479if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33482if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33492if (lessThanSlashToken.Kind != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 33495if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33515if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33518if (slashGreaterThanToken.Kind != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 33528if (localName.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 33548if (prefix.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 33550if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 33571if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33577default: throw new ArgumentException(nameof(startQuoteToken)); 33584default: throw new ArgumentException(nameof(endQuoteToken)); 33596if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33602default: throw new ArgumentException(nameof(startQuoteToken)); 33610default: throw new ArgumentException(nameof(endQuoteToken)); 33622if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33628default: throw new ArgumentException(nameof(startQuoteToken)); 33636default: throw new ArgumentException(nameof(endQuoteToken)); 33665if (startCDataToken.Kind != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 33667if (endCDataToken.Kind != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 33687if (startProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 33690if (endProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 33700if (lessThanExclamationMinusMinusToken.Kind != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 33702if (minusMinusGreaterThanToken.Kind != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 33722if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33724if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 33727if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33737if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33739if (elifKeyword.Kind != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 33742if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33752if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33754if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 33756if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33766if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33768if (endIfKeyword.Kind != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 33770if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33780if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33782if (regionKeyword.Kind != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 33784if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33794if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33796if (endRegionKeyword.Kind != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 33798if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33808if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33810if (errorKeyword.Kind != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 33812if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33822if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33824if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 33826if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33836if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33839if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33849if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33851if (defineKeyword.Kind != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 33853if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33855if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33865if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33867if (undefKeyword.Kind != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 33869if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33871if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33881if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33883if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 33890default: throw new ArgumentException(nameof(line)); 33898default: throw new ArgumentException(nameof(file)); 33902if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33912if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 33914if (line.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 33916if (commaToken.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 33918if (character.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 33920if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 33930if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33932if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 33935if (minusToken.Kind != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 33943default: throw new ArgumentException(nameof(characterOffset)); 33947if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33949if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33959if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33961if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 33963if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 33969default: throw new ArgumentException(nameof(disableOrRestoreKeyword)); 33972if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33982if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33984if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 33986if (checksumKeyword.Kind != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 33988if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33990if (guid.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 33992if (bytes.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 33994if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 34004if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 34006if (referenceKeyword.Kind != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 34008if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 34010if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 34020if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 34022if (loadKeyword.Kind != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 34024if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 34026if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 34036if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 34038if (exclamationToken.Kind != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 34040if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 34050if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 34052if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 34059default: throw new ArgumentException(nameof(content)); 34063if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 34073if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 34075if (nullableKeyword.Kind != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 34082default: throw new ArgumentException(nameof(settingToken)); 34091default: throw new ArgumentException(nameof(targetToken)); 34095if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 34113default: throw new ArgumentException(nameof(identifier)); 34135if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 34156if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 34177if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 34179if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 34200if (colonColonToken.Kind != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 34239default: throw new ArgumentException(nameof(keyword)); 34279if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 34281if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 34302if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 34322if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 34324if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 34335if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 34337if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 34361default: throw new ArgumentException(nameof(managedOrUnmanagedKeyword)); 34382if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 34384if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 34404if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 34425if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 34445if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34447if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34473default: throw new ArgumentException(nameof(identifier)); 34495if (omittedTypeArgumentToken.Kind != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 34515if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 34522default: throw new ArgumentException(nameof(readOnlyKeyword)); 34545if (scopedKeyword.Kind != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 34566if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34569if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34589if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34591if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34620default: throw new ArgumentException(nameof(kind)); 34635default: throw new ArgumentException(nameof(operatorToken)); 34657if (awaitKeyword.Kind != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 34681default: throw new ArgumentException(nameof(kind)); 34691default: throw new ArgumentException(nameof(operatorToken)); 34714default: throw new ArgumentException(nameof(kind)); 34723default: throw new ArgumentException(nameof(operatorToken)); 34746if (operatorToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 34767if (operatorToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 34807if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 34868default: throw new ArgumentException(nameof(kind)); 34897default: throw new ArgumentException(nameof(operatorToken)); 34932default: throw new ArgumentException(nameof(kind)); 34952default: throw new ArgumentException(nameof(operatorToken)); 34975if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 34978if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 34989if (token.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 35009if (token.Kind != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 35038default: throw new ArgumentException(nameof(kind)); 35057default: throw new ArgumentException(nameof(token)); 35078if (token.Kind != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 35098if (keyword.Kind != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 35100if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35103if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35113if (keyword.Kind != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 35115if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35118if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35128if (keyword.Kind != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 35130if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35133if (comma.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 35136if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35148default: throw new ArgumentException(nameof(kind)); 35156default: throw new ArgumentException(nameof(keyword)); 35159if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35162if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35172if (keyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(keyword)); 35174if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35177if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35187if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 35189if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35192if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35202if (keyword.Kind != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 35204if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35207if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35217if (keyword.Kind != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 35219if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35222if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35272if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35274if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35294if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35296if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35323default: throw new ArgumentException(nameof(refKindKeyword)); 35406if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35409if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35420if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 35432if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 35442if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 35464if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 35479default: throw new ArgumentException(nameof(kind)); 35483if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35485if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35505if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35526if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35538if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 35578if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35580if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35582if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35592if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35613if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35615if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35617if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35628if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 35649if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 35651if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35653if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35664if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35666if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35705if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 35726if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 35786if (fromKeyword.Kind != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 35788if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35790if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35801if (letKeyword.Kind != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 35803if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35805if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 35816if (joinKeyword.Kind != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 35818if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35820if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35823if (onKeyword.Kind != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 35826if (equalsKeyword.Kind != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 35837if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 35839if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35859if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 35880if (orderByKeyword.Kind != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 35902default: throw new ArgumentException(nameof(kind)); 35913default: throw new ArgumentException(nameof(ascendingOrDescendingKeyword)); 35935if (selectKeyword.Kind != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 35956if (groupKeyword.Kind != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 35959if (byKeyword.Kind != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 35970if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 35972if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35993if (omittedArraySizeExpressionToken.Kind != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 36019default: throw new ArgumentException(nameof(stringStartToken)); 36026default: throw new ArgumentException(nameof(stringEndToken)); 36048if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 36069if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 36090if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 36111if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 36151if (varKeyword.Kind != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 36180if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36182if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36202if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36204if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36262if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36265if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36293default: throw new ArgumentException(nameof(operatorToken)); 36336default: throw new ArgumentException(nameof(kind)); 36345default: throw new ArgumentException(nameof(operatorToken)); 36367if (operatorToken.Kind != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 36388if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 36390if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 36400if (dotDotToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 36420if (textToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 36440if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36443if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36474if (formatStringToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 36513if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36515if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36526if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36534default: throw new ArgumentException(nameof(semicolonToken)); 36551default: throw new ArgumentException(nameof(awaitKeyword)); 36560default: throw new ArgumentException(nameof(usingKeyword)); 36565if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36594if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36614if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 36635if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36655if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 36675if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36677if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36698if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36718if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36738if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36740if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 36754default: throw new ArgumentException(nameof(kind)); 36758if (gotoKeyword.Kind != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 36766default: throw new ArgumentException(nameof(caseOrDefaultKeyword)); 36770if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36780if (breakKeyword.Kind != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 36782if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36792if (continueKeyword.Kind != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 36794if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36804if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 36806if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36816if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 36818if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36830default: throw new ArgumentException(nameof(kind)); 36834if (yieldKeyword.Kind != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 36840default: throw new ArgumentException(nameof(returnOrBreakKeyword)); 36843if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36853if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 36855if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36858if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36869if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 36872if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 36874if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36877if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36879if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36889if (forKeyword.Kind != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 36891if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36893if (firstSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 36895if (secondSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 36897if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36913default: throw new ArgumentException(nameof(awaitKeyword)); 36917if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 36919if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36922if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36924if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36927if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36943default: throw new ArgumentException(nameof(awaitKeyword)); 36947if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 36949if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36952if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36955if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36971default: throw new ArgumentException(nameof(awaitKeyword)); 36975if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 36977if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36979if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36990if (fixedKeyword.Kind != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 36992if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36995if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37008default: throw new ArgumentException(nameof(kind)); 37016default: throw new ArgumentException(nameof(keyword)); 37038if (unsafeKeyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 37059if (lockKeyword.Kind != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 37061if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37064if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37075if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 37077if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37080if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37091if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 37112if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 37119default: throw new ArgumentException(nameof(openParenToken)); 37129default: throw new ArgumentException(nameof(closeParenToken)); 37133if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 37135if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 37163if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 37175if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 37197if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 37219if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 37221if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 37223if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 37234if (equalsGreaterThanToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 37245if (tryKeyword.Kind != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 37256if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 37267if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37275default: throw new ArgumentException(nameof(identifier)); 37279if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37289if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 37291if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37294if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37304if (finallyKeyword.Kind != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 37325if (endOfFileToken.Kind != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 37335if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 37337if (aliasKeyword.Kind != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 37339if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37341if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37356default: throw new ArgumentException(nameof(globalKeyword)); 37360if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 37367default: throw new ArgumentException(nameof(staticKeyword)); 37376default: throw new ArgumentException(nameof(unsafeKeyword)); 37381if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37391if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 37394if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 37396if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 37403default: throw new ArgumentException(nameof(semicolonToken)); 37415if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 37418if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37428if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 37430if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 37441if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37470if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37472if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37512if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 37532if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 37534if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 37560default: throw new ArgumentException(nameof(varianceKeyword)); 37564if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37584if (keyword.Kind != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 37586if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37593default: throw new ArgumentException(nameof(openBraceToken)); 37602default: throw new ArgumentException(nameof(closeBraceToken)); 37611default: throw new ArgumentException(nameof(semicolonToken)); 37623if (keyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 37625if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37632default: throw new ArgumentException(nameof(openBraceToken)); 37641default: throw new ArgumentException(nameof(closeBraceToken)); 37650default: throw new ArgumentException(nameof(semicolonToken)); 37662if (keyword.Kind != SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword)); 37664if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37671default: throw new ArgumentException(nameof(openBraceToken)); 37680default: throw new ArgumentException(nameof(closeBraceToken)); 37689default: throw new ArgumentException(nameof(semicolonToken)); 37701if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 37703if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37710default: throw new ArgumentException(nameof(openBraceToken)); 37719default: throw new ArgumentException(nameof(closeBraceToken)); 37728default: throw new ArgumentException(nameof(semicolonToken)); 37742default: throw new ArgumentException(nameof(kind)); 37753default: throw new ArgumentException(nameof(classOrStructKeyword)); 37757if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37764default: throw new ArgumentException(nameof(openBraceToken)); 37773default: throw new ArgumentException(nameof(closeBraceToken)); 37782default: throw new ArgumentException(nameof(semicolonToken)); 37794if (enumKeyword.Kind != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 37796if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37803default: throw new ArgumentException(nameof(openBraceToken)); 37812default: throw new ArgumentException(nameof(closeBraceToken)); 37821default: throw new ArgumentException(nameof(semicolonToken)); 37833if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 37836if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37839if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37849if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37859if (keyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 37866default: throw new ArgumentException(nameof(openBraceToken)); 37875default: throw new ArgumentException(nameof(closeBraceToken)); 37884default: throw new ArgumentException(nameof(semicolonToken)); 37896if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37955if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 37958if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37968if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 37970if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37972if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37994default: throw new ArgumentException(nameof(kind)); 38002default: throw new ArgumentException(nameof(classOrStructKeyword)); 38010default: throw new ArgumentException(nameof(questionToken)); 38051if (defaultKeyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 38071if (allowsKeyword.Kind != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 38091if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 38093if (structKeyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 38114if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 38124if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 38127if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 38138if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38159if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 38167default: throw new ArgumentException(nameof(semicolonToken)); 38180if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38187default: throw new ArgumentException(nameof(checkedKeyword)); 38228default: throw new ArgumentException(nameof(operatorToken)); 38237default: throw new ArgumentException(nameof(semicolonToken)); 38253default: throw new ArgumentException(nameof(implicitOrExplicitKeyword)); 38256if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38263default: throw new ArgumentException(nameof(checkedKeyword)); 38274default: throw new ArgumentException(nameof(semicolonToken)); 38286if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 38294default: throw new ArgumentException(nameof(semicolonToken)); 38308default: throw new ArgumentException(nameof(kind)); 38312if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 38318default: throw new ArgumentException(nameof(thisOrBaseKeyword)); 38340if (tildeToken.Kind != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 38342if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 38350default: throw new ArgumentException(nameof(semicolonToken)); 38363if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 38370default: throw new ArgumentException(nameof(semicolonToken)); 38382if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 38403if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 38406if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 38413default: throw new ArgumentException(nameof(semicolonToken)); 38426if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 38434default: throw new ArgumentException(nameof(semicolonToken)); 38446if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 38448if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 38474default: throw new ArgumentException(nameof(kind)); 38486default: throw new ArgumentException(nameof(keyword)); 38494default: throw new ArgumentException(nameof(semicolonToken)); 38506if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38508if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38528if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 38530if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 38556default: throw new ArgumentException(nameof(identifier)); 38605default: throw new ArgumentException(nameof(kind)); 38609if (endOfComment.Kind != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 38639if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38679if (extensionKeyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 38682if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38693if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 38713if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38720default: throw new ArgumentException(nameof(checkedKeyword)); 38760default: throw new ArgumentException(nameof(operatorToken)); 38775default: throw new ArgumentException(nameof(implicitOrExplicitKeyword)); 38778if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38785default: throw new ArgumentException(nameof(checkedKeyword)); 38798if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38800if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38820if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 38822if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 38849default: throw new ArgumentException(nameof(refKindKeyword)); 38858default: throw new ArgumentException(nameof(readOnlyKeyword)); 38901if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 38904if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 38914if (lessThanSlashToken.Kind != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 38917if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 38937if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 38940if (slashGreaterThanToken.Kind != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 38950if (localName.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 38970if (prefix.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 38972if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 38993if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38999default: throw new ArgumentException(nameof(startQuoteToken)); 39006default: throw new ArgumentException(nameof(endQuoteToken)); 39018if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 39024default: throw new ArgumentException(nameof(startQuoteToken)); 39032default: throw new ArgumentException(nameof(endQuoteToken)); 39044if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 39050default: throw new ArgumentException(nameof(startQuoteToken)); 39058default: throw new ArgumentException(nameof(endQuoteToken)); 39087if (startCDataToken.Kind != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 39089if (endCDataToken.Kind != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 39109if (startProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 39112if (endProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 39122if (lessThanExclamationMinusMinusToken.Kind != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 39124if (minusMinusGreaterThanToken.Kind != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 39144if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39146if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 39149if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39159if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39161if (elifKeyword.Kind != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 39164if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39174if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39176if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 39178if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39188if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39190if (endIfKeyword.Kind != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 39192if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39202if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39204if (regionKeyword.Kind != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 39206if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39216if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39218if (endRegionKeyword.Kind != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 39220if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39230if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39232if (errorKeyword.Kind != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 39234if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39244if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39246if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 39248if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39258if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39261if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39271if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39273if (defineKeyword.Kind != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 39275if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 39277if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39287if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39289if (undefKeyword.Kind != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 39291if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 39293if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39303if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39305if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 39312default: throw new ArgumentException(nameof(line)); 39320default: throw new ArgumentException(nameof(file)); 39324if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39334if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 39336if (line.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 39338if (commaToken.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 39340if (character.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 39342if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 39352if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39354if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 39357if (minusToken.Kind != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 39365default: throw new ArgumentException(nameof(characterOffset)); 39369if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 39371if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39381if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39383if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 39385if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 39391default: throw new ArgumentException(nameof(disableOrRestoreKeyword)); 39394if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39404if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39406if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 39408if (checksumKeyword.Kind != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 39410if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 39412if (guid.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 39414if (bytes.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 39416if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39426if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39428if (referenceKeyword.Kind != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 39430if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 39432if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39442if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39444if (loadKeyword.Kind != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 39446if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 39448if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39458if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39460if (exclamationToken.Kind != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 39462if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39472if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39474if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 39481default: throw new ArgumentException(nameof(content)); 39485if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39495if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39497if (nullableKeyword.Kind != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 39504default: throw new ArgumentException(nameof(settingToken)); 39513default: throw new ArgumentException(nameof(targetToken)); 39517if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
Binder\LookupOptions.cs (1)
171throw new ArgumentException(CSharpResources.LookupOptionsHasInvalidCombo);
Compilation\CSharpCompilation.cs (8)
2480throw new ArgumentException(nameof(rank)); 4285throw new ArgumentException(string.Format(CSharpResources.NotSameNumberParameterTypesAndRefKinds, parameterTypes.Length, parameterRefKinds.Length)); 4291throw new ArgumentException(CSharpResources.OutIsNotValidForReturn); 4296throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypesRequireUnmanaged, nameof(callingConventionTypes), nameof(callingConvention))); 4331throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypeIsInvalid, type.ToDisplayString())); 4417throw new ArgumentException($"Non-ReadOnly members are not supported in C# anonymous types."); 4652throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpLeftType.ToDisplayString()}, {csharpRightType.ToDisplayString()})")); 4734throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpOperandType.ToDisplayString()})"));
Compilation\CSharpSemanticModel.cs (8)
1385throw new ArgumentException(CSharpResources.SyntaxNodeIsNotWithinSynt); 1404throw new ArgumentException(CSharpResources.SpeculatedSyntaxNodeCannotBelongToCurrentCompilation); 5379throw new ArgumentException("firstStatement is not a StatementSyntax."); 5384throw new ArgumentException("firstStatement is a StatementSyntax but lastStatement isn't."); 5399throw new ArgumentException("statement is not a StatementSyntax."); 5419throw new ArgumentException("firstStatement is not a StatementSyntax."); 5424throw new ArgumentException("lastStatement is not a StatementSyntax."); 5445throw new ArgumentException("statementOrExpression is not a StatementSyntax or an ExpressionSyntax or a ConstructorInitializerSyntax or a PrimaryConstructorBaseTypeSyntax.");
Compilation\MemberSemanticModel.cs (1)
928throw new ArgumentException("node.Kind==" + node.Kind());
Compilation\SyntaxTreeSemanticModel.cs (10)
110throw new ArgumentException("span"); 1722throw new ArgumentException(CSharpResources.InvalidGetDeclarationNameMultipleDeclarators); 2197throw new ArgumentException("typeParameter not within tree"); 2266throw new ArgumentException("statements not within tree"); 2273throw new ArgumentException("global statements not within the same compilation unit"); 2279throw new ArgumentException("statements not within the same statement list"); 2284throw new ArgumentException("first statement does not precede last statement"); 2297throw new ArgumentException("expression not within tree"); 2314throw new ArgumentException("node not within tree"); 2331throw new ArgumentException("node not within tree");
SymbolDisplay\SymbolDisplay.cs (1)
259throw new ArgumentException(CSharpResources.SyntaxTreeSemanticModelMust);
Symbols\PublicModel\Symbol.cs (2)
36throw new ArgumentException(nameof(typeArguments)); 42throw new ArgumentException(nameof(typeArgumentNullableAnnotations));
Syntax\ParameterSyntax.cs (1)
21throw new System.ArgumentException(CSharpResources.ParameterRequiresTypeOrIdentifier);
Syntax\ShebangDirectiveTriviaSyntax.cs (1)
47throw new ArgumentException(nameof(content));
Syntax\SyntaxFactory.cs (7)
207throw new ArgumentException("kind"); 344throw new ArgumentException("text should not start with an @ character."); 1497throw new ArgumentException(CodeAnalysisResources.NodeOrTokenOutOfSequence); 1502throw new ArgumentException(CodeAnalysisResources.UnexpectedTypeOfNodeInList); 2371throw new ArgumentException(CSharpResources.SyntaxTreeIsNotASubmission); 2820: throw new ArgumentException(nameof(body)); 2825: throw new ArgumentException(nameof(body));
Utilities\ValueSetFactory.ByteTC.cs (1)
39throw new ArgumentException("relation");
Utilities\ValueSetFactory.CharTC.cs (1)
39throw new ArgumentException("relation");
Utilities\ValueSetFactory.DecimalTC.cs (2)
104throw new ArgumentException("relation"); 139throw new ArgumentException("scale");
Utilities\ValueSetFactory.DoubleTC.cs (1)
79throw new ArgumentException("relation");
Utilities\ValueSetFactory.IntTC.cs (1)
49throw new ArgumentException("relation");
Utilities\ValueSetFactory.LongTC.cs (1)
39throw new ArgumentException("relation");
Utilities\ValueSetFactory.SByteTC.cs (1)
38throw new ArgumentException("relation");
Utilities\ValueSetFactory.ShortTC.cs (1)
39throw new ArgumentException("relation");
Utilities\ValueSetFactory.SingleTC.cs (1)
83throw new ArgumentException("relation");
Utilities\ValueSetFactory.UIntTC.cs (1)
39throw new ArgumentException("relation");
Utilities\ValueSetFactory.ULongTC.cs (1)
39throw new ArgumentException("relation");
Utilities\ValueSetFactory.UShortTC.cs (1)
39throw new ArgumentException("relation");
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (5)
325throw new ArgumentException("target"); 374throw new ArgumentException("attributeToRemove"); 389throw new ArgumentException("attributeToRemove"); 474throw new ArgumentException("attributeToRemove"); 566throw new ArgumentException(WorkspaceExtensionsResources.No_available_location_found_to_add_statements_to);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (2)
38throw new ArgumentException(WorkspaceExtensionsResources.Namespace_can_not_be_added_in_this_destination); 60throw new ArgumentException(WorkspaceExtensionsResources.Namespace_can_not_be_added_in_this_destination);
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
186_ => throw new ArgumentException("Unexpected interface member symbol kind")
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (3)
156throw new ArgumentException("GroupJoin is not supported"); 216throw new ArgumentException($"Unexpected node kind {node.Kind()}"); 805throw new ArgumentException("Last node must me the select clause");
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
301throw new ArgumentException("Unknown operator kind."); 348_ => throw new ArgumentException("Unknown operator kind."),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (5)
325throw new ArgumentException("target"); 374throw new ArgumentException("attributeToRemove"); 389throw new ArgumentException("attributeToRemove"); 474throw new ArgumentException("attributeToRemove"); 566throw new ArgumentException(WorkspaceExtensionsResources.No_available_location_found_to_add_statements_to);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (2)
38throw new ArgumentException(WorkspaceExtensionsResources.Namespace_can_not_be_added_in_this_destination); 60throw new ArgumentException(WorkspaceExtensionsResources.Namespace_can_not_be_added_in_this_destination);
Microsoft.CodeAnalysis.Extensions.Package (5)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
Microsoft.CodeAnalysis.Features (11)
BraceMatching\BraceMatchingService.cs (1)
29throw new ArgumentException(nameof(position));
CodeFixes\Suppression\ExportConfigurationFixProviderAttribute.cs (1)
39throw new ArgumentException(nameof(languages));
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (3)
119throw new ArgumentException(nameof(container)); 193throw new ArgumentException(nameof(targetNamespace)); 198throw new ArgumentException(nameof(container));
Completion\SharedSyntaxContextsWithSpeculativeModel.cs (1)
36throw new ArgumentException("Don't support getting SyntaxContext for document unrelated to the original document");
FindUsages\DefinitionsAndReferences.cs (1)
43throw new ArgumentException(
InlineHints\InlineHint.cs (1)
47throw new ArgumentException($"{nameof(displayParts)} must be non-empty");
SignatureHelp\SignatureHelpItem.cs (1)
51throw new ArgumentException(FeaturesResources.Variadic_SignatureHelpItem_must_have_at_least_one_parameter);
Snippets\SnippetChange.cs (1)
39throw new ArgumentException($"{nameof(textChanges)} must not be empty.");
Snippets\SnippetPlaceholder.cs (1)
37throw new ArgumentException($"{nameof(text)} must not be an null or empty.");
Microsoft.CodeAnalysis.NetAnalyzers (6)
Microsoft.NetCore.Analyzers\Security\Helpers\InsecureObjectGraphResult.cs (2)
21throw new ArgumentException("Either insecureSymbol or insecureAttribute should be non-null"); 27throw new ArgumentException(
src\9382845807600969\InterproceduralAnalysisPredicate.cs (1)
26throw new ArgumentException("You must provide at least one non-null predicate argument");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
285throw new ArgumentException($"Unsupported symbol kind '{symbol.Kind}' for symbol '{symbol}'");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (1)
95throw new ArgumentException($"ConstructorMapper PropertyAbstractValues has invalid length (expected {propertyCount}, actual length {this.PropertyAbstractValues.Length})");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (1)
65throw new ArgumentException("Can't specify constantArrayLengthMatcher unless taintConstantArray is true");
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\CodeGeneration\CodeWriter.cs (1)
396throw new ArgumentException($"{nameof(count)} is greater than the number of elements from {nameof(index)} to the end of {nameof(buffer)}.");
Language\RazorParserOptions.cs (1)
44throw new ArgumentException($"Cannot set {nameof(Flags.ParseLeadingDirectives)} and {nameof(Flags.UseRoslynTokenizer)} to true simultaneously.");
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
287throw new ArgumentException($"Unsupported symbol kind '{symbol.Kind}' for symbol '{symbol}'");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
Microsoft.CodeAnalysis.Scripting (1)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
166throw new ArgumentException(Microsoft.CodeAnalysis.Scripting.ScriptingResources.InvalidAssemblyName);
Microsoft.CodeAnalysis.Workspaces (69)
CodeCleanup\Providers\ExportCodeCleanupProvider.cs (1)
26throw new ArgumentException("languages");
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
57throw new ArgumentException(message);
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
53throw new ArgumentException(message);
Editing\SymbolEditor.cs (2)
274throw new ArgumentException(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name)); 411throw new ArgumentException(string.Format(WorkspacesResources.The_member_0_is_not_declared_within_the_declaration_of_the_symbol, member.Name));
Editing\SyntaxGenerator.cs (2)
282throw new ArgumentException($"Method kind '{method.MethodKind}' is not an operator."); 821throw new ArgumentException("Symbol cannot be converted to a declaration");
Options\OptionKey.cs (1)
28throw new ArgumentException(CompilerExtensionsResources.A_language_name_cannot_be_specified_for_this_option);
Rename\Renamer.cs (1)
63throw new ArgumentException(resolution.ErrorMessage);
Rename\Renamer.RenameDocumentActionSet.cs (1)
82throw new ArgumentException(string.Format(WorkspacesResources.Cannot_apply_action_that_is_not_in_0, nameof(ApplicableActions)));
Shared\Utilities\ExtensionOrderer.Node.cs (1)
26throw new ArgumentException(WorkspacesResources.Cycle_detected_in_extensions);
src\roslyn\src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (1)
191throw new ArgumentException("Pinned value must match string.");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
230throw new ArgumentException($"Not a valid assembly: {originalPath}");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
378throw new ArgumentException($"Shadow copy path '{shadowCopyPath}' must not be the root directory");
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
239throw new ArgumentException(WorkspaceExtensionsResources.Could_not_find_location_to_generation_symbol_into); 485throw new ArgumentException(WorkspaceExtensionsResources.No_location_provided_to_add_statements_to); 490throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_not_in_source); 495throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_from_a_different_tree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
61throw new ArgumentException($"{nameof(GetRequiredDocument)} was given a source-generated DocumentId, but it will never return a source generated document. The caller needs to be calling some other method.");
Workspace\CommandLineProject.cs (4)
31throw new ArgumentException(WorkspacesResources.Unrecognized_language_name); 69throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_metadata_reference_colon_0, ((UnresolvedMetadataReference)unresolvedMetadataReferences).Reference)); 82throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_analyzer_reference_colon_0, ((UnresolvedAnalyzerReference)unresolvedAnalyzerReferences).Display)); 96throw new ArgumentException(string.Format(WorkspacesResources.An_error_occurred_while_reading_the_specified_configuration_file_colon_0, e.Message));
Workspace\Host\DocumentService\ISpanMappingService.cs (1)
74throw new System.ArgumentException(nameof(filePath));
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
162throw new ArgumentException($"'{fullPath}' has already been added to this project."); 199throw new ArgumentException($"'{fullPath}' is not a source file of this project."); 254throw new ArgumentException($"{nameof(textContainer)} is not a text container added to this project.");
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
1138throw new ArgumentException("The project reference has already been added to the project."); 1200throw new ArgumentException("The project does not contain that project reference.");
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
131throw new ArgumentException("Attempting to stop watching a file that we never started watching. This is a bug.");
Workspace\Solution\Document.cs (1)
471throw new ArgumentException(WorkspacesResources.The_specified_document_is_not_a_version_of_this_document);
Workspace\Solution\DocumentId.cs (1)
55throw new ArgumentException(nameof(id));
Workspace\Solution\Project.cs (1)
820throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\ProjectId.cs (1)
63throw new ArgumentException(nameof(id));
Workspace\Solution\SolutionId.cs (1)
47throw new ArgumentException(nameof(id));
Workspace\Workspace_Editor.cs (5)
164throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); 336throw new ArgumentException( 346throw new ArgumentException(string.Format( 375throw new ArgumentException(string.Format( 663throw new ArgumentException(string.Format(
Workspace\Workspace.cs (19)
1273throw new ArgumentException(string.Format( 2317throw new ArgumentException(WorkspacesResources.Workspace_is_not_empty); 2331throw new ArgumentException(string.Format( 2347throw new ArgumentException(string.Format( 2360throw new ArgumentException(string.Format( 2373throw new ArgumentException(string.Format( 2387throw new ArgumentException(string.Format( 2400throw new ArgumentException(WorkspacesResources.Metadata_is_not_referenced); 2411throw new ArgumentException(WorkspacesResources.Metadata_is_already_referenced); 2422throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2433throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2444throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2455throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2469throw new ArgumentException(string.Format( 2485throw new ArgumentException(string.Format( 2501throw new ArgumentException(string.Format( 2514throw new ArgumentException(string.Format( 2530throw new ArgumentException(string.Format( 2546throw new ArgumentException(string.Format(
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\ProjectMap.cs (2)
104throw new ArgumentException(WorkspaceMSBuildResources.Project_does_not_have_a_path); 114throw new ArgumentException(WorkspaceMSBuildResources.Project_already_added);
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\ComInterop\Errors.cs (4)
50return new ArgumentException(SR.Format(SR.COMDispatchInvokeErrorNoNamedArgs, p0)); 66return new ArgumentException(SR.Format(SR.COMDispatchInvokeErrorTypeMismatch, p0, p1)); 74return new ArgumentException(SR.Format(SR.COMDispatchInvokeErrorParamNotOptional, p0)); 90return new ArgumentException(SR.Format(SR.COMGetIDsOfNamesInvalid, p0));
Microsoft\CSharp\RuntimeBinder\ComInterop\Helpers.cs (1)
47throw new ArgumentException(paramName);
Microsoft.Data.Analysis (29)
DataFrame.cs (1)
403throw new ArgumentException(String.Format("{0} {1}", Strings.MismatchedRowCount, Columns[i].Name));
DataFrame.IO.cs (3)
369throw new ArgumentException(string.Format(Strings.ExpectedEitherGuessRowsOrDataTypes, nameof(guessRows), nameof(dataTypes))); 581throw new ArgumentException(string.Format(Strings.ExpectedEitherGuessRowsOrDataTypes, nameof(guessRows), nameof(dataTypes))); 663throw new ArgumentException("Decimal separator cannot match the column separator");
DataFrameColumn.cs (2)
625throw new ArgumentException("Bad comparer"); 631throw new ArgumentException("Bad comparer");
DataFrameColumnCollection.cs (16)
240throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(DateTime))); 257throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string))); 274throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string))); 291throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Boolean))); 308throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Byte))); 325throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Char))); 342throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Double))); 359throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Decimal))); 376throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Single))); 393throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int32))); 410throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int64))); 427throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(SByte))); 444throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int16))); 461throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string))); 478throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt64))); 495throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt16)));
DataFrameColumns\ArrowStringDataFrameColumn.cs (2)
54throw new ArgumentException(nameof(offsetBuffer)); 528throw new ArgumentException(nameof(value));
GroupBy.cs (2)
111throw new ArgumentException(nameof(groupByColumnIndex)); 113_keyToRowIndicesMap = keyToRowIndices ?? throw new ArgumentException(nameof(keyToRowIndices));
TextFieldParser.cs (3)
453throw new ArgumentException(string.Format(Strings.PositiveNumberOfCharacters, nameof(numberOfChars))); 573throw new ArgumentException(Strings.StreamDoesntSupportReading); 978throw new ArgumentException(Strings.InvalidFieldWidths);
Microsoft.Data.Analysis.Tests (3)
src\Microsoft.Data.Analysis\TextFieldParser.cs (3)
453throw new ArgumentException(string.Format(Strings.PositiveNumberOfCharacters, nameof(numberOfChars))); 573throw new ArgumentException(Strings.StreamDoesntSupportReading); 978throw new ArgumentException(Strings.InvalidFieldWidths);
Microsoft.Diagnostics.DataContractReader (1)
ContractDescriptorTarget.cs (1)
563throw new ArgumentException(nameof(bytes));
Microsoft.Diagnostics.DataContractReader.Abstractions (4)
Contracts\ICodeVersions.cs (4)
56throw new ArgumentException("Both MethodDesc and ILCodeVersionNode cannot be non-null"); 59throw new ArgumentException("MethodDefinition must be non-zero if Module is non-null"); 62throw new ArgumentException("MethodDefinition must be zero if Module is null"); 92throw new ArgumentException("Only one of methodDescAddress and codeVersionNodeAddress can be non-null");
Microsoft.Diagnostics.DataContractReader.Contracts (20)
Contracts\CodeVersions_1.cs (3)
166throw new ArgumentException("Invalid NativeCodeVersionHandle"); 310throw new ArgumentException("Invalid NativeCodeVersionHandle"); 453throw new ArgumentException("Invalid NativeCodeVersionHandle");
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (6)
31throw new ArgumentException(nameof(rangeSection)); 70throw new ArgumentException(nameof(rangeSection)); 101throw new ArgumentException(nameof(rangeSection)); 136throw new ArgumentException(nameof(rangeSection)); 206throw new ArgumentException(nameof(rangeSection)); 242throw new ArgumentException(nameof(rangeSection));
Contracts\ExecutionManager\ExecutionManagerCore.InterpreterJitManager.cs (2)
29throw new ArgumentException(nameof(rangeSection)); 115throw new ArgumentException(nameof(rangeSection));
Contracts\ExecutionManager\ExecutionManagerCore.ReadyToRunJitManager.cs (2)
200throw new ArgumentException(nameof(rangeSection)); 220throw new ArgumentException(nameof(rangeSection));
Contracts\Object_1.cs (4)
45throw new ArgumentException("Address represents a set-free object"); 63throw new ArgumentException("Address represents a set-free object"); 76throw new ArgumentException("Address represents a set-free object"); 233throw new ArgumentException("Address represents a free object");
Contracts\RuntimeTypeSystem_1.cs (2)
1231throw new ArgumentException(nameof(typeHandle)); 1248throw new ArgumentException(nameof(typeHandle));
Contracts\StackWalk\Context\X86\X86Unwinder.cs (1)
890throw new ArgumentException($"Unsupported register mask: {regMask}");
Microsoft.Diagnostics.DataContractReader.Legacy (24)
ClrDataMethodDefinition.cs (1)
659throw new ArgumentException("Invalid request parameters.");
ClrDataMethodInstance.cs (1)
723throw new ArgumentException("Invalid request parameters.");
ClrDataStackWalk.cs (6)
285throw new ArgumentException("Invalid buffer parameters for CLRDATA_REQUEST_REVISION"); 291throw new ArgumentException("Invalid buffer parameters for CLRDATA_STACK_WALK_REQUEST_SET_FIRST_FRAME"); 296throw new ArgumentException("Invalid buffer parameters for DACSTACKPRIV_REQUEST_FRAME_DATA"); 298throw new ArgumentException("Invalid frame"); 307throw new ArgumentException("Invalid request code"); 338throw new ArgumentException("Invalid context buffer");
ClrDataTask.cs (1)
191throw new ArgumentException("Invalid request parameters.");
ClrDataValue.cs (5)
319throw new ArgumentException("Invalid request parameters."); 734throw new ArgumentException(nameof(nameFlags)); 893throw new ArgumentException(nameof(flags)); 901throw new ArgumentException(nameof(fromType)); 907throw new ArgumentException(nameof(flags));
Dbi\DacDbiImpl.cs (5)
3679throw new ArgumentException($"Array type with arg count: {pArgInfo->m_nEntries}"); 3690throw new ArgumentException($"Pointer or byref type with arg count: {pArgInfo->m_nEntries}"); 3890throw new ArgumentException("vmRuntimeThread cannot be null for thread static fields"); 5929throw new ArgumentException("Output pointer cannot be null."); 6389throw new ArgumentException("Output pointers must not be null.");
SOSDacImpl.cs (1)
4176throw new ArgumentException($"No thread with OS ID {osThreadID} was found.");
SOSDacImpl.IXCLRDataProcess.cs (4)
1388throw new ArgumentException("Invalid code notification flags"); 1516throw new ArgumentException("Invalid code notification flags"); 1521throw new ArgumentException("Invalid code notification flags"); 1905throw new ArgumentException("Could not resolve module address from COM pointer");
Microsoft.Diagnostics.NETCore.Client (18)
DiagnosticsClient\DiagnosticsClient.cs (7)
698throw new ArgumentException($"Type {obj.GetType()} is not supported in SerializePayloadArgument, please add it."); 706throw new ArgumentException($"{nameof(profilerGuid)} must be a valid Guid"); 711throw new ArgumentException($"{nameof(profilerPath)} must be non-null"); 747throw new ArgumentException($"{nameof(name)} must be non-null."); 758throw new ArgumentException($"{nameof(profilerGuid)} must be a valid Guid"); 763throw new ArgumentException($"{nameof(profilerPath)} must be non-null"); 812throw new ArgumentException($"{nameof(startupHookPath)} required");
DiagnosticsClient\EventPipeSessionConfiguration.cs (3)
107throw new ArgumentException($"Buffer size cannot be zero."); 112throw new ArgumentException("Unrecognized format"); 123throw new ArgumentException("At least one provider must be specified.");
DiagnosticsIpc\IpcEndpointConfig.cs (1)
47throw new ArgumentException("Address is null or empty.");
DiagnosticsIpc\IpcTcpSocketEndPoint.cs (3)
76throw new ArgumentException(string.Format("Unsupported Uri schema, \"{0}\"", uri.Scheme)); 116throw new ArgumentException(string.Format("Could not parse {0} into host, port", endPoint)); 151throw new ArgumentException(string.Format("Could not resolve {0} into an IP address", host));
DiagnosticsIpc\IpcTransport.cs (2)
90throw new ArgumentException($"Unsupported IpcEndpointConfig transport type {config.Transport}"); 129throw new ArgumentException($"Unsupported IpcEndpointConfig transport type {config.Transport}");
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (2)
557throw new ArgumentException("Missing IPC server path."); 1090throw new ArgumentException("No IPC client path specified.");
Microsoft.DotNet.ApiCompat.Task (2)
src\sdk\src\Tasks\Common\Logger.cs (1)
122throw new ArgumentException(
ValidateAssembliesTask.cs (1)
206throw new ArgumentException(string.Format(CommonResources.InvalidRexegStringTransformationPattern,
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
404throw new ArgumentException(string.Format(Resources.ProvidedStreamDoesNotHaveMetadata, assemblyName));
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
277throw new ArgumentException($"{nameof(InstallDotNetCore)} cannot be used for .NET SDK installation.");
Microsoft.DotNet.Build.Manifest (3)
ArtifactModel.cs (1)
66throw new ArgumentException($"Invalid value for {nameof(Visibility)}: {val}");
XElementParsingExtensions.cs (2)
18throw new ArgumentException( 48throw new ArgumentException(
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PushToBuildStorage.cs (2)
510throw new ArgumentException($"Invalid visibility: {item.ItemSpec}"); 550throw new ArgumentException("targetPath is not relative to basePath");
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateRpmPackage.cs (1)
96_ => throw new ArgumentException($"Unknown architecture: {PackageArchitecture}")
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageItem.cs (1)
45throw new ArgumentException($"Recursive wildcards \"**\" are not permitted in source paths for packages: {SourcePath}. Recursive directory may impact asset selection and we don't want to attempt to expand the wildcard since the build may not yet be complete.");
Microsoft.DotNet.Build.Tasks.Workloads (4)
Swix\ComponentSwixProject.cs (1)
26throw new ArgumentException(string.Format(Strings.ComponentMustHaveAtLeastOneDependency, component.Name));
Swix\SwixDependency.cs (2)
60throw new ArgumentException(Strings.SwixDependencyVersionRequired); 65throw new ArgumentException(Strings.SwixDependencyMaxVersionLessThanMinVersion);
Utils.cs (1)
99throw new ArgumentException($"Parameter cannot be empty: ${name}");
Microsoft.DotNet.Cli.Definitions (1)
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (1)
40throw new ArgumentException("The --take option must be positive.");
Microsoft.DotNet.Cli.Utils (4)
DependencyProvider.cs (3)
100throw new ArgumentException($"{nameof(providerKeyName)} cannot be empty."); 124throw new ArgumentException($"{nameof(dependent)} cannot be empty."); 146throw new ArgumentException($"{nameof(dependent)} cannot be empty.");
PathUtility.cs (1)
126throw new ArgumentException("both paths need to be rooted/full path");
Microsoft.DotNet.HotReload.Watch (2)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\SharedSecretProvider.cs (1)
49throw new ArgumentException($"{parameters} does not contain valid public key information");
UI\ConsoleInputReader.cs (1)
60tcs.TrySetException(new ArgumentException($"Invalid key '{keyDisplay}' entered."));
Microsoft.DotNet.PackageValidation (1)
Package.cs (1)
127throw new ArgumentException(Resources.EmptyPackagePath);
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WritePackageUsageData.cs (2)
95throw new ArgumentException( 271throw new ArgumentException($"Path '{path}' is not within RootDir '{RootDir}'");
Microsoft.DotNet.TemplateLocator (4)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
84throw new ArgumentException($"Cannot specify both {nameof(globalJsonPath)} and {nameof(workloadSetVersion)}");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
48throw new ArgumentException("Unexpected InstallType: " + installType);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (1)
64string manifestDir = Path.GetDirectoryName(manifestFilePath) ?? throw new ArgumentException(nameof(manifestFilePath));
TemplateLocator.cs (1)
71throw new ArgumentException(vsVersion + " is not a valid version");
Microsoft.DotNet.XliffTasks (1)
Tasks\TransformTemplates.cs (1)
63throw new ArgumentException($"Either both '{nameof(language)}' and '{nameof(resourceMap)}' must be specified, or they both must be 'null'.");
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
905throw new ArgumentException($"Unable to resolve argument for '{p.Name}'."),
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
306throw new ArgumentException("small segments not considered"); // a pain to construct
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
47throw new ArgumentException(
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (4)
53throw new ArgumentException( 78throw new ArgumentException( 117throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch, implementationType.FullName, serviceType.FullName)); 124throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch_NewConstraint, implementationType.FullName, serviceType.FullName));
ServiceLookup\ConstantCallSite.cs (1)
18throw new ArgumentException(SR.Format(SR.ConstantCantBeConvertedToServiceType, defaultValue.GetType(), serviceType));
ServiceLookup\ConstructorCallSite.cs (1)
22throw new ArgumentException(SR.Format(SR.ImplementationTypeCantBeConvertedToServiceType, constructorInfo.DeclaringType, serviceType));
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (1)
HttpExceptionSummaryProviderTests.cs (1)
145Exception exception = new ArgumentException("This is not an exception that HttpExceptionProvider understands");
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\Patterns\PatternBuilder.cs (1)
82throw new ArgumentException("\"..\" can be only added at the beginning of the pattern.");
Microsoft.Extensions.Logging.Abstractions (1)
LoggerMessage.cs (1)
459throw new ArgumentException(
Microsoft.Extensions.Logging.Generators (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.ML (3)
Builder\PredictionEnginePoolBuilder.cs (1)
25Services = services ?? throw new ArgumentException(nameof(services));
ModelLoaders\FileModelLoader.cs (1)
42throw new ArgumentException($"The provided model file {filePath} doesn't exist.");
PredictionEnginePool.cs (1)
107throw new ArgumentException("You need to configure a default, not named, model before you use this method.");
Microsoft.Extensions.Options.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.Primitives (3)
StringSegment.cs (2)
713return new ArgumentException(SR.Argument_InvalidOffsetLength); 734return new ArgumentException(SR.Argument_InvalidOffsetLengthStringSegment);
StringValues.cs (1)
376throw new ArgumentException(
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Resolver\LoopbackDnsServer.cs (1)
132throw new ArgumentException($"Invalid characters in domain name '{name}'");
Microsoft.Extensions.VectorData.Abstractions (1)
ProviderServices\CollectionModelBuilder.cs (1)
222_ => throw new ArgumentException($"Unknown type '{definitionProperty.GetType().FullName}' in vector store record definition.")
Microsoft.Extensions.VectorData.ConformanceTests (1)
Support\TestStore.cs (1)
135throw new ArgumentException("vectorSize or dummyVector can't both be set");
Microsoft.Gen.BuildMetadata (1)
RoslynExtensions.cs (1)
102? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Gen.Logging (1)
RoslynExtensions.cs (1)
102? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Gen.Logging.Generated.Tests (8)
LogMethodTests.cs (8)
261CollectionTestExtensions.M9(logger, LogLevel.Critical, 0, new ArgumentException("Foo"), 1); 575ExceptionTestExtensions.M0(logger, new ArgumentException("Foo"), new ArgumentException("Bar")); 582ExceptionTestExtensions.M1(new ArgumentException("Foo"), logger, new ArgumentException("Bar")); 589ExceptionTestExtensions.M2(logger, "One", new ArgumentException("Foo")); 596var exception = new ArgumentException("Foo"); 852AtSymbolsTestExtensions.UseAtSymbol4(logger, LogLevel.Debug, "42", 42, new ArgumentException("Foo"));
Microsoft.Gen.Metrics (1)
RoslynExtensions.cs (1)
102? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.SourceGeneration (8)
GeneratedStatements.cs (4)
68throw new ArgumentException("Direction must be ManagedToUnmanaged or UnmanagedToManaged"); 116throw new ArgumentException("CurrentStage must be Invoke"); 150throw new ArgumentException("CurrentStage must be Invoke"); 177throw new ArgumentException("CurrentStage must be Invoke");
Marshalling\MarshallerHelpers.cs (1)
275throw new ArgumentException("Stub context direction must not be bidirectional.");
Marshalling\MarshallingGeneratorExtensions.cs (1)
93throw new ArgumentException("Context direction must be ManagedToUnmanaged or UnmanagedToManaged");
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
TypeNames.cs (1)
106_ => throw new ArgumentException($"Unexpected CallConv: {callConv}")
Microsoft.JSInterop (6)
Infrastructure\DotNetDispatcher.cs (5)
173throw new ArgumentException($"For instance method calls, '{nameof(assemblyName)}' should be null. Value received: '{assemblyName}'."); 253throw new ArgumentException($"The call to '{methodIdentifier}' expects '{parameterTypes.Length}' parameters, but received '{index}'."); 363throw new ArgumentException($"The assembly '{assemblyKey.AssemblyName}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 396throw new ArgumentException($"The type '{type.Name}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 508?? throw new ArgumentException($"There is no loaded assembly with the name '{assemblyKey.AssemblyName}'.");
Infrastructure\TaskGenericsUtil.cs (1)
47?? throw new ArgumentException($"The type '{taskType.FullName}' is not inherited from '{typeof(Task).FullName}'.");
Microsoft.Maui (3)
Animations\Animation.cs (1)
139 throw new ArgumentException($"{nameof(duration)} must be greater than {nameof(beginAt)}");
Layouts\Flex.cs (2)
447 throw new ArgumentException("cannot add item into self"); 449 throw new ArgumentException("child already has a parent");
Microsoft.Maui.Controls (28)
Animation.cs (1)
54 throw new ArgumentException("finishAt must be greater than beginAt");
Application\Application.cs (2)
73 throw new ArgumentException("No IAppIndexingProvider was provided"); 75 throw new ArgumentException("No AppLinks implementation was found, if in Android make sure you installed the Microsoft.Maui.Controls.AppLinks");
ExportEffectAttribute.cs (1)
19 throw new ArgumentException("uniqueName must not contain a .");
ImageSource.cs (2)
104 throw new ArgumentException("uri is relative"); 120 throw new ArgumentException("uri is relative");
Items\MarshalingObservableCollection.cs (1)
25 throw new ArgumentException($"{nameof(list)} must implement {nameof(INotifyCollectionChanged)}");
NavigationModel.cs (1)
74 throw new ArgumentException("before must be in the current navigation context");
NavigationPage\NavigationPage.cs (2)
747 throw new ArgumentException("Cannot insert page which is already in the navigation stack"); 884 throw new ArgumentException("Page to remove must be contained on this Navigation Page");
NavigationPage\NavigationPage.Legacy.cs (2)
132 throw new ArgumentException("Cannot insert page which is already in the navigation stack"); 247 throw new ArgumentException("Page to remove must be contained on this Navigation Page");
NavigationProxy.cs (1)
177 throw new ArgumentException("before must be in the pushed stack of the current context");
ObservableWrapper.cs (1)
61 throw new ArgumentException("Destination array was not long enough. Check destIndex and length, and the array's lower bounds.");
OrderedDictionary.cs (2)
129 throw new ArgumentException("Not enough space in array to copy"); 396 throw new ArgumentException("Not enough space in array to copy");
ReferenceTypeConverter.cs (1)
33 throw new ArgumentException("serviceProvider does not provide an IProvideValueTarget");
ResourceDictionary.cs (1)
197 throw new ArgumentException($"A resource with the key '{key}' is already present in the ResourceDictionary.");
Routing.cs (2)
251 throw new ArgumentException($"Route contains invalid characters in \"{part}\""); 256 throw new ArgumentException($"Duplicated Route: \"{route}\"");
Shapes\MatrixTypeConverter.cs (3)
23 throw new ArgumentException("Argument is null or empty"); 28 throw new ArgumentException("Argument must have six numbers"); 34 throw new ArgumentException("Argument must be numeric values");
Shell\ShellElementCollection.cs (1)
38 throw new ArgumentException("Inner can only be set once");
Shell\ShellSection.cs (2)
743 throw new ArgumentException("Page not found in nav stack"); 1208 throw new ArgumentException("Page not found in nav stack");
Style.cs (1)
48 throw new ArgumentException("BasedOn.TargetType is not compatible with TargetType");
TypeTypeConverter.cs (1)
24 throw new ArgumentException("No IXamlTypeResolver in IServiceProvider");
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingCodeWriter.cs (1)
142 _ => throw new ArgumentException(nameof(unsafeAccessor.Kind))
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
231 throw new ArgumentException("Pin must have a Label to be added to a map");
Microsoft.Maui.Controls.Xaml (4)
MarkupExtensions\DataTemplateExtension.cs (1)
18 throw new ArgumentException("No IXamlTypeResolver in IServiceProvider");
MarkupExtensions\ReferenceExtension.cs (1)
25 ?? throw new ArgumentException("serviceProvider does not provide an IProvideValueTarget");
MarkupExtensions\StaticExtension.cs (1)
22 throw new ArgumentException("No IXamlTypeResolver in IServiceProvider");
MarkupExtensions\TypeExtension.cs (1)
17 throw new ArgumentException("No IXamlTypeResolver in IServiceProvider");
Microsoft.Maui.Essentials (6)
Share\Share.shared.cs (4)
113 throw new ArgumentException($"Both the {nameof(request.Text)} and {nameof(request.Uri)} are invalid. Make sure to include at least one of them in the request."); 127 throw new ArgumentException(FileNullException(nameof(request.File))); 141 throw new ArgumentException(FileNullException(nameof(request.Files))); 144 throw new ArgumentException(FileNullException(nameof(request.Files)));
Types\DeviceIdiom.shared.cs (1)
48 throw new ArgumentException(nameof(deviceIdiom));
Types\DevicePlatform.shared.cs (1)
71 throw new ArgumentException(nameof(devicePlatform));
Microsoft.ML.AutoML (20)
API\BinaryClassificationExperiment.cs (1)
445throw new ArgumentException($"The runner metric manager is of type {_metricManager.GetType()} which expected to be of type {typeof(ITrainValidateDatasetManager)} or {typeof(ICrossValidateDatasetManager)}");
API\MulticlassClassificationExperiment.cs (1)
423throw new ArgumentException($"The runner metric manager is of type {_metricManager.GetType()} which expected to be of type {typeof(ITrainValidateDatasetManager)} or {typeof(ICrossValidateDatasetManager)}");
API\RegressionExperiment.cs (1)
450throw new ArgumentException($"The runner metric manager is of type {_metricManager.GetType()} which expected to be of type {typeof(ITrainValidateDatasetManager)} or {typeof(ICrossValidateDatasetManager)}");
AutoMLExperiment\IMonitor.cs (2)
95throw new ArgumentException($"result must be of type {typeof(TrialResult<TMetrics>)}"); 109throw new ArgumentException($"result must be of type {typeof(TrialResult<TMetrics>)}");
AutoMLExperiment\ITrialResultManager.cs (1)
63throw new ArgumentException("can't add or update result that already save to csv");
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (1)
91throw new ArgumentException("IDatasetManager must be either ITrainTestDatasetManager or ICrossValidationDatasetManager");
ColumnInference\ColumnInferenceValidationUtil.cs (1)
22throw new ArgumentException($"Specified column {columnName} " +
ColumnInference\ColumnTypeInference.cs (1)
397throw new ArgumentException($"Specified label column '{args.Label}' was not found.");
ColumnInference\TextFileSample.cs (2)
117throw new ArgumentException("Couldn't identify line breaks. Provided file is not text?"); 206throw new ArgumentException("File is not text, or couldn't detect line breaks");
Tuner\AutoZeroTuner.cs (1)
57throw new ArgumentException($"Fail to find available configs for given trainers: {string.Join(",", trainerEstimators)}");
Utils\ArrayMath.cs (3)
130throw new ArgumentException($"length doesn't match, {truth.Length} != {pred.Length}"); 145throw new ArgumentException($"length doesn't match, {truth.Length} != {pred.Length}"); 159throw new ArgumentException($"length doesn't match, {truth.Length} != {pred.Length}");
Utils\UserInputValidationUtil.cs (5)
152throw new ArgumentException($"Null column string was specified as {columnPurpose} in column information"); 160throw new ArgumentException("Provided label column cannot be null"); 260throw new ArgumentException(exceptionMessage); 273throw new ArgumentException($"Provided {columnPurpose} column '{columnName}' was of type {itemType}, " + 278throw new ArgumentException($"Provided {columnPurpose} column '{columnName}' was of type {itemType}, " +
Microsoft.ML.AutoML.SourceGenerator (2)
SearchSpaceGenerator.cs (2)
62_ => throw new ArgumentException("unknown type"), 83(_, _) => throw new ArgumentException("unknown"),
Microsoft.ML.AutoML.Tests (1)
Utils\TaskAgnosticIterationResult.cs (1)
78throw new ArgumentException($"Unsupported metric type {typeof(T).Name}.");
Microsoft.ML.CodeGenerator (4)
CodeGenerator\CSharp\TrainerGeneratorFactory.cs (2)
77throw new ArgumentException($"The trainer '{trainer}' is not handled currently."); 80throw new ArgumentException($"The trainer '{node.Name}' is not handled currently.");
Utils.cs (2)
171throw new ArgumentException($"The data type '{labelType}' is not handled currently."); 362throw new ArgumentException($"The data type '{dataKind}' is not handled currently.");
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
224throw new ArgumentException(nameof(column));
Microsoft.ML.GenAI.Core (7)
Extension\ModuleExtension.cs (1)
245throw new ArgumentException("The layer count is not enough to cover all layers, did you forget to set the last layer count to -1?");
Trainer\CausalLMDataset.cs (3)
34throw new ArgumentException("The length of inputs and outputs should be the same."); 55throw new ArgumentException("The length of inputs and outputs should be the same."); 75throw new ArgumentException("The length of inputIds and labelIds should be the same.");
Utility\AttentionMaskConverter.cs (3)
50throw new ArgumentException("key_value_length should be provided when attention_mask is causal"); 80throw new ArgumentException("This is not a causal mask"); 156throw new ArgumentException("Attention mask should be 2D");
Microsoft.ML.GenAI.LLaMA (2)
Module\LlamaModel.cs (2)
76throw new ArgumentException("Only one of input_ids or inputs_embeds may be set"); 93throw new ArgumentException("Either input_ids or inputs_embeds must be set");
Microsoft.ML.GenAI.Mistral (2)
MistralModel.cs (2)
70throw new ArgumentException("Only one of input_ids or inputs_embeds may be set"); 87throw new ArgumentException("Either input_ids or inputs_embeds must be set");
Microsoft.ML.GenAI.Phi (5)
Module\Phi2Attention.cs (1)
64this._numKeyValueHeads = config.NumKeyValueHeads ?? throw new ArgumentException("num_key_value_heads must be specified");
Module\Phi3DecoderLayer.cs (2)
149numKeyValueHeads: config.NumKeyValueHeads ?? throw new ArgumentException("num_key_value_heads must be specified"), 150numKeyValueGroups: config.NumAttentionHeads / config.NumKeyValueHeads ?? throw new ArgumentException("num_key_value_heads must be specified"),
Module\Phi3Model.cs (2)
73throw new ArgumentException("Only one of input_ids or inputs_embeds may be set"); 90throw new ArgumentException("Either input_ids or inputs_embeds must be set");
Microsoft.ML.ImageAnalytics (2)
ImageLoader.cs (1)
114throw new ArgumentException(String.Format("Directory \"{0}\" does not exist.", imageFolder));
MLImage.cs (1)
100throw new ArgumentException($"Invalid {nameof(imagePixelData)} buffer size.");
Microsoft.ML.OnnxTransformer (2)
OnnxSessionOptions.cs (2)
26throw new ArgumentException("No Onnx Session Options"); 36throw new ArgumentException("No Onnx Session Options");
Microsoft.ML.SearchSpace (5)
Converter\NumericOptionConverter.cs (2)
46_ => throw new ArgumentException($"unknown schema type: {schema.Type}"), 78_ => throw new ArgumentException("unknown type"),
Converter\OptionConverter.cs (2)
42throw new ArgumentException("unknown option type"); 62throw new ArgumentException("unknown option type");
Converter\ParameterConverter.cs (1)
50throw new ArgumentException($"Unsupported reader type {reader.TokenType}");
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
515throw new ArgumentException($"Unsupported data type of {typeof(T)} to convert to Tensor.");
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
788throw new ArgumentException("Object is not a BestDimension");
Microsoft.ML.Tokenizers (21)
Model\BertTokenizer.cs (2)
780throw new ArgumentException($"The special token '{kvp.Key}' is not in the vocabulary or assigned id value {id} different than the value {kvp.Value} in the special tokens."); 818throw new ArgumentException($"The special token '{token}' is not in the vocabulary.");
Model\BpeOptions.cs (2)
46throw new ArgumentException($"Could not find the vocabulary file '{vocabFile}'."); 63throw new ArgumentException($"Could not find the merges file '{mergesFile}'.");
Model\CodeGenTokenizer.cs (7)
153throw new ArgumentException($"The Unknown token '{UnknownToken}' is not found in the vocabulary."); 163throw new ArgumentException($"The beginning of sentence token '{BeginningOfSentenceToken}' is not found in the vocabulary."); 173throw new ArgumentException($"The end of sentence token '{EndOfSentenceToken}' is not found in the vocabulary."); 181throw new ArgumentException("The beginning of sentence token must be provided when the flag is set to include it in the encoding."); 186throw new ArgumentException("The end of sentence token must be provided when the flag is set to include it in the encoding."); 1756throw new ArgumentException($"Problems met when parsing JSON vocabulary object.{Environment.NewLine}Error message: {e.Message}"); 1761throw new ArgumentException($"Failed to read the vocabulary file.");
Model\EnglishRobertaTokenizer.cs (4)
188throw new ArgumentException($"Problems met when parsing JSON vocabulary object.{Environment.NewLine}Error message: {e.Message}"); 193throw new ArgumentException($"Failed to read the vocabulary file."); 1262throw new ArgumentException("Incorrect vocabulary format, expected \"<token> <cnt>\""); 1267throw new ArgumentException($"Cannot parse the line: '{line}'.");
Model\SentencePieceUnigramModel.cs (1)
38throw new ArgumentException("The BOS, EOS, or UNK token is not present in the vocabulary.");
Model\WordPieceTokenizer.cs (1)
64throw new ArgumentException($"The unknown token '{options.UnknownToken}' is not in the vocabulary.");
Normalizer\SentencePieceNormalizer.cs (2)
573throw new ArgumentException("Blob for normalization rule is broken."); 588throw new ArgumentException("Trie data size exceeds the input blob size.");
Utils\DoubleArrayTrie.cs (2)
342throw new ArgumentException("failed to insert key: negative value"); 346throw new ArgumentException("failed to insert key: zero-length key");
Microsoft.ML.Tokenizers.Tests (3)
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (2)
342throw new ArgumentException("failed to insert key: negative value"); 346throw new ArgumentException("failed to insert key: zero-length key");
TiktokenTests.cs (1)
521_ => throw new ArgumentException("Invalid encoding name"),
Microsoft.ML.TorchSharp (11)
NasBert\Modules\Layers\EncConvLayer.cs (1)
50throw new ArgumentException($"Invalid arguments: {param}.");
NasBert\Modules\Layers\SelfAttentionLayer.cs (1)
61throw new ArgumentException("Invalid arguments.");
NasBert\Modules\MultiHeadAttention.cs (4)
77throw new ArgumentException("EmbeddingDim must be divisible by NumHeads"); 84throw new ArgumentException("Self-attention requires query, key and value to be of the same size"); 164throw new ArgumentException("query must NOT be null and must be 3D in multi-head attention;" + 186throw new ArgumentException(
NasBert\Modules\SearchSpace.cs (1)
35throw new ArgumentException("all non-zero hidden dimensions should be the same.");
Roberta\Modules\AttentionSelf.cs (1)
34throw new ArgumentException($"NumAttentionHeads must be a factor of hiddenSize, got {numAttentionHeads} and {hiddenSize}.");
Utils\DataUtils.cs (2)
56throw new ArgumentException( 62throw new ArgumentException(
Utils\FileUtils.cs (1)
46throw new ArgumentException($"Stream should be non-null and its stream.CanRead property should be true.");
Microsoft.NET.Build.Containers (13)
AuthHandshakeMessageHandler.cs (2)
153public string ResolvedToken => token ?? access_token ?? throw new ArgumentException(Resource.GetString(nameof(Strings.InvalidTokenResponse))); 542throw new ArgumentException(Resource.GetString(nameof(Strings.CouldntDeserializeJsonToken)));
ContentStore.cs (1)
37_ => throw new ArgumentException(Resource.FormatString(nameof(Strings.UnrecognizedMediaType), descriptor.MediaType))
ImageConfig.cs (3)
53throw new ArgumentException("Base image configuration should contain a 'config' node."); 76return !string.IsNullOrEmpty(os) ? os : throw new ArgumentException("Base image configuration should contain a non-empty 'os' property."); 82return !string.IsNullOrEmpty(architecture) ? architecture : throw new ArgumentException("Base image configuration should contain a non-empty 'architecture' property.");
ImageIndexGenerator.cs (3)
24throw new ArgumentException(Strings.ImagesEmpty); 31throw new ArgumentException(Strings.MixedMediaTypes); 61throw new ArgumentException(Strings.ImagesEmpty);
Layer.cs (1)
232_ => throw new ArgumentException(Resource.FormatString(nameof(Strings.UnrecognizedMediaType), manifestMediaType))
LocalDaemons\ContainerRuntime.cs (1)
147_ => throw new ArgumentException($"{command} is an unknown command.")
LocalDaemons\DockerCli.cs (2)
44throw new ArgumentException($"{command} is an unknown command."); 300throw new ArgumentException(Resource.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType));
Microsoft.NET.Build.Extensions.Tasks (4)
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
303throw new ArgumentException($"Items from {nameof(conflicts)} were missing from {nameof(original)}");
src\sdk\src\Tasks\Common\Logger.cs (1)
122throw new ArgumentException(
src\sdk\src\Tasks\Common\MessageBase.cs (2)
39throw new ArgumentException($"Either {nameof(FormattedText)} or {nameof(ResourceName)} must be specified."); 43throw new ArgumentException($"Only one of {nameof(FormattedText)} and {nameof(ResourceName)} can be specified.");
Microsoft.NET.Build.Tasks (12)
DependencyContextBuilder.cs (1)
119throw new ArgumentException(
GenerateBundle.cs (1)
97throw new ArgumentException(nameof(RuntimeIdentifier));
GenerateRuntimeConfigurationFiles.cs (2)
123throw new ArgumentException( 133throw new ArgumentException(
LockFileExtensions.cs (1)
60throw new ArgumentException("Could not find TargetFramework alias in lock file for " + lockFileTarget.TargetFramework);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
84throw new ArgumentException($"Cannot specify both {nameof(globalJsonPath)} and {nameof(workloadSetVersion)}");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
48throw new ArgumentException("Unexpected InstallType: " + installType);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (1)
64string manifestDir = Path.GetDirectoryName(manifestFilePath) ?? throw new ArgumentException(nameof(manifestFilePath));
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
303throw new ArgumentException($"Items from {nameof(conflicts)} were missing from {nameof(original)}");
src\sdk\src\Tasks\Common\Logger.cs (1)
122throw new ArgumentException(
src\sdk\src\Tasks\Common\MessageBase.cs (2)
39throw new ArgumentException($"Either {nameof(FormattedText)} or {nameof(ResourceName)} must be specified."); 43throw new ArgumentException($"Only one of {nameof(FormattedText)} and {nameof(ResourceName)} can be specified.");
Microsoft.NET.HostModel (14)
Bundle\Bundler.cs (4)
471throw new ArgumentException("Invalid input specification: Found entry with empty source-path or bundle-relative-path."); 477throw new ArgumentException($"Invalid input specification: Must specify exactly one entry for the host binary '{_hostName}'"); 519throw new ArgumentException($"Invalid input specification: Found entries '{fileSpec.SourcePath}' and '{existingFileSpec.Spec.SourcePath}' with the same BundleRelativePath '{fileSpec.BundleRelativePath}'"); 547throw new ArgumentException("Cannot write strings longer than 16,383 bytes to the bundle.");
Bundle\TargetInfo.cs (1)
55throw new ArgumentException($"Invalid input: Unsupported Target Framework Version {targetFrameworkVersion}");
MachO\BinaryFormat\Blobs\CmsWrapperBlob.cs (1)
22throw new ArgumentException($"Cannot create CmsWrapperBlob of blob with magic value '{blob.Magic}'. Magic value must be {BlobMagic.CmsWrapper}");
MachO\BinaryFormat\Blobs\EmbeddedSignatureBlob.cs (4)
179throw new ArgumentException("Special slot hash counts are not equivalent."); 182throw new ArgumentException("CodeDirectory blobs are not equivalent"); 185throw new ArgumentException("Requirements blobs are not equivalent"); 188throw new ArgumentException("CMS Wrapper blobs are not equivalent");
MachO\BinaryFormat\Blobs\RequirementsBlob.cs (1)
22throw new ArgumentException($"Expected a SuperBlob with Magic number '{BlobMagic.Requirements}', got '{blob.Magic}'.");
MachO\BinaryFormat\Blobs\SuperBlob.cs (1)
25throw new ArgumentException("Blob indices and blobs count must match.");
ResourceUpdater.cs (2)
99throw new ArgumentException("AddResource can only be used with integer resource types"); 119throw new ArgumentException("AddResource can only be used with integer resource names");
Microsoft.Net.Http.Headers (1)
RangeItemHeaderValue.cs (1)
31throw new ArgumentException("Invalid header range.");
Microsoft.NET.Sdk.WorkloadManifestReader (3)
SdkDirectoryWorkloadManifestProvider.cs (1)
84throw new ArgumentException($"Cannot specify both {nameof(globalJsonPath)} and {nameof(workloadSetVersion)}");
WorkloadInstallType.cs (1)
48throw new ArgumentException("Unexpected InstallType: " + installType);
WorkloadManifestReader.Localization.cs (1)
64string manifestDir = Path.GetDirectoryName(manifestFilePath) ?? throw new ArgumentException(nameof(manifestFilePath));
Microsoft.Private.Windows.Core (23)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
309throw new ArgumentException($"{nameof(primitive)} is not primitive.");
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (1)
66throw new ArgumentException($"{nameof(arrayInfo)} doesn't match count of {nameof(arrayObjects)}");
System\Private\Windows\BinaryFormat\Serializer\MemberPrimitiveTyped.cs (1)
36throw new ArgumentException($"{nameof(value)} is not primitive.");
System\Private\Windows\Ole\DataObjectExtensions.cs (2)
16throw new ArgumentException(SR.CollectionEmptyException); 28throw new ArgumentException(string.Format(SR.Clipboard_InvalidPath, path ?? "<null>", nameof(filePaths)));
System\SpanReader.cs (2)
131throw new ArgumentException($"The size of {nameof(TValue)} must be evenly divisible by the size of {nameof(T)}."); 165throw new ArgumentException($"The size of {nameof(TValue)} must be evenly divisible by the size of {nameof(T)}.");
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (7)
26return new ArgumentException(SR.GdiplusInvalidParameter); 55return new ArgumentException(SR.GdiplusUnknownImageFormat); 57return new ArgumentException(SR.GdiplusPropertyNotFoundError); 59return new ArgumentException(SR.GdiplusPropertyNotSupportedError); 63return new ArgumentException(string.Format(SR.GdiplusFontFamilyNotFound, "?")); 67return new ArgumentException(string.Format(SR.GdiplusFontStyleNotFound, "?", "?")); 71return new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName);
Windows\Win32\System\Com\SafeArrayScope.cs (9)
42throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 49throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 56throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 63throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 68throw new ArgumentException("Use ComSafeArrayScope instead"); 74throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 82throw new ArgumentException("Unknown type"); 106throw new ArgumentException("Use ComSafeArrayScope instead"); 117throw new ArgumentException("Unknown type");
Microsoft.TemplateEngine.Abstractions (2)
TemplateFiltering\MatchInfo.cs (1)
21_ = string.IsNullOrWhiteSpace(name) ? throw new ArgumentException($"{nameof(name)} should not be null or empty") : false;
TemplateParameterPrecedence.cs (1)
76throw new ArgumentException("Mismatched precedence definition");
Microsoft.TemplateEngine.Cli (15)
ChoiceTemplateParameter.cs (2)
25throw new ArgumentException($"{nameof(parameter)} should have {nameof(parameter.Type)} {nameof(ParameterType.Choice)}"); 29throw new ArgumentException($"{nameof(parameter)} should have {nameof(parameter.Choices)}");
Commands\create\CombinedChoiceTemplateParameter.cs (2)
34throw new ArgumentException($"{nameof(parameter)} should have {nameof(parameter.Type)} {nameof(ParameterType.Choice)}"); 38throw new ArgumentException($"{nameof(parameter)} should have {nameof(parameter.Choices)}");
Commands\create\InvalidTemplateOptionResult.cs (1)
90throw new ArgumentException($"{nameof(option)} is not used in {nameof(parseResult)}");
Commands\Example.cs (2)
135?? throw new ArgumentException($"Command {currentCommand.Name} does not have subcommand {typeof(TSubcommand).Name}"); 143?? throw new ArgumentException($"Command {currentCommand.Name} does not have subcommand '{token}'.");
Commands\NewCommand.Help.cs (1)
17throw new ArgumentException($"{nameof(context)} should be for {nameof(NewCommand)}");
TemplateInvoker.cs (1)
33_cliTemplateEngineHost = _environmentSettings.Host as ICliTemplateEngineHost ?? throw new ArgumentException($"The hosts other than {nameof(ICliTemplateEngineHost)} are not supported.");
TemplatePackageCoordinator.cs (2)
786throw new ArgumentException(nameof(sourceIdentifier)); 808throw new ArgumentException(nameof(sourceIdentifier));
TemplatePackageDisplay.cs (1)
93throw new ArgumentException(nameof(packageToInstall));
TemplateResolution\TemplateResolutionResult.cs (3)
310throw new ArgumentException($"{nameof(GroupResolutionStatus)} should not be {nameof(TemplateGroupStatus.NotEvaluated)} after running {nameof(EvaluateUnambiguousTemplateGroup)}"); 320throw new ArgumentException($"{nameof(_unambiguousTemplateGroup)} should not be null if running {nameof(GroupResolutionStatus)} is {nameof(TemplateGroupStatus.SingleMatch)}"); 325throw new ArgumentException($"Unexpected value of {nameof(GroupResolutionStatus)}: {GroupResolutionStatus}.");
Microsoft.TemplateEngine.Edge (6)
Settings\Scanner.cs (3)
57throw new ArgumentException($"{nameof(mountPointUri)} should not be null or empty"); 78throw new ArgumentException($"{nameof(mountPointUri)} should not be null or empty"); 99throw new ArgumentException($"{nameof(mountPointUri)} should not be null or empty");
Template\InputDataSetExtensions.cs (3)
96throw new ArgumentException(string.Format(LocalizableStrings.EvaluatedInputParameterData_Error_ConditionsInvalid, inputParameterData.ParameterDefinition.Name)); 106throw new ArgumentException( 114throw new ArgumentException(
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (4)
ConfigModel\BaseValueSymbol.cs (1)
93throw new ArgumentException(string.Format(LocalizableStrings.Symbol_Error_IsRequiredNotABool, isRequiredToken));
ConfigModel\ParameterSymbol.cs (1)
261throw new ArgumentException(string.Format(LocalizableStrings.Symbol_Error_IsRequiredNotABoolOrString, isRequiredToken));
Macros\BaseMacroConfig.cs (2)
59throw new ArgumentException(string.Format( 166throw new ArgumentException($"The pattern '{regex}' is invalid.");
Microsoft.TemplateEngine.Utils (1)
DictionaryExtensions.cs (1)
69throw new ArgumentException(string.Format(LocalizableStrings.DictionaryExtensions_Error_KeyExists, pair.Key));
Microsoft.TestPlatform.CommunicationUtilities (2)
Json\Jsonite\Jsonite.cs (2)
1637throw new ArgumentException($"The default reflector only supports deserializing to a Dictionary<string, object> or a JsonObject instead of [{expectedType}]"); 1667throw new ArgumentException($"The default reflector only supports deserializing to a IList or a JsonArray instead of [{expectedType}]");
Microsoft.TestPlatform.Filter.Source (2)
FastFilter.cs (1)
48: throw new ArgumentException("An error occurred while creating Fast filter."));
FilterHelper.cs (1)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterEscapeException, str));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
227Return New ArgumentException(Description)
Microsoft.VisualStudio.TestPlatform.Common (1)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FastFilter.cs (1)
46: throw new ArgumentException(Resources.Resources.FastFilterException));
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
153throw new ArgumentException(htmlParameterErrorMsg);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (4)
ObjectModel\TestLink.cs (1)
21throw new ArgumentException("ID cant be empty");
TrxLogger.cs (1)
171throw new ArgumentException(trxParameterErrorMsg);
Utility\EqtAssert.cs (1)
66throw new ArgumentException(TrxLoggerResources.Common_CannotBeNullOrEmpty);
Utility\TrxFileHelper.cs (1)
90throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_NothingLeftAfterReplaciingBadCharsInName, fileName));
Microsoft.VisualStudio.TestPlatform.ObjectModel (8)
Nuget.Frameworks\FrameworkNameProvider.cs (1)
499throw new ArgumentException(string.Format(
Nuget.Frameworks\NuGetFrameworkFactory.cs (4)
117throw new ArgumentException(string.Format( 196: throw new ArgumentException(string.Format( 213throw new ArgumentException(string.Format( 236: throw new ArgumentException(string.Format(
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterHelper.cs (1)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterEscapeException, str));
TestObject.cs (1)
235: throw new ArgumentException(property.Label);
TestProperty\TestProperty.cs (1)
72throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedTypeOfProperty, valueType, id));
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
64throw new ArgumentException("Expected two ['] characters");
Microsoft.Win32.Registry (12)
Microsoft\Win32\RegistryKey.cs (11)
302throw new ArgumentException(SR.Arg_RegSubKeyAbsent); 315throw new ArgumentException(SR.Arg_RegSubKeyAbsent); 335throw new ArgumentException(SR.Arg_RegKeyDelHive); 370throw new ArgumentException(SR.Arg_RegSubKeyAbsent); 396throw new ArgumentException(SR.Arg_RegSubKeyValueAbsent); 455throw new ArgumentException(SR.Arg_RegKeyOutOfRange); 475throw new ArgumentException(SR.Arg_DllInitFailure); 482throw new ArgumentException(SR.Format(SR.Arg_RegKeyNoRemoteConnect, machineName)); 1290throw new ArgumentException(SR.Arg_RegSetStrArrNull); 1359throw new ArgumentException(SR.Arg_RegSetMismatchedKind); 1393throw new ArgumentException(SR.Format(SR.Arg_RegSetBadArrType, value.GetType().Name));
System\Security\AccessControl\RegistrySecurity.cs (1)
113exception = new ArgumentException(SR.AccessControl_InvalidHandle);
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
387throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgument, nameof(interval), interval.ToString(System.Threading.Thread.CurrentThread.CurrentCulture), "0"));
Mono.Cecil (25)
Mono.Cecil.Cil\Instruction.cs (16)
151 throw new ArgumentException ("opcode"); 162 throw new ArgumentException ("opcode"); 172 throw new ArgumentException ("code"); 183 throw new ArgumentException ("opcode"); 194 throw new ArgumentException ("opcode"); 204 throw new ArgumentException ("opcode"); 213 throw new ArgumentException ("opcode"); 222 throw new ArgumentException ("opcode"); 230 throw new ArgumentException ("opcode"); 238 throw new ArgumentException ("opcode"); 246 throw new ArgumentException ("opcode"); 254 throw new ArgumentException ("opcode"); 265 throw new ArgumentException ("opcode"); 275 throw new ArgumentException ("opcode"); 286 throw new ArgumentException ("opcode"); 297 throw new ArgumentException ("opcode");
Mono.Cecil\AssemblyDefinition.cs (1)
117 throw new ArgumentException ("kind");
Mono.Cecil\AssemblyNameReference.cs (2)
175 throw new ArgumentException ("Name can not be empty"); 189 throw new ArgumentException ("Malformed name");
Mono.Cecil\AssemblyWriter.cs (1)
2276 return new ArgumentException (string.Format ("Member '{0}' is declared in another module and needs to be imported", member));
Mono.Cecil\MemberDefinitionCollection.cs (1)
64 throw new ArgumentException ("Member already attached");
Mono.Cecil\ModuleDefinition.cs (2)
1286 throw new ArgumentException ("Stream must be writable and seekable."); 1292 throw new ArgumentException ("Stream must be readable and seekable.");
Mono.Cecil\TypeDefinitionCollection.cs (1)
69 throw new ArgumentException ("Type already attached");
Mono.Security.Cryptography\CryptoConvert.cs (1)
236 throw new ArgumentException ("blob is too small.");
Mono.Cecil.Pdb (5)
Microsoft.Cci.Pdb\IntHashTable.cs (5)
128throw new ArgumentException("Arg_HTCapacityOverflow"); 136throw new ArgumentException("Arg_HTCapacityOverflow"); 291throw new ArgumentException("Argument_KeyLessThanZero"); 386throw new ArgumentException("Argument_KeyLessThanZero"); 440throw new ArgumentException("Argument_AddingDuplicate__" + buckets[bucketNumber].key);
MyFrontend (1)
Components\NavigationManagerExtensions.cs (1)
17throw new ArgumentException(message);
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
306throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 316throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString));
NuGet.Build.Tasks.Pack (2)
GetPackOutputItemsTask.cs (1)
108throw new ArgumentException(string.Format(
PackTaskLogic.cs (1)
1185throw new ArgumentException(string.Format(
NuGet.CommandLine.XPlat (29)
Commands\LocalsCommand.cs (3)
58throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_NoArguments)); 62throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_MultipleOperations)); 66throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_NoOperation));
Commands\Package\Update\PackageUpdateCommandRunner.cs (1)
239throw new ArgumentException("Package version must be specified when checking for vulnerabilities.");
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (3)
148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrereleaseWhenVersionSpecified, 157throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 169throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (4)
210throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ListPkg_InvalidOptions)); 220throw new ArgumentException(string.Format(Strings.ListPkg_InvalidOutputFormat, outputFormatOption, currentlySupportedFormat)); 227throw new ArgumentException(string.Format(Strings.ListPkg_OutputVersionNotApplicable)); 237throw new ArgumentException(string.Format(Strings.ListPkg_InvalidOutputVersion, outputVersionOption, string.Join(" ,", currentlySupportedReportVersions)));
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (2)
72throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 84throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Commands\PackageSearch\PackageSearchArgs.cs (1)
53throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidOptionValue, number, option));
Commands\PackageSearch\TableFormat\TableFormatStrategyFactory.cs (1)
23throw new ArgumentException("Invalid verbosity level");
Commands\PushCommand.cs (2)
118throw new ArgumentException(Strings.Push_MissingArguments); 137throw new ArgumentException(Strings.Push_InvalidTimeout);
Commands\Signing\SignCommand.cs (7)
194throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument, 227throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 245throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 263throw new ArgumentException(Strings.SignCommandNoCertificateException); 272throw new ArgumentException(Strings.SignCommandMultipleCertificateException); 277throw new ArgumentException(Strings.SignCommandMultipleCertificateException); 287throw new ArgumentException(message);
Commands\Signing\VerifyCommand.cs (1)
96throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PkgMissingArgument,
Utility\CommandLineUtility.cs (1)
61throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Utility\MSBuildAPIUtility.cs (1)
146throw new ArgumentException(
Utility\XPlatUtility.cs (2)
101throw new ArgumentException( 112throw new ArgumentException(
NuGet.Commands (37)
ClientCertificatesCommand\AddClientCertRunner.cs (2)
26throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 58throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ClientCertificatesNotFound));
ClientCertificatesCommand\UpdateClientCertRunner.cs (4)
27throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 47throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 64throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ClientCertificatesNotFound));
CommandArgs\PackArgs.cs (1)
97throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidSymbolPackageFormat, symbolPackageFormat));
CommandRunners\DeleteRunner.cs (1)
37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "delete", packageSource.Source));
CommandRunners\LocalsCommandRunner.cs (4)
49throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_Help)); 100throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_InvalidLocalResourceName)); 158throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_InvalidLocalResourceName)); 163throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearFailed));
CommandRunners\PushRunner.cs (1)
89throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "push", packageSource.Source));
ListCommand\ListCommandRunner.cs (2)
88throw new ArgumentException( 96throw new ArgumentException(
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
871throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 882throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString)); 1148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "SdkAnalysisLevel", sdkAnalysisLevel, "9.0.100")); 1163throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "UsingMicrosoftNETSdk", usingMicrosoftNETSdk, "false"));
RestoreCommand\Utility\PackageSpecFactory.cs (2)
724throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 734throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString));
SourcesCommands\SourceRunners.cs (3)
71throw new ArgumentException( 290throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "update source", args.Source)); 384throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "enable source", packageSource.Source));
TrustedSignersCommand\TrustedSignerActionsProvider.cs (3)
95throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedTrustTarget, trustTarget.ToString())); 100throw new ArgumentException(Strings.Error_TrustedAuthorNoOwners); 179throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithm, hashAlgorithm.ToString()));
TrustedSignersCommand\TrustedSignersCommandRunner.cs (7)
98throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 124throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments)); 142throw new ArgumentException(Strings.Error_CannotTrustOwnersForAuthor); 163throw new ArgumentException(Strings.Error_NoSourcesInformation); 169throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnavailableSource, trustedSignersArgs.Name)); 348throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NotSupportedHashAlgorithm, algorithm)); 359throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ServiceIndexShouldBeHttps, serviceIndex));
Utility\CommandRunnerUtility.cs (1)
36throw new ArgumentException(Strings.Error_MissingSourceParameter);
Utility\MSBuildProjectFrameworkUtility.cs (1)
277throw new ArgumentException(string.Format(
Utility\PackageSourceProviderExtensions.cs (1)
52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.InvalidSource, source));
NuGet.Configuration (12)
Settings\Items\CertificateItem.cs (3)
23throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Fingerprint))); 37throw new ArgumentException(Resources.UnknownHashAlgorithmNotSupported); 71throw new ArgumentException(Resources.UnknownHashAlgorithmNotSupported);
Settings\Items\ClientCertItem.cs (1)
76throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(PackageSource)));
Settings\Items\CredentialsItem.cs (1)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Username)));
Settings\Items\PackageSourceMappingSourceItem.cs (2)
40throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Key))); 62throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, name));
Settings\Items\StoreClientCertItem.cs (1)
102throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty);
Settings\Items\TrustedSignerItem.cs (2)
24throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Name))); 40throw new ArgumentException(Resources.TrustedSignerMustHaveCertificates);
Settings\Settings.cs (1)
652throw new ArgumentException("root cannot be null or empty");
Settings\VirtualSettingSection.cs (1)
33throw new ArgumentException(Resources.Error_MergeTwoDifferentSections);
NuGet.Frameworks (5)
FrameworkNameProvider.cs (1)
511throw new ArgumentException(string.Format(
NuGetFrameworkFactory.cs (4)
114throw new ArgumentException(string.Format( 193: throw new ArgumentException(string.Format( 210throw new ArgumentException(string.Format( 233: throw new ArgumentException(string.Format(
NuGet.LibraryModel (1)
PrunePackageReference.cs (1)
39throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PrunePackageReferenceMissingVersion, name));
NuGet.PackageManagement (8)
FileModifiers\XmlTransformer.cs (1)
165throw new ArgumentException("internalZipFileInfo");
NuGetPackageManager.cs (5)
1647throw new ArgumentException("At least 1 item expected for " + nameof(activeSources)); 2205throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2237throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2295throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound, 2336throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.PackageToBeUninstalledCouldNotBeFound,
Projects\MSBuildNuGetProject.cs (1)
166throw new ArgumentException(Strings.PackageStreamShouldBeSeekable);
Projects\ProjectJsonNuGetProject.cs (1)
65throw new ArgumentException(
NuGet.Packaging (15)
FallbackPackagePathResolver.cs (1)
108throw new ArgumentException(
InvalidPackageIdException.cs (1)
11: base(message)
Licenses\LicenseExpressionToken.cs (1)
26Value = value ?? throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(value)));
Licenses\LicenseExpressionTokenizer.cs (2)
26throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(value))); 98throw new ArgumentException("Invalid bracket character: " + bracket);
Licenses\NuGetLicense.cs (1)
77throw new ArgumentException(
Licenses\NuGetLicenseException.cs (1)
54throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(exceptionIdentifier)));
PackageCreation\Utility\PackageIdValidator.cs (2)
55throw new ArgumentException(NuGetResources.Manifest_IdMaxLengthExceeded); 60throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, NuGetResources.InvalidPackageId, packageId));
PackageExtractor.cs (2)
49throw new ArgumentException(Strings.PackageStreamShouldBeSeekable); 232throw new ArgumentException(Strings.PackageStreamShouldBeSeekable);
Signing\Archive\ReadOnlyBufferedStream.cs (1)
168throw new ArgumentException(
Signing\Authoring\SigningOptions.cs (1)
129throw new ArgumentException(
Signing\Timestamp\Rfc3161TimestampProvider.cs (1)
33throw new ArgumentException(string.Format(
Signing\Verification\VerificationAllowListEntry.cs (1)
24throw new ArgumentException(Strings.ErrorAuthorTargetCannotBeACountersignature);
NuGet.ProjectModel (3)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (2)
249new ArgumentException(Strings.MissingVersionOnDependency), 451new ArgumentException(Strings.MissingVersionOnDependency),
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (1)
285throw new ArgumentException(
NuGet.Protocol (18)
HttpSource\ProxyAuthenticationHandler.cs (1)
73var requestUri = request.RequestUri ?? throw new ArgumentException(message: "request.RequestUri must not be null");
LegacyFeed\V2FeedQueryBuilder.cs (1)
117throw new ArgumentException(nameof(package.Version));
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (1)
59throw new ArgumentException(
Plugins\PluginManager.cs (1)
362throw new ArgumentException("Cannot invoke get operation claims with null arguments on a " + Plugins.ProtocolConstants.Version100 + " plugin");
Resources\PackageUpdateResource.cs (4)
223throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 280throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 809throw new ArgumentException(Strings.DeletePackage_NotFound); 818throw new ArgumentException(Strings.DeletePackage_NotFound);
Utility\LocalFolderUtility.cs (1)
1103throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Utility\OfflineFeedAddContext.cs (2)
32throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 39throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Utility\OfflineFeedUtility.cs (7)
82throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 94throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 107throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 128throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 172throw new ArgumentException(message); 188throw new ArgumentException(message); 239throw new ArgumentException(message);
NuGet.Versioning (1)
VersionRangeFactory.cs (1)
80throw new ArgumentException(
PresentationBuildTasks (14)
MS\Internal\MarkupCompiler\PathInternal.cs (2)
32throw new ArgumentException(nameof(relativeTo)); 38throw new ArgumentException(nameof(path));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\internal\Media\ParserStreamGeometryContext.cs (1)
715throw new ArgumentException(SR.UnknownPathOperationType);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (4)
245throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsDefinitionAttribute")); 265throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsCompatibleWithAttribute")); 313throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 387throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute"));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (3)
142throw new ArgumentException(SR.ParserKeysAreStrings); 470throw new ArgumentException(SR.ParserKeysAreStrings); 478throw new ArgumentException(SR.ParserKeysAreStrings);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
347throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 360throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 365throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
src\wpf\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\FormatVersion.cs (1)
77throw new ArgumentException(SR.ZeroLengthFeatureID);
PresentationCore (369)
MS\Internal\Automation\SynchronizedInputAdaptor.cs (1)
38throw new ArgumentException(SR.Format(SR.Automation_InvalidSynchronizedInputType, inputType));
MS\Internal\Automation\TextProviderWrapper.cs (1)
56throw new ArgumentException(SR.Format(SR.TextProvider_InvalidChild, "childElement"));
MS\Internal\Automation\TextRangeProviderWrapper.cs (3)
50throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "range")); 60throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange")); 123throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange"));
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
720throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
48throw new ArgumentException(SR.FamilyMap_TargetNotSet);
MS\Internal\FontFace\CompositeFontParser.cs (5)
25throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 41throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 49throw new ArgumentException(SR.Format(SR.PropertyMustBeGreaterThanZero, propertyName)); 57throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 65throw new ArgumentException(SR.Format(SR.PropertyCannotBeNegative, propertyName));
MS\Internal\FontFace\TypefaceCollection.cs (1)
61throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\Ink\ExtendedProperty.cs (1)
23throw new ArgumentException(SR.InvalidGuid);
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
150throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Input buffer passed was shorter than expected")); 155throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("output buffer length was zero")); 195throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)")); 235throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid decompression algo byte")); 263throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte")); 310throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("input.Length must be at least 2")); 320throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
773throw new ArgumentException(SR.InvalidGuid);
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
134throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("ISF size is larger than maximum stream size")); 143throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table")); 154throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid PenTip value found in ISF stream")); 218throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("ISF size if greater then maximum stream size")); 225throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"));
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (3)
438throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to compress")); 478throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader")); 623throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
113throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Tag is outside of the known guid tag range")); 137throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Tag is outside of the known guid tag range"));
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
237throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid huffman encoded data"));
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
59throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid codec computed"));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
342throw new ArgumentException(SR.InvalidStream); 361throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 472throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 506throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 569throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 582throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 604throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 618throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 667throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 765throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 780throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 1210throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid argument passed to ReliableRead"));
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
296throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("MetricEntryType was persisted with Never flag which should never happen")); 444throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("MetricEntry cannot be null"));
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
84throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
322throw new ArgumentException(SR.InvalidDataTypeForExtendedProperty);
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (18)
76throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke size (" + 156throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Packet buffer overflowed the ISF stream")); 182throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table")); 195throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 230throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 244throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 253throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 262throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 270throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 279throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 286throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected")); 306throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table")); 330throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 365throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 391throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 412throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 486throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Buffer range is smaller than expected expected size")); 518throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Button data length not equal to expected length"));
MS\Internal\Ink\Renderer.cs (3)
436throw new System.ArgumentException(SR.DuplicateStrokeAdded); 464throw new System.ArgumentException(SR.UnknownStroke3); 481throw new System.ArgumentException(SR.UnknownStroke1);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
711throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 718throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 736throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 743throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges"));
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
325throw new ArgumentException(SR.InvalidPartName);
MS\Internal\IO\Packaging\NetStream.cs (2)
256throw new ArgumentException(SR.SeekNegative); 283throw new ArgumentException(SR.SeekNegative);
MS\Internal\Media\ParserStreamGeometryContext.cs (1)
715throw new ArgumentException(SR.UnknownPathOperationType);
MS\Internal\Media\VisualTreeUtils.cs (1)
219throw new ArgumentException(SR.Visual_NotAVisual);
MS\Internal\Media\XamlSerializationHelper.cs (1)
345throw new ArgumentException(SR.FloatUnknownBamlType);
MS\Internal\PartialArray.cs (1)
147throw new ArgumentException(
MS\Internal\TextFormatting\LineServicesRun.cs (1)
918throw new ArgumentException(SR.CompileFeatureSet_InvalidTypographyProperties);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
376throw new ArgumentException(SR.OptimalParagraphMustWrap);
MS\Internal\TextFormatting\TextRunCacheImp.cs (5)
115throw new ArgumentException(SR.TextRunPropertiesCannotBeNull); 118throw new ArgumentException(SR.Format(SR.PropertyOfClassMustBeGreaterThanZero, "FontRenderingEmSize", "TextRunProperties")); 123throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeGreaterThan, "FontRenderingEmSize", "TextRunProperties", realMaxFontRenderingEmSize)); 128throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "CultureInfo", "TextRunProperties")); 131throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "Typeface", "TextRunProperties"));
MS\Internal\TextFormatting\TextStore.cs (1)
2362throw new ArgumentException(SR.TextObjectMetrics_WidthOutOfRange);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
188throw new ArgumentException(
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
133throw new ArgumentException(
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
40throw new ArgumentException(SR.Collection_BadRank);
System\Windows\DataFormat.cs (1)
22throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\DataFormats.cs (1)
29throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\DataObjectPastingEventArgs.cs (4)
55throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 60throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, formatToApply)); 128throw new ArgumentException(SR.DataObject_DataObjectMustHaveAtLeastOneFormat); 157throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, value));
System\Windows\DragEventArgs.cs (1)
147throw new ArgumentException(SR.Format(SR.DragDrop_DragDropEffectsInvalid, "value"));
System\Windows\EventHandlersStore.cs (2)
147throw new ArgumentException(SR.HandlerTypeIllegal); 181throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventManager.cs (3)
70throw new ArgumentException(SR.Format(SR.DuplicateEventName, name, ownerType)); 159throw new ArgumentException(SR.ClassTypeIllegal); 164throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventRoute.cs (2)
128throw new ArgumentException(SR.SourceNotSet); 133throw new ArgumentException(SR.Mismatched_RoutedEvent);
System\Windows\FreezableCollection.cs (6)
81throw new System.ArgumentException(SR.Collection_NoNull); 193throw new System.ArgumentException(SR.Collection_NoNull); 310throw new System.ArgumentException(SR.Collection_NoNull); 481throw new ArgumentException(SR.Collection_BadRank); 639throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "T")); 695throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\ContentElement.cs (4)
82throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 147throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 521throw new ArgumentException(SR.HandlerTypeIllegal); 576throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\TextDecorationCollection.cs (7)
119throw new System.ArgumentException(SR.Collection_NoNull); 227throw new System.ArgumentException(SR.Collection_NoNull); 393throw new ArgumentException(SR.Collection_BadRank); 497throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration")); 523throw new System.ArgumentException(SR.Collection_NoNull); 923throw new System.ArgumentException(SR.Collection_NoNull); 941throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\UIElement.cs (4)
82throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 147throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 521throw new ArgumentException(SR.HandlerTypeIllegal); 576throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\UIElement3D.cs (2)
327throw new ArgumentException(SR.HandlerTypeIllegal); 382throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Ink\Events.cs (2)
37throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "added", "removed")); 103throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "newValue", "previousValue"));
System\Windows\Ink\Stroke.cs (1)
506throw new ArgumentException(SR.InvalidStylusPointCollectionZeroCount);
System\Windows\Ink\Stroke2.cs (2)
120throw new ArgumentException(SR.EmptyArray); 151throw new ArgumentException(SR.EmptyArray);
System\Windows\Ink\StrokeCollection2.cs (2)
225throw new ArgumentException(SR.EmptyArray); 275throw new ArgumentException(SR.EmptyArray);
System\Windows\Input\AccessKeyManager.cs (1)
125throw new ArgumentException(SR.Format(SR.AccessKeyManager_NotAUnicodeCharacter, "key"));
System\Windows\Input\Command\KeyBinding.cs (1)
88throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(KeyGesture)));
System\Windows\Input\Command\MouseBinding.cs (1)
101throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(MouseGesture)));
System\Windows\Input\Cursor.cs (5)
32throw new ArgumentException(SR.Format(SR.InvalidCursorType, cursorType)); 63throw new ArgumentException(SR.Format(SR.Cursor_UnsupportedFormat , cursorFile)); 195throw new ArgumentException(SR.Format(SR.Cursor_LoadImageFailure, fileName)); 249throw new ArgumentException(SR.Cursor_InvalidStream); 295throw new ArgumentException(SR.Cursor_InvalidStream);
System\Windows\Input\InputMethod.cs (2)
811throw new ArgumentException(SR.Format(SR.InputMethod_InvalidConversionMode, value)); 1062throw new ArgumentException(SR.Format(SR.InputMethod_InvalidSentenceMode, value));
System\Windows\Input\InputScope.cs (1)
171throw new ArgumentException(SR.Format(SR.InputScope_InvalidInputScopeName, "value"));
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
151throw new ArgumentException("stylusPointProperty");
System\Windows\Input\TextComposition.cs (1)
103throw new ArgumentException(SR.TextComposition_NullResultText);
System\Windows\Input\TextCompositionManager.cs (8)
314throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 319throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasStarted, "composition")); 337throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 342throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 347throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition")); 364throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 369throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 374throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition"));
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
694throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\InterOp\HwndSource.cs (4)
673throw new ArgumentException(SR.NullHwnd); 1913throw new ArgumentException(SR.KeyboardSinkAlreadyOwned); 2092throw new ArgumentException(SR.OnlyAcceptsKeyMessages); 2280throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\Markup\XamlSerializerUtil.cs (1)
56throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Media\Animation\Generated\Animatable.cs (2)
81throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 146throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (7)
118throw new System.ArgumentException(SR.Collection_NoNull); 226throw new System.ArgumentException(SR.Collection_NoNull); 392throw new ArgumentException(SR.Collection_BadRank); 496throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Timeline")); 522throw new System.ArgumentException(SR.Collection_NoNull); 922throw new System.ArgumentException(SR.Collection_NoNull); 940throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Animation\KeySpline.cs (4)
57throw new ArgumentException(SR.Format( 65throw new ArgumentException(SR.Format( 167throw new ArgumentException(SR.Format( 199throw new ArgumentException(SR.Format(
System\Windows\Media\CharacterMetrics.cs (6)
104throw new ArgumentException(SR.CharacterMetrics_NegativeHorizontalAdvance); 110throw new ArgumentException(SR.CharacterMetrics_NegativeVerticalAdvance); 165throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, field.ToString(), "double")); 171throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField); 180throw new ArgumentException(SR.CharacterMetrics_TooManyFields); 190throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField);
System\Windows\Media\CharacterMetricsDictionary.cs (8)
121throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 178throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 181throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 196throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 201throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 363throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key)); 517throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\Color.cs (5)
70throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 75throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 488throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 522throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 605throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null));
System\Windows\Media\CompositionTarget.cs (1)
461throw new System.ArgumentException(SR.CompositionTarget_RootVisual_HasParent);
System\Windows\Media\CultureSpecificStringDictionary.cs (6)
113throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 116throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 147throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 150throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 165throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 170throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (7)
121throw new System.ArgumentException(SR.Collection_NoNull); 229throw new System.ArgumentException(SR.Collection_NoNull); 395throw new ArgumentException(SR.Collection_BadRank); 499throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "BitmapEffect")); 525throw new System.ArgumentException(SR.Collection_NoNull); 925throw new System.ArgumentException(SR.Collection_NoNull); 943throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Effects\PixelShader.cs (1)
90throw new ArgumentException(SR.Effect_SourceUriMustBeFileOrPack);
System\Windows\Media\Effects\ShaderEffect.cs (1)
441throw new ArgumentException(SR.GetResourceString(srid));
System\Windows\Media\EllipseGeometry.cs (1)
30throw new System.ArgumentException(SR.Format(SR.Rect_Empty, "rect"));
System\Windows\Media\FamilyMapCollection.cs (7)
77throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 80throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 91throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 95throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType)); 98throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 101throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 367throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\FamilyTypefaceCollection.cs (6)
241throw new ArgumentException(SR.CompositeFont_DuplicateTypeface); 359throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 369throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 373throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 376throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 379throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
System\Windows\Media\Fonts.cs (1)
315throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\Generated\DoubleCollection.cs (2)
367throw new ArgumentException(SR.Collection_BadRank); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "double"));
System\Windows\Media\Generated\DrawingCollection.cs (7)
140throw new System.ArgumentException(SR.Collection_NoNull); 248throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Drawing")); 544throw new System.ArgumentException(SR.Collection_NoNull); 967throw new System.ArgumentException(SR.Collection_NoNull); 985throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeneralTransformCollection.cs (7)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform")); 532throw new System.ArgumentException(SR.Collection_NoNull); 932throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeometryCollection.cs (7)
140throw new System.ArgumentException(SR.Collection_NoNull); 248throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Geometry")); 544throw new System.ArgumentException(SR.Collection_NoNull); 967throw new System.ArgumentException(SR.Collection_NoNull); 985throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GradientStopCollection.cs (7)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GradientStop")); 532throw new System.ArgumentException(SR.Collection_NoNull); 1035throw new System.ArgumentException(SR.Collection_NoNull); 1053throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\Int32Collection.cs (2)
367throw new ArgumentException(SR.Collection_BadRank); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "int"));
System\Windows\Media\Generated\PathFigureCollection.cs (7)
129throw new System.ArgumentException(SR.Collection_NoNull); 237throw new System.ArgumentException(SR.Collection_NoNull); 403throw new ArgumentException(SR.Collection_BadRank); 507throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathFigure")); 533throw new System.ArgumentException(SR.Collection_NoNull); 1022throw new System.ArgumentException(SR.Collection_NoNull); 1040throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PathSegmentCollection.cs (7)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathSegment")); 532throw new System.ArgumentException(SR.Collection_NoNull); 932throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PointCollection.cs (2)
367throw new ArgumentException(SR.Collection_BadRank); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point"));
System\Windows\Media\Generated\TextEffectCollection.cs (7)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextEffect")); 532throw new System.ArgumentException(SR.Collection_NoNull); 932throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\TransformCollection.cs (7)
140throw new System.ArgumentException(SR.Collection_NoNull); 248throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform")); 544throw new System.ArgumentException(SR.Collection_NoNull); 967throw new System.ArgumentException(SR.Collection_NoNull); 985throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\VectorCollection.cs (2)
367throw new ArgumentException(SR.Collection_BadRank); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector"));
System\Windows\Media\GlyphRun.cs (1)
415throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported);
System\Windows\Media\GlyphTypeface.cs (2)
1813throw new ArgumentException(SR.Collection_BadRank); 1898throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\Imaging\BitmapImage.cs (1)
381throw new System.ArgumentException(SR.Image_NoDecodeFrames);
System\Windows\Media\Imaging\BitmapPalette.cs (1)
115throw new System.ArgumentException(SR.Format(SR.Image_PaletteFixedType, paletteType));
System\Windows\Media\Imaging\BitmapSource.cs (1)
662throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
32throw new ArgumentException(SR.Format(SR.Image_CantBeFrozen, null)); 69throw new ArgumentException(SR.Image_CantBeFrozen);
System\Windows\Media\Imaging\CachedBitmap.cs (1)
130throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
37throw new ArgumentException(SR.Image_AlphaThresholdOutOfRange);
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
392throw new ArgumentException(SR.Image_InvalidArrayForPixel); 488throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\MediaSystem.cs (1)
282throw new ArgumentException(SR.MediaSystem_ApiInvalidContext);
System\Windows\Media\PixelFormatConverter.cs (1)
78throw new ArgumentException(SR.Format(SR.General_Expected_Type, nameof(PixelFormat)));
System\Windows\Media\textformatting\NumberSubstitution.cs (1)
83throw new ArgumentException(SR.SpecificNumberCultureRequired);
System\Windows\Media\textformatting\TextFormatter.cs (1)
122throw new ArgumentException(SR.CurrentDispatcherNotFound);
System\Windows\Media\Visual.cs (2)
2579throw new ArgumentException(SR.Visual_HasParent); 2648throw new ArgumentException(SR.Visual_NotChild);
System\Windows\Media\VisualCollection.cs (5)
174throw new ArgumentException(SR.Collection_BadRank); 337throw new System.ArgumentException(SR.VisualCollection_EntryInUse); 342throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 443throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 687throw new System.ArgumentException(SR.VisualCollection_VisualHasParent);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (7)
126throw new System.ArgumentException(SR.Collection_NoNull); 234throw new System.ArgumentException(SR.Collection_NoNull); 400throw new ArgumentException(SR.Collection_BadRank); 504throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform3D")); 530throw new System.ArgumentException(SR.Collection_NoNull); 930throw new System.ArgumentException(SR.Collection_NoNull); 948throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\MaterialCollection.cs (7)
138throw new System.ArgumentException(SR.Collection_NoNull); 246throw new System.ArgumentException(SR.Collection_NoNull); 412throw new ArgumentException(SR.Collection_BadRank); 516throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Material")); 542throw new System.ArgumentException(SR.Collection_NoNull); 965throw new System.ArgumentException(SR.Collection_NoNull); 983throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Model3DCollection.cs (7)
138throw new System.ArgumentException(SR.Collection_NoNull); 246throw new System.ArgumentException(SR.Collection_NoNull); 412throw new ArgumentException(SR.Collection_BadRank); 516throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Model3D")); 542throw new System.ArgumentException(SR.Collection_NoNull); 965throw new System.ArgumentException(SR.Collection_NoNull); 983throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Point3DCollection.cs (2)
365throw new ArgumentException(SR.Collection_BadRank); 453throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point3D"));
System\Windows\Media3D\Generated\Transform3DCollection.cs (7)
138throw new System.ArgumentException(SR.Collection_NoNull); 246throw new System.ArgumentException(SR.Collection_NoNull); 412throw new ArgumentException(SR.Collection_BadRank); 516throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform3D")); 542throw new System.ArgumentException(SR.Collection_NoNull); 965throw new System.ArgumentException(SR.Collection_NoNull); 983throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Vector3DCollection.cs (2)
365throw new ArgumentException(SR.Collection_BadRank); 453throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector3D"));
System\Windows\Media3D\Generated\Visual3D.cs (2)
81throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 146throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media3D\ModelVisual3D.cs (1)
79throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, nameof(Visual3D)));
System\Windows\Media3D\Rect3D.cs (4)
58throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 202throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 227throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 252throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Size3D.cs (4)
24throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 85throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 110throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 136throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
364throw new ArgumentException(SR.Visual_HasParent); 395throw new ArgumentException(SR.Visual_NotChild);
System\Windows\Media3D\Visual3DCollection.cs (4)
159throw new ArgumentException(SR.Collection_BadRank); 450throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Visual3D")); 460throw new System.ArgumentException(SR.Collection_NoNull); 467throw new System.ArgumentException(SR.VisualCollection_VisualHasParent);
System\Windows\QueryContinueDragEventArgs.cs (1)
81throw new ArgumentException(SR.Format(SR.DragDrop_DragActionInvalid, "value"));
System\Windows\TextDecorationCollectionConverter.cs (1)
118throw new ArgumentException(SR.Format(SR.InvalidTextDecorationCollectionString, text));
System\Windows\UIElement.cs (4)
1644throw new ArgumentException(SR.SourceNotSet); 1649throw new ArgumentException(SR.Mismatched_RoutedEvent); 1901throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 1937throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType()));
PresentationFramework (266)
Microsoft\Win32\FileDialog.cs (1)
327throw new ArgumentException(SR.FileDialogInvalidFilter);
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
303throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 497throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 503throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
133throw new ArgumentException(SR.Format(SR.InvalidSubTreeProcessor, processorString));
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (4)
201throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 357throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 434throw new ArgumentException(nameof(segmentNumber)); 441throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
110throw new ArgumentException(SR.AlreadyHasParent); 124throw new ArgumentException(SR.AlreadyHasParent);
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
217throw new ArgumentException(SR.MoreThanOneAttachedAnnotation);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
203throw new ArgumentException(SR.MoreThanOneAttachedAnnotation); 471throw new ArgumentException(SR.InvalidAttachedAnchor);
MS\Internal\Annotations\TextAnchor.cs (1)
105throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, "textPointer"));
MS\Internal\Controls\ConnectionPointCookie.cs (2)
43ex = new ArgumentException(SR.Format(SR.AxNoEventInterface, eventInterface.Name)); 78throw new ArgumentException(SR.Format(SR.AxNoConnectionPoint, eventInterface.Name));
MS\Internal\Data\RBTree.cs (1)
570throw new ArgumentException(SR.Argument_InvalidOffLen);
MS\Internal\Data\ViewManager.cs (2)
579throw new ArgumentException(SR.Format(SR.CollectionView_WrongType, collectionViewType.Name)); 837throw new ArgumentException(SR.Format(SR.CollectionView_NameTypeDuplicity, collectionViewType, cachedViewType));
MS\Internal\Documents\ContentElementCollection.cs (3)
69throw new ArgumentException(SR.TableCollectionRankMultiDimNotSupported); 77throw new ArgumentException(SR.TableCollectionInvalidOffLen); 109throw new ArgumentException(SR.TableCollectionInvalidOffLen);
MS\Internal\Documents\TableColumnCollectionInternal.cs (3)
143throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 150throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 279throw new ArgumentException(SR.TableCollectionRangeOutOfRange);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (5)
45throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 110throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 229throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 265throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 420throw new System.ArgumentException(SR.TableCollectionInOtherCollection);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
240throw new ArgumentException(SR.CannotSetNegativePosition);
MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (1)
37throw new ArgumentException(SR.Format(SR.UnexpectedXmlNodeInXmlFixedPageInfoConstructor,
MS\Internal\KnownBoxes.cs (3)
14throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 33throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 50throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative);
MS\Internal\Markup\StaticExtension.cs (3)
65throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 73throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 83throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IXamlTypeResolver"));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
141throw new ArgumentException(nameof(type));
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
71throw new ArgumentException(SR.OnlyFlowAndFixedSupported);
System\Windows\Annotations\AnnotationHelper.cs (1)
597throw new ArgumentException(SR.InvalidSelectionPages);
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
67throw new ArgumentException(SR.StreamDoesNotSupportSeek);
System\Windows\Application.cs (12)
352throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 355throw new ArgumentException(SR.AbsoluteUriNotAllowed); 442throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 445throw new ArgumentException(SR.AbsoluteUriNotAllowed); 579throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriResource", "OriginalString")); 583throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 611throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriContent", "OriginalString")); 615throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 640throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriRemote", "OriginalString")); 646throw new ArgumentException(SR.NonPackSooAbsoluteUriNotAllowed); 971throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value)); 1687throw new ArgumentException(SR.Format(SR.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName));
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
528throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
158throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
135throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
235throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\ComponentResourceKeyConverter.cs (1)
100throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ComponentResourceKey"));
System\Windows\Condition.cs (3)
51throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, conditionValue, conditionProperty.Name)); 134throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 140throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\ConditionCollection.cs (1)
112throw new ArgumentException(SR.MustBeCondition);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
62throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
System\Windows\Controls\AVElementHelper.cs (1)
99throw new ArgumentException(SR.AudioVideo_InvalidDependencyObject);
System\Windows\Controls\ColumnDefinition.cs (9)
78throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 86throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 108throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 313throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 516throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(Grid), nameof(ColumnDefinitionCollection))); 540throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(ColumnDefinitionCollection), nameof(Grid))); 593throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition")); 598throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "ColumnDefinitionCollection")); 614throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition"));
System\Windows\Controls\ContextMenuService.cs (1)
43throw new ArgumentException(SR.ContextMenuInDifferentDispatcher);
System\Windows\Controls\CustomDictionarySources.cs (1)
338throw new ArgumentException(SR.CustomDictionaryNullItem);
System\Windows\Controls\DataGridColumnCollection.cs (1)
497throw new ArgumentException(SR.DataGrid_DuplicateDisplayIndex);
System\Windows\Controls\Decorator.cs (1)
70throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
System\Windows\Controls\FlowDocumentReader.cs (5)
747throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1616throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1648throw new ArgumentException(SR.FlowDocumentReaderCannotDisableAllViewingModes); 1654throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1917throw new ArgumentException(SR.FlowDocumentReaderCanHaveOnlyOneChild);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1184throw new ArgumentException(SR.FlowDocumentScrollViewerDocumentBelongsToAnotherFlowDocumentScrollViewerAlready); 1800throw new ArgumentException(SR.FlowDocumentScrollViewerCanHaveOnlyOneChild);
System\Windows\Controls\Grid.cs (2)
283throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(value), nameof(ColumnDefinitionCollection))); 325throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(value), nameof(RowDefinitionCollection)));
System\Windows\Controls\ItemsPanelTemplate.cs (1)
155throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ItemsPresenter", templatedParent.GetType().Name));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
864throw new ArgumentException(SR.DocumentViewerPageViewsCollectionEmpty); 874throw new ArgumentException(SR.DocumentViewerOneMasterPage);
System\Windows\Controls\PrintDialog.cs (2)
161throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MinPage")); 181throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MaxPage"));
System\Windows\Controls\RichTextBox.cs (2)
158throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType())); 360throw new ArgumentException(SR.RichTextBox_DocumentBelongsToAnotherRichTextBoxAlready);
System\Windows\Controls\RowDefinition.cs (9)
73throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 81throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 103throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 308throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 511throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(Grid), nameof(RowDefinitionCollection))); 535throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(RowDefinitionCollection), nameof(Grid))); 588throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition")); 593throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "RowDefinitionCollection")); 609throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition"));
System\Windows\Controls\StickyNote.cs (1)
1741throw new ArgumentException(SR.InvalidInkForeground);
System\Windows\Controls\TextAdaptor.cs (1)
667throw new ArgumentException(SR.TextProvider_InvalidPoint);
System\Windows\Controls\TextBlock.cs (2)
127throw new ArgumentException(SR.Format(SR.TextPanelIllegalParaTypeForIAddChild, "value", value.GetType())); 145throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parentType.Name, valueType.Name));
System\Windows\Controls\TextRangeAdaptor.cs (3)
510throw new ArgumentException(SR.TextRangeProvider_WrongTextRange); 1751throw new ArgumentException(SR.Format(SR.TextRangeProvider_EmptyStringParameter, "text")); 1854throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidParameterValue, maxLength, "maxLength"));
System\Windows\Controls\UIElementCollection.cs (2)
386throw new System.ArgumentException(SR.Format(SR.Collection_NoNull, "UIElementCollection")); 391throw new System.ArgumentException(SR.Format(SR.Collection_BadType, "UIElementCollection", value.GetType().Name, "UIElement"));
System\Windows\Controls\VirtualizationCacheLength.cs (2)
68throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheBeforeViewport")); 73throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheAfterViewport"));
System\Windows\Controls\WebBrowser.cs (1)
432throw new ArgumentException(SR.NeedToBeComVisible);
System\Windows\ControlTemplate.cs (3)
67throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, _targetType.Name, templatedParent.GetType().Name)); 73throw new ArgumentException(SR.MustNotTemplateUnassociatedControl); 138throw new ArgumentException(SR.Format(SR.InvalidControlTemplateTargetType, targetType.Name));
System\Windows\CornerRadiusConverter.cs (1)
134throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CornerRadius), destinationType.FullName));
System\Windows\Data\BindingListCollectionView.cs (2)
2195throw new ArgumentException(SR.CannotDetermineSortByPropertiesForCollection); 2204throw new ArgumentException(SR.Format(SR.PropertyToSortByNotFoundOnType, typeName, sorts[i].PropertyName));
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, nameof(arrayIndex), nameof(array)));
System\Windows\DataTemplate.cs (1)
192throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ContentPresenter", templatedParent.GetType().Name));
System\Windows\DataTrigger.cs (2)
77throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 83throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\Documents\DocumentSequence.cs (1)
324throw new ArgumentException(SR.IDPInvalidContentPosition);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
346throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 352throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\DocumentSequenceTextPointer.cs (4)
658throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 662throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 666throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 670throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex));
System\Windows\Documents\FixedDocument.cs (2)
404throw new ArgumentException(SR.IDPInvalidContentPosition); 444throw new ArgumentException(SR.FixedDocumentExpectsDependencyObject);
System\Windows\Documents\FixedTextContainer.cs (2)
313throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 320throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\FixedTextPointer.cs (1)
128throw new ArgumentException(SR.Format(SR.NegativeValue, "count"));
System\Windows\Documents\FlowDocument.cs (2)
1626throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, _typeofThis.Name, value.GetType().Name)); 1632throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, value.GetType().Name));
System\Windows\Documents\Glyphs.cs (12)
300throw new ArgumentException(SR.GlyphsUnicodeStringAndIndicesCannotBothBeEmpty); 407throw new ArgumentException(SR.GlyphsClusterBadCharactersBeforeBracket); 411throw new ArgumentException(SR.GlyphsClusterNoNestedClusters); 415throw new ArgumentException(SR.GlyphsClusterNoMatchingBracket); 429throw new ArgumentException(SR.GlyphsClusterMisplacedSeparator); 466throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 566throw new ArgumentException(SR.GlyphsIndexRequiredIfNoUnicode); 569throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 598throw new ArgumentException(SR.GlyphsAdvanceWidthCannotBeNegative); 616throw new ArgumentException(SR.GlyphsTooManyCommas); 661throw new ArgumentException(SR.GlyphsIndexRequiredWithinCluster); 664throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
66throw new ArgumentException(SR.SerializerProviderDisplayNameNull); 70throw new ArgumentException(SR.SerializerProviderManufacturerNameNull); 74throw new ArgumentException(SR.SerializerProviderManufacturerWebsiteNull); 78throw new ArgumentException(SR.SerializerProviderDefaultFileExtensionNull);
System\Windows\Documents\Span.cs (3)
92throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "start", "end")); 96throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "start", "end")); 109throw new ArgumentException(SR.Format(SR.InDifferentParagraphs, "start", "end"));
System\Windows\Documents\TextElement.cs (6)
100throw new ArgumentException(SR.TextElement_UnmatchedEndPointer); 123throw new ArgumentException(SR.Format(SR.InDifferentScope, "start", "end")); 808throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name)); 820throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name)); 836throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 843throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (6)
253throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 292throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 463throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 602throw new ArgumentException("array"); 609throw new ArgumentException("arrayIndex"); 614throw new ArgumentException(SR.Format(SR.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length));
System\Windows\Documents\TextPointer.cs (6)
289throw new ArgumentException(SR.BadDistance); 1752throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 1756throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 1760throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 1764throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex)); 3905throw new ArgumentException(SR.BadDistance);
System\Windows\Documents\TextRange.cs (2)
784throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name)); 852throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name));
System\Windows\Documents\TextStore.cs (1)
3332throw new ArgumentException(SR.Format(SR.TextStore_BadIMECharOffset, offset, this.TextContainer.IMECharCount));
System\Windows\Documents\ValidationHelper.cs (5)
44throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, paramName)); 59throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "startPosition", "endPosition")); 63throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "startPosition", "endPosition")); 107throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, position.Parent.GetType().Name, child.GetType().Name)); 115throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, child.GetType().Name));
System\Windows\Documents\WinRTSpellerInterop.cs (1)
430throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath));
System\Windows\Documents\WpfPayload.cs (1)
489throw new ArgumentException(SR.WpfPayload_InvalidImageSource);
System\Windows\EventSetter.cs (3)
95throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Event")); 99throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Handler")); 103throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventTrigger.cs (1)
57throw new ArgumentException(SR.Format(SR.EventTriggerBadAction, value.GetType().Name));
System\Windows\FigureLength.cs (3)
103throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 107throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 119throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownFigureUnitType, "type"));
System\Windows\FrameworkElement.cs (1)
477throw new ArgumentException( SR.Format(SR.TargetNameNotFound, targetName));
System\Windows\FrameworkElementFactory.cs (7)
87throw new ArgumentException(SR.Format(SR.MustBeFrameworkOr3DDerived, value.Name)); 144throw new ArgumentException(SR.NameNotEmptyString); 167throw new ArgumentException(SR.FrameworkElementFactoryAlreadyParented); 209throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dp.Name)); 222throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, dp.Name, GetType().Name)); 310throw new ArgumentException(SR.HandlerTypeIllegal); 346throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\FrameworkTemplate.cs (2)
374throw new ArgumentException(SR.Format(SR.VisualTreeRootIsFrameworkElement, nameof(FrameworkElement), templateRoot.Type.Name)); 835throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dependencyProperty.Name));
System\Windows\GridLength.cs (3)
92throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 96throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 102throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownGridUnitType, "type"));
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1436throw new ArgumentException(SR.Format(SR.IntegerCollectionLengthLessThanZero, Array.Empty<object>())); 2084throw new ArgumentException(SR.Format(SR.MissingTagInNamespace, "=", uriInput)); 2089throw new ArgumentException(SR.Format(SR.AssemblyTagMissing, "assembly", uriInput));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
47throw new ArgumentException("can\u2019t seek on baseStream");
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
83throw new ArgumentException(SR.AssemblyIdNegative); 122throw new ArgumentException(SR.KnownTypeIdNegative); 151throw new ArgumentException(SR.KnownTypeIdNegative);
System\Windows\Markup\BamlWriter.cs (2)
31throw new ArgumentException(SR.BamlWriterBadStream); 1068throw new ArgumentException(SR.Format(SR.BamlWriterBadAssembly,
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
305throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, "arrayIndex", "array"));
System\Windows\Markup\RoutedEventConverter.cs (1)
165throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, nameString));
System\Windows\Markup\XamlInt32CollectionSerializer.cs (2)
275throw new ArgumentException(SR.IntegerCollectionLengthLessThanZero); 324throw new ArgumentException(SR.UnknownIndexType);
System\Windows\Markup\XamlSerializerUtil.cs (1)
39throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XamlStream.cs (2)
155throw new ArgumentException(SR.ParserWriterUnknownOrigin); 299throw new ArgumentException(SR.ParserWriterUnknownOrigin);
System\Windows\Markup\XmlnsCache.cs (2)
352throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 387throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute"));
System\Windows\Markup\XmlnsDictionary.cs (3)
142throw new ArgumentException(SR.ParserKeysAreStrings); 470throw new ArgumentException(SR.ParserKeysAreStrings); 478throw new ArgumentException(SR.ParserKeysAreStrings);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
80throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior); 105throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, "Name"));
System\Windows\Media\Animation\SeekStoryboard.cs (1)
81throw new ArgumentException(SR.Storyboard_UnrecognizedTimeSeekOrigin);
System\Windows\Media\Animation\Storyboard.cs (1)
1215throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior);
System\Windows\MessageBox.cs (1)
397throw new ArgumentException(SR.CantShowMBServiceWithOwner);
System\Windows\Navigation\NavigationService.cs (1)
205throw new System.ArgumentException(SR.HyperLinkTargetNotFound);
System\Windows\PropertyPath.cs (1)
839throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, name));
System\Windows\PropertyPathConverter.cs (2)
102throw new ArgumentException(SR.Format(SR.CannotConvertType, source.GetType().FullName, typeof(PropertyPath))); 133throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(PropertyPath), destinationType.FullName));
System\Windows\ResourceDictionary.cs (2)
136throw new ArgumentException(SR.Format(SR.ResourceDictionaryLoadFromFailure, value == null ? "''" : value.ToString())); 1296throw new ArgumentException(SR.KeyCollectionHasInvalidKey);
System\Windows\ResourceReferenceExpressionConverter.cs (1)
116throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ResourceReferenceExpression"));
System\Windows\Setter.cs (8)
49throw new ArgumentException(SR.SetterValueCannotBeUnset); 68throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, property.Name, GetType().Name)); 90throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "Setter.Property")); 98throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 112throw new ArgumentException(SR.Format(SR.SetterValueOfMarkupExtensionNotSupported, 119throw new ArgumentException(SR.Format(SR.InvalidSetterValue, value, dp.OwnerType, dp.Name)); 172throw new ArgumentException(SR.SetterValueCannotBeUnset); 180throw new ArgumentException(SR.StyleValueOfExpressionNotSupported);
System\Windows\Shell\JumpList.cs (1)
62throw new ArgumentException(SR.JumpItemsRejectedEventArgs_CountMismatch);
System\Windows\Style.cs (2)
167throw new ArgumentException(SR.Format(SR.MustBeFrameworkDerived, value.Name)); 205throw new ArgumentException(SR.StyleCannotBeBasedOnSelf);
System\Windows\StyleHelper.cs (1)
5316throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, childName));
System\Windows\SystemKeyConverter.cs (1)
132throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "SystemResourceKey or SystemThemeKey"));
System\Windows\TemplateBindingExpressionConverter.cs (1)
45throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "TemplateBindingExpression"));
System\Windows\ThicknessConverter.cs (1)
134throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName));
System\Windows\Trigger.cs (2)
79throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 85throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\TriggerActionCollection.cs (1)
305throw new ArgumentException(SR.MustBeTriggerAction);
System\Windows\TriggerBase.cs (2)
177throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 191throw new ArgumentException(SR.ChildNameMustBeNonEmpty);
System\Windows\Window.cs (6)
586throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value)); 1228throw new ArgumentException(SR.CannotSetOwnerToItself); 1262throw new ArgumentException(SR.Format(SR.CircularOwnerChild, value, this)); 5674throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, l)); 5685throw new ArgumentException(SR.Format(SR.InvalidValueForTopLeft, length)); 5691throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, length));
PresentationUI (1)
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
39throw new ArgumentException(SR.DigitalSignatureNoFixedDocumentSequence);
ReachFramework (14)
Packaging\XpsFixedPageReaderWriter.cs (2)
1225throw new ArgumentException(SR.ReachPackaging_InvalidType); 1245throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, mimeType.ToString()));
Packaging\XpsManager.cs (2)
350throw new ArgumentException(SR.ReachPackaging_InvalidType); 1475throw new ArgumentException(SR.ReachPackaging_PartFromDifferentContainer);
Serialization\FontTypeConverter.cs (1)
157throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "GlyphRun"));
Serialization\ImageSourceTypeConverter.cs (1)
162throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "BitmapSource"));
Serialization\Manager\NGCSerializer.cs (3)
87throw new ArgumentException(SR.ReachSerialization_ExpectedFixedDocument); 156throw new ArgumentException(SR.ReachSerialization_ExpectedFixedPage); 470throw new ArgumentException(SR.ReachSerialization_ExpectedFixedDocumentSequence);
Serialization\Manager\ReachVisualSerializer.cs (2)
43throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 179throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\ReachVisualSerializerAsync.cs (2)
76throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 229throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
572throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, contentType.ToString()));
ResultsOfTGenerator (1)
Program.cs (1)
24throw new ArgumentException("Invalid number of args specified. Must specify both class file path and test file path if args are passed.");
Roslyn.Diagnostics.Analyzers (15)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (2)
122throw new ArgumentException(nameof(oldChanges)); 127throw new ArgumentException(nameof(newChanges));
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (4)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 216return new ArgumentException(GetResourceString(resource));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
287throw new ArgumentException($"Unsupported symbol kind '{symbol.Kind}' for symbol '{symbol}'");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
188_ => throw new ArgumentException(nameof(element)), 202_ => throw new ArgumentException(nameof(type)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
456throw new ArgumentException(CompilerExtensionsResources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
239throw new ArgumentException(WorkspaceExtensionsResources.Could_not_find_location_to_generation_symbol_into); 485throw new ArgumentException(WorkspaceExtensionsResources.No_location_provided_to_add_statements_to); 490throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_not_in_source); 495throw new ArgumentException(WorkspaceExtensionsResources.Destination_location_was_from_a_different_tree);
Roslyn.Diagnostics.CSharp.Analyzers (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (5)
325throw new ArgumentException("target"); 374throw new ArgumentException("attributeToRemove"); 389throw new ArgumentException("attributeToRemove"); 474throw new ArgumentException("attributeToRemove"); 566throw new ArgumentException(WorkspaceExtensionsResources.No_available_location_found_to_add_statements_to);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (2)
38throw new ArgumentException(WorkspaceExtensionsResources.Namespace_can_not_be_added_in_this_destination); 60throw new ArgumentException(WorkspaceExtensionsResources.Namespace_can_not_be_added_in_this_destination);
rzc (2)
DefaultExtensionAssemblyLoader.cs (2)
49throw new ArgumentException(nameof(filePath)); 114throw new ArgumentException(nameof(filePath));
System.Collections (21)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
36throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Generic\LinkedList.cs (2)
207throw new ArgumentException(SR.Arg_InsufficientSpace); 465throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Generic\OrderedDictionary.cs (4)
1210throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1298throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1541throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1850throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Generic\PriorityQueue.cs (1)
970throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Collections\Generic\SortedDictionary.cs (5)
542throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 566throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 703throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 727throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 896throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, item));
System\Collections\Generic\SortedList.cs (3)
167throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, keys[i])); 442throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 473throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Generic\SortedSet.cs (2)
523throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 558throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Generic\Stack.cs (2)
108throw new ArgumentException(SR.Argument_InvalidOffLen); 141throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Collections.Concurrent (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\Concurrent\BlockingCollection.cs (1)
184throw new ArgumentException(SR.BlockingCollection_ctor_CountMoreThanCapacity);
System\Collections\Concurrent\ConcurrentStack.cs (1)
402throw new ArgumentException(SR.ConcurrentStack_PushPopRange_InvalidCount);
System.Collections.Immutable (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (4)
162throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 168throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 194throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 200throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
865throw new ArgumentException(SR.Format(SR.DuplicateKey, item.Key));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
665throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\Immutable\SortedInt32KeyNode.cs (1)
448throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System.Collections.NonGeneric (5)
System\Collections\CollectionBase.cs (1)
170if (index < 0) throw new ArgumentException(SR.Arg_RemoveArgNotFound);
System\Collections\Queue.cs (1)
138throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Collections\SortedList.cs (2)
179throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate_OldAndNewKeys, GetKey(i), key)); 342throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Stack.cs (1)
122throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Collections.Specialized (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
System\Collections\Specialized\ListDictionary.cs (2)
163throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key)); 211throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
384throw new ArgumentException(SR.Arg_InsufficientSpace); 608throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Specialized\NameValueCollection.cs (1)
209throw new ArgumentException(SR.Arg_InsufficientSpace);
System.CommandLine (6)
ArgumentArity.cs (2)
38throw new ArgumentException($"{nameof(maximumNumberOfValues)} must be greater than or equal to {nameof(minimumNumberOfValues)}"); 43throw new ArgumentException($"{nameof(maximumNumberOfValues)} must be less than or equal to {nameof(MaximumArity)}");
Binding\ArgumentConverter.DefaultValues.cs (1)
63throw new ArgumentException($"Type {type} cannot be created without a custom binder.");
Completions\CompletionItem.cs (1)
30Kind = kind ?? throw new ArgumentException(nameof(kind));
Parsing\SymbolResultTree.cs (1)
89throw new ArgumentException($"No symbol result found with name \"{name}\".");
Symbol.cs (1)
86throw new ArgumentException("Names and aliases cannot be null, empty, or consist entirely of whitespace.");
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
45throw new ArgumentException(SR.Format(SR.Common_PropertyNotFound, validationContext.ObjectType.FullName, OtherProperty));
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\ConstraintServices.cs (7)
121throw new ArgumentException(nameof(parameter)); 126throw new ArgumentException(nameof(constantKey)); 140throw new ArgumentException(nameof(parameter)); 145throw new ArgumentException(nameof(constantKey)); 150throw new ArgumentException(nameof(constantType)); 168throw new ArgumentException(nameof(parameter)); 173throw new ArgumentException(nameof(constantValue));
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
55throw new ArgumentException(SR.ArgumentException_EmptyString);
System.ComponentModel.Primitives (2)
System\ComponentModel\InvalidAsynchronousStateException.cs (1)
30public InvalidAsynchronousStateException(string? message) : base(message)
System\ComponentModel\InvalidEnumArgumentException.cs (1)
29public InvalidEnumArgumentException(string? message) : base(message)
System.ComponentModel.TypeConverter (59)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)),
System\ComponentModel\AmbientValueAttribute.cs (1)
149throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
System\ComponentModel\Container.cs (1)
237throw new ArgumentException(SR.Format(SR.DuplicateComponentName, name));
System\ComponentModel\Design\PropertyTabAttribute.cs (4)
198throw new ArgumentException(SR.PropertyTabAttributeArrayLengthMismatch); 206throw new ArgumentException(SR.PropertyTabAttributeArrayLengthMismatch); 213throw new ArgumentException(SR.PropertyTabAttributeParamsBothNull); 222throw new ArgumentException(SR.PropertyTabAttributeBadPropertyTabScope);
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (8)
46throw new ArgumentException(SR.InstanceDescriptorMustBeStatic); 50throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 57throw new ArgumentException(SR.InstanceDescriptorCannotBeStatic); 61throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 68throw new ArgumentException(SR.InstanceDescriptorMustBeStatic); 72throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 79throw new ArgumentException(SR.InstanceDescriptorMustBeReadable); 84throw new ArgumentException(SR.InstanceDescriptorMustBeStatic);
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
125throw new ArgumentException(SR.Format(SR.MemberRelationshipService_RelationshipNotSupported, sourceName, source.Member.Name, relName, relationship.Member.Name));
System\ComponentModel\Design\ServiceContainer.cs (1)
85throw new ArgumentException(SR.Format(SR.ErrorInvalidServiceInstance, serviceType.FullName));
System\ComponentModel\EnumConverter.cs (2)
28throw new ArgumentException(SR.EnumInvalidValue); 132throw new ArgumentException(SR.Format(SR.EnumConverterInvalidValue, value, EnumType.Name));
System\ComponentModel\LicenseManager.cs (1)
249throw new ArgumentException(SR.LicMgrDifferentUser);
System\ComponentModel\MaskedTextProvider.cs (3)
227throw new ArgumentException(SR.MaskedTextProviderMaskInvalidChar); 674throw new ArgumentException(SR.MaskedTextProviderInvalidCharError); 705throw new ArgumentException(SR.MaskedTextProviderInvalidCharError);
System\ComponentModel\PropertyDescriptorCollection.cs (4)
420throw new ArgumentException(nameof(value)); 460throw new ArgumentException(nameof(value)); 487throw new ArgumentException(nameof(key)); 581throw new ArgumentException(nameof(value));
System\ComponentModel\ReflectEventDescriptor.cs (5)
83throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 87throw new ArgumentException(SR.Format(SR.ErrorInvalidEventType, name)); 101_componentClass = componentClass ?? throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 195throw new ArgumentException(SR.Format(SR.ErrorInvalidEventHandler, Name)); 369throw new ArgumentException(SR.Format(SR.ErrorMissingEventAccessors, Name));
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
95throw new ArgumentException(SR.Format(SR.ErrorInvalidPropertyType, name)); 100throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 171throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 351throw new ArgumentException(SR.Format(SR.ErrorMissingPropertyAccessors, Name));
System\ComponentModel\TypeDescriptor.cs (12)
421throw new ArgumentException(SR.TypeDescriptorSameAssociation); 446throw new ArgumentException(SR.TypeDescriptorAlreadyAssociated); 500throw new ArgumentException(SR.TypeDescriptorArgsCountMismatch); 1012throw new ArgumentException(nameof(component)); 1045throw new ArgumentException(nameof(component)); 1055throw new ArgumentException(nameof(component)); 2104throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(Attribute).FullName)); 2117throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(PropertyDescriptor).FullName)); 2130throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(EventDescriptor).FullName)); 3260throw new ArgumentException(SR.TypeDescriptorArgsCountMismatch); 3363throw new ArgumentException(nameof(instance)); 3379throw new ArgumentException(nameof(instance));
System\Drawing\PointConverter.cs (2)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"x{sep} y")); 97throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\RectangleConverter.cs (2)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"x{sep} y{sep} width{sep} height")); 107throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\SizeConverter.cs (2)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"Width{sep} Height")); 97throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\SizeFConverter.cs (2)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"Width{sep} Height")); 95throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Timers\Timer.cs (3)
53throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(interval), interval)); 59throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(interval), interval)); 172throw new ArgumentException(SR.Format(SR.TimerInvalidInterval, value, 0));
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
345throw new ArgumentException(SR.ArgumentException_EmptyString);
System.Configuration.ConfigurationManager (31)
System\Configuration\CallbackValidatorAttribute.cs (1)
39throw new ArgumentException(SR.Format(SR.Validator_method_not_found, _callbackMethodName));
System\Configuration\ClientSettingsStore.cs (1)
265_ => throw new ArgumentException(SR.UnknownUserLevel),
System\Configuration\ConfigurationConverterBase.cs (1)
23throw new ArgumentException(SR.Format(SR.Converter_unsupported_value_type, expected.Name));
System\Configuration\ConfigurationElementCollection.cs (7)
48throw new ArgumentException(SR.Format(SR.Item_name_reserved, DefaultAddItemName, value)); 58throw new ArgumentException(SR.Format(SR.Item_name_reserved, DefaultRemoveItemName, value)); 69throw new ArgumentException(SR.Format(SR.Item_name_reserved, DefaultClearItemsName, value)); 625throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, ElementName)); 1061throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, 1138throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, elementName)); 1150throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, elementName));
System\Configuration\ConfigurationManager.cs (1)
211throw new ArgumentException(SR.Config_configmanager_open_noexe);
System\Configuration\ConfigurationProperty.cs (1)
265throw new ArgumentException(SR.Format(SR.Property_name_reserved, name));
System\Configuration\ConfigurationValidatorAttribute.cs (1)
21throw new ArgumentException(SR.Format(SR.Validator_Attribute_param_not_validator,
System\Configuration\GenericEnumConverter.cs (1)
52return new ArgumentException(SR.Format(SR.Invalid_enum_value, names));
System\Configuration\Internal\InternalConfigHost.cs (1)
207throw new ArgumentException(SR.Format(SR.Config_source_not_under_config_dir, configSource));
System\Configuration\MgmtConfigurationRecord.cs (3)
673throw new ArgumentException(SR.Config_add_configurationsection_already_exists); 834throw new ArgumentException(SR.Config_add_configurationsectiongroup_already_exists); 973throw new ArgumentException(SR.Format(SR.Filename_in_SaveAs_is_used_already, filename));
System\Configuration\PositiveTimeSpanValidator.cs (1)
18throw new ArgumentException(SR.Validator_timespan_value_must_be_positive);
System\Configuration\Provider\ProviderCollection.cs (1)
45throw new ArgumentException(SR.Config_provider_name_null_or_empty);
System\Configuration\RegexStringValidator.cs (1)
32throw new ArgumentException(SR.Format(SR.Regex_validator_error, _expression));
System\Configuration\SettingsPropertyValue.cs (2)
145throw new ArgumentException(SR.Format(SR.Could_not_create_from_default_value, Property.Name, e.Message)); 150throw new ArgumentException(SR.Format(SR.Could_not_create_from_default_value_2, Property.Name));
System\Configuration\StringValidator.cs (3)
40throw new ArgumentException(SR.Format(SR.Validator_string_min_length, _minLength)); 42throw new ArgumentException(SR.Format(SR.Validator_string_max_length, _maxLength)); 47throw new ArgumentException(SR.Format(SR.Validator_string_invalid_chars, _invalidChars));
System\Configuration\SubclassTypeValidator.cs (1)
33throw new ArgumentException(SR.Format(SR.Subclass_validator_error, ((Type)value).FullName,
System\Configuration\TimeSpanSecondsConverter.cs (1)
29throw new ArgumentException(SR.Converter_timespan_not_in_second);
System\Configuration\TypeNameConverter.cs (1)
27if (result == null) throw new ArgumentException(SR.Format(SR.Type_cannot_be_resolved, (string)data));
System\Configuration\ValidatorUtils.cs (2)
61throw new ArgumentException(SR.Format(CultureInfo.InvariantCulture, 72throw new ArgumentException(SR.Format(SR.Validator_scalar_resolution_violation, resolutionAsString));
System.Console (3)
System\ConsolePal.Unix.cs (1)
763throw new ArgumentException(SR.Arg_InvalidConsoleColor);
System\IO\SyncTextReader.cs (2)
125throw new ArgumentException(SR.Argument_InvalidOffLen); 137throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Data.Common (10)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (4)
43ArgumentException e = new ArgumentException(error); 202ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value)); 209ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value)); 216ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
System\Data\DataException.cs (1)
338internal static Exception _Argument(string error) => TraceExceptionAsReturnValue(new ArgumentException(error));
System\Data\DataSetUtil.cs (1)
20return new ArgumentException(message);
System\Data\SQLTypes\SQLGuid.cs (1)
34throw new ArgumentException(SQLResource.InvalidArraySizeMessage);
System\Xml\XmlDataDocument.cs (3)
105throw new ArgumentException(SR.DataDom_MultipleDataSet); 2622throw new ArgumentException(SR.DataDom_DataSetNull); 2625throw new ArgumentException(SR.DataDom_MultipleDataSet);
System.Data.Odbc (4)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (4)
43ArgumentException e = new ArgumentException(error); 202ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value)); 209ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value)); 216ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
System.Data.OleDb (4)
System\Data\Common\AdapterUtil.cs (4)
66ArgumentException e = new ArgumentException(error); 173ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartName, SR.GetString(property), value)); 180ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartNameQuoteUsage, SR.GetString(property), value)); 187ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartNameToManyParts, SR.GetString(property), value, limit));
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (3)
471NotifyError(new ArgumentException(SR.OperationNameInvalid)); 702NotifyError(new ArgumentException(SR.ParentIdInvalid)); 1051throw new ArgumentException(SR.ActivityIdFormatInvalid);
System\Diagnostics\ActivityContext.cs (1)
104throw new ArgumentException(SR.InvalidTraceParent);
System\Diagnostics\Metrics\TagList.netcore.cs (1)
145throw new ArgumentException(SR.Arg_BufferTooSmall);
System.Diagnostics.EventLog (30)
System\Diagnostics\EventLog.cs (17)
256throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 262throw new ArgumentException(SR.BadLogName); 264throw new ArgumentException(SR.Format(SR.MissingParameter, nameof(source))); 266throw new ArgumentException(SR.Format(SR.ParameterTooLong, nameof(source), 254 - EventLogKey.Length)); 275throw new ArgumentException(SR.Format(SR.LocalSourceAlreadyExists, source)); 277throw new ArgumentException(SR.Format(SR.SourceAlreadyExists, source, machineName)); 308throw new ArgumentException(SR.Format(SR.InvalidCustomerLogName, logName)); 318throw new ArgumentException(SR.Format(SR.LocalLogAlreadyExistsAsSource, logName)); 320throw new ArgumentException(SR.Format(SR.LogAlreadyExistsAsSource, logName, machineName)); 368throw new ArgumentException(SR.NoLogName); 441throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 456throw new ArgumentException(SR.Format(SR.LocalSourceNotRegistered, source)); 458throw new ArgumentException(SR.Format(SR.SourceNotRegistered, source, machineName, "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog")); 503throw new ArgumentException(SR.Format(SR.InvalidParameterFormat, nameof(machineName))); 626throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 732throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 1061throw new ArgumentException(SR.Format(SR.ParameterTooLong, nameof(source), 254 - EventLogKey.Length));
System\Diagnostics\EventLogInternal.cs (13)
110throw new ArgumentException(SR.BadLogName); 113throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 851throw new ArgumentException(SR.Format(SR.IndexOutOfBounds, index.ToString())); 1061throw new ArgumentException(SR.MissingLogProperty); 1097throw new ArgumentException(SR.NeedSourceToOpen); 1277throw new ArgumentException(SR.Format(SR.LogSourceMismatch, Source, currentLogName, rightLogName)); 1294throw new ArgumentException(SR.Format(SR.LogSourceMismatch, Source, currentLogName, rightLogName)); 1304throw new ArgumentException(SR.Format(SR.EventID, eventID.ToString(), 0, ushort.MaxValue)); 1307throw new ArgumentException(SR.NeedSourceToWrite); 1330throw new ArgumentException(SR.NeedSourceToWrite); 1359throw new ArgumentException(SR.TooManyReplacementStrings); 1368throw new ArgumentException(SR.LogEntryTooLong); 1373throw new ArgumentException(SR.NeedSourceToWrite);
System.Diagnostics.PerformanceCounter (10)
System\Diagnostics\CounterCreationDataCollection.cs (1)
93throw new ArgumentException(SR.MustAddCounterCreationData);
System\Diagnostics\PerformanceCounterCategory.cs (7)
246throw new ArgumentException(SR.Format(SR.PerfInvalidCategoryName, 1, MaxCategoryNameLength)); 251throw new ArgumentException(SR.CategoryNameTooLong); 259throw new ArgumentException(SR.Format(SR.PerfInvalidCounterName, 1, MaxCounterNameLength)); 290throw new ArgumentException(SR.Format(SR.PerfInvalidHelp, 0, MaxHelpLength)); 301throw new ArgumentException(SR.InvalidCounterName); 348throw new ArgumentException(SR.Format(SR.DuplicateCounterName, counterData[i].CounterName)); 448throw new ArgumentException(SR.InstanceNameRequired);
System\Diagnostics\PerformanceDataRegistryKey.cs (2)
38throw new ArgumentException(SR.Format(SR.Arg_DllInitFailure, machineName)); 47throw new ArgumentException(SR.Format(SR.Arg_RegKeyNoRemoteConnect, machineName));
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
999throw new ArgumentException(SR.Format(SR.MissingProcess, processId.ToString())); 1016throw new ArgumentException(SR.Format(SR.MissingProcess, processId.ToString()));
System.Diagnostics.TraceSource (2)
System\Diagnostics\TraceSwitch.cs (1)
40throw new ArgumentException(SR.TraceSwitchInvalidLevel);
System\Diagnostics\TraceUtils.cs (1)
24throw new ArgumentException(SR.Format(SR.AttributeNotSupported, key, parent.GetType().FullName));
System.DirectoryServices (30)
Interop\AdsValueHelper2.cs (1)
221return new ArgumentException(SR.Format(SR.DSConvertFailed, "0x" + Convert.ToString(LowInt64, 16), "0x" + Convert.ToString(adsvalue.dwType, 16)));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchedule.cs (3)
117throw new ArgumentException(SR.InvalidTime); 157throw new ArgumentException("value"); 164throw new ArgumentException("value");
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (2)
99throw new ArgumentException(SR.NotWithinSite); 207throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, server));
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (1)
915throw new ArgumentException(SR.DirectoryContextNeedHost);
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (2)
105throw new ArgumentException(nameof(attribute)); 217throw new ArgumentException(nameof(attribute));
System\DirectoryServices\ActiveDirectory\Utils.cs (1)
257throw new ArgumentException(SR.InvalidDNFormat);
System\DirectoryServices\ActiveDirectorySecurity.cs (2)
415throw new ArgumentException(nameof(access)); 511throw new ArgumentException(nameof(propagationFlags));
System\DirectoryServices\DirectoryEntry.cs (1)
120throw new ArgumentException(SR.DSDoesNotImplementIADs);
System\DirectoryServices\DirectoryEntryConfiguration.cs (1)
60throw new ArgumentException(SR.DSBadPageSize);
System\DirectoryServices\DirectorySearcher.cs (8)
158throw new ArgumentException(SR.DSBadCacheResultsVLV); 218throw new ArgumentException(SR.DSBadPageSize); 222throw new ArgumentException(SR.DSBadPageSizeDirsync); 271throw new ArgumentException(SR.DSBadASQSearchScope); 329throw new ArgumentException(SR.DSBadSizeLimit); 412throw new ArgumentException(SR.DSBadASQSearchScope); 505throw new ArgumentException(SR.DSBadPageSizeDirsync); 548throw new ArgumentException(SR.DSBadCacheResultsVLV);
System\DirectoryServices\DirectoryVirtualListView.cs (5)
65throw new ArgumentException(SR.DSBadBeforeCount); 80throw new ArgumentException(SR.DSBadAfterCount); 95throw new ArgumentException(SR.DSBadOffset); 118throw new ArgumentException(SR.DSBadTargetPercentage); 142throw new ArgumentException(SR.DSBadApproximateTotal);
System\DirectoryServices\PropertyCollection.cs (1)
164throw new ArgumentException(SR.DestinationArrayNotLargeEnough);
System\DirectoryServices\SearchResultCollection.cs (2)
367throw new ArgumentException(SR.Format(SR.DSInvalidSearchFilter, _results.Filter)); 424throw new ArgumentException(SR.Format(SR.DSInvalidSearchFilter, _results.Filter));
System.DirectoryServices.AccountManagement (49)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (4)
521throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat); 1180throw new ArgumentException(SR.Format(SR.InvalidStringValueForStore, propertyName)); 1339throw new ArgumentException(SR.InvalidExtensionCollectionType); 1366throw new ArgumentException(SR.InvalidExtensionCollectionType);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (6)
408throw new ArgumentException(SR.StoreCtxGuidIdentityClaimBadFormat); 441throw new ArgumentException(SR.StoreCtxNT4IdentityClaimWrongForm); 467throw new ArgumentException(SR.StoreCtxUnsupportedIdentityClaimForQuery); 481throw new ArgumentException(SR.StoreCtxIdentityClaimMustHaveScheme); 510throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat); 518throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (3)
1598throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat); 1801throw new ArgumentException(SR.StoreCtxNeedValueSecurityIdentityClaimToQuery); 1822throw new ArgumentException(SR.StoreCtxNeedValueSecurityIdentityClaimToQuery);
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (2)
330throw new ArgumentException(SR.NullArguments); 364throw new ArgumentException(SR.AuthenticablePrincipalMustBeSubtypeOfAuthPrinc);
System\DirectoryServices\AccountManagement\Computer.cs (1)
28throw new ArgumentException(SR.NullArguments);
System\DirectoryServices\AccountManagement\Context.cs (9)
387throw new ArgumentException(SR.ContextBadUserPwdCombo); 394throw new ArgumentException(SR.InvalidContextOptionsForMachine); 401throw new ArgumentException(SR.InvalidContextOptionsForAD); 416throw new ArgumentException(SR.ContextNoContainerForMachineCtx); 419throw new ArgumentException(SR.ContextNoContainerForApplicationDirectoryCtx); 517throw new ArgumentException(SR.ContextBadUserPwdCombo); 540throw new ArgumentException(SR.ContextBadUserPwdCombo); 543throw new ArgumentException(SR.ContextOptionsNotValidForMachineStore); 695throw new ArgumentException(SR.Format(SR.PassedContextTypeDoesNotMatchDetectedType, _serverProperties.contextType.ToString()));
System\DirectoryServices\AccountManagement\Group.cs (2)
19throw new ArgumentException(SR.NullArguments); 28throw new ArgumentException(SR.NullArguments);
System\DirectoryServices\AccountManagement\Principal.cs (8)
623throw new ArgumentException(SR.NullArguments); 662throw new ArgumentException(SR.InvalidExtensionCollectionType); 667throw new ArgumentException(SR.InvalidExtensionCollectionType); 674throw new ArgumentException(SR.InvalidExtensionCollectionType); 683throw new ArgumentException(SR.InvalidExtensionCollectionType); 687throw new ArgumentException(SR.InvalidExtensionCollectionType); 696throw new ArgumentException(SR.NullArguments); 711throw new ArgumentException(SR.NullArguments);
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (3)
27throw new ArgumentException(SR.PrincipalCollectionNotOneDimensional); 30throw new ArgumentException(SR.PrincipalCollectionIndexNotInArray); 73throw new ArgumentException(SR.PrincipalCollectionArrayTooSmall);
System\DirectoryServices\AccountManagement\PrincipalSearcher.cs (1)
65throw new ArgumentException(SR.PrincipalSearcherPersistedPrincipal);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (3)
346throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat); 473throw new ArgumentException(SR.StoreCtxUnsupportedIdentityClaimForQuery); 533throw new ArgumentException(SR.StoreCtxNT4IdentityClaimWrongForm);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (1)
733throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat);
System\DirectoryServices\AccountManagement\TrackedCollection.cs (3)
25throw new ArgumentException(SR.TrackedCollectionNotOneDimensional); 28throw new ArgumentException(SR.TrackedCollectionIndexNotInArray); 32throw new ArgumentException(SR.TrackedCollectionArrayTooSmall);
System\DirectoryServices\AccountManagement\UnknownPrincipal.cs (1)
20throw new ArgumentException(SR.NullArguments);
System\DirectoryServices\AccountManagement\User.cs (2)
20throw new ArgumentException(SR.NullArguments); 29throw new ArgumentException(SR.NullArguments);
System.DirectoryServices.Protocols (42)
System\DirectoryServices\Protocols\common\BerConverter.cs (16)
59throw new ArgumentException(SR.BerConverterNotMatch); 66throw new ArgumentException(SR.BerConverterNotMatch); 81throw new ArgumentException(SR.BerConverterNotMatch); 88throw new ArgumentException(SR.BerConverterNotMatch); 103throw new ArgumentException(SR.BerConverterNotMatch); 111throw new ArgumentException(SR.BerConverterNotMatch); 132throw new ArgumentException(SR.BerConverterNotMatch); 140throw new ArgumentException(SR.BerConverterNotMatch); 155throw new ArgumentException(SR.BerConverterNotMatch); 163throw new ArgumentException(SR.BerConverterNotMatch); 196throw new ArgumentException(SR.BerConverterNotMatch); 204throw new ArgumentException(SR.BerConverterNotMatch); 219throw new ArgumentException(SR.BerConverterNotMatch); 226throw new ArgumentException(SR.BerConverterNotMatch); 240throw new ArgumentException(SR.BerConverterUndefineChar); 435throw new ArgumentException(SR.BerConverterUndefineChar);
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (10)
291set => List[index] = value ?? throw new ArgumentException(SR.NullDirectoryAttributeCollection); 298throw new ArgumentException(SR.NullDirectoryAttributeCollection); 312throw new ArgumentException(SR.NullDirectoryAttributeCollection); 340throw new ArgumentException(SR.NullDirectoryAttributeCollection); 352throw new ArgumentException(SR.NullDirectoryAttributeCollection); 370set => List[index] = value ?? throw new ArgumentException(SR.NullDirectoryAttributeCollection); 377throw new ArgumentException(SR.NullDirectoryAttributeCollection); 391throw new ArgumentException(SR.NullDirectoryAttributeCollection); 419throw new ArgumentException(SR.NullDirectoryAttributeCollection); 431throw new ArgumentException(SR.NullDirectoryAttributeCollection);
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (1)
133throw new ArgumentException(SR.WrongNumValuesCompare);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (10)
81throw new ArgumentException(SR.InvalidAuthCredential); 391throw new ArgumentException(SR.Format(SR.NotReturnedAsyncResult, nameof(asyncResult))); 401throw new ArgumentException(SR.InvalidAsyncResult); 433throw new ArgumentException(SR.Format(SR.NotReturnedAsyncResult, nameof(asyncResult))); 455throw new ArgumentException(SR.Format(SR.NotReturnedAsyncResult, nameof(asyncResult))); 465throw new ArgumentException(SR.InvalidAsyncResult); 580throw new ArgumentException(SR.WrongAssertionCompare); 585throw new ArgumentException(SR.WrongNumValuesCompare); 606throw new ArgumentException(SR.ValidValueType); 698throw new ArgumentException(SR.InvalidLdapSearchRequestFilter);
System\DirectoryServices\Protocols\ldap\LdapDirectoryIdentifier.cs (1)
40throw new ArgumentException(SR.WhiteSpaceServerName);
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (4)
47throw new ArgumentException(SR.InvalidAsyncResult); 236throw new ArgumentException(SR.InvalidAsyncResult); 247throw new ArgumentException(SR.InvalidAsyncResult); 293throw new ArgumentException(SR.InvalidAsyncResult);
System.Drawing.Common (64)
System\Drawing\Bitmap.cs (4)
81?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource)); 169throw new ArgumentException(SR.GdiplusInvalidSize); 191throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 346throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString()));
System\Drawing\BufferedGraphicsContext.cs (1)
375throw new ArgumentException(SR.DCTypeInvalid);
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
35throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 62throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString()));
System\Drawing\Font.cs (4)
352throw new ArgumentException(SR.Format(SR.GdiplusFontStyleNotFound, _fontFamily.Name, _fontStyle.ToString())); 596throw new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName); 606throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, logFont.AsString())); 662throw new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName);
System\Drawing\FontFamily.cs (2)
110throw new ArgumentException(SR.Format(SR.GdiplusFontFamilyNotFound, name.ToString())); 114throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, name.ToString()));
System\Drawing\Graphics.cs (9)
2062throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2079throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2135throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2180throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2233throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 3006throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram); 3035throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram); 3141throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram); 3174throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram);
System\Drawing\Icon.cs (6)
48throw new ArgumentException(SR.Format(SR.InvalidGDIHandle, nameof(Icon))); 100?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource)); 417throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon))); 451throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon))); 516throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon))); 536throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon)));
System\Drawing\Image.cs (1)
862_ => throw new ArgumentException(SR.InvalidImage),
System\Drawing\Pen.cs (20)
116throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 148throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 163throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 209throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 251throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 275throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 300throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 330throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 359throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 383throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 412throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 436throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 554throw new ArgumentException(SR.GdiplusInvalidParameter); 570throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 630throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 668throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 721throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 774throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 779throw new ArgumentException(SR.InvalidDashPattern); 817throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
System\Drawing\Printing\MarginsConverter.cs (2)
52throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "left, right, top, bottom")); 114? throw new ArgumentException(SR.PropertyValueInvalidEntry)
System\Drawing\Printing\PageSettings.cs (1)
476throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode));
System\Drawing\Printing\PrinterSettings.cs (7)
59throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 113throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 218throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 235throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 423throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 987throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode)); 1032throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevnames));
System\Drawing\SolidBrush.cs (2)
54throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, "Brush")); 79throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, "Brush"));
System\Drawing\StringFormat.cs (1)
222throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, nameof(firstTabOffset), firstTabOffset));
System\Drawing\SystemBrushes.cs (1)
57throw new ArgumentException(SR.Format(SR.ColorNotSystemColor, c.ToString()));
System\Drawing\SystemPens.cs (1)
58throw new ArgumentException(SR.Format(SR.ColorNotSystemColor, c.ToString()));
System.Drawing.Primitives (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)),
System\Drawing\Color.cs (1)
436throw new ArgumentException(SR.Format(SR.InvalidEx2BoundArgument, n, v, byte.MinValue, byte.MaxValue));
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.cs (1)
217throw new ArgumentException(SR.Cbor_Writer_PayloadIsNotValidCbor);
System.Formats.Tar (5)
System\Formats\Tar\TarHeader.cs (2)
159throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedKeyChar, extendedAttribute.Key, extendedAttribute.Key[index] == '\n' ? "\\n" : extendedAttribute.Key[index])); 163throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedValueChar, extendedAttribute.Key, "\\n"));
System\Formats\Tar\TarHeader.Write.cs (2)
1054throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format)); 1079throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarWriter.cs (1)
95throw new ArgumentException(SR.IO_NotSupported_UnwritableStream);
System.IO.Compression (4)
System\IO\Compression\ZipArchive.cs (3)
1039throw new ArgumentException(SR.CreateModeCapabilities); 1045throw new ArgumentException(SR.ReadModeCapabilities); 1055throw new ArgumentException(SR.UpdateModeCapabilities);
System\IO\Compression\ZipArchiveEntry.cs (1)
200throw new ArgumentException(SR.EntryNamesTooLong);
System.IO.FileSystem.AccessControl (5)
System\IO\FileSystemAclExtensions.cs (3)
161throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndFileSystemRightsCombo, mode, rights)); 168throw new ArgumentException(SR.Argument_InvalidAppendMode); 175throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndFileSystemRightsCombo, mode, rights));
System\Security\AccessControl\DirectoryObjectSecurity.cs (1)
383throw new ArgumentException(SR.Format(SR.TypeUnrecognized_AccessControl, rule.AccessControlType));
System\Security\AccessControl\FileSystemSecurity.cs (1)
41exception = new ArgumentException(SR.AccessControl_InvalidHandle);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
116throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(value), (int)value, nameof(NotifyFilters)));
System.IO.IsolatedStorage (4)
System\IO\IsolatedStorage\IsolatedStorage.cs (1)
182throw new ArgumentException(SR.IsolatedStorage_Scope_Invalid);
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
675throw new ArgumentException(SR.IsolatedStorage_Scope_U_R_M);
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (2)
89throw new ArgumentException( 113throw new ArgumentException(SR.IsolatedStorage_FileOpenMode);
System.IO.MemoryMappedFiles (6)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (5)
145throw new ArgumentException(SR.Argument_EmptyFile); 218throw new ArgumentException(SR.Argument_EmptyFile); 247throw new ArgumentException(SR.Argument_EmptyFile); 290throw new ArgumentException(SR.Argument_MapNameEmptyString); 519throw new ArgumentException(SR.Argument_MapNameEmptyString);
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
22throw new ArgumentException(SR.Argument_ReadAccessWithLargeCapacity);
System.IO.Packaging (34)
System\IO\Packaging\ContentType.cs (12)
84throw new ArgumentException(SR.ContentTypeCannotHaveLeadingTrailingLWS); 270throw new ArgumentException(SR.InvalidLinearWhiteSpaceCharacter); 290throw new ArgumentException(SR.InvalidTypeSubType); 310throw new ArgumentException(SR.ExpectingSemicolon); 316throw new ArgumentException(SR.ExpectingParameterValuePairs); 328throw new ArgumentException(SR.InvalidParameterValuePair); 387throw new ArgumentException(SR.InvalidParameterValue); 413throw new ArgumentException(SR.InvalidToken_ContentType); 419throw new ArgumentException(SR.InvalidToken_ContentType); 436throw new ArgumentException(SR.InvalidParameterValue); 466throw new ArgumentException(SR.InvalidParameterValue); 469throw new ArgumentException(SR.InvalidParameterValue);
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
217throw new ArgumentException(SR.SeekNegative);
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
334throw new ArgumentException(SR.PieceDoesNotExist);
System\IO\Packaging\InternalRelationshipCollection.cs (1)
146throw new ArgumentException(SR.InvalidRelationshipType);
System\IO\Packaging\Package.cs (3)
863throw new ArgumentException(SR.UnsupportedCombinationOfModeAccess); 865throw new ArgumentException(SR.UnsupportedCombinationOfModeAccess); 867throw new ArgumentException(SR.UnsupportedCombinationOfModeAccess);
System\IO\Packaging\PackagePart.cs (2)
317throw new ArgumentException(SR.CreateNewNotSupported); 319throw new ArgumentException(SR.TruncateNotSupported);
System\IO\Packaging\PackUriHelper.cs (12)
53throw new ArgumentException(SR.PartUriIsEmpty); 202throw new ArgumentException(SR.RelationshipPartUriNotExpected); 251throw new ArgumentException(SR.RelationshipPartUriExpected); 386return new ArgumentException(SR.PartUriIsEmpty); 389return new ArgumentException(SR.PartUriShouldStartWithForwardSlash); 421return new ArgumentException(SR.InvalidPartUri); 428return new ArgumentException(SR.UnexpectedPartPieceUri); 446return new ArgumentException(SR.URIShouldNotBeAbsolute); 461return new ArgumentException(SR.PartUriCannotHaveAFragment); 478return new ArgumentException(SR.PartUriShouldNotEndWithForwardSlash); 501return new ArgumentException(SR.PartUriShouldNotStartWithTwoForwardSlashes); 806throw new ArgumentException(SR.NotAValidRelationshipPartUri);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (2)
81throw new ArgumentException(SR.Format(SR.FragmentMustStartWithHash, nameof(fragment))); 312throw new ArgumentException(SR.InnerPackageUriHasFragment);
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.cs (1)
65throw new ArgumentException(SR.Argument_EmptyServerName);
System.IO.Ports (8)
System\IO\Ports\InternalResources.cs (3)
34throw new ArgumentException(SR.Arg_WrongAsyncResult); 40throw new ArgumentException(SR.InvalidOperation_EndReadCalledMultiple); 46throw new ArgumentException(SR.InvalidOperation_EndWriteCalledMultiple);
System\IO\Ports\SerialPort.cs (4)
669throw new ArgumentException(SR.Argument_InvalidOffLen); 810throw new ArgumentException(SR.Argument_InvalidOffLen); 1201throw new ArgumentException(SR.Argument_InvalidOffLen); 1221throw new ArgumentException(SR.Argument_InvalidOffLen);
System\IO\Ports\SerialStream.cs (1)
100throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Linq (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System.Linq.AsyncEnumerable (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System.Linq.Expressions (35)
System\Linq\Expressions\Error.cs (34)
19return new ArgumentException(Strings.ReducibleMustOverrideReduce); 26return new ArgumentException(Strings.ArgCntMustBeGreaterThanNameCnt); 75return new ArgumentException(Strings.MustReduceToDifferent); 117return new ArgumentException(Strings.ReducedNotCompatible); 152return new ArgumentException(Strings.FirstArgumentMustBeCallSite); 180return new ArgumentException(Strings.TypeMustBeDerivedFromSystemDelegate); 261return new ArgumentException(Strings.OnlyStaticMethodsHaveNullInstance); 296return new ArgumentException(Strings.MustBeReducible); 373return new ArgumentException(Strings.StartEndMustBeOrdered); 387return new ArgumentException(Strings.TryMustHaveCatchFinallyOrFault); 394return new ArgumentException(Strings.BodyOfCatchMustHaveSameTypeAsBodyOfTry); 471return new ArgumentException(Strings.ArgumentTypeCannotBeVoid); 570return new ArgumentException(Strings.ArgumentTypesMustMatch); 649return new ArgumentException(Strings.ExpressionTypeDoesNotMatchReturn(p0, p1)); 656return new ArgumentException(Strings.ExpressionTypeDoesNotMatchAssignment(p0, p1)); 663return new ArgumentException(Strings.ExpressionTypeDoesNotMatchLabel(p0, p1)); 677return new ArgumentException(Strings.FieldNotDefinedForType(p0, p1)); 684return new ArgumentException(Strings.InstanceFieldNotDefinedForType(p0, p1)); 691return new ArgumentException(Strings.FieldInfoNotDefinedForType(p0, p1, p2)); 698return new ArgumentException(Strings.IncorrectNumberOfIndexes); 705return new ArgumentException(Strings.IncorrectNumberOfLambdaDeclarationParameters); 713return new ArgumentException(Strings.IncorrectNumberOfMembersForGivenConstructor); 720return new ArgumentException(Strings.IncorrectNumberOfArgumentsForMembers); 820return new ArgumentException(Strings.ParameterExpressionNotValidAsDelegate(p0, p1)); 841return new ArgumentException(Strings.InstancePropertyWithoutParameterNotDefinedForType(p0, p1)); 855return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2)); 914return new ArgumentException(Strings.UnhandledBinding); 921return new ArgumentException(Strings.UnhandledBindingType(p0)); 943return new ArgumentException(Strings.UserDefinedOpMustHaveConsistentTypes(p0, p1)); 950return new ArgumentException(Strings.UserDefinedOpMustHaveValidReturnType(p0, p1)); 957return new ArgumentException(Strings.LogicalOperatorMustHaveBooleanOperators(p0, p1)); 1172return new ArgumentException(Strings.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); 1179return new ArgumentException(Strings.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); 1277return new ArgumentException(Strings.IncorrectNumberOfConstructorArguments);
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
356throw new ArgumentException(nameof(array));
System.Linq.Parallel (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Linq\ParallelEnumerable.cs (2)
355throw new ArgumentException(SR.ParallelEnumerable_WithQueryExecutionMode_InvalidMode); 391throw new ArgumentException(SR.ParallelEnumerable_WithMergeOptions_InvalidOptions);
System.Linq.Queryable (2)
System\Linq\Error.cs (2)
9new ArgumentException(Strings.ArgumentNotIEnumerableGeneric(message)); 12new ArgumentException(Strings.ArgumentNotValid(message));
System.Management (21)
System\Management\ManagementQuery.cs (21)
121throw new ArgumentException(SR.InvalidQueryDuplicatedToken); // Invalid query - duplicate token 130throw new ArgumentException(SR.InvalidQuery); // Invalid query 137throw new ArgumentException(SR.InvalidQueryNullToken); // Invalid query - token has no value 152throw new ArgumentException(SR.InvalidQueryDuplicatedToken); // Invalid query - duplicate token 1008throw new ArgumentException(SR.InvalidQuery); 1016throw new ArgumentException(SR.InvalidQuery); 1023throw new ArgumentException(SR.InvalidQuery); 1078throw new ArgumentException(SR.InvalidQuery); // Invalid query 1653throw new ArgumentException(SR.InvalidQuery); // Invalid query 1666throw new ArgumentException(SR.InvalidQuery); // Invalid query 1673throw new ArgumentException(SR.InvalidQuery); // Invalid query 1689throw new ArgumentException(SR.InvalidQuery); // Invalid query 1731throw new ArgumentException(SR.InvalidQuery); // Unrecognized token 1736throw new ArgumentException(SR.InvalidQuery); 2170throw new ArgumentException(SR.InvalidQuery); // Invalid query 2183throw new ArgumentException(SR.InvalidQuery); // Invalid query 2190throw new ArgumentException(SR.InvalidQuery); // Invalid query 2206throw new ArgumentException(SR.InvalidQuery); // Invalid query 2239throw new ArgumentException(SR.InvalidQuery); // Unrecognized token 2244throw new ArgumentException(SR.InvalidQuery); 3034throw new ArgumentException(SR.InvalidQuery);
System.Net.Http (4)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
406throw new ArgumentException(SR.Format(CultureInfo.InvariantCulture,
System\Net\Http\Headers\HttpHeaderValueCollection.cs (2)
105throw new ArgumentException(SR.net_http_copyto_array_too_small); 119throw new ArgumentException(SR.net_http_copyto_array_too_small);
System\Net\Http\Headers\RangeItemHeaderValue.cs (1)
25throw new ArgumentException(SR.net_http_headers_invalid_range);
System.Net.Http.Json (1)
System\Net\Http\Json\JsonContent.cs (1)
169throw new ArgumentException(SR.Format(SR.SerializeWrongType, inputType, inputValue.GetType()));
System.Net.HttpListener (1)
System\Net\Managed\ListenerPrefix.cs (1)
110throw new ArgumentException(SR.net_listener_host);
System.Net.Mail (1)
System\Net\Mail\MailPriority.cs (1)
159throw new ArgumentException(SR.MailSubjectInvalidFormat);
System.Net.Security (1)
System\Net\Security\Pal.Managed\EndpointChannelBindingToken.cs (1)
56throw new ArgumentException(signatureAlgorithm.Value);
System.Net.Sockets (3)
System\Net\Sockets\SocketAsyncEventArgs.cs (3)
160throw new ArgumentException(SR.net_ambiguousbuffers); 388throw new ArgumentException(SR.net_ambiguousbuffers); 415throw new ArgumentException(SR.net_ambiguousbuffers);
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
359void ITensor.Fill(object value) => Fill(value is T t ? t : throw new ArgumentException($"Cannot convert {value} to {typeof(T)}"));
System\Numerics\Tensors\netcore\TensorSpan_1.cs (1)
441void ITensor.Fill(object value) => Fill(value is T t ? t : throw new ArgumentException($"Cannot convert {value} to {typeof(T)}"));
System\ThrowHelper.cs (24)
20throw new ArgumentException(SR.Argument_SpansMustHaveSameLength); 24throw new ArgumentException(SR.Argument_SpansMustBeNonEmpty); 48throw new ArgumentException(SR.Argument_DestinationSpansMustNotOverlap); 65throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType)); 94throw new ArgumentException(SR.ThrowArgument_IndicesLengthMustEqualRank); 98return new ArgumentException(message); 110throw new ArgumentException(SR.ThrowArgument_FilterTensorMustEqualTensorLength); 128throw new ArgumentException(SR.ThrowArgument_LengthsNotCompatible); 134throw new ArgumentException(SR.ThrowArgument_SplitNotSplitEvenly); 164throw new ArgumentException(SR.ThrowArgument_StackTooFewTensors); 170throw new ArgumentException(SR.ThrowArgument_OnlyOneWildcard); 176throw new ArgumentException(SR.ThrowArgument_InvalidReshapeDimensions); 182throw new ArgumentException(SR.ThrowArgument_AxisLargerThanRank); 188throw new ArgumentException(SR.ThrowArgument_InvalidSqueezeAxis); 194throw new ArgumentException(SR.ThrowArgument_ConcatenateTooFewTensors); 200throw new ArgumentException(SR.ThrowArgument_InvalidDimension); 206throw new ArgumentException(SR.ThrowArgument_InvalidConcatenateShape); 212throw new ArgumentException(SR.ThrowArgument_TransposeTooFewDimensions); 218throw new ArgumentException(SR.ThrowArgument_PermuteAxisOrder); 224throw new ArgumentException(SR.ThrowArgument_InPlaceInvalidShape); 230throw new ArgumentException(SR.ThrowArgument_InvalidStridesAndLengths); 248throw new ArgumentException(SR.Format(SR.Argument_IncompatibleDimensions, leftDim, rightDim)); 254throw new ArgumentException(SR.ThrowArgument_StackShapesNotSame); 260throw new ArgumentException(SR.Argument_CannotReshapeNonContiguousOrDense);
System.ObjectModel (1)
System\Collections\CollectionHelpers.cs (1)
29throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System.Private.CoreLib (326)
Internal\Reflection\Augments\ReflectionAugments.cs (15)
121throw new ArgumentException(SR.Argument_InvalidHandle); 125throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGeneric, methodBase, methodBase.DeclaringType.GetGenericTypeDefinition())); 142throw new ArgumentException(SR.Argument_InvalidHandle); 144throw new ArgumentException(SR.Format(SR.Argument_ResolveMethodHandle, 165throw new ArgumentException(SR.Argument_InvalidHandle); 169throw new ArgumentException(SR.Format(SR.Argument_FieldDeclaringTypeGeneric, fieldInfo)); 185throw new ArgumentException(SR.Argument_InvalidHandle); 187throw new ArgumentException(SR.Format(SR.Argument_ResolveFieldHandle, 278throw new ArgumentException(SR.Arg_DlgtTargMeth); 297throw new ArgumentException(SR.Arg_MustBeDelegate); 304throw new ArgumentException(SR.Arg_DlgtTargMeth); 328throw new ArgumentException(SR.Arg_MustBeDelegate); 334throw new ArgumentException(SR.Arg_DlgtTargMeth); 412throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo); 414throw new ArgumentException(SR.Argument_TypedReferenceInvalidField);
Internal\Reflection\Core\Execution\ExecutionDomain.cs (1)
153throw new ArgumentException(SR.Arg_InvalidHandle);
Internal\Reflection\Extensions\NonPortable\CustomAttributeSearcher.cs (1)
45throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass);
Internal\Runtime\CompilerHelpers\RuntimeInteropData.cs (2)
80throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, structureType)); 213throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.GetTypeFromHandle(structTypeHandle)));
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (1)
89throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key));
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeMetadataReader.cs (1)
104throw new ArgumentException("Invalid handle type");
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
64throw new ArgumentException(SR.Format_StringZeroLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
133throw new ArgumentException(SR.AggregateException_ctor_InnerExceptionNull);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
210throw new ArgumentException(SR.Arg_MustBeTrue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
21: base(SR.ArgumentNull_Generic)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
25: base(SR.Arg_ArgumentOutOfRangeException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
151throw new ArgumentException(SR.Arg_MustBeBoolean);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffer.cs (1)
52throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
63throw new ArgumentException(SR.Arg_MustBeByte);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
165throw new ArgumentException(SR.Arg_MustBeChar);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (26)
195throw new ArgumentException(SR.Argument_InvalidOffLen); 265throw new ArgumentException(SR.Argument_InvalidOffLen); 330throw new ArgumentException(SR.Argument_InvalidOffLen); 534throw new ArgumentException(SR.Argument_InvalidOffLen); 580throw new ArgumentException(SR.Argument_InvalidOffLen); 608throw new ArgumentException(SR.Argument_InvalidOffLen); 639throw new ArgumentException(SR.Argument_InvalidOffLen); 765throw new ArgumentException(SR.Argument_InvalidOffLen); 825throw new ArgumentException(SR.Argument_InvalidOffLen); 830throw new ArgumentException(SR.Argument_InvalidOffLen); 847throw new ArgumentException(SR.Argument_InvalidOffLen); 971throw new ArgumentException(SR.Argument_InvalidOffLen); 989throw new ArgumentException(SR.Argument_InvalidOffLen); 1027throw new ArgumentException(SR.Argument_InvalidOffLen); 1036throw new ArgumentException(SR.Argument_InvalidOffLen); 1812throw new ArgumentException(SR.Argument_InvalidOffLen); 2066throw new ArgumentException(SR.Argument_InvalidOffLen); 2218throw new ArgumentException(SR.Argument_InvalidOffLen); 2284throw new ArgumentException(SR.Argument_InvalidOffLen); 2299throw new ArgumentException(SR.Argument_InvalidOffLen); 2301throw new ArgumentException(SR.Argument_InvalidOffLen); 2332throw new ArgumentException(SR.Argument_InvalidOffLen); 2343throw new ArgumentException(SR.Argument_InvalidOffLen); 2456throw new ArgumentException(SR.Argument_InvalidOffLen); 2474throw new ArgumentException(SR.Argument_InvalidOffLen); 2497throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (4)
513throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 772throw new ArgumentException(SR.Argument_InvalidOffLen); 800throw new ArgumentException(SR.Argument_InvalidOffLen); 819throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
67throw new ArgumentException(SR.Argument_ImplementIComparable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (6)
345throw new ArgumentException(SR.ConcurrentDictionary_SourceContainsDuplicateKeys); 765throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough); 1549throw new ArgumentException(SR.ConcurrentDictionary_KeyAlreadyExisted); 1685throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1818throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1878throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (8)
170throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 185throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 205throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 220throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 580throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 891throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, _buckets[bucketNumber].key, key)); 1197throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1232throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (3)
107throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, node.key, key)); 153throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 308throw new ArgumentException(SR.Arg_RankMultiDimNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
36throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
245throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (2)
163_ => throw new ArgumentException(SR.Arg_UnknownTypeCode), 2295private static void ThrowInvalidBase() => throw new ArgumentException(SR.Arg_InvalidBase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
251throw new ArgumentException(SR.Arg_MustBeDateOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (3)
1069throw new ArgumentException(SR.Arg_MustBeDateTime); 1164throw new ArgumentException(SR.Arg_OleAutDateInvalid); 1178if (millis < 0 || millis > MaxMillis) throw new ArgumentException(SR.Arg_OleAutDateScale);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
551throw new ArgumentException(SR.Arg_MustBeDateTimeOffset); 784throw new ArgumentException(SR.Arg_ArgumentOutOfRangeException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
304throw new ArgumentException(SR.Arg_DecBitCtor); 337throw new ArgumentException(SR.Arg_DecBitCtor); 424throw new ArgumentException(SR.Arg_MustBeDecimal);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
169throw new ArgumentException(SR.Arg_DlgtTypeMis);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (2)
519throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive); 566throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (6)
1665throw new ArgumentException(SR.EventSource_NeedGuid); 1670throw new ArgumentException(SR.EventSource_NeedName); 2009throw new ArgumentException(SR.EventSource_NoRelatedActivityId); 2692throw new ArgumentException(SR.EventSource_ListenerNotFound); 2905throw new ArgumentException(SR.Format(SR.EventSource_EventSourceGuidInUse, m_guid)); 3249throw new ArgumentException(SR.EventSource_StopsFollowStarts);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
358throw new ArgumentException(msg);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
582throw new ArgumentException(SR.Format(SR.EventSource_NonCompliantTypeError, dataType.Name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
271return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDouble);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DuplicateWaitObjectException.cs (1)
20: base(SR.Arg_DuplicateWaitObjectException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (5)
404throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType())); 1121throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString())); 1290throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType())); 1637throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType)); 1650throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
114throw new ArgumentException(SR.Format(SR.Argument_ResultCalendarRange, minValue, maxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (3)
750throw new ArgumentException(SR.Arg_ExternalException); 801throw new ArgumentException(SR.Arg_ExternalException); 931throw new ArgumentException(SR.Arg_ExternalException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (8)
135throw new ArgumentException(SR.Arg_ExternalException); 156throw new ArgumentException(SR.Arg_ExternalException); 190throw new ArgumentException(SR.Arg_ExternalException); 238throw new ArgumentException(SR.Arg_ExternalException); 390throw new ArgumentException(SR.Arg_ExternalException); 403throw new ArgumentException(SR.Arg_ExternalException); 466throw new ArgumentException(SR.Arg_ExternalException); 511throw new ArgumentException(SR.Arg_ExternalException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
723throw new ArgumentException(SR.Format(SR.Argument_InvalidId, nameof(name)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
324throw new ArgumentException(SR.Format(SR.Argument_InvalidResourceCultureName, cultureName));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (2)
18: base(DefaultMessage) 23: base(message ?? DefaultMessage)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (2)
374throw new ArgumentException(SR.Argument_NoEra); 395throw new ArgumentException(SR.Argument_NoEra);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (1)
54throw new ArgumentException(SR.Argument_NoRegionInvariantCulture);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
449return (obj is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeHalf);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
61throw new ArgumentException(SR.Arg_MustBeInt128);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
68throw new ArgumentException(SR.Arg_MustBeInt16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
81throw new ArgumentException(SR.Arg_MustBeInt32);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
78throw new ArgumentException(SR.Arg_MustBeInt64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
215throw new ArgumentException(SR.Arg_MustBeIntPtr);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (3)
46throw new ArgumentException(SR.Argument_StreamNotReadable); 302throw new ArgumentException(SR.Argument_InvalidOffLen); 421throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (2)
51throw new ArgumentException(SR.Argument_StreamNotWritable); 181throw new ArgumentException(SR.Arg_SurrogatesNotAllowedAsSingleChar);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (2)
86throw new ArgumentException(SR.Argument_InvalidOffLen); 518_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
45throw new ArgumentException(SR.Argument_NullCharInPath);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (1)
164_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
174throw new ArgumentException(SR.Argument_StreamNotReadable); 384throw new ArgumentException(SR.Argument_InvalidOffLen); 463throw new ArgumentException(SR.Argument_InvalidOffLen); 1083throw new ArgumentException(SR.Argument_InvalidOffLen); 1304throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (4)
129throw new ArgumentException(SR.Argument_StreamNotWritable); 406throw new ArgumentException(SR.Argument_InvalidOffLen); 758throw new ArgumentException(SR.Argument_InvalidOffLen); 898throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (3)
94throw new ArgumentException(SR.Argument_InvalidOffLen); 295throw new ArgumentException(SR.Argument_InvalidOffLen); 313throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (1)
94throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (5)
78throw new ArgumentException(SR.Argument_InvalidOffLen); 268throw new ArgumentException(SR.Argument_InvalidOffLen); 298throw new ArgumentException(SR.Argument_InvalidOffLen); 397throw new ArgumentException(SR.Argument_InvalidOffLen); 410throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
182throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (5)
48throw new ArgumentException(SR.Argument_OffsetAndCapacityOutOfBounds); 69throw new ArgumentException(SR.Argument_UnmanagedMemAccessorWrapAround); 249throw new ArgumentException(SR.Arg_BadDecimal); // Throw same Exception type as Decimal(int[]) ctor for compat 321throw new ArgumentException(SR.Argument_InvalidOffLen); 547throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (4)
89throw new ArgumentException(SR.Argument_InvalidSafeBufferOffLen); 110throw new ArgumentException(SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 559throw new ArgumentException(SR.Argument_InvalidSeekOrigin); 666throw new ArgumentException(SR.Arg_BufferTooSmall);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
166_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1530throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
339return (obj is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeBFloat16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
235return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDecimal128);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
232throw new ArgumentException(SR.Arg_MustBeDecimal32);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
236return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDecimal64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (2)
53throw new ArgumentException(SR.Arg_CannotHaveNegativeValue); 141throw new ArgumentException(SR.Arg_CannotHaveNegativeValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
237throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
37throw new ArgumentException(SR.Format_StringZeroLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
24_ => throw new ArgumentException(SR.Argument_InvalidMemberForNamedArgument)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
138throw new ArgumentException(SR.NotSupported_OutputStreamUsingTypeBuilder);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (5)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 303throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (2)
130throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes))); 133throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterModifier.cs (1)
13throw new ArgumentException(SR.Arg_ParmArraySize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureByRefType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (1)
58public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureFunctionPointerType.cs (1)
69public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureGenericParameterType.cs (1)
33public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignaturePointerType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
140throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, fallbackLocation));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\NeutralResourcesLanguageAttribute.cs (1)
25throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, location));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (4)
192throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 208throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 225throw new ArgumentException(SR.Argument_MustBeRuntimeType); 540throw new ArgumentException(SR.Format(SR.Arg_InvalidSatelliteContract_Asm_Ver, a, v));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
136throw new ArgumentException(SR.Format(SR.Arg_ResourceNameNotExist, resourceName));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
125throw new ArgumentException(SR.Argument_StreamNotReadable); 804throw new ArgumentException(SR.Resources_StreamNotValid); 842throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (2)
25throw new ArgumentException(SR.ArgumentException_NotIsomorphic); 31throw new ArgumentException(SR.Argument_StructArrayTooLarge);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
416_ => throw new ArgumentException(SR.Format(SR.ComVariant_SizeMustMatchVariantSize, nameof(T), nameof(vt)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (3)
90throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 125throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 207throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
789throw new ArgumentException(SR.Arg_MustBeNFloat);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (3)
220throw new ArgumentException(SR.Argument_InvalidOffLen); 308throw new ArgumentException(SR.Argument_InvalidOffLen); 376throw new ArgumentException(SR.Arg_BufferTooSmall);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\OptionalFieldAttribute.cs (1)
18throw new ArgumentException(SR.Serialization_OptionalFieldVersionValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
340throw new ArgumentException(SR.Argument_MustBeRuntimeType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
67throw new ArgumentException(SR.Arg_MustBeSByte);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (11)
39throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 49throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 52throw new ArgumentException(SR.Format(SR.Argument_InvalidElementText, text)); 68throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 115throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, attrName)); 118throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, attrValue)); 141throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 159throw new ArgumentException(SR.ArgumentNull_Child); 183throw new ArgumentException(SR.Argument_AttributeNamesMustBeUnique); 197throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, name)); 200throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
268return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeSingle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (1)
448throw new ArgumentException(SR.Arg_MustBeNullTerminatedString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (3)
131throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 137throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 217throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSignature,
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
407throw new ArgumentException(SR.Arg_MustBeString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
177throw new ArgumentException(SR.Argument_ImplementIComparable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (2)
258throw new ArgumentException(SR.Argument_ConversionOverflow); 300throw new ArgumentException(SR.Argument_ConversionOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (3)
80: base(SR.Arg_ArgumentException) 86: base(message) 98: base(message)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (7)
127throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 134throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 150throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 182throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 189throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 199throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 241throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (2)
258throw new ArgumentException(SR.Argument_ConversionOverflow); 299throw new ArgumentException(SR.Argument_ConversionOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (4)
81: base(SR.Arg_ArgumentException) 87: base(message) 99string? message, char charUnknown, int index) : base(message) 106string message, char charUnknownHigh, char charUnknownLow, int index) : base(message)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
285throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
243throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, Encoding.EncodingName, _fallbackBuffer.GetType()));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (2)
1119throw new ArgumentException(SR.Argument_ConversionOverflow); 1438throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
1652throw new ArgumentException(SR.Arg_MustBeRune);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
903throw new ArgumentException(SR.ArgumentOutOfRange_OffsetOut); 920throw new ArgumentException(SR.Arg_LongerThanSrcString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
382throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 665throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
375throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty)); 510throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
905throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
8790 => throw new ArgumentException(SR.CancellationToken_CreateLinkedToken_TokensIsEmpty),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
84throw new ArgumentException(SR.Argument_SemaphoreInitialMaximum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (1)
281throw new ArgumentException(SR.SpinLock_TryReliableEnter_ArgumentException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (8)
83throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType)); 125throw new ArgumentException(SR.Argument_OverlapAlignmentMismatch); 163throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer)); 284throw new ArgumentException(SR.Arg_CannotBeNaN); 309return new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key)); 512throw new ArgumentException(SR.Argument_IncompatibleArrayType); 715return new ArgumentException(SR.Argument_InvalidOffLen); 720return new ArgumentException(GetResourceString(resource));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
415throw new ArgumentException(SR.Arg_MustBeTimeOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
409throw new ArgumentException(SR.Arg_MustBeTimeSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
1128throw new ArgumentException(SR.ArgumentException_TupleLastArgumentNotATuple);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (2)
34throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 55throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
63throw new ArgumentException(SR.Arg_MustBeUInt128);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
63throw new ArgumentException(SR.Arg_MustBeUInt16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
75throw new ArgumentException(SR.Arg_MustBeUInt32);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
75throw new ArgumentException(SR.Arg_MustBeUInt64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
211throw new ArgumentException(SR.Arg_MustBeUIntPtr);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
52throw new ArgumentException(SR.Format(SR.Argument_InvalidUnity, _data ?? "UnityType"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (1)
1856throw new ArgumentException(SR.ArgumentException_ValueTupleLastArgumentNotAValueTuple);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (1)
199throw new ArgumentException(SR.Argument_AssemblyGetTypeCannotSpecifyAssembly);
System\ActivatorImplementation.cs (1)
156throw new ArgumentException(SR.Format(SR.Acc_CreateGenericEx, type));
System\Delegate.cs (3)
112throw new ArgumentException(SR.Arg_DlgtNullInst); 124throw new ArgumentException(SR.Arg_DlgtNullInst); 481throw new ArgumentException(SR.Arg_DlgtTypeMis);
System\InvokeUtils.cs (1)
434return new ArgumentException(SR.Format(SR.Arg_ObjObjEx, Type.GetTypeFromHandle(new RuntimeTypeHandle(srcEEType)), destinationTypeName));
System\Reflection\AssemblyRuntimeNameHelpers.cs (1)
20throw new ArgumentException(SR.InvalidAssemblyName);
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (2)
108throw new ArgumentException(SR.Arg_TypedReference_Null); 142throw new ArgumentException(SR.Arg_TypedReference_Null);
System\Reflection\Runtime\General\TypeUnifier.cs (1)
392throw new ArgumentException(SR.Format(SR.ArgumentException_InvalidTypeArgument, genericTypeArgument));
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
132throw new ArgumentException(SR.Arg_DlgtTargMeth);
System\Reflection\Runtime\MethodInfos\RuntimeMethodInfo.cs (2)
79throw new ArgumentException(SR.Arg_MustBeDelegate); 83throw new ArgumentException(SR.Arg_DlgtTargMeth);
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
145throw new ArgumentException(SR.Format(SR.Argument_NotEnoughGenArguments, typeArguments.Length, GenericTypeParameters.Length));
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (5)
201throw new ArgumentException(SR.Argument_InterfaceMap); 204throw new ArgumentException(SR.Arg_MustBeInterface); 207throw new ArgumentException(SR.Arg_NotFoundIFace); 212throw new ArgumentException(SR.Argument_ArrayGetInterfaceMap); 376throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.InvokeMember.cs (1)
184throw new ArgumentException(SR.Arg_IndexMustBeInt);
System\Reflection\TypeNameResolver.NativeAot.cs (1)
86return throwOnError ? throw new ArgumentException(SR.Argument_AssemblyGetTypeCannotSpecifyAssembly) : null;
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (7)
35throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized); 43throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized); 310throw new ArgumentException(SR.Argument_InvalidValue); 332throw new ArgumentException(SR.Argument_InvalidValue); 338throw new ArgumentException(SR.Argument_NoUninitializedStrings); 384throw new ArgumentException(SR.Arg_TypeNotSupported); 418throw new ArgumentException(SR.Arg_TypeNotSupported);
System\Runtime\InteropServices\Marshal.NativeAot.cs (2)
27throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, t)); 104throw new ArgumentException(SR.Format(SR.Argument_MustHaveLayoutOrBeBlittable, structuretype));
System\RuntimeType.NativeAot.cs (4)
161throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, value.GetType(), Enum.InternalGetUnderlyingType(this))); 169throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, value.GetType(), this)); 175throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, value.GetType(), underlyingType)); 325return pEEType->IsArray ? pEEType->ArrayRank : throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System.Private.DataContractSerialization (17)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
35throw new ArgumentException(nameof(xmlWriter));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
511throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, _attributeText));
System\Runtime\Serialization\SchemaImporter.cs (2)
74throw new ArgumentException(SR.CannotImportNullSchema); 97throw new ArgumentException(SR.CannotImportNullDataContractName);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
199throw new ArgumentException(SR.Format(SR.NullKnownType, "knownTypes"));
System\Runtime\Serialization\XsdDataContractExporter.cs (5)
114throw new ArgumentException(SR.Format(SR.CannotExportNullAssembly, nameof(assemblies))); 146throw new ArgumentException(SR.Format(SR.CannotExportNullType, nameof(types))); 293throw new ArgumentException(SR.CannotExportNullKnownType); 317throw new ArgumentException(SR.Format(SR.CannotExportNullAssembly, nameof(assemblies))); 355throw new ArgumentException(SR.Format(SR.CannotExportNullType, nameof(types)));
System\Xml\XmlBaseWriter.cs (6)
272throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", ns)); 274throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", ns)); 334throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue)); 398throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue)); 2169throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", uri)); 2172throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", uri));
System\Xml\XmlCanonicalWriter.cs (1)
98throw new ArgumentException(SR.InvalidInclusivePrefixListCollection);
System.Private.Reflection.Execution (4)
Internal\Reflection\Execution\TypeLoader\ConstraintValidator.cs (3)
69throw new ArgumentException(SR.Argument_GenericArgsCount); 80throw new ArgumentException(SR.Format(SR.Argument_NeverValidGenericArgument, actualArg)); 91throw new ArgumentException(SR.Format(SR.Argument_ConstraintFailed, actualArg, definition.ToString(), formalArg));
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (1)
89throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key));
System.Private.TypeLoader (4)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericsRegistration.cs (3)
55throw new ArgumentException(SR.Argument_AddingDuplicate); 77throw new ArgumentException(SR.Argument_AddingDuplicate); 81throw new ArgumentException(SR.Argument_AddingDuplicate);
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (1)
89throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key));
System.Private.Uri (1)
System\UriExt.cs (1)
36throw new ArgumentException(SR.Format(SR.net_uri_InvalidUriKind, uriKind));
System.Private.Windows.Core (33)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
309throw new ArgumentException($"{nameof(primitive)} is not primitive.");
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (1)
66throw new ArgumentException($"{nameof(arrayInfo)} doesn't match count of {nameof(arrayObjects)}");
System\Private\Windows\BinaryFormat\Serializer\MemberPrimitiveTyped.cs (1)
36throw new ArgumentException($"{nameof(value)} is not primitive.");
System\Private\Windows\Ole\DataObjectExtensions.cs (2)
16throw new ArgumentException(SR.CollectionEmptyException); 28throw new ArgumentException(string.Format(SR.Clipboard_InvalidPath, path ?? "<null>", nameof(filePaths)));
System\SpanReader.cs (2)
131throw new ArgumentException($"The size of {nameof(TValue)} must be evenly divisible by the size of {nameof(T)}."); 165throw new ArgumentException($"The size of {nameof(TValue)} must be evenly divisible by the size of {nameof(T)}.");
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (7)
26return new ArgumentException(SR.GdiplusInvalidParameter); 55return new ArgumentException(SR.GdiplusUnknownImageFormat); 57return new ArgumentException(SR.GdiplusPropertyNotFoundError); 59return new ArgumentException(SR.GdiplusPropertyNotSupportedError); 63return new ArgumentException(string.Format(SR.GdiplusFontFamilyNotFound, "?")); 67return new ArgumentException(string.Format(SR.GdiplusFontStyleNotFound, "?", "?")); 71return new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName);
Windows\Win32\System\Com\SafeArrayScope.cs (9)
42throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 49throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 56throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 63throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 68throw new ArgumentException("Use ComSafeArrayScope instead"); 74throw new ArgumentException($"Wanted SafeArrayScope<{typeof(T)}> but got SAFEARRAY with VarType={value->VarType}"); 82throw new ArgumentException("Unknown type"); 106throw new ArgumentException("Use ComSafeArrayScope instead"); 117throw new ArgumentException("Unknown type");
Windows\Win32\System\Variant\VARIANT.cs (10)
95throw new ArgumentException("Invalid Variant"); 223throw new ArgumentException("Specified OLE variant is invalid."); 234throw new ArgumentException("Record marshalling doesn't actually work in .NET Core. Matching that behaviour."); 238throw new ArgumentException(string.Format(SR.COM2UnhandledVT, type)); 249throw new ArgumentException("The specified record cannot be mapped to a managed value class."); 267throw new ArgumentException(string.Format(SR.COM2UnhandledVT, arrayType)); 420throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt)); 625throw new ArgumentException(string.Format(SR.COM2UnhandledVT, arrayType)); 676_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt)), 871throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt));
System.Private.Windows.Core.TestUtilities (3)
ReflectionHelper.cs (1)
66?? throw new ArgumentException($"Could not find {nestedTypeName} in {parentType.Name}");
TestAccessor.cs (1)
78modifiers: null) ?? throw new ArgumentException($"Could not find non public method {methodName}.");
TestAccessors.cs (1)
68?? throw new ArgumentException("Cannot create TestAccessor for Nullable<T> instances with no value.");
System.Private.Xml (124)
System\Xml\Core\XmlCharCheckingWriter.cs (5)
229throw new ArgumentException(SR.Format(SR.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i))); 339throw new ArgumentException(SR.Xml_EmptyName); 344throw new ArgumentException(SR.Format(len == 0 ? SR.Xml_BadStartNameChar : SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 352throw new ArgumentException(SR.Xml_EmptyName); 360throw new ArgumentException(string.Format(res, XmlException.BuildCharExceptionArgs(name, len)));
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
175throw new ArgumentException(SR.Format(SR.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i)));
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
1626throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1849throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1896throw new ArgumentException(SR.Format(SR.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
System\Xml\Core\XmlTextEncoder.cs (3)
199throw new ArgumentException(SR.Xml_SurrogatePairSplit); 420throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 459throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar);
System\Xml\Core\XmlTextReaderImpl.cs (1)
8165throw new ArgumentException((_incReadDecoder is IncrementalReadCharsDecoder) ? nameof(count) : "len");
System\Xml\Core\XmlTextWriter.cs (22)
390throw new ArgumentException(SR.Xml_InvalidQuote); 422throw new ArgumentException(SR.Xml_ClosedOrError); 426throw new ArgumentException(SR.Xml_NoRoot); 500throw new ArgumentException(SR.Xml_UndefPrefix); 544throw new ArgumentException(SR.Xml_NoNamespaces); 610throw new ArgumentException(SR.Xml_XmlnsBelongsToReservedNs); 631throw new ArgumentException(SR.Xml_XmlnsBelongsToReservedNs); 644throw new ArgumentException(SR.Xml_UndefPrefix); 684throw new ArgumentException(SR.Xml_NoNamespaces); 738throw new ArgumentException(SR.Xml_InvalidCDataChars); 764throw new ArgumentException(SR.Xml_InvalidCommentChars); 788throw new ArgumentException(SR.Xml_InvalidPiChars); 793throw new ArgumentException(SR.Xml_DupXmlDecl); 849throw new ArgumentException(SR.Xml_NonWhitespace); 1068throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1084throw new ArgumentException(SR.Xml_NoNamespaces); 1153throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1463throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 1491throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 1738throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1760throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 1777throw new ArgumentException(SR.Xml_InvalidPrefix);
System\Xml\Core\XmlUtf8RawTextWriter.cs (3)
1456throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1714throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1761throw new ArgumentException(SR.Format(SR.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
System\Xml\Core\XmlWellFormedWriter.cs (20)
342throw new ArgumentException(SR.Xml_NoRoot); 445throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 610throw new ArgumentException(SR.Xml_EmptyLocalName); 645throw new ArgumentException(SR.Xml_XmlnsPrefix); 668throw new ArgumentException(SR.Xml_XmlnsPrefix); 678throw new ArgumentException(SR.Xml_XmlPrefix); 775throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 779throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 822throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 897throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl); 957throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1010throw new ArgumentException(SR.Xml_NonWhitespace); 1291throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1613throw new ArgumentException(SR.Xml_XmlPrefix); 1623throw new ArgumentException(SR.Xml_XmlnsPrefix); 1640throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1724throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1732throw new ArgumentException(SR.Xml_XmlPrefix); 1737throw new ArgumentException(SR.Xml_XmlnsPrefix); 2064return new ArgumentException(SR.Format(SR.Xml_InvalidNameCharsDetail, args));
System\Xml\Core\XmlWellFormedWriterAsync.cs (13)
45throw new ArgumentException(SR.Xml_NoRoot); 221throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 453throw new ArgumentException(SR.Xml_EmptyLocalName); 506throw new ArgumentException(SR.Xml_XmlnsPrefix); 529throw new ArgumentException(SR.Xml_XmlnsPrefix); 539throw new ArgumentException(SR.Xml_XmlPrefix); 683throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 687throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 729throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 801throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl); 861throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 915throw new ArgumentException(SR.Xml_NonWhitespace); 1145throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriter.cs (1)
234throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriterAsync.cs (1)
220throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1257throw new ArgumentException(SR.Format(SR.XPathDocument_SchemaSetNotAllowed, null));
System\Xml\Dom\XmlAttribute.cs (1)
30throw new ArgumentException(SR.Xdom_Attr_Name);
System\Xml\Dom\XmlAttributeCollection.cs (7)
121throw new ArgumentException(SR.Xdom_AttrCol_Object); 140throw new ArgumentException(SR.Xdom_NamedNode_Context); 159throw new ArgumentException(SR.Xdom_NamedNode_Context); 185throw new ArgumentException(SR.Xdom_AttrCol_Insert); 188throw new ArgumentException(SR.Xdom_NamedNode_Context); 214throw new ArgumentException(SR.Xdom_AttrCol_Insert); 217throw new ArgumentException(SR.Xdom_NamedNode_Context);
System\Xml\Dom\XmlDeclaration.cs (4)
24throw new ArgumentException(SR.Xdom_Version); 27throw new ArgumentException(SR.Format(SR.Xdom_standalone, standalone)); 65throw new ArgumentException(SR.Format(SR.Xdom_standalone, value)); 116throw new ArgumentException(SR.Xdom_Version);
System\Xml\Dom\XmlDocument.cs (4)
245throw new ArgumentException(SR.Format(SR.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1157throw new ArgumentException(SR.Format(SR.Arg_CannotCreateNode, type)); 1252throw new ArgumentException(SR.Format(SR.Xdom_Invalid_NT_String, nodeTypeString)); 1492throw new ArgumentException(SR.Format(SR.XmlDocument_NodeNotFromDocument, nameof(nodeToValidate)));
System\Xml\Dom\XmlDocumentFragment.cs (1)
51throw new ArgumentException(SR.Xdom_Node_Null_Doc);
System\Xml\Dom\XmlElement.cs (1)
31throw new ArgumentException(SR.Xdom_Empty_LocalName);
System\Xml\Dom\XmlEntityReference.cs (1)
41throw new ArgumentException(SR.Xdom_InvalidCharacter_EntityReference);
System\Xml\Dom\XmlLoader.cs (4)
37throw new ArgumentException(SR.Xdom_Load_NoDocument); 39throw new ArgumentException(SR.Xdom_Load_NoReader); 75throw new ArgumentException(SR.Xdom_Load_NoDocument); 77throw new ArgumentException(SR.Xdom_Load_NoReader);
System\Xml\Dom\XmlNode.cs (10)
30throw new ArgumentException(SR.Xdom_Node_Null_Doc); 251throw new ArgumentException(SR.Xdom_Node_Insert_Child); 260throw new ArgumentException(SR.Xdom_Node_Insert_Path); 268throw new ArgumentException(SR.Xdom_Node_Insert_Context); 365throw new ArgumentException(SR.Xdom_Node_Insert_Child); 374throw new ArgumentException(SR.Xdom_Node_Insert_Path); 382throw new ArgumentException(SR.Xdom_Node_Insert_Context); 494throw new ArgumentException(SR.Xdom_Node_Remove_Child); 587throw new ArgumentException(SR.Xdom_Node_Insert_Child); 593throw new ArgumentException(SR.Xdom_Node_Insert_Context);
System\Xml\Dom\XmlSignificantWhiteSpace.cs (2)
15throw new ArgumentException(SR.Xdom_WS_Char); 88throw new ArgumentException(SR.Xdom_WS_Char);
System\Xml\Dom\XmlWhitespace.cs (2)
16throw new ArgumentException(SR.Xdom_WS_Char); 81throw new ArgumentException(SR.Xdom_WS_Char);
System\Xml\Schema\XmlSchemaValidator.cs (1)
382throw new ArgumentException(SR.Sch_InvalidPartialValidationType);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
69throw new ArgumentException(SR.XmlInternalError); 81throw new ArgumentException(SR.XmlInternalError);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
28throw new ArgumentException(SR.XmlInternalError); 37throw new ArgumentException(SR.XmlInternalError);
System\Xml\XmlConvert.cs (6)
722throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption))); 1233throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption))); 1534return new ArgumentException(res); 1551return new ArgumentException(string.Format(res, arg)); 1568return new ArgumentException(string.Format(res, args)); 1784throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption)));
System\Xml\XmlNamespacemanager.cs (2)
133throw new ArgumentException(SR.Xml_XmlPrefix); 137throw new ArgumentException(SR.Xml_XmlnsPrefix);
System.Private.Xml.Linq (21)
System\Xml\Linq\XAttribute.cs (7)
710throw new ArgumentException(SR.Format(SR.Argument_NamespaceDeclarationPrefixed, name.LocalName)); 716if (name.LocalName != "xml") throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 722throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns); 731throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 736throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns); 746throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 752throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns);
System\Xml\Linq\XContainer.cs (2)
823XObject => throw new ArgumentException(SR.Argument_XObjectValue), 827if (s == null) throw new ArgumentException(SR.Argument_ConvertToString);
System\Xml\Linq\XDocument.cs (5)
865throw new ArgumentException(SR.Argument_AddAttribute); 870throw new ArgumentException(SR.Argument_AddAttribute); 918throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.CDATA)); 920throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document)); 948throw new ArgumentException(SR.Argument_AddNonWhitespace);
System\Xml\Linq\XElement.cs (2)
2125if (node is XDocument) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document)); 2126if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.DocumentType));
System\Xml\Linq\XLinq.cs (1)
110if (content is XAttribute) throw new ArgumentException(SR.Argument_AddAttribute);
System\Xml\Linq\XName.cs (1)
78if (i <= 1 || i == expandedName.Length - 1) throw new ArgumentException(SR.Format(SR.Argument_InvalidExpandedName, expandedName));
System\Xml\Linq\XProcessingInstruction.cs (1)
162if (string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException(SR.Format(SR.Argument_InvalidPIName, name));
System\Xml\XPath\XNodeNavigator.cs (2)
927if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.DocumentType)); 931if (text.GetParent() is XDocument) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
System.Reflection.Context (5)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (2)
106throw new ArgumentException(SR.Argument_GetMethNotFnd); 115throw new ArgumentException(SR.Argument_GetMethNotFnd);
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (2)
29throw new ArgumentException(SR.ArgumentNull_GetterOrSetterMustBeSpecified); 33throw new ArgumentException(SR.Argument_PropertyTypeFromDifferentContext);
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertySetter.cs (1)
50throw new ArgumentException(SR.Format(SR.Argument_ObjectArgumentMismatch, value.GetType(), ReturnType));
System.Reflection.Emit (21)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (5)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 303throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Emit\ILGeneratorImpl.cs (4)
99throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 518throw new ArgumentException(SR.Argument_InvalidLabel); 808throw new ArgumentException(SR.Argument_RedefinedLabel); 841throw new ArgumentException(SR.Argument_InvalidLabel);
System\Reflection\Emit\MethodBuilderImpl.cs (1)
54throw new ArgumentException(SR.Argument_NoStaticVirtual);
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
1266throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1295throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1329throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Emit\PseudoCustomAttributesData.cs (2)
34throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty); 100throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty);
System\Reflection\Emit\TypeBuilderImpl.cs (6)
308throw new ArgumentException(SR.ArgumentException_BadMethodImplBody); 373throw new ArgumentException(SR.Argument_BadPInvokeMethod); 378throw new ArgumentException(SR.Argument_BadPInvokeOnInterface); 390throw new ArgumentException(SR.Argument_MethodRedefined); 556throw new ArgumentException(SR.Argument_CannotSetParentToInterface); 622throw new ArgumentException(SR.Argument_MustBeEnum);
System.Reflection.Metadata (4)
System\Reflection\Metadata\BlobWriterImpl.cs (3)
248throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type)); 321throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type)); 394throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type));
System\Reflection\Throw.cs (1)
35throw new ArgumentException(SR.Format(SR.UnexpectedHandleKind, kind));
System.Reflection.MetadataLoadContext (17)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
212public sealed override object CreateInstance(string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture, object?[]? activationAttributes) => throw new ArgumentException(SR.Arg_ReflectionOnlyInvoke);
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (1)
106throw new ArgumentException(SR.Format(SR.SpecifiedFileNameInvalid, moduleName)); // Name not in manifest.
System\Reflection\TypeLoading\General\HashHelpers.cs (1)
50throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
117throw new ArgumentException(SR.Format(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument));
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (3)
107throw new ArgumentException(SR.Arg_MustBeEnum); 118throw new ArgumentException(SR.Argument_InvalidEnum); 123throw new ArgumentException(SR.Argument_InvalidEnum);
System\Reflection\TypeLoading\Types\RoByRefType.cs (1)
26public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
132public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (2)
115throw new ArgumentException(SR.Format(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument)); 227public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
170public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 196protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (2)
42public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 64protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
77protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoPointerType.cs (1)
26public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System.Resources.Extensions (10)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (4)
69throw new ArgumentException(SR.Argument_StreamNotWritable); 149throw new ArgumentException(SR.NotSupported_UnseekableStream); 588throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 598throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
125throw new ArgumentException(SR.Argument_StreamNotReadable); 804throw new ArgumentException(SR.Resources_StreamNotValid); 842throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
System\Resources\Extensions\PreserializedResourceWriter.cs (3)
172throw new ArgumentException(SR.NotSupported_UnseekableStream); 228throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 253throw new ArgumentException(nameof(ResourceDataRecord.Format));
System.Resources.Writer (4)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (4)
69throw new ArgumentException(SR.Argument_StreamNotWritable); 149throw new ArgumentException(SR.NotSupported_UnseekableStream); 588throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 598throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);
System.Runtime.Caching (6)
System\Runtime\Caching\HostFileChangeMonitor.cs (2)
166throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(filePaths))); 183throw new ArgumentException(RH.Format(SR.Collection_contains_null_or_empty_string, nameof(filePaths)));
System\Runtime\Caching\MemoryCache.cs (4)
421throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(keys))); 428throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys))); 673throw new ArgumentException(SR.Invalid_argument_combination); 789throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
4072throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
System\Numerics\Complex.Generic.cs (1)
2034throw new ArgumentException(SR.Arg_HexStyleNotSupported);
System.Runtime.Serialization.Formatters (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Runtime\Serialization\FormatterServices.cs (2)
213throw new ArgumentException(SR.Argument_InvalidFieldInfo); 224throw new ArgumentException(SR.Argument_DataLengthDifferent);
System\Runtime\Serialization\ObjectManager.cs (1)
779throw new ArgumentException(SR.Serialization_NotISer);
System\Runtime\Serialization\ValueTypeFixupInfo.cs (3)
37throw new ArgumentException(SR.Argument_MustSupplyParent); 53throw new ArgumentException(SR.Argument_MemberAndArray); 58throw new ArgumentException(SR.Argument_MustSupplyContainer);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (1)
87return new ArgumentException(message);
System.Security.AccessControl (1)
System\Security\AccessControl\Privilege.cs (1)
106throw new ArgumentException(
System.Security.Cryptography (72)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (1)
305throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (3)
138throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 142throw new ArgumentException(SR.Argument_InvalidOffLen); 158throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (6)
26throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MissingFields); 31throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedPJ); 39throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedPGY); 42throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedQX); 197throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey); 211throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_QRestriction_ShortKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
79throw new ArgumentException(SR.Cryptography_Pkcs9_AttributeMismatch);
System\Security\Cryptography\AesCcm.cs (1)
94throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch);
System\Security\Cryptography\AsnEncodedDataCollection.cs (2)
71throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 75throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\Base64Transforms.cs (1)
393public static void ThrowInvalidOffLen() => throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
99throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch);
System\Security\Cryptography\CspParameters.cs (1)
43throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value)));
System\Security\Cryptography\DES.cs (1)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ECCurve.cs (1)
81throw new ArgumentException(SR.Format(SR.Cryptography_InvalidCurveOid, value.Value));
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (2)
81throw new ArgumentException(SR.Cryptography_InvalidKeySize); 126throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (1)
76throw new ArgumentException(SR.Cryptography_ArgECDHRequiresECDHKey);
System\Security\Cryptography\ECDsaCng.Key.cs (2)
70throw new ArgumentException(SR.Cryptography_InvalidKeySize); 109throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\HashAlgorithm.cs (4)
82throw new ArgumentException(SR.Argument_InvalidValue); 84throw new ArgumentException(SR.Argument_InvalidOffLen); 240throw new ArgumentException(SR.Argument_InvalidValue); 242throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\HashProvider.cs (1)
27throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\IncrementalHash.cs (1)
94throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\OidCollection.cs (2)
77throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 81throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\PemEncoding.cs (1)
412throw new ArgumentException(SR.Argument_PemEncoding_EncodedSizeTooLarge);
System\Security\Cryptography\RandomNumberGenerator.cs (2)
106throw new ArgumentException(SR.Argument_InvalidRandomRange); 445throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\TripleDES.cs (1)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
516throw new ArgumentException(SR.Argument_InvalidNameType);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (3)
682throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 831throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 1017throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (3)
142throw new ArgumentException(SR.Cryptography_CRLBuilder_DatesReversed); 189throw new ArgumentException(SR.Cryptography_CertReq_RSAPaddingRequired); 340throw new ArgumentException(SR.Cryptography_CRLBuilder_DatesReversed);
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (1)
44throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (1)
41throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\FindPal.cs (5)
178throw new ArgumentException(SR.Argument_InvalidOidValue); 222throw new ArgumentException(SR.Argument_InvalidOidValue); 227throw new ArgumentException(SR.Argument_InvalidOidValue); 229throw new ArgumentException(SR.Argument_InvalidOidValue); 239throw new ArgumentException(SR.Argument_InvalidOidValue);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
41throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
103throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, "flag"));
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
285throw new ArgumentException(SR.Cryptography_X509_AIA_NullValue); 330throw new ArgumentException(SR.Cryptography_X509_AIA_MustNotBuildEmpty);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
769throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 857throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 959throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 1055throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 1165throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
63throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 67throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs (4)
62throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 76throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 90throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 104throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value)));
System\Security\Cryptography\X509Certificates\X509Extension.cs (1)
84throw new ArgumentException(SR.Cryptography_X509_ExtensionMismatch);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
82throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 86throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
35throw new ArgumentException(SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\X509Certificates\X509Store.cs (3)
40throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeLocation))); 52_ => throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeName))), 66throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeLocation)));
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (1)
423throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels);
System.Security.Cryptography.Pkcs (11)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (3)
138throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 142throw new ArgumentException(SR.Argument_InvalidOffLen); 158throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
79throw new ArgumentException(SR.Cryptography_Pkcs9_AttributeMismatch);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (3)
87throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 91throw new ArgumentException(SR.Argument_InvalidOffLen); 107throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
73throw new ArgumentException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, value));
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (2)
62throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 66throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
64throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\CanonicalXml.cs (1)
42throw new ArgumentException(nameof(nodeList));
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (1)
41throw new ArgumentException(nameof(nodeList));
System\Security\Cryptography\Xml\XmlDsigBase64Transform.cs (1)
62if (inputStream == null) throw new ArgumentException("obj");
System.Security.Permissions (3)
System\Security\Permissions\PrincipalPermission.cs (3)
30throw new ArgumentException(SR.Argument_InvalidPermissionState); 275throw new ArgumentException(SR.Argument_NotAPermissionElement); 280throw new ArgumentException(SR.Argument_InvalidXMLBadVersion);
System.Security.Principal.Windows (3)
System\Security\Principal\WindowsIdentity.cs (3)
262throw new ArgumentException(SR.Argument_TokenZero); 274throw new ArgumentException(SR.Argument_InvalidImpersonationToken); 939throw new ArgumentException(SR.Argument_InvalidImpersonationToken);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
435return new ArgumentException(SR.Format(SR.HttpToMustEqualVia, to, via));
System.ServiceModel.Primitives (30)
SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
24return (ArgumentException)ThrowHelperError(new ArgumentException(message));
System\IdentityModel\Tokens\SymmetricKey.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SymmetricKeyLengthTooShort, symmetricKey.Length)));
System\ServiceModel\Channels\AddressHeaderCollection.cs (3)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessageHeaderIsNull0)); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessageHeaderIsNull0)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MultipleMessageHeaders, name, ns)));
System\ServiceModel\Channels\MessageProperties.cs (4)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessagePropertyNotFound, name))); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessagePropertyReturnedNullCopy)); 721throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.DuplicateMessageProperty, name))); 822throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessagePropertiesArraySize0));
System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
81throw TraceUtility.ThrowHelperError(new ArgumentException(SRP.SuppliedMessageIsNotAReplyItHasNoRelatesTo0), reply);
System\ServiceModel\Channels\ServiceChannel.cs (1)
787throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxInvalidCallbackIAsyncResult));
System\ServiceModel\Description\TypeLoader.cs (1)
718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxInvalidCallbackContractType, callbackType.Name)));
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
404throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SPS_InvalidAsyncResult));
System\ServiceModel\Dispatcher\MessageOperationFormatter.cs (5)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParametersMustBeEmpty)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParameterMustBeArrayOfOneElement)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxResultMustBeMessage)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParametersMustBeEmpty)); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParameterMustBeMessage));
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
348throw TraceUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxInvalidStreamOffsetLength, offset + count)), _message);
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxInvalidCallbackIAsyncResult));
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxInvalidCallbackIAsyncResult));
System\ServiceModel\FaultReason.cs (1)
110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.NoMatchingTranslationFoundForFaultText));
System\ServiceModel\MessageHeaderT.cs (1)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException("typedHeaderInstance"));
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.DerivedKeyCannotDeriveFromSecret));
System\ServiceModel\Security\WindowsClientCredential.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString())));
System\ServiceModel\SynchronizedCollection.cs (2)
309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SynchronizedCollectionWrongTypeNull)); 314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SynchronizedCollectionWrongType1, value.GetType().FullName)));
System\ServiceModel\SynchronizedKeyedCollection.cs (2)
112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.CannotAddTwoItemsWithTheSameKeyToSynchronizedKeyedCollection0)); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.ItemDoesNotExistInSynchronizedKeyedCollection0));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(message));
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
240throw new ArgumentException(SR.ExtensionNameNotSpecified);
System.ServiceProcess.ServiceController (10)
System\ServiceProcess\ServiceBase.cs (3)
285throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString(CultureInfo.CurrentCulture))); 582throw new ArgumentException(SR.NoServices); 654throw new ArgumentException(SR.NoServices);
System\ServiceProcess\ServiceController.cs (7)
66throw new ArgumentException(SR.Format(SR.BadMachineName, machineName)); 82throw new ArgumentException(SR.Format(SR.BadMachineName, machineName)); 101throw new ArgumentException(SR.Format(SR.BadMachineName, machineName)); 246throw new ArgumentException(SR.Format(SR.BadMachineName, value)); 286throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString())); 736throw new ArgumentException(SR.Format(SR.BadMachineName, machineName)); 983throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(desiredStatus), (int)desiredStatus, typeof(ServiceControllerStatus)));
System.Speech (14)
Internal\ObjectToken\ObjectToken.cs (3)
266throw new ArgumentException(SR.Get(SRID.TokenCannotCreateInstance)); 283throw new ArgumentException(SR.Get(SRID.TokenCannotCreateInstance)); 295throw new ArgumentException(SR.Get(SRID.TokenCannotCreateInstance));
Internal\SrgsParser\XmlParser.cs (1)
1798throw new ArgumentException(SR.Get(SRID.MinGreaterThanMax));
Internal\Synthesis\VoiceSynthesis.cs (1)
1649throw new ArgumentException(SR.Get(SRID.SynthesizerUnknownMediaType));
Recognition\Grammar.cs (7)
181throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, typeTarget.Name, typeTarget.Name)); 743throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, typeTarget.Name, typeTarget.Name)); 926throw new ArgumentException(SR.Get(SRID.CannotLoadDotNetSemanticCode)); 1024throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _ruleName, _ruleName)); 1032throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _ruleName, _ruleName)); 1063throw new ArgumentException(SR.Get(SRID.SapiErrorNoRulesToActivate)); 1083throw new ArgumentException(SR.Get(SRID.RecognizerRuleNotFoundStream, rulename));
Recognition\SrgsGrammar\SrgsItem.cs (1)
95throw new ArgumentException(SR.Get(SRID.MinGreaterThanMax));
Synthesis\SpeechSynthesizer.cs (1)
43throw new ArgumentException(SR.Get(SRID.SynthesizerSetVoiceNoMatch));
System.Text.Encoding.CodePages (9)
System\Text\DBCSCodePageEncoding.cs (2)
530throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType())); 646throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType()));
System\Text\DecoderFallbackBufferHelper.cs (6)
65throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 72throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 88throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 121throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 128throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 138throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
System\Text\EncodingByteBuffer.cs (1)
42throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, _encoder.Encoding.EncodingName, _encoder.Fallback.GetType()));
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoder.cs (1)
624throw new ArgumentException(SR.TextEncoderDoesNotImplementMaxOutputCharsPerInputChar);
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
344throw new ArgumentException(SR.SerializationInvalidBufferSize); 440throw new ArgumentException(SR.DefaultIgnoreConditionInvalid);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs (2)
32throw new ArgumentException(nameof(propertyInfo.DeclaringType)); 38throw new ArgumentException(nameof(propertyInfo.PropertyName));
System\Text\Json\ThrowHelper.cs (5)
78throw new ArgumentException(SR.Argument_InvalidOffLen); 89return new ArgumentException(message); 526throw new ArgumentException(SR.CannotWriteCommentWithEmbeddedDelimiter); 554throw new ArgumentException(SR.Format(SR.CannotEncodeInvalidUTF8, builder)); 560throw new ArgumentException(SR.Format(SR.CannotEncodeInvalidUTF16, $"0x{charAsInt:X2}"));
System\Text\Json\ThrowHelper.Serialization.cs (1)
22throw new ArgumentException(SR.Format(SR.DeserializeWrongType, type, value.GetType()));
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
240throw new ArgumentException(SR.StreamNotWritable); 309throw new ArgumentException(SR.StreamNotWritable);
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
193throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Text\RegularExpressions\GroupCollection.cs (1)
249throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Text\RegularExpressions\RegexParseException.cs (1)
34internal RegexParseException(RegexParseError error, int offset, string message) : base(message)
System.Text.RegularExpressions.Generator (2)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParseException.cs (1)
34internal RegexParseException(RegexParseError error, int offset, string message) : base(message)
System.Threading.AccessControl (1)
System\Threading\SemaphoreAcl.cs (1)
46throw new ArgumentException(SR.Argument_SemaphoreInitialMaximum);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.cs (1)
214throw new ArgumentException(SR.Parallel_Invoke_ActionNull);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (2)
86throw new ArgumentException(Microsoft.Windows.Controls.SR.InvalidKeyTipOffset); 105throw new ArgumentException(Microsoft.Windows.Controls.SR.InvalidKeyTipOffset);
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (3)
50throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterNoNaN, "value")); 55throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterNoInfinityForStarSize, "value")); 63throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterUnknownRibbonControlLengthUnitType, "type"));
System.Windows.Extensions (1)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (1)
95throw new ArgumentException(SR.Format(SR.Enum_InvalidValue, nameof(selectionFlag)));
System.Windows.Forms (187)
misc\CollectionHelper.cs (3)
25throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 48throw new ArgumentException(SR.Argument_IncompatibleArrayType); 63throw new ArgumentException(SR.Argument_IncompatibleArrayType);
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
156throw new ArgumentException(string.Format(SR.InvalidResXNoType, name));
System\Resources\ResXResourceReader.cs (2)
437throw new ArgumentException(SR.InvalidResXFileReaderWriterTypes); 606throw new ArgumentException(string.Format(SR.InvalidResXResourceNoName, nodeInfo.ValueData));
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (2)
60throw new ArgumentException(string.Format(SR.AXNoEventInterface, eventInterface.Name)); 75throw new ArgumentException(string.Format(SR.AXNoConnectionPoint, eventInterface.Name));
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1424throw new ArgumentException(string.Format(SR.AXNoConnectionPoint, eventInterface.Name));
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
62public override void SetValue(object? component, object? value) => throw new ArgumentException(null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
898VT_USERDEFINED => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, "VT_USERDEFINED")), 899_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, ((int)vt).ToString(CultureInfo.InvariantCulture))),
System\Windows\Forms\Components\ImageList\ImageList.ImageCollection.cs (2)
142throw new ArgumentException(SR.ImageListBitmap); 345throw new ArgumentException(SR.ImageListBitmap);
System\Windows\Forms\Control.ControlCollection.cs (3)
51throw new ArgumentException(SR.TopLevelControlAdd); 58throw new ArgumentException(SR.AddDifferentThreads); 408throw new ArgumentException(SR.ControlNotChild);
System\Windows\Forms\Control.cs (3)
1085throw new ArgumentException(SR.TransparentBackColorNotAllowed); 4665throw new ArgumentException(SR.CircularOwner); 4678throw new ArgumentException(SR.CircularOwner);
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
13: throw new ArgumentException(string.Format(SR.ConstructorArgumentInvalidValueType, nameof(owner), typeof(ButtonBase))))
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (1)
13: throw new ArgumentException(string.Format(SR.ConstructorArgumentInvalidValueType, nameof(owner), typeof(CheckBox))))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1114throw new ArgumentException(SR.ComboBoxSortWithDataSource); 1439throw new ArgumentException(SR.DataSourceLocksItems); 3260throw new ArgumentException(SR.AutoCompleteFailure); 3303throw new ArgumentException(SR.AutoCompleteFailureListItems);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
1012throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor")); 1014throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor")); 1240throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle")); 1457throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle")); 1741throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView); 2300throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView); 2648throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor))); 2650throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor))); 3254throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle"));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (20)
1695throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode")); 1986throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode")); 2132throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode")); 2364throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "autoSizeRowsMode")); 6844throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 9763throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView); 11237throw new ArgumentException(SR.DataGridView_PreviousModesHasWrongLength); 13241throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 13305throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 13320throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 13346throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 13418throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 13494throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 13581throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 14042throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 14069throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 14261throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 14463throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 14473throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView); 28167throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
System\Windows\Forms\Controls\DataGridView\DataGridViewAdvancedBorderStyle.cs (7)
67throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "All")); 96throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Bottom")); 141throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Left")); 157throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Left")); 197throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Right")); 213throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Right")); 243throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Top"));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1674throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize)); 1696throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize)); 1770throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex)); 1795throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
323throw new ArgumentException(SR.DataGridViewCellCollection_CellNotFound);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
59throw new ArgumentException(SR.DataGridViewCell_FormattedValueTypeNull); 66throw new ArgumentException(SR.DataGridViewCheckBoxCell_InvalidValueType); 102throw new ArgumentException(SR.DataGridViewCheckBoxCell_InvalidValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
892throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (11)
413throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 552throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 602throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 640throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 646throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 680throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 686throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 723throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 729throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 796throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 802throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (7)
138throw new ArgumentException(SR.BadDataSourceForComplexBinding); 428throw new ArgumentException(SR.ComboBoxSortWithDataSource); 575throw new ArgumentException(SR.DataSourceLocksItems); 968new ArgumentException(SR.DataGridViewComboBoxCell_InvalidValue), 1003new ArgumentException(SR.DataGridViewComboBoxCell_InvalidValue), 1359throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, displayMember)); 1390throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, valueMember));
System\Windows\Forms\Controls\DataGridView\DataGridViewDataErrorEventArgs.cs (1)
33throw new ArgumentException(SR.DataGridView_CannotThrowNullException);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1503throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, "paintParts"));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (12)
883throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 933throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 939throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 983throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1042throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1068throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1074throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1093throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1119throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1125throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1144throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1240throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
186throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 246throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 269throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 292throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 315throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)));
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
66throw new ArgumentException(
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
62throw new ArgumentException(
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
197throw new ArgumentException(SR.CheckedListBoxInvalidSelectionMode);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1277throw new ArgumentException(SR.DataSourceLocksItems);
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
186throw new ArgumentException(nameof(item));
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
72throw new ArgumentException(string.Format(SR.NoDefaultConstructor, t.FullName));
System\Windows\Forms\Controls\ListView\ListView.cs (2)
1872throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value)); 5051throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
180throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text));
System\Windows\Forms\Controls\ListView\ListViewVirtualItemsSelectionRangeChangedEventArgs.cs (1)
18throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
72throw new ArgumentException(string.Format(SR.TextParseFailedFormat,
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
967throw new ArgumentException(string.Format(SR.PropertyGridSetNull, count, value.Length)); 1738throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName)); 1743throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName)); 3476throw new ArgumentException(SR.PropertyGridTabScope); 3579throw new ArgumentException(SR.PropertyGridRemoveStaticTabs); 3622throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
527throw new ArgumentException(SR.PropertyGridInvalidGridEntry);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (4)
1889throw new ArgumentException(string.Format(SR.RichTextFindEndInvalid, end)); 2428throw new ArgumentException(SR.InvalidFileType); 2801_ => throw new ArgumentException(SR.UnknownAttr), 2967throw new ArgumentException(SR.InvalidFileFormat);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
244throw new ArgumentException(SR.SplitterInvalidDockEnum);
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
25throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, value.GetType().Name));
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
493throw new ArgumentException(string.Format(SR.TabControlTabPageNotOnTabControl, value.GetType().FullName));
System\Windows\Forms\Controls\TabControl\TabPage.TabPageControlCollection.cs (1)
31throw new ArgumentException(SR.TabControlTabPageOnTabPage);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
690throw new ArgumentException(SR.MaskedTextBoxMaskInvalidChar); 841throw new ArgumentException(SR.MaskedTextBoxInvalidCharError); 899throw new ArgumentException(SR.MaskedTextBoxInvalidCharError);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
785throw new ArgumentException(SR.AutoCompleteFailure);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
275throw new ArgumentException(SR.ToolStripAllowItemReorderAndAllowDropCannotBeSetToTrue); 307throw new ArgumentException(SR.ToolStripAllowItemReorderAndAllowDropCannotBeSetToTrue);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1075throw new ArgumentException(SR.ToolStripMergeImpossibleIdentical); 1259throw new ArgumentException(SR.ToolStripMergeImpossibleIdentical);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
290throw new ArgumentException(SR.ToolStripPanelRowControlCollectionIncorrectIndexLength);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1774throw new ArgumentException(SR.TreeNodeCircularReference);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
117throw new ArgumentException(SR.HtmlDocumentInvalidDomain);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1287throw new ArgumentException(string.Format(SR.WebBrowserNavigateAbsoluteUri, "uri"));
System\Windows\Forms\DataBinding\BindingContext.cs (1)
267?? throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\DataBinding\BindingSource.cs (3)
651?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, propertyName)); 999: throw new ArgumentException(SR.BindingSourceBadSortString); 1004?? throw new ArgumentException(SR.BindingSourceSortStringPropertyNotInIBindingList);
System\Windows\Forms\DataBinding\Command.cs (1)
90throw new ArgumentException(SR.CommandIdNotAllocated);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
49?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, dataMember)); 187listAccessors2[0] = dmProp ?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, dataMember));
System\Windows\Forms\DataBinding\PropertyManager.cs (1)
40throw new ArgumentException(string.Format(SR.PropertyManagerPropDoesNotExist, _propName, dataSource));
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
38throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
27throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButtonCollection.cs (2)
73throw new ArgumentException(SR.TaskDialogControlAlreadyAddedToCollection); 108throw new ArgumentException(SR.TaskDialogControlAlreadyAddedToCollection);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogRadioButtonCollection.cs (2)
72throw new ArgumentException(SR.TaskDialogControlAlreadyAddedToCollection); 107throw new ArgumentException(SR.TaskDialogControlAlreadyAddedToCollection);
System\Windows\Forms\Layout\TableLayout.cs (2)
259throw new ArgumentException(SR.TableLayoutPanelFullDesc); 264throw new ArgumentException(SR.TableLayoutPanelSpanDesc);
System\Windows\Forms\Layout\TableLayout.SorterObjectArray.cs (2)
35throw new ArgumentException(null); 79throw new ArgumentException(null);
System\Windows\Forms\NotifyIcon.cs (1)
551throw new ArgumentException(SR.NotifyIconEmptyOrNullTipText);
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
268throw new ArgumentException(SR.PSDcantShowWithoutPage);
System\Windows\Forms\Printing\PrintDialog.cs (6)
275throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 281throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "ToPage")); 286throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 389throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 395throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "ToPage")); 400throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage"));
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
138throw new ArgumentException(SR.PrintPreviewControlZoomNegative);
System\Windows\Forms\SendKeys\SendKeys.cs (12)
406throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 440throw new ArgumentException(SR.SendKeysKeywordDelimError); 457throw new ArgumentException(SR.SendKeysKeywordDelimError); 474throw new ArgumentException(SR.SendKeysKeywordDelimError); 479throw new ArgumentException(SR.InvalidSendKeysRepeat); 516throw new ArgumentException(string.Format(SR.InvalidSendKeysKeyword, keys[(i + 1)..j])); 526throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 537throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 548throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 567throw new ArgumentException(SR.SendKeysNestingError); 590throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 618throw new ArgumentException(SR.SendKeysGroupDelimError);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
139throw new ArgumentException(SR.VisualStylesInvalidCombination); 201throw new ArgumentException(SR.VisualStylesInvalidCombination);
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
81throw new ArgumentException(string.Format(SR.TextParseFailedFormat,
System.Windows.Forms.Design (24)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
146throw new ArgumentException(string.Format(SR.EventBindingServiceBadArgType, Name, nameof(String)))
System\ComponentModel\Design\MenuCommandService.cs (1)
84throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.MenuCommandService_DuplicateCommand, commandId.ToString()));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (4)
962Exception ex = new ArgumentException(SR.CodeDomDesignerLoaderBadSerializationObject) 1176Exception ex = new ArgumentException(SR.CodeDomDesignerLoaderInvalidBlankIdentifier) 1209Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderInvalidIdentifier, name)) 1252Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderDupComponentName, name))
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
88throw new ArgumentException(string.Format(SR.SerializerBadElementTypes, codeObject.GetType().Name, supportedTypes));
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
112throw new ArgumentException(string.Format(SR.SerializerBadElementTypes, codeObject.GetType().Name, supportedTypes));
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
161throw new ArgumentException("Serialization manager should have a PropertyDescriptor context"); 166throw new ArgumentException("Serialization manager should have an ExpressionContext context");
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
174throw new ArgumentException(string.Format(SR.MismatchedResourceName, keyname, node.Name)); 339throw new ArgumentException(string.Format(SR.InvalidIdentifier, className));
System\Windows\Forms\Design\CommandSet.cs (1)
2574: throw new ArgumentException(SR.CommandSetUnknownSpacingCommand);
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (3)
249?? throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey)); 317throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey)); 335throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey));
System\Windows\Forms\Design\ListControlStringCollectionEditor.cs (1)
25throw new ArgumentException(SR.DataSourceLocksItems);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
255throw new ArgumentException(string.Format(SR.InvalidArgument,
System\Windows\Forms\Design\TabControlDesigner.cs (1)
123throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, tool.DisplayName));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
66throw new ArgumentException(string.Format(SR.TableLayoutPanelDesignerInvalidColumnRowCount, "RowCount")); 82throw new ArgumentException(string.Format(SR.TableLayoutPanelDesignerInvalidColumnRowCount, "ColumnCount"));
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
116throw new ArgumentException(SR.ToolStripAllowItemReorderAndAllowDropCannotBeSetToTrue); 133throw new ArgumentException(SR.ToolStripAllowItemReorderAndAllowDropCannotBeSetToTrue);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
126throw new ArgumentException(string.Format(SR.InvalidArgument, "DropDown", value.ToString()));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
405?? throw new ArgumentException(string.Format(SR.ResourceNotFound, type, resource));
Windows\Win32\System\Com\ComSafeArrayScope.cs (1)
27throw new ArgumentException("Must pass in a SafeArray of type VARENUM.VT_UNKNOWN");
System.Xaml (34)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
347throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 360throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 365throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
System\Windows\Markup\StaticExtension.cs (5)
68throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 75throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 84throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 94throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 110throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, typeNameForError is not null ? $"{typeNameForError}.{_member}" : _member));
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
32throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(StaticExtension)));
System\Windows\Markup\TypeExtensionConverter.cs (1)
32throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(TypeExtension)));
System\Xaml\Context\ServiceProviderContext.cs (5)
139throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 155throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 173throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 189throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 209throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties"));
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
898throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull); 903throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull);
System\Xaml\NameScope.cs (5)
33throw new ArgumentException(SR.NameScopeNameNotEmptyString); 38throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 56throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 71throw new ArgumentException(SR.NameScopeNameNotEmptyString); 76throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name));
System\Xaml\NameScopeDictionary.cs (6)
43throw new ArgumentException(SR.NameScopeNameNotEmptyString); 47throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 72throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 83throw new ArgumentException(SR.NameScopeNameNotEmptyString); 98throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 108throw new ArgumentException(SR.NameScopeNameNotEmptyString);
System\Xaml\Parser\MeScanner.cs (1)
319throw new ArgumentException(SR.MalformedPropertyName);
System\Xaml\Schema\XamlValueConverter.cs (1)
33throw new ArgumentException(SR.Format(SR.ArgumentRequired, $"{nameof(converterType)}, {nameof(targetType)}, {nameof(name)}"));
System\Xaml\XamlMarkupExtensionWriter.cs (1)
177throw new ArgumentException(SR.XamlMarkupExtensionWriterCannotWriteNonstringValue);
System\Xaml\XamlSchemaContext.cs (2)
295throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "xamlTypeName.TypeArguments")); 319throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments"));
System\Xaml\XamlType.cs (1)
1587throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments"));
testhost (1)
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
219throw new ArgumentException($"Argument {ParentProcessIdArgument} was not specified.");
testhost.arm64 (1)
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
219throw new ArgumentException($"Argument {ParentProcessIdArgument} was not specified.");
testhost.x86 (1)
DefaultEngineInvoker.cs (1)
219throw new ArgumentException($"Argument {ParentProcessIdArgument} was not specified.");
TestProject.AppHost (2)
TestProgram.cs (1)
40throw new ArgumentException("Missing argument to --skip-resources option.");
tests\testproject\Common\TestResourceNames.cs (1)
30throw new ArgumentException($"Unknown resource name: {resourceName}");
TestProject.IntegrationServiceA (1)
tests\testproject\Common\TestResourceNames.cs (1)
30throw new ArgumentException($"Unknown resource name: {resourceName}");
UIAutomationClient (19)
MS\Internal\Automation\Misc.cs (3)
144throw new ArgumentException(SR.UnsupportedPattern); 166throw new ArgumentException(SR.Format(SR.GenericInvalidArgument, argName)); 174throw new ArgumentException(SR.GetResourceString(reason, null));
MS\Internal\Automation\ProxyManager.cs (1)
729throw new ArgumentException(SR.NonclientClassnameCannotBeUsedWithFlagsOrImagename);
System\Windows\Automation\Automation.cs (2)
171throw new ArgumentException( SR.ParamsNotApplicableToWindowClosedEvent ); 222throw new ArgumentException( SR.AtLeastOnePropertyMustBeSpecified );
System\Windows\Automation\AutomationElement.cs (4)
501return new ArgumentException(SR.UnsupportedProperty); 707throw new ArgumentException(SR.UnsupportedPattern); 1286throw new ArgumentException(SR.TreeScopeNeedAtLeastOne); 1290throw new ArgumentException(SR.TreeScopeElementChildrenDescendantsOnly);
System\Windows\Automation\CacheRequest.cs (2)
303throw new ArgumentException(SR.TreeScopeNeedAtLeastOne); 308throw new ArgumentException(SR.TreeScopeElementChildrenDescendantsOnly);
System\Windows\Automation\ItemContainerPattern.cs (2)
129throw new ArgumentException(SR.UnsupportedProperty); 140throw new ArgumentException(SR.Format(SR.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\PropertyCondition.cs (2)
127throw new ArgumentException(SR.UnsupportedProperty); 138throw new ArgumentException(SR.Format(SR.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\Text\TextRange.cs (2)
180throw new ArgumentException(SR.UnsupportedAttribute); 236throw new ArgumentException(SR.UnsupportedAttribute);
System\Windows\Automation\TextPattern.cs (1)
220throw new ArgumentException(SR.ScreenCoordinatesOutsideBoundingRect);
UIAutomationClientSideProviders (5)
MS\Internal\AutomationProxies\Accessible.cs (1)
1356throw new ArgumentException(SR.InvalidParameter);
MS\Internal\AutomationProxies\WindowsListView.cs (2)
825throw new ArgumentException(SR.InvalidParameter); 834throw new ArgumentException(SR.InvalidParameter);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1261throw new ArgumentException(name);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
210throw new ArgumentException(SR.InvalidParameter);
UIAutomationProvider (2)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (2)
182throw new ArgumentException(SR.Format(SR.GenericInvalidArgument, argName)); 190throw new ArgumentException(SR.GetResourceString(reason, null));
vbc (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
134throw new ArgumentException($"Request is over {MaximumRequestSize >> 20}MB in length");
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
134throw new ArgumentException($"Request is over {MaximumRequestSize >> 20}MB in length");
WindowsFormsIntegration (2)
System\Windows\Integration\PropertyMap.cs (1)
140throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.WFI_PropertyDoesntExist, propertyName, SourceObject.GetType().FullName));
System\Windows\Integration\WindowsFormsHost.cs (1)
317throw new ArgumentException(SR.Host_ChildCantBeTopLevelForm);