Changeset 9704
- Timestamp:
- 07/15/13 14:09:46 (11 years ago)
- Location:
- branches/HeuristicLab.Data Path DataTypes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data (added) merged: 9692,9695
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data.Views (added) merged: 9695
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data/3.3/StringArray.cs
r9657 r9704 51 51 if (value == null || !value.Any()) 52 52 elementNames = new List<string>(); 53 else if (value.Count() !=Length)54 throw new ArgumentException(" An element name must be specified for each element.");53 else if (value.Count() > Length) 54 throw new ArgumentException("The number of element names must not exceed the array length."); 55 55 else 56 56 elementNames = new List<string>(value); … … 67 67 while (elementNames.Count > value) 68 68 elementNames.RemoveAt(elementNames.Count - 1); 69 while (elementNames.Count < value)70 elementNames.Add("Element " + elementNames.Count);71 69 OnElementNamesChanged(); 72 70 OnReset(); -
branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data/3.3/ValueTypeArray.cs
r9657 r9704 51 51 if (value == null || !value.Any()) 52 52 elementNames = new List<string>(); 53 else if (value.Count() !=Length)54 throw new ArgumentException(" An element name must be specified for each element.");53 else if (value.Count() > Length) 54 throw new ArgumentException("The number of element names must not exceed the array length."); 55 55 else 56 56 elementNames = new List<string>(value); … … 69 69 while (elementNames.Count > value) 70 70 elementNames.RemoveAt(elementNames.Count - 1); 71 while (elementNames.Count < value)72 elementNames.Add("Element " + elementNames.Count);73 71 OnElementNamesChanged(); 74 72 OnReset();
Note: See TracChangeset
for help on using the changeset viewer.