Click or drag to resize

RoslynEvaluatorReferenceAssembliesFromCode Method

References the assemblies from the script code.

The method analyses and tries to resolve CS-Script directives (e.g. '//css_ref') and 'used' namespaces based on the optional search directories.

Namespace:  CSScriptLib
Assembly:  CSScriptLib (in CSScriptLib.dll) Version: 1.3.2.0
Syntax
C#
public IEvaluator ReferenceAssembliesFromCode(
	string code,
	params string[] searchDirs
)

Parameters

code
Type: SystemString
The script code.
searchDirs
Type: SystemString
The assembly search/probing directories.

Return Value

Type: IEvaluator
The instance of the IEvaluator to allow fluent interface.

Implements

IEvaluatorReferenceAssembliesFromCode(String, String)
See Also