public DataSourceInfoCollection(DataSourceInfoCollection other) { RSTrace processingTracer = RSTrace.ProcessingTracer; processingTracer.Assert(other != null); processingTracer.Assert(other.m_collection != null); m_collection = (Hashtable)other.m_collection.Clone(); }
public void Add(DataSourceInfo dataSource) { if (dataSource.OriginalName == null) { RSTrace processingTracer = RSTrace.ProcessingTracer; processingTracer.Assert(this.m_collection.Count == 0, "Adding more than one data source with null original name"); this.m_collection.Add("", dataSource); } else if (!this.m_collection.ContainsKey(dataSource.OriginalName)) { this.m_collection.Add(dataSource.OriginalName, dataSource); } }