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

Search Results for

    Method FromDelegate

    FromDelegate<TDelegate>(TDelegate?)

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

    Declaration
    public static NullableFunctionPointer<TDelegate> FromDelegate<TDelegate>(TDelegate? @delegate) where TDelegate : notnull, Delegate
    Parameters
    Type Name Description
    TDelegate delegate

    The delegate to create a NullableFunctionPointer<TDelegate> from.

    Returns
    Type Description
    NullableFunctionPointer<TDelegate>

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

    Type Parameters
    Name Description
    TDelegate

    The type of the delegate representing the signature of the target function that the resulting NullableFunctionPointer<TDelegate> will point to.

    Remarks

    The delegate pointer may be null. If it is, then the resulting NullableFunctionPointer<TDelegate> will represent a null pointer.

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