PostSharpAPI ReferencePost­Sharp.​ReflectionReflection­Type­ComparerGet­Instance
Open sandboxFocus

ReflectionTypeComparer.GetInstance Method

GetInstance()

Gets an instance of ReflectionTypeComparer that does not perform substitution of generic parameters.

Declaration
public static ReflectionTypeComparer GetInstance()
Returns
Type Description
ReflectionTypeComparer

An instance of ReflectionTypeComparer.

GetInstance(Type[], Type[], Type[], Type[])

Gets an instance of ReflectionTypeComparer that performs substitution of generic parameters.

Declaration
public static ReflectionTypeComparer GetInstance(Type[] leftGenericTypeParameters, Type[] leftGenericMethodParameters, Type[] rightGenericTypeParameters, Type[] rightGenericMethodParameters)
Parameters
Type Name Description
System.Type[] leftGenericTypeParameters

Array of types to be substituted to the generic type parameters of the left member.

System.Type[] leftGenericMethodParameters

Array of types to be substituted to the generic method parameters of the left member.

System.Type[] rightGenericTypeParameters

Array of types to be substituted to the generic type parameters of the right member.

System.Type[] rightGenericMethodParameters

Array of types to be substituted to the generic method parameters of the right member.

Returns
Type Description
ReflectionTypeComparer

An instance of ReflectionTypeComparer.