Mocker..::..GetObject Method (Type, Action<(Of <(<'Object>)>)>)

Gets the instance for the given type.

Namespace:  FastMoq
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public Object GetObject(
	Type type,
	Action<Object> initAction
)
Public Function GetObject ( _
	type As Type, _
	initAction As Action(Of Object) _
) As Object
public:
Object^ GetObject(
	Type^ type, 
	Action<Object^>^ initAction
)

Parameters

type
Type: Type
The type.
initAction
Type: Action<(Of <(<'Object>)>)>
The initialize action.

Return Value

Nullable.

Exceptions


ExceptionCondition
ArgumentNullExceptiontype
InvalidProgramExceptionUnable to get the Mock.