DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.13.1" />

 Reference<TValue>

public struct Reference<TValue>
Provides a reference to the memory location.
public bool IsValid { get; }

Gets a value indicating that this reference is valid.

public Span<TValue> Span { get; }

Gets a span with the single element representing the underlying value.

public ref TValue Target { get; }

Gets a reference to the memory location where the value is stored.