Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11439


Ignore:
Timestamp:
10/10/14 08:38:06 (10 years ago)
Author:
jkarder
Message:

#2239: fixed IsSerializable

File:
1 edited

Legend:

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

    r11437 r11439  
    405405      var ser = new Serializer(variable, ConfigurationService.Instance.GetDefaultConfig(new XmlFormat()), "ROOT", true);
    406406      try {
    407         return serializableLookup[type] = ser.Any();
     407        return serializableLookup[type] = ser.Count() > 0;
    408408      } catch (PersistenceException) {
    409409        return serializableLookup[type] = false;
Note: See TracChangeset for help on using the changeset viewer.