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 C2578

'function' : static member function cannot hide interface method

Overloaded methods cannot contain matching signatures and differ only by the static keyword.

The following sample generates C2578:

#using <mscorlib.dll>
__gc __interface IFace {
   public: 
   void Test();
};

__gc class CMyClass : public IFace {
   public: 
   static void Test()   {   // C2578 hides IFace::Test
   }
};

void main(){
}