Is there a built-in way to compare IEnumerable<T> (by their elements)?
- by Cristi Diaconescu
I would like to compare lists of elements of a given type, to see which list is "bigger".
new BuiltInComparer<IEnumerable<int>>().Compare(
new[] {1,2},
new[] {1,2,3})
...would return -1
new BuiltInComparer<IEnumerable<int>>().Compare(
new[] {1,2,3},
new[] {1,2,3})
...would return 0 etc
Is there any such built in comparer?