Use properties instead of fields in some elements to be ASP API friendly
This commit is contained in:
parent
29619765a8
commit
eae24d1b14
|
@ -3,7 +3,7 @@ namespace Sharp.Augeas;
|
|||
public class Argument : Node
|
||||
{
|
||||
|
||||
public string Value;
|
||||
public string Value { get; set; }
|
||||
|
||||
public bool SetValue(string newValue)
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue