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 C3814

'class member' : this member cannot co-exist with a property of the same name

A property and another class member have the same identifier. To resolve this error, change one of the identifiers.

The following sample generates C3814:

// C3814
class CMyClass
{
   public:
   char Size;   // C3814, cannot have the same identifier as property
      __property int Size
   {
         get
         {
         return __Size;
         };
         set
      {
            __Size = value;
         };
   };
   protected:
      int __Size;
};

void main() {
}