Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/13/12 11:49:29 (12 years ago)
Author:
ascheibe
Message:

#1952 (#1937) added Mono support to persistence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/TypeSerializer.cs

    r7259 r8641  
    4141
    4242    public bool CanSerialize(Type type) {
     43      #region Mono Compatibility
    4344      return type == typeof(Type) ||
    44              type.VersionInvariantName() == "System.RuntimeType, mscorlib";
     45        type.VersionInvariantName() == "System.RuntimeType, mscorlib" ||
     46        type.VersionInvariantName() == "System.MonoType, mscorlib";
     47      #endregion
    4548    }
    4649
    4750    public string JustifyRejection(Type type) {
    48       return "not System.Type nor System.RuntimeType";
     51      #region Mono Compatibility
     52      return "not System.Type, System.RuntimeType, System.MonoType";
     53      #endregion
    4954    }
    5055
Note: See TracChangeset for help on using the changeset viewer.