Documentation

Unity Engine

Download Unity

Unity Engine

Equals

Returns true if this list and another list are equal.
Read time 2 minutesLast updated 5 hours ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Equals(FixedList32Bytes<T>)

Returns true if this list and another list are equal.
public readonly bool Equals(FixedList32Bytes<T> other)

Parameters

The list to compare for equality.

Returns

Type

Description

boolTrue if the two lists are equal.

Remarks

Two lists are equal if their length and bytes are equal.

Equals(FixedList64Bytes<T>)

Returns true if this list and another list are equal.
public readonly bool Equals(FixedList64Bytes<T> other)

Parameters

The list to compare for equality.

Returns

Type

Description

boolTrue if the two lists are equal.

Remarks

Two lists are equal if their length and bytes are equal.

Equals(FixedList128Bytes<T>)

Returns true if this list and another list are equal.
public readonly bool Equals(FixedList128Bytes<T> other)

Parameters

The list to compare for equality.

Returns

Type

Description

boolTrue if the two lists are equal.

Remarks

Two lists are equal if their length and bytes are equal.

Equals(FixedList512Bytes<T>)

Returns true if this list and another list are equal.
public readonly bool Equals(FixedList512Bytes<T> other)

Parameters

The list to compare for equality.

Returns

Type

Description

boolTrue if the two lists are equal.

Remarks

Two lists are equal if their length and bytes are equal.

Equals(FixedList4096Bytes<T>)

Returns true if this list and another list are equal.
public readonly bool Equals(FixedList4096Bytes<T> other)

Parameters

The list to compare for equality.

Returns

Type

Description

boolTrue if the two lists are equal.

Remarks

Two lists are equal if their length and bytes are equal.

Equals(Object)

Returns true if the list is equal to an object.
[ExcludeFromBurstCompatTesting("Takes managed object")]public override readonly bool Equals(object obj)

Parameters

An object to compare for equality.

Returns

Type

Description

boolTrue if the list is equal to the object.

Remarks

Two lists are equal if their length and bytes are equal.
A FixedList"N"\<T\> can only be equal to another FixedList"N"\<T\> with the same "N" and T.