Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12181


Ignore:
Timestamp:
03/10/15 15:15:14 (9 years ago)
Author:
jkarder
Message:

#2358: added check for StorableClass attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs

    r12088 r12181  
    3232using HeuristicLab.MainForm.WindowsForms;
    3333using HeuristicLab.Persistence.Core;
     34using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3435using HeuristicLab.Persistence.Default.Xml;
    3536using HeuristicLab.PluginInfrastructure;
     
    474475      if (variable.Value != null) {
    475476        type = variable.Value.GetType();
    476         if (serializableLookup.TryGetValue(type, out serializable))
    477           return serializable;
     477        if (serializableLookup.TryGetValue(type, out serializable)) return serializable;
     478        if (StorableClassAttribute.IsStorableClass(type)) return serializableLookup[type] = true;
    478479      }
    479480
Note: See TracChangeset for help on using the changeset viewer.