Table of Contents

Struct Ref<T>

Namespace
Misaki.HighPerformance.LowLevel
Assembly
Misaki.HighPerformance.LowLevel.dll
public ref struct Ref<T> : IEquatable<Ref<T>>

Type Parameters

T
Implements
Inherited Members

Constructors

Ref(ref T)

public Ref(ref T value)

Parameters

value T

Methods

Equals(Ref<T>)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Ref<T> other)

Parameters

other Ref<T>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

[Obsolete("Equals() on Ref will always throw an exception. Use the equality operator instead.")]
public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Get()

public ref T Get()

Returns

T

GetHashCode()

Returns the hash code for this instance.

[Obsolete("GetHashCode() on Ref will always throw an exception.")]
public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(Ref<T>, Ref<T>)

public static bool operator ==(Ref<T> left, Ref<T> right)

Parameters

left Ref<T>
right Ref<T>

Returns

bool

operator !=(Ref<T>, Ref<T>)

public static bool operator !=(Ref<T> left, Ref<T> right)

Parameters

left Ref<T>
right Ref<T>

Returns

bool