public bool Equals(ParsedCommandNode <TSource> other) { if (other is null) { return(false); } return(ReferenceEquals(this, other) || EqualsInternal(other)); }
public bool Equals(ParsedCommandNode <TSource> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Node, other.Node) && Equals(Range, other.Range)); }
private bool EqualsInternal(ParsedCommandNode <TSource> other) { return(Equals(Node, other.Node) && Range.Equals(other.Range)); }