예제 #1
0
 /// <summary>
 /// Determines whether this sequence is bigger than the other using number-like comparison (length first, then
 /// lexicographically).
 /// </summary>
 /// <typeparam name="T">The type of value.</typeparam>
 /// <param name="first">The first sequence, which is compared to the second sequence.</param>
 /// <param name="second">The second sequence.</param>
 /// <returns></returns>
 public static int NumCompare <T>(this IEnumerable <T> first, IEnumerable <T> second)
     where T : IComparable <T>
 {
     return(EqualityHelper.SeqCompareNum(first, second));
 }
예제 #2
0
 /// <summary>
 /// Determines whether this sequence is bigger than the other using number-like comparison (length first, then
 /// lexicographically).
 /// </summary>
 /// <typeparam name="T">The type of value.</typeparam>
 /// <param name="first">The first sequence, which is compared to the second sequence</param>
 /// <param name="second">The second sequence.</param>
 /// <param name="comparer">The comparer.</param>
 /// <returns></returns>
 public static int NumCompare <T>(this IEnumerable <T> first, IEnumerable <T> second, IComparer <T> comparer)
 {
     return(EqualityHelper.SeqCompareNum(first, second, comparer));
 }