Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 13:32:34 (11 years ago)
Author:
mkommend
Message:

#1734: Added StorableConstructor to all storable DataImporter classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMeanCommand.cs

    r7267 r9614  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.DataImporter.Command.View;
    2624using HeuristicLab.DataImporter.Data;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
    29 using HeuristicLab.DataImporter.Command.View;
    3027using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3128
     
    3532    "Aggregation", Position = 0, OptionsView = typeof(AggregationCommandView))]
    3633  public class AggregateWithMeanCommand : AggregateCommandBase {
    37     private AggregateWithMeanCommand()
    38       : base(null,string.Empty,null) {
    39     }
     34    [StorableConstructor]
     35    protected AggregateWithMeanCommand(bool deserializing) : base(deserializing) { }
    4036
    4137    public AggregateWithMeanCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
     
    5854        }
    5955      }
    60       return cnt !=0 ? value/cnt : (double?)null;
     56      return cnt != 0 ? value / cnt : (double?)null;
    6157    }
    6258  }
Note: See TracChangeset for help on using the changeset viewer.