ymlValue.cs 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace System.Fire.yaml {
  5. class ymlValue {
  6. private List<ymlValue> _sub = new List<ymlValue>();
  7. private string _name = "";
  8. private string _value = "";
  9. //private ymlValue _parent;
  10. public ymlValue(string Line) {
  11. }
  12. public ymlValue(string Name, string Value) {
  13. this._name = Name;
  14. this._value = Value;
  15. }
  16. public ymlValue(string Name, List<ymlValue> SubItems) {
  17. this._name = Name;
  18. if(SubItems != null)
  19. this._sub = SubItems;
  20. }
  21. public string Value {
  22. get { return this.ToString(); }
  23. set {
  24. }
  25. }
  26. //public string this[string VariableName] {
  27. // get { return this.ymlValue(VariableName); }
  28. //}
  29. public override string ToString() {
  30. string str = "";
  31. return str;
  32. }
  33. }
  34. }