Method Equals
Equals(NativeReference<T>)
Returns true if the value stored in this reference is equal to the value stored in another reference.
Declaration
[ExcludeFromBurstCompatTesting("Equals boxes because Value does not implement IEquatable<T>")]
public bool Equals(NativeReference<T> other)
Parameters
Type | Name | Description |
---|---|---|
NativeReference<T> | other | A reference to compare with. |
Returns
Type | Description |
---|---|
bool | True if the value stored in this reference is equal to the value stored in another reference. |
Equals(object)
Returns true if the value stored in this reference is equal to an object.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed object")]
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare with. |
Returns
Type | Description |
---|---|
bool | True if the value stored in this reference is equal to the object. |
Overrides
Remarks
Can only be equal if the object is itself a NativeReference.