Example #1
0
        protected override string ConvertToValue(out bool value)
        {
            string error;

            value = NumberVMUtils.ParseBoolean(StringValue, out error);
            return(error);
        }
Example #2
0
        protected override string ConvertToValue(out ushort value)
        {
            string error;

            value = NumberVMUtils.ParseUInt16(StringValue, Min, Max, out error);
            return(error);
        }
Example #3
0
        protected override string ConvertToValue(out TimeSpan value)
        {
            string error;

            value = NumberVMUtils.ParseTimeSpan(StringValue, out error);
            return(error);
        }
Example #4
0
        protected override string ConvertToValue(out sbyte value)
        {
            string error;

            value = NumberVMUtils.ParseSByte(StringValue, Min, Max, out error);
            return(error);
        }
Example #5
0
        protected override string ConvertToValue(out long value)
        {
            string error;

            value = NumberVMUtils.ParseInt64(StringValue, Min, Max, out error);
            return(error);
        }
Example #6
0
        protected override string ConvertToValue(out IList <byte> value)
        {
            string error;

            value = NumberVMUtils.ParseByteArray(StringValue, out error);
            return(error);
        }
Example #7
0
        protected override string ConvertToValue(out IList <float> value)
        {
            string error;

            value = NumberVMUtils.ParseSingleList(StringValue, out error);
            return(error);
        }
Example #8
0
        protected override string ConvertToValue(out double value)
        {
            string error;

            value = NumberVMUtils.ParseDouble(StringValue, out error);
            return(error);
        }
Example #9
0
        protected override string ConvertToValue(out IList <int> value)
        {
            string error;

            value = NumberVMUtils.ParseInt32List(StringValue, Min, Max, out error);
            return(error);
        }
Example #10
0
        protected override string ConvertToValue(out char value)
        {
            string error;

            value = NumberVMUtils.ParseChar(StringValue, out error);
            return(error);
        }
Example #11
0
        protected override string ConvertToValue(out string value)
        {
            string error;

            value = NumberVMUtils.ParseString(StringValue, allowNullString, out error);
            return(error);
        }
Example #12
0
        protected override string ConvertToValue(out bool?value)
        {
            string error = null;

            if (IsNull)
            {
                value = null;
            }
            else
            {
                value = NumberVMUtils.ParseBoolean(StringValue, out error);
            }
            return(error);
        }
Example #13
0
        protected override string ConvertToValue(out ulong?value)
        {
            string error = null;

            if (IsNull)
            {
                value = null;
            }
            else
            {
                value = NumberVMUtils.ParseUInt64(StringValue, Min, Max, out error);
            }
            return(error);
        }
Example #14
0
 protected override string OnNewValue(TimeSpan value)
 {
     return(NumberVMUtils.ToString(value));
 }
Example #15
0
 protected override string OnNewValue(IList <float> value)
 {
     return(NumberVMUtils.ToString(value));
 }
Example #16
0
 protected override string OnNewValue(string value)
 {
     return(NumberVMUtils.ToString(value, allowNullString));
 }
Example #17
0
 protected override string OnNewValue(double value)
 {
     return(NumberVMUtils.ToString(value));
 }
Example #18
0
 protected override string OnNewValue(IList <byte> value)
 {
     return(NumberVMUtils.ByteArrayToString(value, UpperCaseHex));
 }
Example #19
0
 protected override string OnNewValue(long value)
 {
     return(NumberVMUtils.ToString(value, Min, Max, UseDecimal));
 }
Example #20
0
 protected override string OnNewValue(bool?value)
 {
     return(value == null ? string.Empty : NumberVMUtils.ToString(value.Value));
 }
Example #21
0
 protected override string OnNewValue(ulong?value)
 {
     return(value == null ? string.Empty : NumberVMUtils.ToString(value.Value, Min, Max, UseDecimal));
 }