Skip to content

Instantly share code, notes, and snippets.

@lummo
lummo / SafeObservableCollection
Created September 17, 2012 08:24 — forked from danielmarbach/SafeObservableCollection
Thread safe observable collection
[DebuggerDisplay("Count = {Count}")]
[ComVisible(false)]
public class SafeObservableCollection<T> : ObservableCollection<T>
{
private readonly Dispatcher dispatcher;
public SafeObservableCollection()
: this(Enumerable.Empty<T>())
{
}