Delegate Func<T1, T2, TResult>
- Namespace
- System
- Assembly
- mscorlib.dll
Encapsulates a method that has one parameter and returns a value of the type specified by the TResult parameter.
public delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2)
Parameters
arg1T1The first parameter of the method that this delegate encapsulates.
arg2T2The second parameter of the method that this delegate encapsulates.
Returns
- TResult
The return value of the method that this delegate encapsulates.
Type Parameters
T1The type of the parameter of the method that this delegate encapsulates.
T2The type of the parameter of the method that this delegate encapsulates.
TResultThe type of the return value of the method that this delegate encapsulates. This type parameter is covariant.That is, you can use either the type you specified or any type that is more derived.For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
- Extension Methods
Constructors
Func(object, IntPtr)
public Func(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(T1, T2, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(T1 arg1, T2 arg2, AsyncCallback callback, object @object)
Parameters
arg1T1arg2T2callbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual TResult EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
- TResult
Invoke(T1, T2)
public virtual TResult Invoke(T1 arg1, T2 arg2)
Parameters
arg1T1arg2T2
Returns
- TResult