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