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: 2023.0.3.0 (2023.0.3.0)
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: ReflectionTypeComparerAn instance of ReflectionTypeComparer.