コード例 #1
0
        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));
        }
コード例 #2
0
 public BinaryTransition(string label, BinaryTransition.Side side)
 {
     this.label = label;
     this.side  = side;
 }