TestJsEngine.

PrecompileResource(string, Type) Method

Summary

Creates a pre-compiled script from embedded JavaScript resource

Syntax

public IPrecompiledJavaScript PrecompileResource(string resourceName, Type type)

Parameters

Name Type Description
resourceName string The case-sensitive resource name without the namespace of the specified type
type Type The type, that determines the assembly and whose namespace is used to scope the resource name

Return Value

Type Description
IPrecompiledJavaScript A pre-compiled script that can be executed by different instances of JavaScript engine
GitHub