CSharpTest.Net
NewFactory<T> Constructor
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Interfaces Namespace > NewFactory<T> Class : NewFactory<T> Constructor

Glossary Item Box

Syntax

Visual Basic (Declaration) 
Public Function New()
C# 
public NewFactory<T>()

Example

Library/Library.Test/TestFactories.cs

C#Copy Code
IFactory<TestObject> factory = new NewFactory<TestObject>();
Assert.IsFalse(ReferenceEquals(factory.Create(), factory.Create()));
VB.NETCopy Code
Dim factory As IFactory(Of TestObject) = New NewFactory(Of TestObject)()
Assert.IsFalse(ReferenceEquals(factory.Create(), factory.Create()))

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys