MetadataNameEqualityComparer<TSymbol> Class
Namespace: Roslynator
Assembly: Roslynator.Core.dll
Provides equality comparison for TSymbol by comparing ISymbol.MetadataName, metadata name of ISymbol.ContainingType(s) and metadata name of ISymbol.ContainingNamespace(s).
public sealed class MetadataNameEqualityComparer<TSymbol> : System.Collections.Generic.EqualityComparer<TSymbol> where TSymbol : Microsoft.CodeAnalysis.ISymbol
Type Parameters
TSymbol
Inheritance
Object → EqualityComparer<T> → MetadataNameEqualityComparer<TSymbol>
Implements
- IEqualityComparer
- IEqualityComparer<TSymbol>
Properties
Property | Summary |
---|---|
Instance | Get the instance of MetadataNameEqualityComparer<TSymbol> for the specified TSymbol. |
Methods
Method | Summary |
---|---|
Equals(Object) | (Inherited from Object) |
Equals(TSymbol, TSymbol) | When overridden in a derived class, determines whether two objects of type TSymbol are equal. (Overrides EqualityComparer<TSymbol>.Equals) |
GetHashCode() | (Inherited from Object) |
GetHashCode(TSymbol) | Serves as a hash function for the specified symbol. (Overrides EqualityComparer<TSymbol>.GetHashCode) |
GetType() | (Inherited from Object) |
MemberwiseClone() | (Inherited from Object) |
ToString() | (Inherited from Object) |