Changeset 13666 for trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Timestamp:
- 03/08/16 15:06:33 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/ServiceClient/Value.cs
r13550 r13666 35 35 Name = name, 36 36 Value = bool.Parse(strValue) 37 }; break;37 }; 38 38 case "IntValue": return new IntValue() { 39 39 Name = name, 40 40 Value = int.Parse(strValue, CultureInfo.CurrentCulture.NumberFormat) 41 }; break;41 }; 42 42 case "LongValue": return new LongValue() { 43 43 Name = name, 44 44 Value = long.Parse(strValue, CultureInfo.CurrentCulture.NumberFormat) 45 }; break;45 }; 46 46 case "FloatValue": return new FloatValue() { 47 47 Name = name, 48 48 Value = float.Parse(strValue, CultureInfo.CurrentCulture.NumberFormat) 49 }; break;49 }; 50 50 case "DoubleValue": return new DoubleValue() { 51 51 Name = name, 52 52 Value = double.Parse(strValue, CultureInfo.CurrentCulture.NumberFormat) 53 }; break;53 }; 54 54 case "PercentValue": return new PercentValue() { 55 55 Name = name, 56 56 Value = double.Parse(Regex.Match(strValue, "[0-9.,]+").Value, CultureInfo.CurrentCulture.NumberFormat) / 100.0 57 }; break;57 }; 58 58 case "StringValue": return new StringValue() { 59 59 Name = name, 60 60 Value = strValue 61 }; break;61 }; 62 62 case "TimeSpanValue": return new TimeSpanValue() { 63 63 Name = name, 64 64 Value = long.Parse(strValue, CultureInfo.CurrentCulture.NumberFormat) 65 }; break;65 }; 66 66 default: throw new ArgumentException(string.Format("type {0} is unknown", type), "type"); 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.