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);
    }
Esempio n. 2
0
 protected internal override string ToString(AbstractOperator parentOp)
 {
     return "_" + _name;
 }
Esempio n. 3
0
 protected internal override string ToString(AbstractOperator parentOp)
 {
     return parentOp.Wrap(_lhs, _operator, _rhs);
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 protected internal override string ToString(AbstractOperator parentOp)
 {
     return "[" + _x + "," + _y + "," + _z + "]";
 }