Ejemplo n.º 1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (handle_ != null)
         {
             handle_.Dispose();
             handle_ = null;
         }
     }
 }
Ejemplo n.º 2
0
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (handle_ != null)
                {
                    handle_.Dispose();
                    handle_ = null;
                }
            }
            var strong = strongGCHandles;

            if (strong != null)
            {
                strongGCHandles = null;
                foreach (var item in strong)
                {
                    item.Free();
                }
            }
            externalObjectsDict = null;
            externalObjects_    = null;
        }