Class Type<T>.Method<T1, T2, T3, T4, T5>
Provides access to methods with five parameters declared in type T
.
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Method<T1, T2, T3, T4, T5>
Type Parameters
Name | Description |
---|---|
T1 | Type of first method parameter. |
T2 | Type of second method parameter. |
T3 | Type of third method parameter. |
T4 | Type of fourth method parameter. |
T5 | Type of fifth method parameter. |
Methods
| Improve this Doc View SourceGet(String, Boolean)
Reflects instance method with five parameters and without return type as delegate type Action<T1,T2,T3,T4,T5,T6>.
Declaration
public static Method<Action<T, T1, T2, T3, T4, T5>> Get(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Action<T, T1, T2, T3, T4, T5>> | The reflected method; otherwise, null if method doesn't exist. |
Get<TResult>(String, Boolean)
Reflects instance method with five parameters as delegate type Func<T1,T2,T3,T4,T5,T6,TResult>.
Declaration
public static Method<Func<T, T1, T2, T3, T4, T5, TResult>> Get<TResult>(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Func<T, T1, T2, T3, T4, T5, TResult>> | The reflected method; otherwise, null if method doesn't exist. |
Type Parameters
Name | Description |
---|---|
TResult | The method return type. |
GetStatic(String, Boolean)
Reflects static method with five parameters and without return type as delegate type Action<T1,T2,T3,T4,T5>.
Declaration
public static Method<Action<T1, T2, T3, T4, T5>> GetStatic(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Action<T1, T2, T3, T4, T5>> | The reflected method; otherwise, null if method doesn't exist. |
GetStatic<TResult>(String, Boolean)
Reflects static method with five parameters as delegate type Func<T1,T2,T3,T4,T5,TResult>.
Declaration
public static Method<Func<T1, T2, T3, T4, T5, TResult>> GetStatic<TResult>(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Func<T1, T2, T3, T4, T5, TResult>> | The reflected method; otherwise, null if method doesn't exist. |
Type Parameters
Name | Description |
---|---|
TResult | The method return type. |
Require(String, Boolean)
Reflects instance method with five parameters and without return type as delegate type Action<T1,T2,T3,T4,T5,T6>.
Declaration
public static Method<Action<T, T1, T2, T3, T4, T5>> Require(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Action<T, T1, T2, T3, T4, T5>> | The reflected method. |
Exceptions
Type | Condition |
---|---|
MissingMethodException | The requested method doesn't exist. |
Require<TResult>(String, Boolean)
Reflects instance method with five parameters as delegate type Func<T1,T2,T3,T4,T5,T6,TResult>.
Declaration
public static Method<Func<T, T1, T2, T3, T4, T5, TResult>> Require<TResult>(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Func<T, T1, T2, T3, T4, T5, TResult>> | The reflected method. |
Type Parameters
Name | Description |
---|---|
TResult | The method return type. |
Exceptions
Type | Condition |
---|---|
MissingMethodException | The requested method doesn't exist. |
RequireStatic(String, Boolean)
Reflects static method with five parameters and without return type as delegate type Action<T1,T2,T3,T4,T5>.
Declaration
public static Method<Action<T1, T2, T3, T4, T5>> RequireStatic(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Action<T1, T2, T3, T4, T5>> | The reflected method. |
Exceptions
Type | Condition |
---|---|
MissingMethodException | The requested method doesn't exist. |
RequireStatic<TResult>(String, Boolean)
Reflects static method with five parameters as delegate type Func<T1,T2,T3,T4,T5,TResult>.
Declaration
public static Method<Func<T1, T2, T3, T4, T5, TResult>> RequireStatic<TResult>(string methodName, bool nonPublic = false)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method. |
Boolean | nonPublic | true to reflect non-public method. |
Returns
Type | Description |
---|---|
Method<Func<T1, T2, T3, T4, T5, TResult>> | The reflected method. |
Type Parameters
Name | Description |
---|---|
TResult | The method return type. |
Exceptions
Type | Condition |
---|---|
MissingMethodException | The requested method doesn't exist. |