Skip to main content

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

Properties

PropertySummary
InstanceGet the instance of MetadataNameEqualityComparer<TSymbol> for the specified TSymbol.

Methods

MethodSummary
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)