179 references to ArgumentException
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ToolArgumentException.cs (1)
22internal ToolArgumentException() : base()
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\CustomAttributeProvider.cs (1)
50throw ExceptionHelper.AsError(new ArgumentException());
ToolArgumentException.cs (1)
20internal ToolArgumentException() : base()
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
IdeCoreBenchmarks (4)
CSharpIdeAnalyzerBenchmarks.cs (1)
41throw new ArgumentException();
FormatterBenchmarks.cs (1)
34throw new ArgumentException();
IncrementalAnalyzerBenchmarks.cs (1)
40throw new ArgumentException();
RenameBenchmarks.cs (1)
32throw new ArgumentException();
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
102throw new ArgumentException();
Microsoft.Build.Engine.UnitTests (2)
BackEnd\EventSourceSink_Tests.cs (1)
96exceptionList.Add(new ArgumentException());
BackEnd\TargetResult_Tests.cs (1)
65TargetResult result = new TargetResult(new TaskItem[] { item }, BuildResultUtilities.GetStopWithErrorResult(new ArgumentException()));
Microsoft.Build.Framework (2)
ImmutableSegmentedList`1.cs (1)
346throw new ArgumentException();
ImmutableSegmentedList`1+ValueBuilder.cs (1)
249throw new ArgumentException();
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
48_ => throw new ArgumentException(),
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.Collections.Package (2)
Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.QueryUnboundLambdaState.cs (1)
55public override TypeWithAnnotations ParameterTypeWithAnnotations(int index) { throw new ArgumentException(); } // implicitly typed
Symbols\ReducedExtensionMethodSymbol.cs (1)
266throw new System.ArgumentException();
Utilities\ValueSetFactory.BoolValueSet.cs (1)
41ConstantValue IValueSet.Sample => ConstantValue.Create(_hasTrue ? true : _hasFalse ? false : throw new ArgumentException());
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
52if (IsEmpty) throw new ArgumentException();
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
56throw new ArgumentException();
Utilities\ValueSetFactory.NintValueSet.cs (1)
53throw new ArgumentException();
Utilities\ValueSetFactory.NuintValueSet.cs (1)
44throw new ArgumentException();
Utilities\ValueSetFactory.NumericValueSet.cs (1)
61throw new ArgumentException();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpStructuredTriviaFormatEngine.cs (1)
22var root = trivia.GetStructure() ?? throw new ArgumentException();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpStructuredTriviaFormatEngine.cs (1)
22var root = trivia.GetStructure() ?? throw new ArgumentException();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrModuleInstance.cs (1)
53throw new ArgumentException();
Microsoft.CodeAnalysis.Extensions.Package (3)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\OperationTestAnalyzer.cs (1)
1404throw new ArgumentException();
Microsoft.CodeAnalysis.Threading.Package (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
Microsoft.CodeAnalysis.UnitTests (1)
InternalUtilities\StreamExtensionsTests.cs (1)
55throw new ArgumentException();
Microsoft.CodeAnalysis.VisualBasic (5)
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
51Throw New ArgumentException()
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
64Throw New ArgumentException()
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
56Throw New ArgumentException()
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
42Throw New ArgumentException()
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
40Throw New ArgumentException()
Microsoft.CodeAnalysis.Workspaces (6)
Log\HistogramLogAggregator.cs (1)
25throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
608throw new ArgumentException();
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\AsyncLazyTests.cs (1)
277var exception = new ArgumentException();
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (2)
156throw new ArgumentException(); 160throw new ArgumentException();
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarFile.cs (1)
91throw new ArgumentException();
Microsoft.DotNet.XUnitAssert.Tests (8)
ExceptionAssertsTests.cs (8)
41 void testCode() => throw new ArgumentException(); 124 object testCode() => throw new ArgumentException(); 197 void testCode() => throw new ArgumentException(); 277 object testCode() => throw new ArgumentException(); 524 void testCode() => throw new ArgumentException(); 594 object testCode() => throw new ArgumentException(); 654 Task testCode() => throw new ArgumentException(); 713 Task testCode() => throw new ArgumentException();
Microsoft.Extensions.AI.Evaluation.Console.Tests (1)
ExceptionUtilitiesTests.cs (1)
77var exception = new AggregateException(new InvalidOperationException(), new ArgumentException());
Microsoft.Maui.Controls.Build.Tasks (3)
ExpandMarkupsVisitor.cs (2)
122 throw new ArgumentException(); 130 throw new ArgumentException();
NodeILExtensions.cs (1)
364 throw new ArgumentException();
Microsoft.Maui.Controls.Xaml (6)
ExpandMarkupsVisitor.cs (1)
127 throw new ArgumentException();
MarkupExpressionParser.cs (1)
239 throw new ArgumentException();
MarkupExtensions\AppThemeBindingExtension.cs (1)
58 var valueProvider = serviceProvider?.GetService<IProvideValueTarget>() ?? throw new ArgumentException();
MarkupExtensions\OnIdiomExtension.cs (1)
43 var valueProvider = serviceProvider?.GetService<IProvideValueTarget>() ?? throw new ArgumentException();
MarkupExtensions\OnPlatformExtension.cs (1)
55 var valueProvider = serviceProvider?.GetService<IProvideValueTarget>() ?? throw new ArgumentException();
XamlServiceProvider.cs (1)
155 throw new ArgumentException();
Microsoft.ML.AutoML (2)
SweepableEstimator\MultiModelPipeline.cs (1)
167throw new ArgumentException();
SweepableEstimator\SweepablePipeline.cs (1)
227throw new ArgumentException();
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
1969Throw New ArgumentException
Microsoft.VisualBasic.Tests (3)
Microsoft\VisualBasic\Logging\LogTests.cs (3)
28log.WriteException(new ArgumentException()); 29log.WriteException(new ArgumentException(), severity: TraceEventType.Warning, additionalInfo: "AdditionalInfo"); 30log.WriteException(new ArgumentException(), severity: TraceEventType.Warning, additionalInfo: "AdditionalInfo", id: 6);
Microsoft.VisualStudio.LanguageServices (1)
NavigationBar\NavigationBarClient.cs (1)
87throw new ArgumentException();
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
853throw new ArgumentException(); 922throw new ArgumentException(); 3057throw new ArgumentException();
PresentationCore (4)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
450throw new ArgumentException();
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
300throw new ArgumentException ();
MS\Internal\WpfWebRequestHelper.cs (2)
183throw new ArgumentException(); 200throw new ArgumentException();
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpStructuredTriviaFormatEngine.cs (1)
22var root = trivia.GetStructure() ?? throw new ArgumentException();
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
719throw new FaultException<ArgumentException>(new ArgumentException());
System.Collections.Immutable (1)
Validation\Requires.cs (1)
129throw new ArgumentException();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (1)
73throw new ArgumentException();
System.Diagnostics.Process (1)
System\Collections\Specialized\StringDictionaryWrapper.cs (1)
39throw new ArgumentException();
System.IO.Ports (5)
System\IO\Ports\SerialStream.Unix.cs (5)
285throw new ArgumentException(); 302throw new ArgumentException(); 320throw new ArgumentException(); 337throw new ArgumentException(); 624throw new ArgumentException();
System.Linq.Expressions (2)
System\Dynamic\Utils\ListArgumentProvider.cs (1)
100throw new ArgumentException();
System\Linq\Expressions\BlockExpression.cs (1)
773throw new ArgumentException();
System.Private.CoreLib (4)
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
72throw new ArgumentException();
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
25throw new ArgumentException();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
823throw new ArgumentException();
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
1530throw new ArgumentException();
System.Private.Windows.Core.Tests (2)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
200NotSupportedException value = new("Error message", new ArgumentException()); 208NotSupportedException value = new("Error message", new ArgumentException());
System.Reflection.Context (1)
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertyGetter.cs (1)
35throw new ArgumentException();
System.Reflection.Metadata (1)
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
72throw new ArgumentException();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Helpers.cs (1)
358throw new ArgumentException();
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\PemKeyHelpers.Factory.cs (2)
81throw new ArgumentException(); 146throw new ArgumentException();
System\Security\Cryptography\PemKeyHelpers.cs (2)
147throw new ArgumentException(); 233throw new ArgumentException();
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\AttributeSortOrder.cs (1)
19throw new ArgumentException();
System\Security\Cryptography\Xml\NamespaceSortOrder.cs (1)
18throw new ArgumentException();
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
348throw new ArgumentException();
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
251throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
57throw new ArgumentException(); 60throw new ArgumentException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
33throw new ArgumentException();