This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

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.34.0 (5.0.34.0)
Syntax
C#
public sealed class ReflectionTypeComparer : IEqualityComparer<Type>, 
	IEqualityComparer<Type[]>

The ReflectionTypeComparer type exposes the following members.

Methods
  NameDescription
Public methodEquals(Type, Type)
Public methodEquals(Type[], Type[])
Public methodGetHashCode(Type)
Public methodGetHashCode(Type[])
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.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also