- Timestamp:
- 03/15/10 14:45:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlGenerator.cs
r3028 r3036 112 112 } 113 113 114 /// <summary> 115 /// Formats the specified begin token. 116 /// </summary> 117 /// <param name="beginToken">The begin token.</param> 118 /// <returns>The token in serialized form.</returns> 114 119 protected override string Format(BeginToken beginToken) { 115 120 var dict = new Dictionary<string, object> { … … 134 139 } 135 140 141 /// <summary> 142 /// Formats the specified end token. 143 /// </summary> 144 /// <param name="endToken">The end token.</param> 145 /// <returns>The token in serialized form.</returns> 136 146 protected override string Format(EndToken endToken) { 137 147 return CreateNodeEnd(XmlStringConstants.COMPOSITE); 138 148 } 139 149 150 /// <summary> 151 /// Formats the specified data token. 152 /// </summary> 153 /// <param name="dataToken">The data token.</param> 154 /// <returns>The token in serialized form.</returns> 140 155 protected override string Format(PrimitiveToken dataToken) { 141 156 var dict = new Dictionary<string, object> { … … 148 163 } 149 164 165 /// <summary> 166 /// Formats the specified ref token. 167 /// </summary> 168 /// <param name="refToken">The ref token.</param> 169 /// <returns>The token in serialized form.</returns> 150 170 protected override string Format(ReferenceToken refToken) { 151 171 return CreateNode(XmlStringConstants.REFERENCE, … … 155 175 } 156 176 177 /// <summary> 178 /// Formats the specified null ref token. 179 /// </summary> 180 /// <param name="nullRefToken">The null ref token.</param> 181 /// <returns>The token in serialized form.</returns> 157 182 protected override string Format(NullReferenceToken nullRefToken) { 158 183 return CreateNode(XmlStringConstants.NULL, … … 161 186 } 162 187 188 /// <summary> 189 /// Formats the specified meta info begin token. 190 /// </summary> 191 /// <param name="metaInfoBeginToken">The meta info begin token.</param> 192 /// <returns>The token in serialized form.</returns> 163 193 protected override string Format(MetaInfoBeginToken metaInfoBeginToken) { 164 194 return CreateNodeStart(XmlStringConstants.METAINFO); 165 195 } 166 196 197 /// <summary> 198 /// Formats the specified meta info end token. 199 /// </summary> 200 /// <param name="metaInfoEndToken">The meta info end token.</param> 201 /// <returns>The token in serialized form.</returns> 167 202 protected override string Format(MetaInfoEndToken metaInfoEndToken) { 168 203 return CreateNodeEnd(XmlStringConstants.METAINFO); … … 170 205 171 206 private TypeToken lastTypeToken; 207 /// <summary> 208 /// Formats the specified token. 209 /// </summary> 210 /// <param name="token">The token.</param> 211 /// <returns>The token in serialized form.</returns> 172 212 protected override string Format(TypeToken token) { 173 213 lastTypeToken = token; … … 205 245 /// <summary> 206 246 /// Serialize an object into a file. 207 ///208 247 /// The XML configuration is obtained from the <c>ConfigurationService</c>. 209 248 /// The file is actually a ZIP file. 210 249 /// Compression level is set to 5 and needed assemblies are not included. 211 /// </summary> 250 /// </summary> 251 /// <param name="o">The object.</param> 252 /// <param name="filename">The filename.</param> 212 253 public static void Serialize(object o, string filename) { 213 254 Serialize(o, filename, ConfigurationService.Instance.GetConfiguration(new XmlFormat()), false, 5);
Note: See TracChangeset
for help on using the changeset viewer.