예제 #1
0
            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();
                }
            }
예제 #2
0
 public string Visit(RealValue value)
 {
     return(value.ToString());
 }
예제 #3
0
 public double?Visit(RealValue value)
 {
     return(value.Value);
 }