Use properties instead of fields in some elements to be ASP API friendly

This commit is contained in:
code liturgy 2022-12-06 14:30:03 +00:00
parent 29619765a8
commit eae24d1b14
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ namespace Sharp.Augeas;
public class Argument : Node
{
public string Value;
public string Value { get; set; }
public bool SetValue(string newValue)
{

View File

@ -4,8 +4,8 @@ namespace Sharp.Augeas;
public class Directive : Node
{
public string Value;
public List<Argument> Arguments;
public string Value { get; set; }
public List<Argument> Arguments { get; set; }
public bool HasArguments => Arguments.Count != 0;
/// <summary>

View File

@ -4,9 +4,9 @@ namespace Sharp.Augeas
{
public class SuperNode : Node
{
public List<Directive> Directives;
public List<Argument> Arguments;
public List<SuperNode> SuperNodes;
public List<Directive> Directives { get; set; }
public List<Argument> Arguments { get; set; }
public List<SuperNode> SuperNodes { get; set; }
public SuperNode(Augeas augeas, string path, string id) : base(augeas, path)
{