16 instantiations of AmbiguousMatchException
Microsoft.Build (1)
Instance\TaskFactoryWrapper.cs (1)
199throw new AmbiguousMatchException();
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationTestDataExtensions.cs (1)
70throw new AmbiguousMatchException(
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (1)
2577Return New AmbiguousMatchException(message)
System.Linq.Expressions (1)
System\Linq\Expressions\Error.cs (1)
40return new AmbiguousMatchException(Strings.AmbiguousMatchInExpandoObject(p0));
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (3)
692return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_MemberInfo, declaringType, memberInfo)); 697return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_Attribute, attribute)); 702return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_CustomAttributeData, customAttributeData));
System.Reflection.Context (1)
System\Reflection\Context\Custom\CustomType.cs (1)
273throw new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_MemberInfo, declaringType, match));
System.Reflection.Emit (5)
System\Reflection\Emit\TypeBuilderImpl.cs (5)
836throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, method.DeclaringType, method.Name)); 874throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, fieldInfo.DeclaringType, fieldInfo.Name)); 962throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, interfaceType.DeclaringType, interfaceType.Name)); 1078throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, firstCandidate.DeclaringType, firstCandidate.Name)); 1165throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, type.DeclaringType, type.Name));
System.Reflection.MetadataLoadContext (2)
System\ThrowHelper.cs (2)
16return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_RoDefinitionType, roDefinitionType.FullName)); 22return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_MemberInfo, declaringType, memberInfo));
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
114throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MultipleEventInterfaceAttributes, interfaceAttribute));
51 references to AmbiguousMatchException
Microsoft.AspNetCore.Components.Tests (1)
ComponentFactoryTest.cs (1)
180Assert.Throws<AmbiguousMatchException>(
Microsoft.Build (2)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1112catch (AmbiguousMatchException)
ExceptionHandling.cs (1)
256|| e is AmbiguousMatchException // thrown when binding to a member results in more than one member matching the binding criteria
Microsoft.Build.Engine.OM.UnitTests (1)
ExceptionHandling.cs (1)
256|| e is AmbiguousMatchException // thrown when binding to a member results in more than one member matching the binding criteria
Microsoft.Build.Tasks.Core (1)
ExceptionHandling.cs (1)
256|| e is AmbiguousMatchException // thrown when binding to a member results in more than one member matching the binding criteria
Microsoft.Build.Utilities.Core (1)
ExceptionHandling.cs (1)
256|| e is AmbiguousMatchException // thrown when binding to a member results in more than one member matching the binding criteria
Microsoft.Maui.Controls (7)
Interactivity\PropertyCondition.cs (2)
44 catch (AmbiguousMatchException e) 74 catch (AmbiguousMatchException e)
Setter.cs (2)
41 catch (AmbiguousMatchException e) 51 catch (AmbiguousMatchException e)
StyleSheets\Style.cs (2)
106 catch (AmbiguousMatchException e) 116 catch (AmbiguousMatchException e)
TypeConversionHelper.cs (1)
116 catch (AmbiguousMatchException)
Microsoft.Maui.Controls.Xaml (12)
ApplyPropertiesVisitor.cs (3)
481 catch (AmbiguousMatchException) 595 catch (AmbiguousMatchException e) 700 catch (AmbiguousMatchException e)
MarkupExtensionParser.cs (3)
78 catch (AmbiguousMatchException e) 89 catch (AmbiguousMatchException e) 104 catch (AmbiguousMatchException e)
MarkupExtensions\AppThemeBindingExtension.cs (2)
87 catch (AmbiguousMatchException e) 97 catch (AmbiguousMatchException e)
MarkupExtensions\OnIdiomExtension.cs (2)
82 catch (AmbiguousMatchException e) 92 catch (AmbiguousMatchException e)
MarkupExtensions\OnPlatformExtension.cs (2)
104 catch (AmbiguousMatchException e) 114 catch (AmbiguousMatchException e)
MSBuild (1)
ExceptionHandling.cs (1)
256|| e is AmbiguousMatchException // thrown when binding to a member results in more than one member matching the binding criteria
MSBuildTaskHost (1)
ExceptionHandling.cs (1)
256|| e is AmbiguousMatchException // thrown when binding to a member results in more than one member matching the binding criteria
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
392[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AmbiguousMatchException))]
netstandard (1)
netstandard.cs (1)
1359[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AmbiguousMatchException))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
1943catch (AmbiguousMatchException)
PresentationFramework (6)
System\Windows\Data\ObjectDataProvider.cs (1)
539catch (AmbiguousMatchException ame)
System\Windows\Markup\BamlReader.cs (1)
999catch (AmbiguousMatchException)
System\Windows\Markup\XamlTypeMapper.cs (2)
877catch (AmbiguousMatchException) 1943catch (AmbiguousMatchException)
System\Windows\PropertyPath.cs (2)
661catch (AmbiguousMatchException) 679catch (AmbiguousMatchException)
System.ComponentModel.Composition (1)
Microsoft\Internal\ReflectionServices.cs (1)
115catch (AmbiguousMatchException)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ComponentResourceManager.cs (1)
187catch (AmbiguousMatchException)
System.Linq.Expressions (3)
System\Linq\Expressions\Error.cs (1)
38internal static AmbiguousMatchException AmbiguousMatchInExpandoObject(object? p0)
System\Linq\Expressions\UnaryExpression.cs (2)
743/// <exception cref="AmbiguousMatchException">More than one method that matches the <paramref name="method"/> description was found.</exception> 783/// <exception cref="AmbiguousMatchException">More than one method that matches the <paramref name="method"/> description was found.</exception>
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\UnsafeAccessorAttribute.cs (1)
60/// is attempted. If an ambiguity still exists <see cref="System.Reflection.AmbiguousMatchException" /> is thrown.
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
191catch (AmbiguousMatchException)
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (3)
689internal static AmbiguousMatchException GetAmbiguousMatchException(MemberInfo memberInfo) 695internal static AmbiguousMatchException GetAmbiguousMatchException(Attribute attribute) 700internal static AmbiguousMatchException GetAmbiguousMatchException(CustomAttributeData customAttributeData)
System.Private.Windows.Core.TestUtilities (1)
TestAccessor.cs (1)
109catch (AmbiguousMatchException)
System.Reflection (1)
System.Reflection.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AmbiguousMatchException))]
System.Reflection.MetadataLoadContext (2)
System\ThrowHelper.cs (2)
14internal static AmbiguousMatchException GetAmbiguousMatchException(RoDefinitionType roDefinitionType) 19internal static AmbiguousMatchException GetAmbiguousMatchException(MemberInfo memberInfo)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
421[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AmbiguousMatchException))]