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 CS1533

Invoke cannot be called directly on a delegate

The Invoke method cannot be called on a delegate. For example:

using System;
public class A {
   public static void Main() {
   }
}

public delegate void B(A a);

internal class C {
   public void Baz(A a, B b) {
      b.Invoke(a);   // CS1533
      // try the following line instead
      // b(a);
   }
}