Implements a thread-safe Set wrapper. 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.
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public sealed class SynchronizedSet<T> : Set<T> |
Visual Basic |
---|
<SerializableAttribute> _ Public NotInheritable Class SynchronizedSet(Of T) _ Inherits Set(Of T) |
Visual C++ |
---|
[SerializableAttribute] generic<typename T> public ref class SynchronizedSet sealed : public Set<T> |
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "T:Iesi.Collections.Generic.SynchronizedSet`1"]
Inheritance Hierarchy
System..::..Object
Iesi.Collections.Generic..::..Set<(Of <(<'T>)>)>
Iesi.Collections.Generic..::..SynchronizedSet<(Of <(<'T>)>)>
Iesi.Collections.Generic..::..Set<(Of <(<'T>)>)>
Iesi.Collections.Generic..::..SynchronizedSet<(Of <(<'T>)>)>