/// <summary>
        /// Check if two EnumListContainers are equal
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != this.GetType())
            {
                return(false);
            }

            return(ListExtension.ListsEquivalent(list, ((EnumListContainer <TEnum>)obj).list));
        }
Пример #2
0
        /// <summary>
        /// Check if two IntListContainers are equal
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != GetType())
            {
                if (obj.GetType() == typeof(List <int>))
                {
                    return(ListExtension.ListsEquivalent(list, (List <int>)obj));
                }

                return(false);
            }

            return(ListExtension.ListsEquivalent(list, ((IntListContainer)obj).list));
        }