mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-18 09:35:48 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
37
src/NeXtVdf/VdfValue.cs
Normal file
37
src/NeXtVdf/VdfValue.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue