Equatable

Description

static class Tinman.Core.Collections.Equatable
<T : IEquatable<T>>

Helper class for dealing with IEquatable values.

Public / Methods

Equals


public static method Equals → (2)

in : T

First value.

in : T

Second value.

returns → bool

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

Checks if the given equatable values are equal.

Equals​Array


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.

Equals​List


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.