close
單型陣列
List<String> matches = (
from b in MyObject.classBList
from c in b.classCList
join d in dict
on c.ID equals d.Key
select d.Value == 0 ? "YES" : "NO"
).ToList();
多型陣列
List<DataRow> DataRowList =(
from s in DBlink
select new DataRow
{rowTable1 = s.DBFild1,
rowTable2 = s.DBFild2,
}
).ToList();
全站熱搜