Changeset 5570
- Timestamp:
- 02/28/11 18:21:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r5559 r5570 62 62 if (variableNameToVariableIndexMapping != null) throw new InvalidOperationException("VariableNames can only be set once."); 63 63 this.variableNameToVariableIndexMapping = new Dictionary<string, int>(); 64 this.variableIndexToVariableNameMapping = new Dictionary<int, string>(); 64 65 int i = 0; 65 66 foreach (string variableName in value) { 66 67 this.variableNameToVariableIndexMapping.Add(variableName, i); 68 this.variableIndexToVariableNameMapping.Add(i, variableName); 67 69 i++; 68 70 } 69 variableNameToVariableIndexMapping = variableIndexToVariableNameMapping.ToDictionary(x => x.Value, x => x.Key);70 71 } 71 72 }
Note: See TracChangeset
for help on using the changeset viewer.