9
我在將多個數組聚合成一個「大數組」時遇到問題,我認爲這應該可能在Linq中,但我無法繞過它:(將多個數組聚合成一個數組(Linq)
考慮一些返回一些dummyObjects數組
public class DummyObjectReceiver
{
public DummyObject[] GetDummyObjects { -snip- }
}
現在的地方我有這樣的方法:
public class Temp
{
public List<DummyObjectReceiver> { get; set; }
public DummyObject[] GetAllDummyObjects()
{
//here's where I'm struggling (in linq) - no problem doing it using foreach'es... ;)
}
}
希望它有點清楚我想要實現 (作爲額外的我想通過一個int數值來命令這個數組DummyObject具有... - 但是orderby應該沒有問題,...我希望;)
我想我剛纔已經回答過這個問題:http://stackoverflow.com/questions/780867/ – 2009-04-23 10:23:28
是的,同樣的道理,但是這一次又多了使用返回數組的方法獲取對象列表。 – Guffa 2009-04-23 11:18:31