SortedSet<T>.ICollection.SyncRoot Property

Definition

Gets an object that can be used to synchronize access to the ICollection.

property System::Object ^ System::Collections::ICollection::SyncRoot { System::Object ^ get(); };
object System.Collections.ICollection.SyncRoot { get; }
member this.System.Collections.ICollection.SyncRoot : obj
 ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot

Property Value

An object that can be used to synchronize access to the ICollection. In the default implementation of Dictionary<TKey,TValue>.KeyCollection, this property always returns the current instance.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the SortedSet<T> instance is cast to an ICollection interface.

This method is an O(1) operation.

Applies to