DotNext by .NET Foundation and Contributors

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

 ReadOnlyValueReference<T>

Represents an immutable reference to the field.
public bool IsEmpty { get; }

Gets a value indicating that is reference is empty.

public T& modreq(System.Runtime.InteropServices.InAttribute) Value { get; }

Gets a reference to the field.

public ReadOnlyValueReference(object owner, ref T fieldRef)

Represents an immutable reference to the field.

public ReadOnlyValueReference(T[] array, int index)

Creates a reference to an array element.

public ReadOnlyValueReference(ref T staticFieldRef)

Creates a reference to a static field.

Determines whether the two references point to the same field.

public static Func<T> op_Explicit(ReadOnlyValueReference<T> reference)

Returns a getter for the memory location.

public static ReadOnlySpan<T> op_Implicit(ReadOnlyValueReference<T> reference)

Gets a span over the referenced value.

Determines whether the two references point to the different fields.

public bool Equals(ReadOnlyValueReference<T> reference)