public void Set(ElementStringNames Name, string value) { if (ListString.Find(x => x.Name == Name) == null) { ListString.Add(new ElementString(Name, value)); } else { ListString.Find(x => x.Name == Name).Value = value; } }
public ElementString(ElementStringNames Name, string Value) { this.Name = Name; this.Value = Value; }
public string Get(ElementStringNames Name) { return(ListString.Find(x => x.Name == Name).Value); }