Get an instance used for wrapped constructor type objects.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

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

Parameters

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

Return Value

Type: Object
Object instance

Remarks

Returns an instance of the object, 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