-
Notifications
You must be signed in to change notification settings - Fork 3
/
VdfValue.cs
37 lines (31 loc) · 935 Bytes
/
VdfValue.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.Collections.Generic;
namespace NeXt.Vdf
{
/// <summary>
/// Abstract VdfValue
/// </summary>
public abstract class VdfValue
{
public VdfValue(string name)
{
Name = name;
}
/// <summary>
/// This values name
/// </summary>
public string Name { get; private set; }
private List<string> comments = new List<string>();
/// <summary>
/// This values type, determines how it can be casted
/// </summary>
public VdfValueType Type { get; protected set; }
/// <summary>
/// Comments that where in front of this VdfValue
/// </summary>
public ICollection<string> Comments { get { return comments; } }
/// <summary>
/// This values Parent, null for root
/// </summary>
public VdfValue Parent { get; internal set; }
}
}