Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/RunCollectionModification/RunCollectionSorter.cs

    r14185 r14927  
    2828using HeuristicLab.Data;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.Persistence;
    3131
    3232namespace HeuristicLab.Optimization {
    3333  [Item("RunCollection Sorter", "Sorts a run collection according the specified key variable.")]
    34   [StorableClass]
     34  [StorableType("95b92306-f4fd-4e40-b599-cc5a9b225293")]
    3535  public class RunCollectionSorter : ParameterizedNamedItem, IRunCollectionModifier {
    3636
     
    100100    public void Modify(List<IRun> runs) {
    101101      var sortedRuns = runs
    102         .Select(r => new {Run = r, Key = GetValue(r)})
     102        .Select(r => new { Run = r, Key = GetValue(r) })
    103103        .OrderBy(r => r.Key, Comparer)
    104104        .Select(r => r.Run).ToList();
Note: See TracChangeset for help on using the changeset viewer.