Compiler Error C3822

Error Message

'property' : name of the property method must start with 'get_' or 'set_'

Property method names must start with either get_ or set_.

C3822 is only reachable using /clr:oldSyntax.

The following sample generates C3822:

// C3822.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>

__gc struct A {
   __property int get_Size() {
      return 0;

   __property void SET_Size(int i) {   // C3822

   // use the property below to resolve the error
   __property void set_Size(int i) {

int main() {

Community Additions