SemPtr SemPtr
SemPtr SemPtr
Documentation generated with DocFX
Using SingulinkFX as the template

Search Results for

    Method FromDelegate

    FromDelegate(TDelegate?)

    Creates a FunctionPointer<TDelegate> from a delegate of type TDelegate.

    Declaration
    public static FunctionPointer<TDelegate> FromDelegate(TDelegate? @delegate)
    Parameters
    Type Name Description
    TDelegate delegate

    The delegate to create a FunctionPointer<TDelegate> from.

    Returns
    Type Description
    FunctionPointer<TDelegate>

    A FunctionPointer<TDelegate> pointing to the target function represented by delegate.

    Implements
    ITypedFunctionPointer<TDelegate, TSelf>.FromDelegate(TDelegate?)
    Remarks

    The delegate must not be null. If it is, an ArgumentNullException will be thrown.

    Exceptions
    Type Condition
    ArgumentNullException

    delegate is null

    © 2026 Felix Rüdiger. SemPtr and its documentation are licensed under the MIT license.