19 using System.Collections.Generic;
41 if (file ==
null || file.Length == 0)
43 return Enumerable.Empty<
MapFile>();
47 let filename = kvp.Key
48 where filename.EndsWith(
".csv", StringComparison.InvariantCultureIgnoreCase)
49 let lines = kvp.Value.Where(line => !
string.IsNullOrEmpty(line))
50 let mapFile = SafeRead(filename, lines, market, securityType)
58 private static MapFile SafeRead(
string filename, IEnumerable<string> contents,
string market,
SecurityType securityType)
60 var permtick = Path.GetFileNameWithoutExtension(filename);
67 return new MapFile(permtick, Enumerable.Empty<MapFileRow>());