- Timestamp:
- 05/06/13 12:30:18 (12 years ago)
- Location:
- branches/HivePerformance/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 9376,9379,9388,9390,9396,9402-9410,9413,9417,9426-9429,9432-9433,9435-9439,9441-9443
- Property svn:mergeinfo changed
-
branches/HivePerformance/sources/HeuristicLab.Persistence
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Persistence (added) merged: 9388
- Property svn:mergeinfo changed
-
branches/HivePerformance/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlSerializerBase.cs
r7259 r9444 23 23 using System.Collections; 24 24 using System.Collections.Generic; 25 using System.Linq; 25 26 using System.Text; 26 27 using HeuristicLab.Persistence.Auxiliary; … … 56 57 lowerBounds[i] = a.GetLowerBound(i); 57 58 } 59 if (lengths.Any(l => l == 0)) 60 return new XmlString(sb.ToString()); 58 61 int[] positions = (int[])lowerBounds.Clone(); 59 62 while (positions[a.Rank - 1] < lengths[a.Rank - 1] + lowerBounds[a.Rank - 1]) { … … 102 105 } 103 106 } 104 if (positions[rank - 1] != lowerBounds[rank - 1] + lengths[rank - 1] )107 if (positions[rank - 1] != lowerBounds[rank - 1] + lengths[rank - 1] && lengths.All(l => l != 0)) 105 108 throw new PersistenceException("Insufficient number of elements while trying to fill number array."); 106 109 return (T)(object)a;
Note: See TracChangeset
for help on using the changeset viewer.