2008-05-01 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mcs / class / System.Core / System.Linq / Check.cs
index 0dfea406c8959d4695b5ac3334a0db400740d768..cd8f504c29ee8d4c121191b3646bbc00c26e7490 100644 (file)
@@ -38,6 +38,25 @@ namespace System.Linq {
                                throw new ArgumentNullException ("source");
                }
 
+               public static void Source1AndSource2 (object source1,object source2)
+               {
+                       if (source1 == null)
+                               throw new ArgumentNullException ("source1");
+                       if (source2 == null)
+                               throw new ArgumentNullException ("source2");
+               }
+
+               public static void SourceAndFuncAndSelector ( object source, object func, object selector)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ("source");
+                       if (func == null)
+                               throw new ArgumentNullException ("func");
+                       if (selector == null)
+                               throw new ArgumentNullException ("selector");
+               }
+
+
                public static void SourceAndFunc (object source, object func)
                {
                        if (source == null)
@@ -87,6 +106,25 @@ namespace System.Linq {
                        if (elementSelector == null)
                                throw new ArgumentNullException ("elementSelector");
                }
+               public static void SourceAndKeyResultSelectors (object source, object keySelector, object resultSelector)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ("source");
+                       if (keySelector == null)
+                               throw new ArgumentNullException ("keySelector");
+                       if (resultSelector == null)
+                               throw new ArgumentNullException ("resultSelector");
+               }
+
+               public static void SourceAndCollectionSelectorAndResultSelector (object source, object collectionSelector, object resultSelector)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ("source");
+                       if (collectionSelector == null)
+                               throw new ArgumentNullException ("collectionSelector");
+                       if (resultSelector == null)
+                               throw new ArgumentNullException ("resultSelector");
+               }
 
                public static void SourceAndCollectionSelectors (object source, object collectionSelector, object selector)
                {
@@ -111,5 +149,17 @@ namespace System.Linq {
                        if (resultSelector == null)
                                throw new ArgumentNullException ("resultSelector");
                }
+
+               public static void GroupBySelectors (object source, object keySelector, object elementSelector, object resultSelector)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ("source");
+                       if (keySelector == null)
+                               throw new ArgumentNullException ("keySelector");
+                       if (elementSelector == null)
+                               throw new ArgumentNullException ("elementSelector");
+                       if (resultSelector == null)
+                               throw new ArgumentNullException ("resultSelector");
+               }
        }
 }