Changeset 6779 for branches/GeneralizedQAP/HeuristicLab.Services.ProblemInstances/SimpleSerializer.cs
- Timestamp:
- 09/16/11 10:49:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Services.ProblemInstances/SimpleSerializer.cs
r6733 r6779 131 131 132 132 public static double[] DeserializeDoubleArray(string array) { 133 string[] tokens = array.Split( ';');133 string[] tokens = array.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); 134 134 int dim1 = int.Parse(tokens[0], CultureInfo.InvariantCulture.NumberFormat); 135 135 double[] result = new double[dim1]; … … 154 154 155 155 public static int[] DeserializeIntArray(string array) { 156 string[] tokens = array.Split( ';');156 string[] tokens = array.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); 157 157 int dim1 = int.Parse(tokens[0], CultureInfo.InvariantCulture.NumberFormat); 158 158 int[] result = new int[dim1];
Note: See TracChangeset
for help on using the changeset viewer.