Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SynchronizedSet Class

Implements a thread-safe ISet wrapper.

For a list of all members of this type, see SynchronizedSet Members .

System.Object
   Set
      SynchronizedSet

[Visual Basic]
<Serializable> _
Public NotInheritable Class SynchronizedSet
    Inherits Set
[C#]
[Serializable]
public sealed class SynchronizedSet : Set

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The implementation is extremely conservative, serializing critical sections to prevent possible deadlocks, and locking on everything. The one exception is for enumeration, which is inherently not thread-safe. For this, you have to lock the SyncRoot object for the duration of the enumeration.

Requirements

Namespace: Spring.Collections

Assembly: Spring.Core (in Spring.Core.dll)

See Also

SynchronizedSet Members | Spring.Collections Namespace | ISet