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 CS1502

The best overloaded method match for 'declaration' has some invalid arguments

A class method was called but there is no form of the method that takes the necessary number of arguments with the necessary data types.

The following sample generates CS1502:

namespace x {
   public class a {
      public a(char i) {
      }
      /* try this constructor instead
      public a(int i) {
      }
      */
      public static void Main() {
      a aa = new a(2222);   // CS1502
      }
   }
}