public override void Dispose() { base.Dispose(); foreach (var item in _hostobject) { item.Value.Dispose(); } _hostobject.Clear(); _hosttag.Clear(); _hostobject = null; _hosttag = null; _currentjse.Dispose(); }
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; }