Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/05/17 17:36:50 (6 years ago)
Author:
jkarder
Message:

#2520: worked on persistence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceOverhaul/HeuristicLab.Persistence/4.0/Core/StaticCache.cs

    r14537 r14549  
    2121
    2222using System;
     23using System.Collections;
    2324using System.Collections.Generic;
    2425using System.Drawing;
     
    103104      //       RegisterType(new Guid("E92C35AD-32B1-4F37-B8D2-BE2F5FEB465B"), typeof(Dictionary<,>));
    104105
    105 
     106      RegisterTypeAndFullName(typeof(object));
    106107      RegisterTypeAndFullName(typeof(bool));
    107108      RegisterTypeAndFullName(typeof(byte));
     
    116117      RegisterTypeAndFullName(typeof(float));
    117118      RegisterTypeAndFullName(typeof(double));
     119      RegisterTypeAndFullName(typeof(decimal));
    118120      RegisterTypeAndFullName(typeof(DateTime));
    119121      RegisterTypeAndFullName(typeof(TimeSpan));
     122      RegisterTypeAndFullName(typeof(Font));
    120123      RegisterTypeAndFullName(typeof(Color));
     124      RegisterTypeAndFullName(typeof(Bitmap));
    121125      RegisterTypeAndFullName(typeof(Point));
    122126      RegisterTypeAndFullName(typeof(KeyValuePair<,>));
     127      RegisterTypeAndFullName(typeof(Tuple<>));
     128      RegisterTypeAndFullName(typeof(Tuple<,>));
     129      RegisterTypeAndFullName(typeof(Tuple<,,>));
     130      RegisterTypeAndFullName(typeof(Tuple<,,,>));
     131      RegisterTypeAndFullName(typeof(Tuple<,,,,>));
     132      RegisterTypeAndFullName(typeof(Tuple<,,,,,>));
     133      RegisterTypeAndFullName(typeof(Tuple<,,,,,,>));
     134      RegisterTypeAndFullName(typeof(Tuple<,,,,,,,>));
     135      RegisterTypeAndFullName(typeof(Nullable<>));
    123136      RegisterTypeAndFullName(typeof(string));
    124137
     
    138151      RegisterTypeAndFullName(typeof(string[]));
    139152      RegisterTypeAndFullName(typeof(List<>));
     153      RegisterTypeAndFullName(typeof(ArrayList));
     154      RegisterTypeAndFullName(typeof(HashSet<>));
    140155      RegisterTypeAndFullName(typeof(Stack<>));
    141       RegisterTypeAndFullName(typeof(System.Collections.Stack));
    142       RegisterTypeAndFullName(typeof(HashSet<>));
     156      RegisterTypeAndFullName(typeof(Stack));
     157      RegisterTypeAndFullName(typeof(Queue<>));
     158      RegisterTypeAndFullName(typeof(Queue));
    143159      RegisterTypeAndFullName(typeof(Dictionary<,>));
    144160
    145 
    146161      foreach (var asm in AppDomain.CurrentDomain.GetAssemblies()) {
    147         foreach (var t in asm.GetTypes().Where(x => StorableClassAttribute.IsStorableClass(x)))
     162        foreach (var t in asm.GetTypes().Where(x => StorableClassAttribute.IsStorableClass(x) || x.IsValueType && !x.IsPrimitive && !x.IsEnum && x.IsSealed))
    148163          RegisterTypeAndFullName(t);
    149164      }
Note: See TracChangeset for help on using the changeset viewer.