下面用linq写很顺手
作者:互联网
下面用linq写很顺手。
var ts_codes_QueShao = ( from ts_code in ts_codes_All join dr in dt.AsEnumerable() on ts_code equals dr["ts_code"].ToString() into tt from dr in tt.DefaultIfEmpty() select new { ts_code, ts_code_my = dr == null ? "" : dr["ts_code"].ToString() } ) .Where(o => string.IsNullOrEmpty(o.ts_code_my)) .Select(o => o.ts_code) .ToList();
标签:下面,code,顺手,ts,linq,codes,ToString,dr 来源: https://www.cnblogs.com/fabao/p/14183907.html