Changeset 1823 for trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Number2StringSerializer.cs
- Timestamp:
- 05/15/09 12:29:13 (15 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/Number2StringSerializer.cs
r1805 r1823 8 8 using System.Text; 9 9 10 namespace HeuristicLab.Persistence.Default. Decomposers {10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 public class Number2String Decomposer : IDecomposer {12 public class Number2StringSerializer : ICompositeSerializer { 13 13 14 14 private static readonly List<Type> numberTypes = … … 30 30 private static readonly Dictionary<Type, MethodInfo> numberParsers; 31 31 32 static Number2String Decomposer() {32 static Number2StringSerializer() { 33 33 numberParsers = new Dictionary<Type, MethodInfo>(); 34 34 foreach (var type in numberTypes) { … … 39 39 } 40 40 41 public bool Can Decompose(Type type) {41 public bool CanSerialize(Type type) { 42 42 return numberParsers.ContainsKey(type); 43 43 } … … 66 66 } 67 67 68 69 #region IDecomposer Members70 68 71 69 public int Priority { … … 99 97 // numbers are composed just of meta info, no need to populate 100 98 } 101 102 #endregion103 99 } 104 105 100 }
Note: See TracChangeset
for help on using the changeset viewer.