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
548k questions
547k answers
4 comments
86.3k users