Click or drag to resize

RoslynEvaluatorClone Method

Clones itself as IEvaluator.

This method returns a freshly initialized copy of the IEvaluator. The cloning 'depth' can be controlled by the copyRefAssemblies.

This method is a convenient technique when multiple IEvaluator instances are required (e.g. for concurrent script evaluation).

Namespace:  CSScriptLib
Assembly:  CSScriptLib (in CSScriptLib.dll) Version: 1.3.2.0
Syntax
C#
public IEvaluator Clone(
	bool copyRefAssemblies = true
)

Parameters

copyRefAssemblies (Optional)
Type: SystemBoolean
if set to true all referenced assemblies from the parent IEvaluator will be referenced in the cloned copy.

Return Value

Type: IEvaluator
The freshly initialized instance of the IEvaluator.

Implements

IEvaluatorClone(Boolean)
See Also