public static void Release() { if (Runtime.HostedInPython) { _metaSlotsHodler.ResetSlots(); } PyCLRMetaType.Dispose(); }
public static void Release() { if (Runtime.Refcount(PyCLRMetaType) > 1) { _metaSlotsHodler.ResetSlots(); } Runtime.Py_CLEAR(ref PyCLRMetaType); _metaSlotsHodler = null; }