public BaseValue Visit(RealValue value) { switch (_resultType) { case TypeId.Integer: return(new IntValue(null)); case TypeId.Real: return(value); case TypeId.String: return(new StringValue(value?.Value == null ? null : value.Value.ToString())); case TypeId.DateTime: return(new DateTimeValue(null)); case TypeId.Image: return(new ImageValue(null)); default: throw new ArgumentOutOfRangeException(); } }
public string Visit(RealValue value) { return(value.ToString()); }
public double?Visit(RealValue value) { return(value.Value); }