1. A system that facilitates programming utilizing mixed types in a managed code environment, comprising: at least one processor that executes the following computer executable components stored on at least one computer readable medium: a component that receives code to be utilized by a compiler, the code comprising: a pure native portion; a pure managed portion; and a mixed portion, the mixed portion comprising at least one of: a managed class type that is not a pure managed class, the managed class type having at least one user-defined member of native type; or a native class type that is not a pure native class, the native class type having at least one user-defined member of managed type; wherein the pure native portion is a native class type that does not include user defined members or base classes of managed type or handle (^) type and the pure managed portion is a managed class type that does not include user-defined members or base classes of native type, native pointer (*), or native reference (&); and an inheritance component that designates respective sections of the at least one of the managed class type or the native class type of the code as one or more pure native parts (npart) and one or more pure managed parts (mpart) to facilitate compiling of the code, the inheritance component enables per-object garbage collection in memory, wherein a subset of objects of the at least one of the managed class type or the native class type of the code is garbage collected.