Library/Library.Test/LockingTests/TestIgnoreLocking.cs
C# | Copy Code |
---|---|
using (ILockStrategy l = LockFactory.Create()) { Assert.AreEqual(0, l.WriteVersion); using(l.Write()) Assert.AreEqual(0, l.WriteVersion); Assert.AreEqual(0, l.WriteVersion); } |
VB.NET | Copy Code |
---|---|
Using l As ILockStrategy = LockFactory.Create() Assert.AreEqual(0, l.WriteVersion) Using l.Write() Assert.AreEqual(0, l.WriteVersion) End Using Assert.AreEqual(0, l.WriteVersion) End Using |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
ILockStrategy InterfaceILockStrategy Members