public IEnumerable <T> Parse(string path) { List <T> list = MappedReader.Read <T>(path, this.Map).ToList(); this.AddRange(list.Except(this)); return(this.Where(elem => list.Contains(elem))); }
public static IEnumerable <T> Read <T>(string path, Map map) where T : new() { return(MappedReader.Read <T>(path, map, Driver.GetInputDriverForFile(path))); }