Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 14:45:46 (15 years ago)
Author:
epitzer
Message:

make most serializers internal and complete API documentation (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlGenerator.cs

    r3028 r3036  
    112112    }
    113113
     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>
    114119    protected override string Format(BeginToken beginToken) {
    115120      var dict = new Dictionary<string, object> {
     
    134139    }
    135140
     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>
    136146    protected override string Format(EndToken endToken) {
    137147      return CreateNodeEnd(XmlStringConstants.COMPOSITE);
    138148    }
    139149
     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>
    140155    protected override string Format(PrimitiveToken dataToken) {
    141156      var dict = new Dictionary<string, object> {
     
    148163    }
    149164
     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>
    150170    protected override string Format(ReferenceToken refToken) {
    151171      return CreateNode(XmlStringConstants.REFERENCE,
     
    155175    }
    156176
     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>
    157182    protected override string Format(NullReferenceToken nullRefToken) {
    158183      return CreateNode(XmlStringConstants.NULL,
     
    161186    }
    162187
     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>
    163193    protected override string Format(MetaInfoBeginToken metaInfoBeginToken) {
    164194      return CreateNodeStart(XmlStringConstants.METAINFO);
    165195    }
    166196
     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>
    167202    protected override string Format(MetaInfoEndToken metaInfoEndToken) {
    168203      return CreateNodeEnd(XmlStringConstants.METAINFO);
     
    170205
    171206    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>
    172212    protected override string Format(TypeToken token) {
    173213      lastTypeToken = token;
     
    205245    /// <summary>
    206246    /// Serialize an object into a file.
    207     ///
    208247    /// The XML configuration is obtained from the <c>ConfigurationService</c>.
    209248    /// The file is actually a ZIP file.
    210249    /// 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>
    212253    public static void Serialize(object o, string filename) {
    213254      Serialize(o, filename, ConfigurationService.Instance.GetConfiguration(new XmlFormat()), false, 5);
Note: See TracChangeset for help on using the changeset viewer.