Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            var other = obj as AdditionalLocatorsDataItem;

            if (other == null)
            {
                return(false);
            }


            if (Other == null && other.Other != null || Other != null && other.Other == null)
            {
                return(false);
            }

            if (Other != null && (Other.Count != other.Other.Count || Other.Exists(locator => !other.Other.Contains(locator))))
            {
                return(false);
            }

            return(GalileoHostLocator == other.GalileoHostLocator && HostLocator == other.HostLocator && HostSupplier == other.HostSupplier);
        }