void bar(int a, int b, int c, int d) { var closes = new Dictionary <Symbol, int> { { A, a }, { B, b }, { C, c }, { D, d } }; var bars = O.dictionary(closes.Keys, s => new Bar(closes[s], closes[s], closes[s], closes[s], current)); current = current.AddDays(1); processBar(bars); }
Dictionary <Symbol, Bar> bars(DateTime current) { return(O.dictionary(symbols, symbol => new Bar(1, 1, 1, 1, current))); }