NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0224

A method cannot both have a params parameter and varargs

A method declaration cannot have both the params keyword and __arglist. The recommended way to define a method to take multiple parameters is with the params keyword.

The following sample generates CS0224:

public class MyClass {
   public static void MyMethod(params int[] a, __arglist) {   // CS0224
   // try the following line instead
   // public static void MyMethod(params int[] a) {   
}

   public static void Main () {
   }
}