PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Reflection­Type­Comparer Class / Reflection­Type­Comparer Methods / Reflection­Type­Comparer.​Get­Instance Method / Reflection­Type­Comparer.​Get­Instance Method (Type[], Type[], Type[], Type[])
ReflectionTypeComparer.GetInstance Method (Type[], Type[], Type[], Type[])
Gets an instance of ReflectionTypeComparer that performs substitution of generic parameters.

Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public static ReflectionTypeComparer GetInstance(
	Type[] leftGenericTypeParameters,
	Type[] leftGenericMethodParameters,
	Type[] rightGenericTypeParameters,
	Type[] rightGenericMethodParameters
)

Parameters

leftGenericTypeParameters
Type: System.Type[]
Array of types to be substituted to the generic type parameters of the left member.
leftGenericMethodParameters
Type: System.Type[]
Array of types to be substituted to the generic method parameters of the left member.
rightGenericTypeParameters
Type: System.Type[]
Array of types to be substituted to the generic type parameters of the right member.
rightGenericMethodParameters
Type: System.Type[]
Array of types to be substituted to the generic method parameters of the right member.

Return Value

Type: ReflectionTypeComparer
An instance of ReflectionTypeComparer.
See Also