importing messaging-2008 branch to trunk, going on.
[mono.git] / mcs / class / System.Data.DataSetExtensions / System.Data / EnumerableRowCollectionExtensions.cs
index 93cbe8b1954c2af57b3c7cd5df1ffcb417d375bd..e1b2fed3ea76a9724a887ae0e4f526efeff3b516 100644 (file)
@@ -66,28 +66,24 @@ namespace System.Data
                        return new EnumerableRowCollection<S> (Enumerable.Select<TRow, S> (source, selector));
                }
 
-               [MonoTODO]
                public static OrderedEnumerableRowCollection<TRow> ThenBy<TRow, TKey> (this OrderedEnumerableRowCollection<TRow> source, Func<TRow, TKey> keySelector)
                {
                        return ThenBy<TRow, TKey> (source, keySelector, Comparer<TKey>.Default);
                }
 
-               [MonoTODO]
                public static OrderedEnumerableRowCollection<TRow> ThenBy<TRow, TKey> (this OrderedEnumerableRowCollection<TRow> source, Func<TRow, TKey> keySelector, IComparer<TKey> comparer)
                {
-                       throw new NotImplementedException ();
+                       return OrderedEnumerableRowCollection<TRow>.AddSort<TRow, TKey> (source, keySelector, comparer, false);
                }
 
-               [MonoTODO]
                public static OrderedEnumerableRowCollection<TRow> ThenByDescending<TRow, TKey> (this OrderedEnumerableRowCollection<TRow> source, Func<TRow, TKey> keySelector)
                {
                        return ThenByDescending<TRow, TKey> (source, keySelector, Comparer<TKey>.Default);
                }
 
-               [MonoTODO]
                public static OrderedEnumerableRowCollection<TRow> ThenByDescending<TRow, TKey> (this OrderedEnumerableRowCollection<TRow> source, Func<TRow, TKey> keySelector, IComparer<TKey> comparer)
                {
-                       throw new NotImplementedException ();
+                       return OrderedEnumerableRowCollection<TRow>.AddSort<TRow, TKey> (source, keySelector, comparer, true);
                }
 
                public static EnumerableRowCollection<TRow> Where<TRow> (this EnumerableRowCollection<TRow> source, Func<TRow, bool> predicate)