public DataTableLoaderConfiguration(string name, IDataTableLoaderCreator dataTableLoaderCreator) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException("name can not be null or empty.", "name"); } if (dataTableLoaderCreator == null) { throw new ArgumentNullException("dataTableLoaderCreator"); } this.Name = name; this.DataTableLoaderCreator = dataTableLoaderCreator; }
public DataTableLoaderConfiguration AddDataTableLoaderConfiguration(string name, IDataTableLoaderCreator dataTableLoaderCreator) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException("name can not be null or empty.", "name"); } if (dataTableLoaderCreator == null) { throw new ArgumentNullException("dataTableLoaderCreator"); } DataTableLoaderConfiguration dataTableLoaderConfiguration = new DataTableLoaderConfiguration(name, dataTableLoaderCreator); this.backendDataTableLoaderConfigurations.Add(dataTableLoaderConfiguration); return(dataTableLoaderConfiguration); }