Open sandboxFocus

Method GetInstance

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
Type[] leftGenericTypeParameters

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

Type[] leftGenericMethodParameters

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

Type[] rightGenericTypeParameters

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

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.