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).

Comments

Anonymous said…
Windows ХР умеет автоматически распознавать компьютерное оборудование и знает, на каком языке с ним разговаривать.
Asava Samuel said…
This database is compatible with .NET, Silverlight, Windows Phone, Mono, Monodroid, and Monotouch:
http://www.kellermansoftware.com/p-43-ninja-net-database-pro.aspx