protected static baseDX CreateSeries(DataBars ds, Types type, int period, string name) { //Build description string description = "(" + name + "," + period + ")"; //See if it exists in the cache if (ds.Cache.ContainsKey(description)) { return((baseDX)ds.Cache[description]); } //Create DI, cache it, return it baseDX di = new baseDX(ds, type, period, description); ds.Cache[description] = di; return(di); }
protected static baseDX CreateSeries(DataBars ds, Types type, int period, string name) { //Build description string description = "(" + name + "," + period + ")"; //See if it exists in the cache if (ds.Cache.ContainsKey(description)) return (baseDX)ds.Cache[description]; //Create DI, cache it, return it baseDX di = new baseDX(ds, type, period, description); ds.Cache[description] = di; return di; }