Silverlight 中的同步集合

发布于 2024-10-05 15:27:00 字数 279 浏览 1 评论 0原文

我需要确保多个线程可以安全地访问该集合。 为此,我在项目中使用了 SynchronizedCollection 在.NET中。现在我正在处理 Silverlight 项目,我面临同样的问题 - 集合必须是线程安全的。

我认为 SynchronizedCollection 不可用 在银光中。达到目标的方法是什么?

是否有一个解决方案可以同时应用于 Silverlight 和 .NET 4.0?

预先感谢您的回复和线索!

干杯

I need to ensure the collection is safely accessed by a number of threads.
For that purpose I used SynchronizedCollection in my project
in .NET. Now I'm dealing with Silverlight project and I face the same problem -
a collection must be thread-safe.

I think that SynchronizedCollection is not available
in Silverlight. What is the approach to achieve the goal?

Is there a solution that might be applied both to Silverlight and .NET 4.0?

Thanks in advance for the replies and clues!

Cheers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文