source code checkin

This commit is contained in:
Brett Hewitson 2021-01-07 16:23:23 +10:00
parent 5f8fb2c825
commit 7e57b72e35
675 changed files with 168433 additions and 0 deletions

37
src/NeXtVdf/VdfValue.cs Normal file
View file

@ -0,0 +1,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; }
}
}