开发者

SynchronizedCollection in Silverlight

开发者 https://www.devze.com 2023-01-28 09:10 出处:网络
I need to ensure the collection is safely accessed by a number of threads. For that purpose I used SynchronizedCollection in my project

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

0

精彩评论

暂无评论...
验证码 换一张
取 消