public override bool Equals(object?obj) { if (ReferenceEquals(this, obj)) { return(true); } return(!(obj is LocatorInfo rhs) ? false : Locator.Equals(rhs.Locator)); }
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); }
public bool Equals(TPath obj) { return(!ReferenceEquals(null, obj) && Locator.Equals(obj.Locator)); }