=?Windows-1252?Q?Gabriel_Lozano-Mor=E1n?= <glozano (AT) no-spam (DOT) org> wrote:
Quote:
You can synchronize using either the lock statement or by the System.Threading.Monitor class
Class1 is a reference type by the way...
lock(typeof(Class1)) |
Note, however, that locking on a publicly available reference is a bad
idea - see
http://www.pobox.com/~skeet/csharp/t...ckchoice.shtml
--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too