Get repository instance used for wrapped constructor type repositories.

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static Repository GetRepositoryInstance(
	Type repositoryType,
	params Object[] args
)
Visual Basic
Public Shared Function GetRepositoryInstance ( 
	repositoryType As Type,
	ParamArray args As Object()
) As Repository
Visual C++
public:
static Repository^ GetRepositoryInstance(
	Type^ repositoryType, 
	... array<Object^>^ args
)
F#
static member GetRepositoryInstance : 
        repositoryType : Type * 
        args : Object[] -> Repository 

Parameters

repositoryType
Type: System..::..Type
Repository type
args
Type: array<System..::..Object>[]()[][]
Constructor arguments

Return Value

Type: Repository
Repository instance

Remarks

Returns an instance of the repository class, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code. Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf

See Also