| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Text; |
| | | 5 | | using System.Threading.Tasks; |
| | | 6 | | using System.Xml; |
| | | 7 | | using System.Xml.Schema; |
| | | 8 | | using System.Xml.Serialization; |
| | | 9 | | |
| | | 10 | | namespace Mklinker { |
| | | 11 | | |
| | | 12 | | [Serializable] |
| | | 13 | | public class Variable { |
| | | 14 | | |
| | | 15 | | [XmlAttribute("Name")] |
| | | 16 | | public string name; |
| | | 17 | | |
| | | 18 | | [XmlAttribute("Value")] |
| | | 19 | | public string value; |
| | | 20 | | |
| | 0 | 21 | | private Variable() {} |
| | | 22 | | |
| | 26 | 23 | | public Variable (string name, string value) { |
| | 13 | 24 | | this.name = name; |
| | 13 | 25 | | this.value = value; |
| | 13 | 26 | | } |
| | | 27 | | |
| | 4 | 28 | | public override string ToString() { |
| | 4 | 29 | | return $"{ name }: { value }"; |
| | 4 | 30 | | } |
| | | 31 | | |
| | | 32 | | } |
| | | 33 | | |
| | | 34 | | } |