- Timestamp:
- 04/29/09 15:30:23 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/Serializer.cs
r1702 r1703 3 3 using System; 4 4 using System.Linq; 5 using HeuristicLab.Persistence.Auxiliary; 5 6 using HeuristicLab.Persistence.Interfaces; 6 7 using HeuristicLab.Persistence.Core.Tokens; … … 9 10 using System.Runtime.InteropServices; 10 11 11 namespace HeuristicLab.Persistence.Core { 12 namespace HeuristicLab.Persistence.Core { 12 13 13 14 public class Serializer : IEnumerable<ISerializationToken> { … … 59 60 this.rootName = rootName; 60 61 this.configuration = configuration; 61 obj2id = new Dictionary<object, int>(new ReferenceEqualityComparer()) { { new object(), 0 } };62 obj2id = new Dictionary<object, int>(new ReferenceEqualityComparer()) { { new object(), 0 } }; 62 63 typeCache = new Dictionary<Type, int>(); 63 64 } … … 82 83 int typeId = typeCache[type]; 83 84 int? id = null; 84 if ( !type.IsValueType) {85 if (!type.IsValueType) { 85 86 id = obj2id.Count; 86 87 obj2id.Add(value, (int)id);
Note: See TracChangeset
for help on using the changeset viewer.