Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Reflection­Type­Comparer Class

ReflectionTypeComparer Class

Comparer of reflection types (Type) based on content, not reference. Supports the unbound generic parameters derived from the [!:GenericArg] class.
Inheritance Hierarchy
System.Object
  PostSharp.Reflection.ReflectionTypeComparer

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.39.0 (5.0.39.0)
Syntax
C#
public sealed class ReflectionTypeComparer : IEqualityComparer<Type>, 
	IEqualityComparer<Type[]>

The ReflectionTypeComparer type exposes the following members.

Methods
  NameDescription
Public methodEquals(Type, Type)
Determines whether the specified objects are equal.
Public methodEquals(Type[], Type[])
Determines whether the specified objects are equal.
Public methodGetHashCode(Type)
Returns a hash code for the specified object.
Public methodGetHashCode(Type[])
Returns a hash code for the specified object.
Public methodStatic memberGetInstance()
Gets an instance of ReflectionTypeComparer that does not perform substitution of generic parameters.
Public methodStatic memberGetInstance(Type[], Type[], Type[], Type[])
Gets an instance of ReflectionTypeComparer that performs substitution of generic parameters.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also