Ejemplo n.º 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);
        }
Ejemplo n.º 2
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);
 }