예제 #1
0
 public override void Dispose()
 {
     base.Dispose();
     foreach (var item in _hostobject)
     {
         item.Value.Dispose();
     }
     _hostobject.Clear();
     _hosttag.Clear();
     _hostobject = null;
     _hosttag    = null;
     _currentjse.Dispose();
 }
예제 #2
0
        void IDisposable.Dispose()
        {
            foreach (var item in _hostobject)
            {
                if (item.Value is IDisposable)
                {
                    ((IDisposable)item.Value).Dispose();
                }
            }

            _hostobject.Clear();
            _hosttag.Clear();
            _currentjse.Dispose();
            _datamodel  = null;
            _hostobject = null;
            _hosttag    = null;
        }