EquatableRef

Description

static class Tinman.Core.Collections.EquatableRef
<T ref : IEquatable<T>>

Helper class for dealing with IEquatable objects.

Public / Methods

Equals


public static method Equals → (2)

in : T

First value.

in : T

Second value.

returns → bool

true if both in and in are null or equal according to IEquatable, false if they are not equal.

Checks if the given nullable and equatable values are equal.

EqualsArray


public static method EqualsArray → (2)

first in : T [ ]

The first array or null.

second in : T [ ]

The second array or null.

returns → bool

true if both arrays contain the same elements, false if not.

Checks if the given arrays are equal.

The given array references are equal if one of the following conditions is true:

  • They refer to the same array instance.

  • They are both null.

  • The two arrays contain the same sequence of elements, where element equality is determined via IEquatable.

EqualsList


public static method EqualsList → (2)

in : IVectorConst<T>

First list.

in : IVectorConst<T>

Second list.

returns → bool

true if both lists are equal, false if not.

Checks if the given lists are equal.

The given list references are equal if one of the following conditions is true:

  • They refer to the same list instance.

  • They are both null.

  • The two lists contain the same sequence of elements, where element equality is determined via IEquatable.