views:

385

answers:

2

I have two Observable Collections that I need to merge into one collection.

This arises because I have two methods, getTasks(staffID) which returns an ObservableCollection and getTasks(teamID) which selects the staff and pulls back the staff tasks.

For the teams I will have multiple small observableCollections, I just want to merge them.

+1  A: 

I went with volkerK's suggestion and then moved to:

http://msdn.microsoft.com/en-us/library/system.linq.enumerable.union.aspx Ta

DavidA
+2  A: 

I found a reference to CompositeCollection on another SO article: http://stackoverflow.com/questions/777048/merged-observablecollection

Since you're looking to do a Concat/Union, this seems to do exactly that. Too bad it's not strongly typed.

mattdekrey