using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BenchtopParser { public class ProgramConfig { public String? ProgramNumber { get; set; } public Dictionary> Group { get; set; } public ProgramConfig() { this.Group = new Dictionary>(); } } public class Configuration { public String? name { get; set; } public String? value { get; set; } public String? type { get; set; } public String? unit { get; set; } public Configuration(List config, string data) { var nameValue = data.Split("="); name = nameValue[0].Trim(); value = nameValue[1].Trim(); unit = config[1].Trim(); type = config[2].Trim(); //a, c, f, i } } }