Method Equals
Equals<T>(IList<T>, IList<T>)
The same implementation of Equals from Java's AbstractList (the default implementation for all lists)
This algorithm depends on the order of the items in the list. It is recursive and will determine equality based on the values of all nested collections.
Note this operation currently only supports
Declaration
public static bool Equals<T>(IList<T> listA, IList<T> listB)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | listA | |
IList<T> | listB |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T |
Equals<T>(ISet<T>, ISet<T>)
The same implementation of Equals from Java's AbstractSet (the default implementation for all sets)
This algoritm does not depend on the order of the items in the set. It is recursive and will determine equality based on the values of all nested collections.
Note this operation currently only supports
Declaration
public static bool Equals<T>(ISet<T> setA, ISet<T> setB)
Parameters
Type | Name | Description |
---|---|---|
ISet<T> | setA | |
ISet<T> | setB |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T |
Equals<TKey, TValue>(IDictionary<TKey, TValue>, IDictionary<TKey, TValue>)
This is the same implemenation of Equals from Java's AbstractMap (the default implementation of all dictionaries)
This algoritm does not depend on the order of the items in the dictionary. It is recursive and will determine equality based on the values of all nested collections.
Note this operation currently only supports
Declaration
public static bool Equals<TKey, TValue>(IDictionary<TKey, TValue> dictionaryA, IDictionary<TKey, TValue> dictionaryB)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | dictionaryA | |
IDictionary<TKey, TValue> | dictionaryB |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Equals(Object, Object)
A helper method to recursively determine equality based on the values of the collection and all nested collections.
Note this operation currently only supports
Declaration
public static bool Equals(object objA, object objB)
Parameters
Type | Name | Description |
---|---|---|
System.Object | objA | |
System.Object | objB |
Returns
Type | Description |
---|---|
System.Boolean |