Returns a synchronized (thread-safe) wrapper for the SortedList.
[Visual Basic] Public Shared Function Synchronized( _ ByVal list As SortedList _ ) As SortedList [C#] public static SortedList Synchronized( SortedList list ); [C++] public: static SortedList* Synchronized( SortedList* list ); [JScript] public static function Synchronized( list : SortedList ) : SortedList;
A synchronized (thread-safe) wrapper for the SortedList.
Exception Type | Condition |
---|---|
ArgumentNullException | list is a null reference (in Visual Basic Nothing). |
To guarantee the thread-safety of the SortedList, all operations must be done through this wrapper only.
SortedList Class | SortedList Members | System.Collections Namespace | IsSynchronized | SyncRoot