Search Results for

    Show / Hide Table of Contents

    Delegate Func<T1, T2, TResult>

    Encapsulates a method that has one parameter and returns a value of the type specified by the TResult parameter.

    Namespace: System
    Assembly: mscorlib.dll
    Syntax
    public delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2)
    Parameters
    Type Name Description
    T1 arg1

    The first parameter of the method that this delegate encapsulates.

    T2 arg2

    The second parameter of the method that this delegate encapsulates.

    Returns
    Type Description
    TResult

    The return value of the method that this delegate encapsulates.

    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.

    TResult

    The 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.

    Constructors

    Func(object, IntPtr)

    Declaration
    public Func(object @object, IntPtr method)
    Parameters
    Type Name Description
    object object
    IntPtr method

    Methods

    BeginInvoke(T1, T2, AsyncCallback, object)

    Declaration
    public virtual IAsyncResult BeginInvoke(T1 arg1, T2 arg2, AsyncCallback callback, object @object)
    Parameters
    Type Name Description
    T1 arg1
    T2 arg2
    AsyncCallback callback
    object object
    Returns
    Type Description
    IAsyncResult

    EndInvoke(IAsyncResult)

    Declaration
    public virtual TResult EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    IAsyncResult result
    Returns
    Type Description
    TResult

    Invoke(T1, T2)

    Declaration
    public virtual TResult Invoke(T1 arg1, T2 arg2)
    Parameters
    Type Name Description
    T1 arg1
    T2 arg2
    Returns
    Type Description
    TResult

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In this article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX