public Sp500History() { using (StreamReader sr = new StreamReader(".\\..\\..\\..\\data\\sp500hst.txt")) { string csv = sr.ReadToEnd(); AllStockHistories = StockHistory.BuildCollection(csv); } }
public SpnShareHistory(int n) { using (StreamReader sr = new StreamReader(".\\..\\..\\..\\data\\sp500hst.txt")) { string csv = sr.ReadToEnd(); AllStockHistories = StockHistory.BuildCollection(csv).GetRange(0, n); } }