- Timestamp:
- 03/25/09 17:16:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Persistence/Core/Serializer.cs
r1404 r1419 67 67 public IEnumerator<ISerializationToken> GetEnumerator() { 68 68 DataMemberAccessor rootAccessor = new DataMemberAccessor( 69 rootName, obj.GetType(),null, () => obj, null);69 rootName, null, () => obj, null); 70 70 IEnumerator<ISerializationToken> iterator = Serialize(rootAccessor); 71 71 while (iterator.MoveNext()) … … 110 110 111 111 private IEnumerator<ISerializationToken> CompositeEnumerator(string name, 112 IEnumerable values, int? id, int typeId) {112 IEnumerable<Tag> tags, int? id, int typeId) { 113 113 yield return new BeginToken(name, typeId, id); 114 foreach (object o in values) { 115 IEnumerator<ISerializationToken> iterator = Serialize(new DataMemberAccessor(o)); 114 foreach (var tag in tags) { 115 IEnumerator<ISerializationToken> iterator = Serialize( 116 new DataMemberAccessor(tag.Value, tag.Name)); 116 117 while (iterator.MoveNext()) 117 118 yield return iterator.Current; … … 132 133 } 133 134 } 134 if (nSubComponents == 0 && ! EmptyStorableClassAttribute.IsEmpyStorable(value )) {135 if (nSubComponents == 0 && ! EmptyStorableClassAttribute.IsEmpyStorable(value.GetType())) { 135 136 throw new ApplicationException( 136 137 String.Format(
Note: See TracChangeset
for help on using the changeset viewer.