Skip to main content
Namespace: Phoenix.ComponentAPI
Assembly: Phoenix.ComponentAPI.dll

MoveStateFrom(IEnumerable<KeyValuePair<string, VariableState>>, ComponentRunResultsMetadata)

Creates a new instance of a ComponentRunResults.

Parameters

resultValues IEnumerable<KeyValuePair<string, VariableState>> The output variable values to take ownership of. The source array should not be used after calling this function. resultMetadata ComponentRunResultsMetadata Metadata about each run

Returns

ComponentRunResults A new ComponentRunResults

Remarks

You should always use the returned value in a using block, or otherwise ensure it will be disposed.

MoveStateFrom(VariableValueScope, ComponentRunResultsMetadata)

Creates a new instance of a ComponentRunResults by moving the data.

Parameters

resultValues VariableValueScope The output variable values to take ownership of. The source array should not be used after calling this function. resultMetadata ComponentRunResultsMetadata Metadata about each run

Returns

ComponentRunResults A new ComponentRunResults

Remarks

You should always use the returned value in a using block, or otherwise ensure it will be disposed.