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 C3350

'delegate' : a Delegate constructor expects two arguments

When you create an instance of a delegate, you must pass two arguments.

The following sample generates C3350:

#using <mscorlib.dll>
__delegate int SumDelegate(int, int);

public __gc class X {
public:
   int MySum(int i, int j) {
      return i + j;
   }
};

void main() {
   SumDelegate *pSD = new SumDelegate();   // C3350
   // try the following line instead
   // SumDelegate *pSD = new SumDelegate(17, &X::MySum);
}