示例#1
0
        public new CollectionByPrompt Clone()
        {
            CollectionByPrompt collectionByPrompt = new CollectionByPrompt();

            for (int i = 0; i < this.Count; i++)
            {
                collectionByPrompt.Add(this[i].Clone());
            }
            return(collectionByPrompt);
        }
示例#2
0
 private void CheckedAddByPrompt(DataSourceInfo dataSource)
 {
     if (dataSource.CredentialsRetrieval == DataSourceInfo.CredentialsRetrievalOption.Prompt)
     {
         if (this.m_collectionByPrompt == null)
         {
             this.m_collectionByPrompt = new CollectionByPrompt();
         }
         this.m_collectionByPrompt.CheckedAdd(dataSource);
     }
 }
示例#3
0
 public RuntimeDataSourceInfoCollection(RuntimeDataSourceInfoCollection other)
 {
     Global.Tracer.Assert(null != other, "(null != other)");
     if (other.m_collectionByID != null)
     {
         this.m_collectionByID = (Hashtable)other.m_collectionByID.Clone();
     }
     if (other.m_collectionByReport != null)
     {
         this.m_collectionByReport = (Hashtable)other.m_collectionByReport.Clone();
     }
     if (other.m_collectionByPrompt != null)
     {
         this.m_collectionByPrompt = other.m_collectionByPrompt.Clone();
     }
 }
示例#4
0
 public RuntimeDataSourceInfoCollection(SerializationInfo info, StreamingContext context)
 {
     this.m_collectionByID     = (Hashtable)info.GetValue("dscollectionbyid", typeof(Hashtable));
     this.m_collectionByReport = (Hashtable)info.GetValue("dscollectionbyreport", typeof(Hashtable));
     this.m_collectionByPrompt = (CollectionByPrompt)info.GetValue("dscollectionbyprompt", typeof(CollectionByPrompt));
 }