Пример #1
0
        public static bool operator ==(Lists Words, Lists Words2)
        {
            int kol = 0;

            if (Words.Count() != Words2.Count())
            {
                return(false);
            }
            else
            {
                for (int i = 0; i < Words.Count(); i++)
                {
                    if (Words.GetElement(i) == Words2.GetElement(i))
                    {
                        kol++;
                    }
                }
            }
            if (kol == Words.Count())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }