示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
 public void Insert(int index, Trend value)
 {
     this.Insert(index, value);
 }
示例#4
0
 public int IndexOf(Trend value)
 {
     return(this.IndexOf(value));
 }
示例#5
0
 public bool Contains(Trend value)
 {
     return(this.Contains(value));
 }
示例#6
0
 public int Add(Trend value)
 {
     return(this.Add(value));
 }
示例#7
0
 public void Remove(Trend value)
 {
     this.Remove(value);
 }