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