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 C3275

'enum member' : cannot use this symbol without qualifier

When using managed code, and when two or more enumerations contain an identifier with the same name, you must explicitly qualify references to the identifier.

The following sample shows the two situations in which C3275 could be generated:

#using <mscorlib.dll>
__value enum Jewelry { 
   necklace, brooch, pin, ring, earring 
   };

__value enum Phone { 
   busy, ring, disconnect 
   };

void main() {
   Phone p = ring;   // C3275
   // try the following line instead
   // Phone p = Phone::ring;

   Console::Out->Write(ring);   // C3275
   // try the following line instead
   // Console::Out->Write(Phone::ring);
}