TripleTFirst, TSecond, TThirdCompareTo Method |
Compares this triple to another triple of the some type. The triples are compared by using the IComparable<T> or IComparable interface on TFirst, TSecond, and TThird. The triples are compared by their first elements first, if their first elements are equal, then they are compared by their second elements. If their second elements are also equal, then they are compared by their third elements.
If TFirst, TSecond, or TThird does not implement IComparable<T> or IComparable, then an NotSupportedException is thrown, because the triples cannot be compared.
Namespace: X3Platform.Collections
Exception | Condition |
---|---|
NotSupportedException | Either FirstSecond, TSecond, or TThird is not comparable via the IComparable<T> or IComparable interfaces. |