static List<ServiceFileRecord> LoadServiceRecordsFromFile() { string path = Path.Combine(Environment.CurrentDirectory, "services.txt"); List<ServiceFileRecord> records = new List<ServiceFileRecord>(); using (var reader = new ServicesFileReader(path)) { ServiceFileRecord? record; while ((record = reader.ReadNextRecord()) != null) { records.Add(record.Value); } } return records; }
static List <ServiceFileRecord> LoadServiceRecordsFromFile() { string path = Path.Combine(Environment.CurrentDirectory, "services.txt"); List <ServiceFileRecord> records = new List <ServiceFileRecord>(); using (var reader = new ServicesFileReader(path)) { ServiceFileRecord?record; while ((record = reader.ReadNextRecord()) != null) { records.Add(record.Value); } } return(records); }