Returns a synchronized (thread-safe) wrapper for the Stack.
[Visual Basic] Public Shared Function Synchronized( _ ByVal stack As Stack _ ) As Stack [C#] public static Stack Synchronized( Stack stack ); [C++] public: static Stack* Synchronized( Stack* stack ); [JScript] public static function Synchronized( stack : Stack ) : Stack;
A synchronized wrapper around the Stack.
Exception Type | Condition |
---|---|
ArgumentNullException | stack is a null reference (in Visual Basic Nothing). |