Mono Class Library: System.Collections.ICollection Overview | Members

System.Collections.ICollection.SyncRoot Property

Gets a object that can be used for thread-safe synchronized access to the current instance. [Edit]

public object SyncRoot { get; }

Value

A object that can be used for thread-safe synchronized access to the current instance. [Edit]

Remarks

This property is read-only.

Note:

For collections with no publicly available underlying store, the expected implementation is to simply return the current instance. Note that this might not be sufficient for collections that wrap other collections; those should return the underlying collection's ICollection.SyncRoot property.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0