Does VB.NET have the equivalent of C#'s lock statement?
lock
Yes, the SyncLock statement.
For example:
// C# lock (someLock) { list.Add(someItem); } // VB SyncLock someLock list.Add(someItem) End SyncLock
1.4m articles
1.4m replys
5 comments
57.0k users