Class SafeEnumerator<T>
Thread safe IEnumerator<T> implementation.
Inherited Members
Namespace: Solti.Utils.Primitives.Threading
Assembly: Solti.Utils.Primitives.dll
Syntax
public sealed class SafeEnumerator<T> : Disposable, IDisposableEx
Type Parameters
Name | Description |
---|---|
T |
Constructors
SafeEnumerator(IEnumerable<T>, ReaderWriterLockSlim)
Creates a new SafeEnumerator<T> instane.
Declaration
public SafeEnumerator(IEnumerable<T> src, ReaderWriterLockSlim lock)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | src | |
ReaderWriterLockSlim | lock |
Properties
Current
See Current.
Declaration
public T Current { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Dispose(Boolean)
Disposes this instance.
Declaration
protected override void Dispose(bool disposeManaged)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposeManaged |
Overrides
MoveNext()
See MoveNext().
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean |
Reset()
See Reset().
Declaration
public void Reset()