Visual Basic (Declaration) | |
---|---|
Public Class UsageCounter |
C# | |
---|---|
public class UsageCounter |
Library/Library.Test/TestUsageCounter.cs
C# | Copy Code |
---|---|
using (UsageCounter counter = new UsageCounter("some global name")) Assert.AreEqual("some global name", counter.Name); using (UsageCounter counter = new UsageCounter(@"{0}\Item-{1}", "Global", 1)) Assert.AreEqual(@"Global\Item-1", counter.Name); |
VB.NET | Copy Code |
---|---|
Using counter As New UsageCounter("some global name") Assert.AreEqual("some global name", counter.Name) End Using Using counter As New UsageCounter("{0}\Item-{1}", "Global", 1) Assert.AreEqual("Global\Item-1", counter.Name) End Using |
System.Object
CSharpTest.Net.Threading.UsageCounter
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
UsageCounter MembersCSharpTest.Net.Threading Namespace