Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Core/Tag.cs @ 3577

Last change on this file since 3577 was 3016, checked in by epitzer, 14 years ago

Update API docs. (#548)

File size: 1.1 KB
Line 
1using System.Collections.Generic;
2
3namespace HeuristicLab.Persistence.Core {
4
5  /// <summary>
6  /// Vehicle used inside the serialization/deserizalisation process
7  /// between composite serializers and the core.
8  /// </summary> 
9  public class Tag {
10
11    /// <summary>
12    /// Gets the name.
13    /// </summary>
14    /// <value>The name.</value>
15    public string Name { get; private set; }
16
17    /// <summary>
18    /// Gets the value.
19    /// </summary>
20    /// <value>The value.</value>
21    public object Value { get; set; }
22
23    /// <summary>
24    /// Initializes a new instance of the <see cref="Tag"/> class.
25    /// </summary>
26    /// <param name="name">The name.</param>
27    /// <param name="value">The value.</param>
28    public Tag(string name, object value) {
29      Name = name;
30      Value = value;
31    }
32
33    /// <summary>
34    /// Initializes a new instance of the <see cref="Tag"/> class
35    /// whithout a name.
36    /// </summary>
37    /// <param name="value">The value.</param>
38    public Tag(object value) {
39      Name = null;
40      Value = value;
41    }
42  }
43
44}
Note: See TracBrowser for help on using the repository browser.