public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); Trend[] trendArray = null; if (this.m_trends.Count > 0) { trendArray = new Trend[this.m_trends.Count]; for (int i = 0; i < trendArray.Length; i++) { trendArray[i] = this.m_trends[i]; } } info.AddValue("Trends", trendArray); }
public virtual object Clone() { Trend trend = (Trend)base.MemberwiseClone(); trend.m_items = new ItemCollection(); foreach (Item item in this.m_items) { trend.m_items.Add(item.Clone()); } trend.m_timestamps = new ItemTimeCollection(); foreach (DateTime time in this.m_timestamps) { trend.m_timestamps.Add(time); } trend.m_subscription = null; trend.m_playback = null; return(trend); }
public void Insert(int index, Trend value) { this.Insert(index, value); }
public int IndexOf(Trend value) { return(this.IndexOf(value)); }
public bool Contains(Trend value) { return(this.Contains(value)); }
public int Add(Trend value) { return(this.Add(value)); }
public void Remove(Trend value) { this.Remove(value); }