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
)
Visual Basic
Public Shared Function GetInstance ( 
	objectType As Type
) As Object
Visual C++
public:
static Object^ GetInstance(
	Type^ objectType
)
F#
static member GetInstance : 
        objectType : Type -> Object 

Parameters

objectType
Type: System..::..Type
Object type

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