示例#1
0
        protected override string ConvertToValue(out short value)
        {
            string error;

            value = NumberVMUtils.ParseInt16(StringValue, Min, Max, out error);
            return(error);
        }
示例#2
0
        protected override string ConvertToValue(out short?value)
        {
            string error = null;

            if (IsNull)
            {
                value = null;
            }
            else
            {
                value = NumberVMUtils.ParseInt16(StringValue, Min, Max, out error);
            }
            return(error);
        }