Func<T1,T2,T3,T4,T5,T6,T7,TResult>Func<T1,T2,T3,T4,T5,T6,T7,TResult>Func<T1,T2,T3,T4,T5,T6,T7,TResult>Func<T1,T2,T3,T4,T5,T6,T7,TResult> Delegate

定义

``````generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename TResult>
public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);``````
``public delegate TResult Func<in T1,in T2,in T3,in T4,in T5,in T6,in T7,out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);``
``type Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Result> = delegate of 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 -> 'Result``
``Public Delegate Function Func(Of In T1, In T2, In T3, In T4, In T5, In T6, In T7, Out TResult)(arg1 As T1, arg2 As T2, arg3 As T3, arg4 As T4, arg5 As T5, arg6 As T6, arg7 As T7) As TResult ``

T1

T2

T3

T4

T5

T6

T7

TResult

arg1

arg2

arg3

arg4

arg5

arg6

arg7

返回值

TResult

Func<T1,T2,T3,T4,T5,T6,T7,TResult>Func<T1,T2,T3,T4,T5,T6,T7,TResult>Func<T1,T2,T3,T4,T5,T6,T7,TResult>Func<T1,T2,T3,T4,T5,T6,T7,TResult>

注解

Lambda 表达式的基础类型是一个泛型`Func`委托。The underlying type of a lambda expression is one of the generic `Func` delegates. 这样，可以将 lambda 表达式作为参数传递而无需显式将其分配给委托。This makes it possible to pass a lambda expression as a parameter without explicitly assigning it to a delegate.

扩展方法

 GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) 获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.