Пример #1
0
        protected override string ConvertToValue(out IList <uint> value)
        {
            string error;

            value = NumberVMUtils.ParseUInt32List(StringValue, Min, Max, out error);
            return(error);
        }
Пример #2
0
        protected override string ConvertToValue(out IList <char> value)
        {
            string error;

            value = NumberVMUtils.ParseCharList(StringValue, out error);
            return(error);
        }
Пример #3
0
        protected override string ConvertToValue(out string value)
        {
            string error;

            value = NumberVMUtils.ParseString(StringValue, allowNullString, out error);
            return(error);
        }
Пример #4
0
        protected override string ConvertToValue(out double value)
        {
            string error;

            value = NumberVMUtils.ParseDouble(StringValue, out error);
            return(error);
        }
Пример #5
0
        protected override string ConvertToValue(out long value)
        {
            string error;

            value = NumberVMUtils.ParseInt64(StringValue, Min, Max, out error);
            return(error);
        }
Пример #6
0
        protected override string ConvertToValue(out ushort value)
        {
            string error;

            value = NumberVMUtils.ParseUInt16(StringValue, Min, Max, out error);
            return(error);
        }
Пример #7
0
        protected override string ConvertToValue(out sbyte value)
        {
            string error;

            value = NumberVMUtils.ParseSByte(StringValue, Min, Max, out error);
            return(error);
        }
Пример #8
0
        protected override string ConvertToValue(out bool value)
        {
            string error;

            value = NumberVMUtils.ParseBoolean(StringValue, out error);
            return(error);
        }
Пример #9
0
        protected override string ConvertToValue(out IList <byte> value)
        {
            string error;

            value = NumberVMUtils.ParseByteArray(StringValue, out error);
            return(error);
        }
Пример #10
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);
        }
Пример #11
0
 protected override void SetValue(IList <uint> value)
 {
     this.StringValue = NumberVMUtils.ToString(value, Min, Max, UseDecimal);
 }
Пример #12
0
 protected override void SetValue(IList <char> value)
 {
     this.StringValue = NumberVMUtils.ToString(value);
 }
Пример #13
0
 protected override void SetValue(string value)
 {
     this.StringValue = NumberVMUtils.ToString(value, allowNullString);
 }
Пример #14
0
 protected override void SetValue(double value)
 {
     this.StringValue = NumberVMUtils.ToString(value);
 }
Пример #15
0
 protected override void SetValue(ulong?value)
 {
     this.StringValue = value == null ? string.Empty : NumberVMUtils.ToString(value.Value, Min, Max, UseDecimal);
 }
Пример #16
0
 protected override void SetValue(IList <byte> value)
 {
     this.StringValue = NumberVMUtils.ByteArrayToString(value, UpperCaseHex);
 }