QuickGraph


EqualityExtensions

Namespace: QuickGraph

Deep equality methods for collections (arrays, dictionaries) implemented as extension methods.

Static members

Static memberDescription
Equals1(lhs, rhs, elementEquality)
Signature: (lhs:IList<'T> * rhs:IList<'T> * elementEquality:IEqualityComparer<'T>) -> bool
Type parameters: 'T

Element-by-element array equality using a given equality comparer for elements. Two arrays are equal iff they are both null, or are actually the same reference, or they have equal length and elements are equal for each index.

Equals1(lhs, rhs)
Signature: (lhs:IList<'T> * rhs:IList<'T>) -> bool
Type parameters: 'T

Element-by-element array equality using EqualityComparer(T).Default to equate elements. Two arrays are equal iff they are both null, or are actually the same reference, or they have equal length and elements are equal for each index.

Equals1(lhs, rhs, tolerance)
Signature: (lhs:IList<float32> * rhs:IList<float32> * tolerance:float32) -> bool

Specialization of ArrayEquals(T) augmented with tolerance value to be used when equating two float values.

Equals1(lhs, rhs, tolerance)
Signature: (lhs:IList<float> * rhs:IList<float> * tolerance:float) -> bool

Specialization of ArrayEquals{T} augmented with tolerance value to be used when equating two double values.

Equals1(lhs, rhs, elementEquality)
Signature: (lhs:'T [] * rhs:'T [] * elementEquality:IEqualityComparer<'T>) -> bool
Type parameters: 'T

Element-by-element array equality using a given equality comparer for elements. Two arrays are equal iff they are both null, or are actually the same reference, or they have equal length and elements are equal for each index.

Equals1(lhs, rhs)
Signature: (lhs:'T [] * rhs:'T []) -> bool
Type parameters: 'T

Element-by-element array equality using EqualityComparer(T).Default to equate elements. Two arrays are equal iff they are both null, or are actually the same reference, or they have equal length and elements are equal for each index.

Equals1(lhs, rhs, tolerance)
Signature: (lhs:float32 [] * rhs:float32 [] * tolerance:float32) -> bool

Specialization of ArrayEquals(T) augmented with tolerance value to be used when equating two float values.

Equals1(lhs, rhs, tolerance)
Signature: (lhs:float [] * rhs:float [] * tolerance:float) -> bool

Specialization of ArrayEquals{T} augmented with tolerance value to be used when equating two double values.

Equals1(lhs, rhs)
Signature: (lhs:IDictionary<'TKey,'TValue> * rhs:IDictionary<'TKey,'TValue>) -> bool
Type parameters: 'TKey, 'TValue

Element-by-element dictionary equality using the default equality comparer for values. Two dictionaries are equal iff they are both null, or are actually the same reference, or they have identical sets of keys and elements are equal for each key.

Equals1(lhs, rhs, valueEquality)
Signature: (lhs:IDictionary<'TKey,'TValue> * rhs:IDictionary<'TKey,'TValue> * valueEquality:IEqualityComparer<'TValue>) -> bool
Type parameters: 'TKey, 'TValue

Element-by-element dictionary equality using a given equality comparer for values. Two dictionaries are equal iff they are both null, or are actually the same reference, or they have identical sets of keys and elements are equal for each key.

Equals2(lhs, rhs)
Signature: (lhs:'T [] [] * rhs:'T [] []) -> bool
Type parameters: 'T

2-level deep equality for array of arrays of T using EqualityComparer(T).Default as element equality. This has '2' in its name, because one may want to do partially deep equality on multi-dimensional array type.

Equals2(lhs, rhs, elementEquality)
Signature: (lhs:'T [] [] * rhs:'T [] [] * elementEquality:IEqualityComparer<'T>) -> bool
Type parameters: 'T

2-level deep equality for array of arrays of T using a given element equality comparer. This has '2' in its name, because one may want to do partially deep equality on multi-dimensional array type.

Equals3(lhs, rhs)
Signature: (lhs:'T [] [] [] * rhs:'T [] [] []) -> bool
Type parameters: 'T

3-level deep equality for array of arrays of arrays of T using EqualityComparer(T).Default as element equality. This has '3' in its name, because one may want to do partially deep equality on multi-dimensional array type.

Equals3(lhs, rhs, elementEquality)
Signature: (lhs:'T [] [] [] * rhs:'T [] [] [] * elementEquality:IEqualityComparer<'T>) -> bool
Type parameters: 'T

3-level deep equality for array of arrays of arrays of T using a given element equality comparer. This has '3' in its name, because one may want to do partially deep equality on multi-dimensional array type.

Fork me on GitHub