CreateValueReturn(Object?, IArgumentCollection) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Creates the method invocation return that ends the current invocation by providing the optional return value (for non-void methods) and optionally the ref/out argument values.

public IMethodReturn CreateValueReturn(object? returnValue, IArgumentCollection arguments)

Parameters

returnValue
Object

Optional return value from the method invocation. null for void methods.

arguments
IArgumentCollection

Ordered list of all arguments to the method invocation, including ref/out arguments.

Returns

IMethodReturn
The IMethodReturn for the current invocation.