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

Search Results for

    Edit this page

    Method FromIntPtr

    | Edit this page View Source

    FromIntPtr(nint)

    Creates a TSelf from a memory address given as an nint.

    Declaration
    public static TSelf FromIntPtr(nint value)
    Parameters
    Type Name Description
    nint value

    The memory address to create a TSelf from.

    Returns
    Type Description
    TSelf

    A TSelf that points to the same memory address as the specified value.

    Remarks

    If TSelf represents a non-nullable pointer type, then the value pointer must not be 0. Otherwise, an ArgumentNullException will be thrown.

    Exceptions
    Type Condition
    ArgumentNullException

    value is 0 and TSelf represents a non-nullable pointer type

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