Example #1
0
        public override bool Equals(System.Object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SymbolInfoList p = obj as SymbolInfoList;

            if ((System.Object)p == null)
            {
                return(false);
            }

            if (p.Count() != list.Count)
            {
                return(false);
            }
            for (int i = 0; i < list.Count; ++i)
            {
                if (p.list[i] != list[i])
                {
                    return(false);
                }
            }
            return(true);
        }
Example #2
0
 public void Add(SymbolInfoList value)
 {
     if (value != null)
     {
         list.AddRange(value.list);
     }
 }
Example #3
0
        public SymbolInfoList GetRange(int index, int count)
        {
            SymbolInfoList temp = new SymbolInfoList();

            temp.list = list.GetRange(index, count);
            return(temp);
        }
Example #4
0
        public SymbolInfoList copy()
        {
            SymbolInfoList sil = new SymbolInfoList();

            sil.list = new List <SymbolInfo>(this.list);
            return(sil);
        }
Example #5
0
 public bool Equals(SymbolInfoList p)
 {
     if ((object)p == null)
     {
         return(false);
     }
     if (p.Count() != list.Count)
     {
         return(false);
     }
     for (int i = 0; i < list.Count; ++i)
     {
         if (p.list[i] != list[i])
         {
             return(false);
         }
     }
     return(true);
 }