public static int tp_clear(IntPtr ob) { ManagedType self = GetManagedObject(ob); if (!self.IsTypeObject()) { ClearObjectDict(ob); } self.tpHandle = IntPtr.Zero; return(0); }