Namespace Singulink.CodeAnalysis
Classes
BorrowedAttribute
Marks the return value of a method that keeps the container that it returns, such as a list of non-copyable values that it reads from a field.
KeptAttribute
Marks a parameter whose container the method keeps: it stores the list, the task or the array that it is given in a field, an element or a property, captures it, or passes it on to something that keeps it.
MovedFromAttribute
Marks a ref parameter that the method takes the value out of, leaving a fresh value behind, as Move<T>(ref T) does.
NonCopyable
Provides the explicit move of a non-copyable value, and the check that a reference refers to something.
NonCopyableAttribute
Marks a struct that must not be copied, such as one that holds a lock or another resource that only one instance may own, or a type parameter whose values a generic type or method does not copy. The rules of the Singulink.CodeAnalysis.Analyzers package, which this package depends on, warn about code that copies a value of a marked type.
NotNullRefAttribute
Marks a ref, in, ref readonly or out parameter of a method that
returns only if the reference that it is given refers to something: given a null reference, as Unsafe.NullRef makes one, the method
throws.
RequiresCopyableAttribute
Marks a member of a generic type or a generic method that copies values of the type parameters that are marked with
NonCopyableAttribute, such as a ToArray method.