Changeset 1823 for trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/NumberEnumerable2StringSerializer.cs
- Timestamp:
- 05/15/09 12:29:13 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/NumberEnumerable2StringSerializer.cs
r1805 r1823 6 6 using System.Globalization; 7 7 using System.Text; 8 using HeuristicLab.Persistence.Default. Decomposers.Storable;8 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 9 9 using HeuristicLab.Persistence.Auxiliary; 10 10 11 namespace HeuristicLab.Persistence.Default. Decomposers {11 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 12 12 13 13 [EmptyStorableClass] 14 public class NumberEnumerable2String Decomposer : IDecomposer {14 public class NumberEnumerable2StringSerializer : ICompositeSerializer { 15 15 16 16 public int Priority { … … 18 18 } 19 19 20 private static readonly Number2String Decomposer numberConverter =21 new Number2String Decomposer();20 private static readonly Number2StringSerializer numberConverter = 21 new Number2StringSerializer(); 22 22 23 23 private static readonly Dictionary<Type, Type> interfaceCache = new Dictionary<Type, Type>(); … … 29 29 if (iface.IsGenericType && 30 30 iface.GetGenericTypeDefinition() == typeof(IEnumerable<>) && 31 numberConverter.Can Decompose(iface.GetGenericArguments()[0])) {31 numberConverter.CanSerialize(iface.GetGenericArguments()[0])) { 32 32 interfaceCache.Add(type, iface); 33 33 return iface; … … 53 53 } 54 54 55 public bool Can Decompose(Type type) {55 public bool CanSerialize(Type type) { 56 56 return 57 57 ReflectionTools.HasDefaultConstructor(type) &&
Note: See TracChangeset
for help on using the changeset viewer.