public virtual void AddParameter(string name, string value) { if (ReportParameters == null) { ReportParameters = new Dictionary <string, string>(); } ReportParameters.Add(name, value); }
protected void AddLazyReportParameter(string name, Func <object> valueProvider) { ReportParameters.Add(new LazyServerReportParameter(name, valueProvider)); }
protected void AddReportParameter <TValue>(string name, TValue value) { ReportParameters.Add(new ServerReportParameter(name, (value == null ? string.Empty : value.ToString()))); }