Changeset 7968 for branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues
- Timestamp:
- 06/05/12 16:39:54 (13 years ago)
- Location:
- branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command
- Property svn:ignore
-
old new 1 1 bin 2 2 obj 3 *.user
-
- Property svn:ignore
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesCommand.cs
r7267 r7968 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; 25 using System.Text;26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; … … 50 48 base.Execute(); 51 49 ColumnGroup tempColumnGroup = new ColumnGroup(); 52 Dictionary<int, object> positions = new Dictionary<int, object>();50 HashSet<int> positions = new HashSet<int>(); 53 51 ColumnBase column; 54 52 … … 56 54 column = ColumnGroup.GetColumn(AffectedColumns[col]); 57 55 for (int row = 0; row < ColumnGroup.RowCount; row++) { 58 if (column.GetValue(row) == null && !positions.Contains Key(row))59 positions [row] = null;56 if (column.GetValue(row) == null && !positions.Contains(row)) 57 positions.Add(row); 60 58 } 61 59 } … … 67 65 68 66 for (int i = 0; i < ColumnGroup.RowCount; i++) 69 if (!positions.Contains Key(i))67 if (!positions.Contains(i)) 70 68 tempColumnGroup.AddRow(ColumnGroup.GetRow(i)); 71 69
Note: See TracChangeset
for help on using the changeset viewer.