Execute a method that will return an object via a callback. If the execution throws a target invocation exception, dig into the exception, get the actual exception, and throw it instead.

Namespace: Cartella.Support
Assembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
public static Object ReflectiveExecute(
	Func<Object> executionCallback
)
Visual Basic
Public Shared Function ReflectiveExecute ( _
	executionCallback As Func(Of Object) _
) As Object
Visual C++
public:
static Object^ ReflectiveExecute(
	Func<Object^>^ executionCallback
)

Parameters

executionCallback
Type: System..::..Func<(Of <(<'Object>)>)>
Callback delegate to return an object

Return Value

The object that is returned by the callback

See Also