Changeset 8641 for trunk/sources/HeuristicLab.Persistence/3.3/Default
- Timestamp:
- 09/13/12 11:49:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/TypeSerializer.cs
r7259 r8641 41 41 42 42 public bool CanSerialize(Type type) { 43 #region Mono Compatibility 43 44 return type == typeof(Type) || 44 type.VersionInvariantName() == "System.RuntimeType, mscorlib"; 45 type.VersionInvariantName() == "System.RuntimeType, mscorlib" || 46 type.VersionInvariantName() == "System.MonoType, mscorlib"; 47 #endregion 45 48 } 46 49 47 50 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 49 54 } 50 55
Note: See TracChangeset
for help on using the changeset viewer.