Struct Ref<T>
- Namespace
- Misaki.HighPerformance.LowLevel
- Assembly
- Misaki.HighPerformance.LowLevel.dll
public ref struct Ref<T> : IEquatable<Ref<T>>
Type Parameters
T
- Implements
-
IEquatable<Ref<T>>
- Inherited Members
Constructors
Ref(ref T)
public Ref(ref T value)
Parameters
valueT
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
otherRef<T>An object to compare with this object.
Returns
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
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
Returns
operator !=(Ref<T>, Ref<T>)
public static bool operator !=(Ref<T> left, Ref<T> right)