NullableRef<T> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A struct
that can store an optional reference to a value of a specified type.
public readonly ref struct NullableRef<T>
type NullableRef<'T> = struct
Public Structure NullableRef(Of T)
Type Parameters
- T
The type of value to reference.
- Inheritance
-
NullableRef<T>
Constructors
NullableRef<T>(T) |
Initializes a new instance of the NullableRef<T> struct. |
Properties
HasValue |
Gets a value indicating whether or not the current NullableRef<T> instance wraps a valid reference that can be accessed. |
Null |
Gets a NullableRef<T> instance representing a |
Value |
Gets the |
Operators
Explicit(NullableRef<T> to T) |
Explicitly gets the |
Implicit(Ref<T> to NullableRef<T>) |