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

Search Results for

    Edit this page

    Method FromRaw

    | Edit this page View Source

    FromRaw(T*)

    Creates a TSelf from a raw pointer.

    Declaration
    public static abstract TSelf FromRaw(T* raw)
    Parameters
    Type Name Description
    T* raw

    The raw pointer specifying the target that the resulting TSelf will point to.

    Returns
    Type Description
    TSelf

    A TSelf that points to the same target as the specified raw pointer.

    Remarks

    If TSelf represents a non-nullable pointer type, then the raw pointer must not be null. If it is, an ArgumentNullException will be thrown. Otherwise, if TSelf represents a nullable pointer type, then the raw pointer may be null. If it is, then the resulting TSelf will represent a null pointer.

    The resulting TSelf will point to the same target as the specified raw pointer.

    Exceptions
    Type Condition
    ArgumentNullException

    raw is null and TSelf represents a non-nullable pointer type

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