GenericMethodInfoHelper Class
Namespace: PTS.Reflection
Assembly: PTS.Reflection.dll
Provides a set of static methods for generic type methods.
Syntax
public static class GenericMethodInfoHelper
Inheritance
Methods
Info<T1, TReturn>(Func<T1, TReturn>, T1)
Gets the method information for specified generic type variant.
Declaration
public static MethodInfo Info<T1, TReturn>(Func<T1, TReturn> f, T1 unused1)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method metadata for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
Info<T1, T2, TReturn>(Func<T1, T2, TReturn>, T1, T2)
Gets the method information for specified generic type variant.
Declaration
public static MethodInfo Info<T1, T2, TReturn>(Func<T1, T2, TReturn> f, T1 unused1, T2 unused2)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method metadata for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
Info<T1, T2, T3, TReturn>(Func<T1, T2, T3, TReturn>, T1, T2, T3)
Gets the method information for specified generic type variant.
Declaration
public static MethodInfo Info<T1, T2, T3, TReturn>(this Func<T1, T2, T3, TReturn> f, T1 unused1, T2 unused2, T3 unused3)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method metadata for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
Info<T1, T2, T3, T4, TReturn>(Func<T1, T2, T3, T4, TReturn>, T1, T2, T3, T4)
Gets the method information for specified generic type variant.
Declaration
public static MethodInfo Info<T1, T2, T3, T4, TReturn>(Func<T1, T2, T3, T4, TReturn> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
T4 | unused4 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method metadata for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
T4 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
Info<T1, T2, T3, T4, T5, TReturn>(Func<T1, T2, T3, T4, T5, TReturn>, T1, T2, T3, T4, T5)
Gets the method information for specified generic type variant.
Declaration
public static MethodInfo Info<T1, T2, T3, T4, T5, TReturn>(Func<T1, T2, T3, T4, T5, TReturn> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4, T5 unused5)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
T4 | unused4 | Ignored parameter used for method type paramenter inference. |
T5 | unused5 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method metadata for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
T4 | The type of the parameter of the method that this delegate encapsulates. |
T5 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
Info<T1, T2, T3, T4, T5, T6, TReturn>(Func<T1, T2, T3, T4, T5, T6, TReturn>, T1, T2, T3, T4, T5, T6)
Gets the method information for specified generic type variant.
Declaration
public static MethodInfo Info<T1, T2, T3, T4, T5, T6, TReturn>(Func<T1, T2, T3, T4, T5, T6, TReturn> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4, T5 unused5, T6 unused6)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
T4 | unused4 | Ignored parameter used for method type paramenter inference. |
T5 | unused5 | Ignored parameter used for method type paramenter inference. |
T6 | unused6 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method metadata for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
T4 | The type of the parameter of the method that this delegate encapsulates. |
T5 | The type of the parameter of the method that this delegate encapsulates. |
T6 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
ToGeneric<T1, TReturn>(Func<T1, TReturn>, T1)
Gets the method generic type definition for specified generic type variant.
Declaration
public static MethodInfo ToGeneric<T1, TReturn>(Func<T1, TReturn> f, T1 unused1)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method generic type definition for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
ToGeneric<T1, T2, TReturn>(Func<T1, T2, TReturn>, T1, T2)
Gets the method generic type definition for specified generic type variant.
Declaration
public static MethodInfo ToGeneric<T1, T2, TReturn>(Func<T1, T2, TReturn> f, T1 unused1, T2 unused2)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method generic type definition for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
ToGeneric<T1, T2, T3, TReturn>(Func<T1, T2, T3, TReturn>, T1, T2, T3)
Gets the method generic type definition for specified generic type variant.
Declaration
public static MethodInfo ToGeneric<T1, T2, T3, TReturn>(this Func<T1, T2, T3, TReturn> f, T1 unused1, T2 unused2, T3 unused3)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method generic type definition for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
ToGeneric<T1, T2, T3, T4, TReturn>(Func<T1, T2, T3, T4, TReturn>, T1, T2, T3, T4)
Gets the method generic type definition for specified generic type variant.
Declaration
public static MethodInfo ToGeneric<T1, T2, T3, T4, TReturn>(Func<T1, T2, T3, T4, TReturn> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
T4 | unused4 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method generic type definition for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
T4 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
ToGeneric<T1, T2, T3, T4, T5, TReturn>(Func<T1, T2, T3, T4, T5, TReturn>, T1, T2, T3, T4, T5)
Gets the method generic type definition for specified generic type variant.
Declaration
public static MethodInfo ToGeneric<T1, T2, T3, T4, T5, TReturn>(Func<T1, T2, T3, T4, T5, TReturn> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4, T5 unused5)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
T4 | unused4 | Ignored parameter used for method type paramenter inference. |
T5 | unused5 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method generic type definition for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
T4 | The type of the parameter of the method that this delegate encapsulates. |
T5 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |
ToGeneric<T1, T2, T3, T4, T5, T6, TReturn>(Func<T1, T2, T3, T4, T5, T6, TReturn>, T1, T2, T3, T4, T5, T6)
Gets the method generic type definition for specified generic type variant.
Declaration
public static MethodInfo ToGeneric<T1, T2, T3, T4, T5, T6, TReturn>(Func<T1, T2, T3, T4, T5, T6, TReturn> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4, T5 unused5, T6 unused6)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, TReturn> | f | Method to get the member information object for. |
T1 | unused1 | Ignored parameter used for method type paramenter inference. |
T2 | unused2 | Ignored parameter used for method type paramenter inference. |
T3 | unused3 | Ignored parameter used for method type paramenter inference. |
T4 | unused4 | Ignored parameter used for method type paramenter inference. |
T5 | unused5 | Ignored parameter used for method type paramenter inference. |
T6 | unused6 | Ignored parameter used for method type paramenter inference. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | Method generic type definition for specified generic type variant. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the parameter of the method that this delegate encapsulates. |
T2 | The type of the parameter of the method that this delegate encapsulates. |
T3 | The type of the parameter of the method that this delegate encapsulates. |
T4 | The type of the parameter of the method that this delegate encapsulates. |
T5 | The type of the parameter of the method that this delegate encapsulates. |
T6 | The type of the parameter of the method that this delegate encapsulates. |
TReturn | The type of the return value of the method that this delegate encapsulates. |