public override bool Equals(object @object) { if (@object == null) { return(false); } if (!(@object is AbstractOperator)) { throw new System.InvalidOperationException("Invalid operator object."); } AbstractOperator @operator = (AbstractOperator)@object; if (symbol.Equals(@operator.Symbol)) { return(true); } return(false); }
protected internal override string ToString(AbstractOperator parentOp) { return "_" + _name; }
protected internal override string ToString(AbstractOperator parentOp) { return parentOp.Wrap(_lhs, _operator, _rhs); }
protected internal override string ToString(AbstractOperator parentOp) { var sb = new StringBuilder(); sb.Append("{"); sb.Append(_expr.ToString()); sb.Append(":"); sb.Append(_value0.ToString()); foreach (var pair in _pairs) { sb.Append(pair.MoreThan.ToString()); sb.Append(":"); sb.Append(pair.Value.ToString()); } sb.Append("}"); return sb.ToString(); }
protected internal override string ToString(AbstractOperator parentOp) { return "[" + _x + "," + _y + "," + _z + "]"; }