public Server(Factory factory, URL url) : base(factory, url) { this.m_items = new Hashtable(); this.m_attributes = new AttributeCollection(); this.m_aggregates = new AggregateCollection(); this.m_trends = new TrendCollection(); }
public virtual object Clone() { TrendCollection trends = (TrendCollection)base.MemberwiseClone(); trends.m_trends = new ArrayList(); foreach (Trend trend in this.m_trends) { trends.m_trends.Add(trend.Clone()); } return(trends); }
public TrendCollection(TrendCollection items) { this.m_trends = new ArrayList(); if (items != null) { foreach (Trend trend in items) { this.Add(trend); } } }
protected Server(SerializationInfo info, StreamingContext context) : base(info, context) { this.m_items = new Hashtable(); this.m_attributes = new AttributeCollection(); this.m_aggregates = new AggregateCollection(); this.m_trends = new TrendCollection(); Trend[] trendArray = (Trend[])info.GetValue("Trends", typeof(Trend[])); if (trendArray != null) { foreach (Trend trend in trendArray) { trend.SetServer(this); this.m_trends.Add(trend); } } }