/// <summary>Determines whether the specified object is equal to the current object.</summary> /// <param name="operand">Type: <see cref="System.Object" /> /// The object to compare with the current object.</param> /// <returns>Type: <see cref="System.Boolean" /> /// <b>true</b> if the specified object is equal to the current object; otherwise, <b>false</b>.</returns> public override bool Equals(object operand) { return((!Object.Equals(operand, null)) && (operand.GetType() == typeof(Alias)) && (_component != null ? _component.Equals(((Alias)operand)._component) : Object.Equals(((Alias)operand)._component, null)) && (_name != null ? _name.Equals(((Alias)operand)._name) : Object.Equals(((Alias)operand)._name, null))); }
/// <summary>Determines whether the specified object is equal to the current object.</summary> /// <param name="operand">Type: <see cref="System.Object" /> /// The object to compare with the current object.</param> /// <returns>Type: <see cref="System.Boolean" /> /// true if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(object operand) { return((!Object.Equals(operand, null)) && (operand is IQueryComponentNavigator) && (_component.Equals(((IQueryComponentNavigator)operand).NavigatedComponent))); }