Exemple #1
0
 /// <summary>
 /// Adds sorting comparer to exiting DataRow comparer.
 /// </summary>
 /// <param name="orderBy">The existing DataRow comparer.</param>
 /// <param name="thenBy">The sorting comparer to add.</param>
 /// <returns>The result DataRow comparer.</returns>
 public static IComparer <DataRow> ThenBy(this IComparer <DataRow> orderBy, IComparer <DataRow> thenBy)
 {
     orderBy.VerifyNotNull(nameof(orderBy));
     thenBy.VerifyNotNull(nameof(thenBy));
     return(new CompositeComparer(orderBy, thenBy));
 }