コード例 #1
0
 private static IEnumerable <Device> LoadDevices()
 {
     return(FileHelpers.ReadLinesFromResource <Device>("ExperienceGenerator.Data.devices.txt").Select(x => x.Trim()).Where(x => !x.StartsWith("#") && !string.IsNullOrWhiteSpace(x)).Select(Device.FromCsv));
 }