Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
cannot define a union 'union' inside of managed type 'type'
Remarks
A union cannot be defined inside a managed type.
Example
The following example generates C3126:
// C3126_2.cpp
// compile with: /clr /c
ref class Test
{
   union x
   {   // C3126
      int a;
      int b;
   };
};