Hi folks,
I have two ObservableCollection lists, that i want to unite. My naive approach was to use the Union - Method:
ObservableCollection<Point> unitedPoints = observableCollection1.Union(observableCollection2);
ObservableCollection1/2 are of type ObservableCollection too. But the Compiler throws the following error for this line:
The Type "System.Collections.Generic.IEnumerable" can't be converted implicit to "System.Collections.ObjectModel.ObservableCollection". An explicite conversion already exists. (Maybe a conversion is missing)
(wording may not be exact, as I translated it from german).
Anyone knows, how to merge both ObservableCollections and get an ObservableCollection as result?
Thanks in advance, Frank
Edith says: I just realized that it is important to mention that I develop a Silverlight-3-Application, because the class "ObservableCollection" differ in SL3 and .NET3.0 scenarios.