// myClass is a class, a managed type. myClass s = new myClass(); myClass* s2 = &s; // CS0208 // The struct contains a string, a managed type. int i = sizeof(myProblemStruct); //CS0208 // The struct contains only value types. i = sizeof(myGoodStruct); //OK