2
我需要插入一個新的空白,但非null匿名類型到linq查詢返回的其他匿名類型的列表中。那可能嗎?所有我能得到的是空新空白,非空匿名類型
var something =
(from a in x.As
where x != null
join b in x.Bs
on a.key equals b.key
select new
{
a.prop1,
a.prop2,
b.prop1,
b.prop2,
b.prop3
}).ToList();
// insert blank
//something.InsertRange(0, something.DefaultIfEmpty());
//something.InsertRange(0, something.Take(0));
//?