14 overrides of Equals
Microsoft.CodeAnalysis.VisualBasic (14)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
115Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\ArrayTypeSymbol.vb (1)
318Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\ErrorTypeSymbol.vb (1)
390Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\IndexedTypeParameterSymbol.vb (1)
99Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\InstanceErrorTypeSymbol.vb (1)
264Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\InstanceTypeSymbol.vb (1)
135Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\ReducedExtensionMethodSymbol.vb (1)
798Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\Source\CrefTypeParameterSymbol.vb (1)
116Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
642Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutableTypeParameterSymbol.vb (1)
21Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutedNamedType.vb (1)
515Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutedTypeParameterSymbol.vb (1)
169Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\Tuples\TupleTypeSymbol.vb (1)
970Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\UnboundGenericType.vb (1)
287Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
24 references to Equals
Microsoft.CodeAnalysis.VisualBasic (20)
Compilation\VisualBasicCompilation.vb (3)
2957leftType.Equals(rightType, TypeCompareKind.ConsiderEverything) AndAlso 2958leftType.Equals(returnType, TypeCompareKind.ConsiderEverything) Then 3029returnType.Equals(operandType, TypeCompareKind.ConsiderEverything) Then
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
210conversion.Type.GetNullableUnderlyingType().Equals(conversion.Operand.Type, TypeCompareKind.AllIgnoreOptionsForVB)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
99If Not myFields(i).Type.Equals(otherFields(i).Type, compareKind) Then
Symbols\ArrayTypeSymbol.vb (1)
327If other Is Nothing OrElse Not other.HasSameShapeAs(Me) OrElse Not other.ElementType.Equals(ElementType, compareKind) Then
Symbols\InstanceErrorTypeSymbol.vb (1)
174Return other.Equals(Me, comparison)
Symbols\InstanceTypeSymbol.vb (1)
155Return other.Equals(Me, comparison)
Symbols\PointerTypeSymbol.vb (1)
62Return other IsNot Nothing AndAlso other._pointedAtType.Equals(_pointedAtType, comparison) AndAlso
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2212Debug.Assert(DirectCast(argument.TypeInternal, TypeSymbol).Equals(DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything))
Symbols\SubstitutableTypeParameterSymbol.vb (1)
36Return other.Equals(Me, comparison)
Symbols\SubstitutedErrorType.vb (2)
275Not containingType.Equals(obj.ContainingType, comparison) Then 291If Not arguments(i).Equals(otherArguments(i), comparison) Then
Symbols\SubstitutedNamedType.vb (2)
541Not containingType.Equals(other.ContainingType, comparison) Then 558If Not arguments(i).Equals(otherArguments(i), comparison) Then
Symbols\Tuples\TupleTypeSymbol.vb (1)
985If Not Me.TupleUnderlyingType.Equals(obj.GetTupleUnderlyingTypeOrSelf(), comparison) Then
Symbols\TypeSymbol.vb (3)
335Return If(left?.Equals(right, comparison), right Is Nothing) 339Return Equals(TryCast(obj, TypeSymbol), TypeCompareKind.ConsiderEverything) 343Return Equals(TryCast(other, TypeSymbol), compareKind)
Symbols\UnboundGenericType.vb (1)
296Return other IsNot Nothing AndAlso other.GetType() = Me.GetType() AndAlso other.OriginalDefinition.Equals(OriginalDefinition, comparison)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
CodeGen\CodeGenTuples.vb (4)
23189Assert.True(type.Equals(underlyingType, TypeCompareKind.AllIgnoreOptions)) 23190Assert.True(underlyingType.Equals(type, TypeCompareKind.AllIgnoreOptions)) 23191Assert.False(type.Equals(underlyingType, TypeCompareKind.ConsiderEverything)) 23192Assert.False(underlyingType.Equals(type, TypeCompareKind.ConsiderEverything))