public bool Equals(ISyntacticAnalysisTree other) { if (other is null) { return(false); } return(Equals(other as NonTerminalTree)); }
public bool Equals(ISyntacticAnalysisTree other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other as TerminalTree)); }