// what you really want is int Visit(...)

        public void Visit(DoubleExpression de)
        {
            Result = de.Value;
        }
 public void Visit(DoubleExpression de)
 {
     sb.Append(de.Value);
 }