Code Analysis Code Analysis
Code Analysis Code Analysis
DocFX + Singulink = ♥

Search Results for

    Class NonCopyable

    Provides the explicit move of a non-copyable value, and the check that a reference refers to something.

    Inheritance
    object
    NonCopyable
    Namespace: Singulink.CodeAnalysis
    Assembly: Singulink.CodeAnalysis.dll
    Syntax
    public static class NonCopyable

    Methods

    Name Description
    Move<T>(ref T)

    Takes the value out of a variable, a field or an array element and leaves the default value behind, so that the value can be handed on without a copy: stored in a field, passed by value, returned or awaited later.

    ThrowIfNullRefArgument<T>(ref readonly T, string?)

    Throws an ArgumentNullException that names the argument if a reference is a null reference, as NullRef<T>() makes one, and does nothing else.

    ThrowIfNullRef<T>(ref readonly T, string?)

    Throws a NullReferenceException if a reference is a null reference, as NullRef<T>() makes one, and does nothing else.

    © Singulink. All rights reserved.