Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16242 for trunk


Ignore:
Timestamp:
10/19/18 13:15:43 (6 years ago)
Author:
jkarder
Message:

#2939: throw ArgumentException if invalid row is specified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/ModifiableDataset.cs

    r16120 r16242  
    5656
    5757    public IEnumerable<object> GetRow(int row) {
     58      if (row < 0 || row >= Rows)
     59        throw new ArgumentException(string.Format("Invalid row {0} specified. The dataset contains {1} row(s).", row, Rows));
     60
    5861      return variableValues.Select(x => x.Value[row]);
    5962    }
Note: See TracChangeset for help on using the changeset viewer.