コード例 #1
0
        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();
        }
コード例 #2
0
 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);
     }
 }