DotNX::Core::Collections Class Reference
Helper functions for generic collections and enumerables.
More...
List of all members.
|
Static Public Member Functions |
static int | Compare< ElementType > (IEnumerable< ElementType > first, IEnumerable< ElementType > second) |
| Comparison for generic enumerables whose elements implement IComparable.
|
static bool | Equals< ElementType > (IEnumerable< ElementType > first, IEnumerable< ElementType > second) |
| Equality comparison for enumerables that implement IEquatable.
|
Detailed Description
Helper functions for generic collections and enumerables.
Member Function Documentation
static int DotNX::Core::Collections::Compare< ElementType > |
( |
IEnumerable< ElementType > |
first, |
|
|
IEnumerable< ElementType > |
second | |
|
) |
| | [static] |
Comparison for generic enumerables whose elements implement IComparable.
Implements lexicographical comparison.
- Template Parameters:
-
| ElementType | The element type of the enumerables being compared. |
- Parameters:
-
| first | A generic enumerable. |
| second | Another generic enumerable. |
- Returns:
-1
if the first enumerable is greater, 0
if the two collections are equal, 1
if the second enumerable is greater.
- Type Constraints
-
ElementType | : | IComparable<ElementType> | |
static bool DotNX::Core::Collections::Equals< ElementType > |
( |
IEnumerable< ElementType > |
first, |
|
|
IEnumerable< ElementType > |
second | |
|
) |
| | [static] |
Equality comparison for enumerables that implement IEquatable.
- Template Parameters:
-
| ElementType | The element type of the enumerables being compared. |
- Parameters:
-
| first | A generic enumerable. |
| second | Another generic enumerable. |
- Returns:
true
if the two enumerables are equal, false
otherwise.
The documentation for this class was generated from the following file: