//private bool disposedValue = false; public void Dispose() { //not sure if this will work this._mHistory = null; }
//constructor that takes an MarketHistory public MarketHistoryEnumerator(MarketHistory mHist) { _mHistory = mHist; maxIndex = mHist.Dates.Count - 1; }