IndexCollectionCompareTo Method (Object) |
Namespace: Novacta.Analytics
Value | Meaning |
---|---|
Less than zero | This instance precedes obj in the sort order. |
Zero | This instance occurs in the same position in the sort order as obj. |
Greater than zero | This instance follows obj in the sort order. |
Exception | Condition |
---|---|
ArgumentException | obj is not the same type as this instance. |
IndexCollection instances are quasi-lexicographically ordered. This means that instances are firstly ordered by their Count, and then, within collections having the same length, by lexicographic order.
This also means that when tested for equality, IndexCollection instances are considered equal if and only if they have the same Count and, for each index position, indexes corresponding to such position are equal, too.