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 C3251

cannot invoke base class method on a value type instance

The following error occurs because GetClass is a member of Microsoft.Runtime.Object, not of Microsoft.Runtime.Integer4:

class bug1 {
public:
   int RunTest()    {
      Integer4 i = 2;
      Class c1 = i.GetClass();   // C3251
      return 0;
   }
};