public double GetXile(XileInfo xileInfo) { Func <double> func = () => { double xileResult; var lx = Container.DataCount * xileInfo.NthXile / (double)xileInfo.Xile; xileResult = this.CalcXile(lx); return(xileResult); }; return(this.Container.Register(xileInfo.ToString(), func)); }
public double GetXile(XileInfo xileInfo) { Func<double> func = () => { double xileResult; var lx = Container.DataCount * xileInfo.NthXile / (double)xileInfo.Xile; xileResult = this.CalcXile(lx); return xileResult; }; return this.Container.Register(xileInfo.ToString(), func); }
public string Xile(int NthXile, int Xile) { try { dynamic statistics = HttpContext.Application["inquirer"]; var info = new XileInfo((Xiles)Xile, NthXile); var result = Math.Round(statistics.GetXile(info), 4); return result.ToString(); } catch (Exception ex) { return ex.Message; } }