List<TAXIWAY_CENTER_LINE> kk = allObjs.Where(c => c.ToString() == "AMXM.TAXIWAY_CENTER_LINE").Select(c=>(TAXIWAY_CENTER_LINE)c).ToList();
关键就在List<object>的 select(c=> (T) c ) 将每个object转成了T
List<TAXIWAY_CENTER_LINE> kk = allObjs.Where(c => c.ToString() == "AMXM.TAXIWAY_CENTER_LINE").Select(c=>(TAXIWAY_CENTER_LINE)c).ToList();
关键就在List<object>的 select(c=> (T) c ) 将每个object转成了T