VB.NET Thread Concurrency For Module

Refer to the System.Threading.Interlocked sample.

and also the System.Threading.ReadWriteLock sample.

This sample demonstrates the usage of System.Threading.ReadWriteLock instead of System.Threading.Monitor to mitigate thread-concurrency issues related to shared methods in module (VB.NET).

The module contains a method to replace single quote character with another character (Icelandic thorn), this is useful for formatting text to be inserted into database using SQL statement.

Download the sample code (VB.NET Visual Studio 2008 SP1).


Anonymous said…
Windows ХР умеет автоматически распознавать компьютерное оборудование и знает, на каком языке с ним разговаривать.