替换为ObservableCollection? [英] Replacement for ObservableCollection?
问题描述
我正在寻找线程安全的ObservableCollection
的替代品,它会引发UI线程上的事件,并且最好具有AddRange
方法.我已经在这里和其他地方看到了一些实现,但是我更喜欢经过测试和验证并且不需要维护自己的实现.
I'm looking for a replacement for ObservableCollection
that is thread-safe, raises events on the UI thread and preferably has an AddRange
method. I've seen a few implementations posted here and elsewhere, but I'd prefer an implementation that has been tested and validated and that I won't have to maintain myself.
那么有人能指出我要这样的替代品吗,最好通过NuGet来获得吗?
So can anyone point me to such a replacement, preferable available via NuGet?
推荐答案
您可以尝试使用 BulkObservableCollection ,尽管我不确定他们为什么将它放在如此奇怪的命名空间中!当我在VS2012中尝试添加引用..."时,没有看到它列出,不得不手动浏览到C:\ Windows \ Microsoft.NET \ assembly \ GAC_MSIL
You could try using the BulkObservableCollection from Microsoft, although I'm not sure why they put it in such a strange namespace! Didn't see it listed when I tried to "Add reference..." in VS2012, had to manually browse to C:\Windows\Microsoft.NET\assembly\GAC_MSIL
这篇关于替换为ObservableCollection?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!