private void Free () { // TODO: How do we free the per-domain types? There's no static dtor... foreach (ManagedType ti in types.Values) { ti.gc_handle.Free (); } native = IntPtr.Zero; } #endif