Пример #1
0
 public bool Equals(ParsedCommandNode <TSource> other)
 {
     if (other is null)
     {
         return(false);
     }
     return(ReferenceEquals(this, other) || EqualsInternal(other));
 }
Пример #2
0
 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));
 }