2 overrides of IsEquivalentTo
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
192public sealed override bool IsEquivalentTo([NotNullWhen(true)] Type? other) => throw new NotSupportedException(SR.NotSupported_SignatureType);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
270public override bool IsEquivalentTo([NotNullWhen(true)] Type? other)
21 references to IsEquivalentTo
Microsoft.Build (4)
Construction\ProjectElement.cs (2)
354ErrorUtilities.VerifyThrowArgument(GetType().IsEquivalentTo(element.GetType()), "CannotCopyFromElementOfThatType"); 507if (!clone.GetType().IsEquivalentTo(GetType()))
Construction\ProjectElementContainer.cs (1)
355ErrorUtilities.VerifyThrowArgument(GetType().IsEquivalentTo(element.GetType()), "CannotCopyFromElementOfThatType");
Construction\ProjectExtensionsElement.cs (1)
165ErrorUtilities.VerifyThrowArgument(GetType().IsEquivalentTo(element.GetType()), "CannotCopyFromElementOfThatType");
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ExprWithType.cs (1)
16protected static bool TypesAreEqual(Type t1, Type t2) => t1 == t2 || t1.IsEquivalentTo(t2);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
786if (agg.AssociatedSystemType.IsEquivalentTo(t.IsGenericType ? t.GetGenericTypeDefinition() : t))
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
CodeModel\AbstractCodeElementTests`1.vb (1)
457Assert.True(GetType(TInterface).IsEquivalentTo(defaultAttribute.Value))
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\ServiceContainer.cs (2)
177if (serviceType != null && serviceType.IsEquivalentTo(defaults[idx])) 254public bool Equals(Type? x, Type? y) => x!.IsEquivalentTo(y);
System\ComponentModel\MemberDescriptor.cs (1)
414if (result != null && !result.ReturnType.IsEquivalentTo(returnType))
System.Linq.Expressions (1)
System\Dynamic\Utils\TypeUtils.cs (1)
914public static bool AreEquivalent(Type? t1, Type? t2) => t1 != null && t1.IsEquivalentTo(t2);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
403if (GetType() != flag.GetType() && !GetType().IsEquivalentTo(flag.GetType())) 1635if (!valueType.IsEquivalentTo(rtType))
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
213if (!valueType.IsEquivalentTo(this)) 913Debug.Assert(type.IsEquivalentTo(value.GetType()));
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (1)
33if (!valueType.IsEquivalentTo(this))
src\System\RuntimeType.CoreCLR.cs (1)
2873if (returnType is not null && !returnType.IsEquivalentTo(firstCandidate.PropertyType))
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
272return _typeInfo.IsEquivalentTo(other);
System\Reflection\Context\Projection\ProjectingType.cs (1)
160return UnderlyingType.IsEquivalentTo(otherType.UnderlyingType);
System.Reflection.Emit (1)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
1082if (returnType is not null && !returnType.IsEquivalentTo(firstCandidate.PropertyType))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (1)
144if (!(returnType is null) && !returnType.IsEquivalentTo(firstCandidate.PropertyType))