Пример #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_is_disposed)
            {
                return;
            }

            if (disposing)
            {
                // マネージリソースの解放
                if (_handle != null)
                {
                    _handle = null;
                }
            }

            // アンマネージリソースの解放

            _is_disposed = true;
        }
Пример #2
0
 private MyComplex(Core.IMyComplexHandle handle)
 {
     _is_disposed = false;
     _handle      = handle;
 }