PostSharp6.4//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: 6.4.11.0 (6.4.11.0)
Syntax
C#
public sealed class ReflectionTypeComparer : IEqualityComparer<Type>, 
	IEqualityComparer<Type[]>
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.
See Also