- Timestamp:
- 04/14/09 13:23:08 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlGenerator.cs
r1542 r1553 19 19 public const string TYPECACHE = "TYPECACHE"; 20 20 public const string TYPE = "TYPE"; 21 public const string METAINFO = "METAINFO"; 21 22 } 22 23 … … 34 35 if (type == typeof(NullReferenceToken)) 35 36 return Format((NullReferenceToken)token); 37 if (type == typeof(MetaInfoBeginToken)) 38 return Format((MetaInfoBeginToken)token); 39 if (type == typeof(MetaInfoEndToken)) 40 return Format((MetaInfoEndToken)token); 36 41 throw new ApplicationException("Invalid token of type " + type.FullName); 37 42 } … … 41 46 protected abstract T Format(ReferenceToken referenceToken); 42 47 protected abstract T Format(NullReferenceToken nullReferenceToken); 48 protected abstract T Format(MetaInfoBeginToken metaInfoBeginToken); 49 protected abstract T Format(MetaInfoEndToken metaInfoEndToken); 43 50 } 44 51 … … 126 133 } 127 134 135 protected override string Format(MetaInfoBeginToken metaInfoBeginToken) { 136 string result = Prefix + "<" + XmlStrings.METAINFO + ">"; 137 depth += 1; 138 return result; 139 } 140 141 protected override string Format(MetaInfoEndToken metaInfoEndToken) { 142 depth -= 1; 143 return Prefix + "</" + XmlStrings.METAINFO + ">"; 144 } 145 128 146 public IEnumerable<string> Format(List<TypeMapping> typeCache) { 129 147 yield return "<" + XmlStrings.TYPECACHE + ">";
Note: See TracChangeset
for help on using the changeset viewer.