Visual Basic (Declaration) | |
---|---|
Public Function New() |
C# | |
---|---|
public NewFactory<T>() |
Library/Library.Test/TestFactories.cs
C# | Copy Code |
---|---|
IFactory<TestObject> factory = new NewFactory<TestObject>();
Assert.IsFalse(ReferenceEquals(factory.Create(), factory.Create())); |
VB.NET | Copy Code |
---|---|
Dim factory As IFactory(Of TestObject) = New NewFactory(Of TestObject)() Assert.IsFalse(ReferenceEquals(factory.Create(), factory.Create())) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7