Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9740 for trunk/sources


Ignore:
Timestamp:
07/24/13 10:31:40 (11 years ago)
Author:
gkronber
Message:

#1483: removed parameterless constructor from DataRow and added a check for IsNullOrEmpty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataRow.cs

    r9456 r9740  
    7676      this.values = new ObservableList<double>(original.values);
    7777    }
    78     public DataRow()
    79       : base() {
    80       VisualProperties = new DataRowVisualProperties();
    81       values = new ObservableList<double>();
    82     }
    8378    public DataRow(string name)
    8479      : base(name) {
     80      if (string.IsNullOrEmpty(name)) throw new ArgumentException("Name of a DataRow cannot be empty", name);
    8581      VisualProperties = new DataRowVisualProperties(name);
    8682      values = new ObservableList<double>();
     
    8884    public DataRow(string name, string description)
    8985      : base(name, description) {
     86      if (string.IsNullOrEmpty(name)) throw new ArgumentException("Name of a DataRow cannot be empty", name);
    9087      VisualProperties = new DataRowVisualProperties(name);
    9188      values = new ObservableList<double>();
     
    9390    public DataRow(string name, string description, IEnumerable<double> values)
    9491      : base(name, description) {
     92      if (string.IsNullOrEmpty(name)) throw new ArgumentException("Name of a DataRow cannot be empty", name);
    9593      VisualProperties = new DataRowVisualProperties(name);
    9694      this.values = new ObservableList<double>(values);
Note: See TracChangeset for help on using the changeset viewer.