Changeset 15077


Ignore:
Timestamp:
06/28/17 15:58:42 (3 months ago)
Author:
mkommend
Message:

#2760: Reordered backwards compatiblity and event registration in after deserialization hook of CrossValidation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs

    r15026 r15077  
    7676    [StorableHook(HookType.AfterDeserialization)]
    7777    private void AfterDeserialization() {
     78      // BackwardsCompatibility3.3
     79      #region Backwards compatible code, remove with 3.4
     80      if (shuffleSamples == null) shuffleSamples = new BoolValue(false);
     81      #endregion
     82
    7883      RegisterEvents();
    7984      if (Algorithm != null) RegisterAlgorithmEvents();
    80 
    81       if (shuffleSamples == null)
    82         shuffleSamples = new BoolValue(false);
    8385    }
    8486
Note: See TracChangeset for help on using the changeset viewer.