Пример #1
0
        public static bool IsEqual(GM_IDList obj1, GM_IDList obj2)
        {
            if (ReferenceEquals(obj1, obj2))
            {
                return(true);
            }

            if (ReferenceEquals(obj1, null))
            {
                return(false);
            }
            if (ReferenceEquals(obj2, null))
            {
                return(false);
            }

            foreach (var team1Id in obj1)
            {
                bool found = false;
                foreach (var team2Id in obj2)
                {
                    if (team1Id == team2Id)
                    {
                        found = true;
                        break;
                    }

                    if (found == false)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }
Пример #2
0
 public bool IsEqual(GM_IDList obj1)
 {
     return(IsEqual(this, obj1));
 }