Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/10 00:42:28 (14 years ago)
Author:
epitzer
Message:

Update API docs. (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Serializer.cs

    r3007 r3016  
    5151    private readonly List<Exception> exceptions;
    5252
     53    /// <summary>
     54    /// Gets or sets a value indicating whether to interleave type information
     55    /// while serializing an object.
     56    ///
     57    /// Alternatively the type information can be obtained through the
     58    /// <see cref="TypeCache"/> Property after serialization is done.
     59    /// </summary>
     60    /// <value>
     61    ///   <c>true</c> if type information should be interleaved; otherwise, <c>false</c>.
     62    /// </value>
    5363    public bool InterleaveTypeInformation { get; set; }
    5464
     
    5666    /// Contains a mapping of type id to type and serializer.
    5767    /// </summary>
     68    /// <value>The type cache.</value>
    5869    public List<TypeMapping> TypeCache {
    5970      get {
     
    99110      requiredFiles = new List<string>(files.Keys);
    100111    }
    101    
     112
     113    /// <summary>
     114    /// Initializes a new instance of the <see cref="Serializer"/> class.
     115    /// </summary>
     116    /// <param name="obj">The object to serialize.</param>
     117    /// <param name="configuration">The configuration.</param>
    102118    public Serializer(object obj, Configuration configuration) :
    103119      this(obj, configuration, "ROOT") { }
    104120
     121    /// <summary>
     122    /// Initializes a new instance of the <see cref="Serializer"/> class.
     123    /// </summary>
     124    /// <param name="obj">The object to serialize.</param>
     125    /// <param name="configuration">The configuration.</param>
     126    /// <param name="rootName">Name of the root token.</param>
    105127    public Serializer(object obj, Configuration configuration, string rootName)
    106128      : this(obj, configuration, rootName, false) { }
    107129
     130    /// <summary>
     131    /// Initializes a new instance of the <see cref="Serializer"/> class.
     132    /// </summary>
     133    /// <param name="obj">The object to serialize.</param>
     134    /// <param name="configuration">The configuration.</param>
     135    /// <param name="rootName">Name of the root token.</param>
    108136    /// <param name="isTestRun">Try to complete the whole object graph,
    109137    /// don't stop at the first exception</param>
     
    119147    }
    120148
     149    /// <summary>
     150    /// Returns an enumerator that iterates through a collection.
     151    /// </summary>
     152    /// <returns>
     153    /// An <see cref="T:System.Collections.IEnumerator"/> object that can be used to
     154    /// iterate through the collection.
     155    /// </returns>
    121156    IEnumerator IEnumerable.GetEnumerator() {
    122157      return GetEnumerator();
    123158    }
    124159
     160    /// <summary>
     161    /// Returns an enumerator that iterates through the serialization tokens.
     162    /// </summary>
     163    /// <returns>
     164    /// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to
     165    /// iterate through serialization tokens.
     166    /// </returns>
    125167    public IEnumerator<ISerializationToken> GetEnumerator() {
    126168      var enumerator = Serialize(new DataMemberAccessor(rootName, null, () => obj, null));
     
    267309      yield return new EndToken(name, typeId, id);
    268310    }
    269 
    270311  }
    271 
    272 
    273312}
Note: See TracChangeset for help on using the changeset viewer.