Delen via


ISymbol.Equals(ISymbol, SymbolEqualityComparer) Method

Definition

Determines if this symbol is equal to another, according to the rules of the provided SymbolEqualityComparer

public bool Equals (Microsoft.CodeAnalysis.ISymbol? other, Microsoft.CodeAnalysis.SymbolEqualityComparer equalityComparer);
public bool Equals (Microsoft.CodeAnalysis.ISymbol other, Microsoft.CodeAnalysis.SymbolEqualityComparer equalityComparer);
abstract member Equals : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SymbolEqualityComparer -> bool
Public Function Equals (other As ISymbol, equalityComparer As SymbolEqualityComparer) As Boolean

Parameters

other
ISymbol

The other symbol to compare against

equalityComparer
SymbolEqualityComparer

The SymbolEqualityComparer to use when comparing symbols

Returns

True if the symbols are equivalent.

Applies to