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

Search Results for

    Method FromDelegate

    FromDelegate(TDelegate?)

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

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

    The delegate to create a NullablePersistentFunctionPointer<TDelegate> from.

    Returns
    Type Description
    NullablePersistentFunctionPointer<TDelegate>

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

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

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

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