- Timestamp:
- 01/05/17 17:36:50 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Persistence/4.0/Core/StaticCache.cs
r14537 r14549 21 21 22 22 using System; 23 using System.Collections; 23 24 using System.Collections.Generic; 24 25 using System.Drawing; … … 103 104 // RegisterType(new Guid("E92C35AD-32B1-4F37-B8D2-BE2F5FEB465B"), typeof(Dictionary<,>)); 104 105 105 106 RegisterTypeAndFullName(typeof(object)); 106 107 RegisterTypeAndFullName(typeof(bool)); 107 108 RegisterTypeAndFullName(typeof(byte)); … … 116 117 RegisterTypeAndFullName(typeof(float)); 117 118 RegisterTypeAndFullName(typeof(double)); 119 RegisterTypeAndFullName(typeof(decimal)); 118 120 RegisterTypeAndFullName(typeof(DateTime)); 119 121 RegisterTypeAndFullName(typeof(TimeSpan)); 122 RegisterTypeAndFullName(typeof(Font)); 120 123 RegisterTypeAndFullName(typeof(Color)); 124 RegisterTypeAndFullName(typeof(Bitmap)); 121 125 RegisterTypeAndFullName(typeof(Point)); 122 126 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<>)); 123 136 RegisterTypeAndFullName(typeof(string)); 124 137 … … 138 151 RegisterTypeAndFullName(typeof(string[])); 139 152 RegisterTypeAndFullName(typeof(List<>)); 153 RegisterTypeAndFullName(typeof(ArrayList)); 154 RegisterTypeAndFullName(typeof(HashSet<>)); 140 155 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)); 143 159 RegisterTypeAndFullName(typeof(Dictionary<,>)); 144 160 145 146 161 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)) 148 163 RegisterTypeAndFullName(t); 149 164 }
Note: See TracChangeset
for help on using the changeset viewer.