Export (0) Print
Expand All
Expand Minimize

Compiler Error C3923

Error Message

'member' : local class, struct, or union definitions are not allowed in a member function of a managed class

Example

The following sample generates C3923.

// C3923.cpp
// compile with: /clr /c
ref struct x {
   void Test() {
      struct a {};   // C3923
      class b {};   // C3923
      union c {};   // C3923
   }
};

Community Additions

ADD
Show:
© 2014 Microsoft