Пример #1
0
        public override bool Equals(object?obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }

            return(!(obj is LocatorInfo rhs) ? false : Locator.Equals(rhs.Locator));
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            var other = (ClientConfig)obj;

            if (Locator == null)
            {
                if (other.Locator != null)
                {
                    return(false);
                }
            }
            else if (!Locator.Equals(other.Locator))
            {
                return(false);
            }
            if (ModuleName == null)
            {
                if (other.ModuleName != null)
                {
                    return(false);
                }
            }
            else if (!ModuleName.Equals(other.ModuleName))
            {
                return(false);
            }
            return(true);
        }
Пример #3
0
 public bool Equals(TPath obj)
 {
     return(!ReferenceEquals(null, obj) && Locator.Equals(obj.Locator));
 }