PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model.​Binding Namespace / Type­Comparer Class

TypeComparer Class

Compares types (IType) using equivalence rules.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Binding.TypeComparer

Namespace:  PostSharp.Sdk.CodeModel.Binding
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public sealed class TypeComparer : IEqualityComparer<ITypeSignature>, 
	IEqualityComparer<TypeSignature>, IEqualityComparer<IList<ITypeSignature>>, 
	IEqualityComparer

The TypeComparer type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(Object, Object)
Determines whether the specified objects are equal.
Public methodEquals(ITypeSignature, ITypeSignature)
Determines whether the specified objects are equal.
Public methodEquals(IList<ITypeSignature>, IList<ITypeSignature>)
Determines whether the specified objects are equal.
Public methodEquals(TypeSignature, TypeSignature)
Determines whether the specified objects are equal.
Public methodGetHashCode()
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHashCode(Object)
Returns a hash code for the specified object.
Public methodGetHashCode(ITypeSignature)
Returns a hash code for the specified object.
Public methodGetHashCode(IList<ITypeSignature>)
Returns a hash code for the specified object.
Public methodGetHashCode(TypeSignature)
Returns a hash code for the specified object.
Public methodStatic memberGetInstance
Gets a singleton instance of TypeComparer.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also