I\'ve got an ObservableCollection a_collection; The collection contains \'n\' items. Each item A looks like this:
ObservableCollection a_collection;
public class A : INot
With .NET 4.0 you can use these one-liners:
.Add
Application.Current.Dispatcher.BeginInvoke(new Action(() => this.MyObservableCollection.Add(myItem)));
.Remove
Application.Current.Dispatcher.BeginInvoke(new Func(() => this.MyObservableCollection.Remove(myItem)));