public new CollectionByPrompt Clone() { CollectionByPrompt collectionByPrompt = new CollectionByPrompt(); for (int i = 0; i < this.Count; i++) { collectionByPrompt.Add(this[i].Clone()); } return(collectionByPrompt); }
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); } }
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(); } }
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)); }