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