Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/09 18:02:52 (15 years ago)
Author:
epitzer
Message:

Update TypeSerializer use full AssemblyQualifiedName when serializing Type objects. (#603)

File:
1 edited

Legend:

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

    r1823 r1843  
    2121
    2222    public IEnumerable<Tag> CreateMetaInfo(object o) {
    23       yield return new Tag("VersionInvariantName", ((Type)o).VersionInvariantName());
     23      yield return new Tag("AssemblyQualifiedName", ((Type)o).AssemblyQualifiedName);
    2424    }
    2525
     
    3636      }
    3737      try {
    38         return Type.GetType((string)it.Current.Value, true);
     38        return TypeLoader.Load((string)it.Current.Value);
    3939      } catch (InvalidCastException e) {
    4040        throw new PersistenceException("Invalid meta information during reconstruction of Type object", e);
Note: See TracChangeset for help on using the changeset viewer.