> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method CreateCloneFrom

Namespace: [Phoenix.ComponentAPI](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI)\
Assembly: Phoenix.ComponentAPI.dll

## CreateCloneFrom(IReadOnlyDictionary\<string, VariableState>, ComponentRunResultsMetadata)

Creates a new ComponentRunResults by making a clone of the given data.

```csharp theme={null}
public static ComponentRunResults CreateCloneFrom(IReadOnlyDictionary<string, VariableState> resultValues, ComponentRunResultsMetadata resultMetadata)

```

### Parameters

`resultValues` [IReadOnlyDictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), VariableState>

The output variable values to clone.

`resultMetadata` [ComponentRunResultsMetadata](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.ComponentRunResultsMetadata)

Metadata about each run

### Returns

[ComponentRunResults](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.ComponentRunResults)

A new ComponentRunResults

### Remarks

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