public override bool Equals(object o) { if (o == this) { return(true); } if (!(o is Edu.Stanford.Nlp.Parser.Shiftreduce.BinaryTransition)) { return(false); } string otherLabel = ((Edu.Stanford.Nlp.Parser.Shiftreduce.BinaryTransition)o).label; BinaryTransition.Side otherSide = ((Edu.Stanford.Nlp.Parser.Shiftreduce.BinaryTransition)o).side; return(otherSide.Equals(side) && label.Equals(otherLabel)); }
public BinaryTransition(string label, BinaryTransition.Side side) { this.label = label; this.side = side; }