示例#1
0
 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));
 }
示例#3
0
 private bool EqualsInternal(ParsedCommandNode <TSource> other)
 {
     return(Equals(Node, other.Node) && Range.Equals(other.Range));
 }