JavaScriptEngineSwitcher.Core
Extensions for String
Returns a value indicating whether the specified quoted string occurs within this string
Instance of
The string without quotes to seek
true if the quoted value occurs within this string; otherwise, false
Removes leading occurrence of the specified string from the current object
Instance of
An string to remove
The string that remains after removing of the specified string from the start of
the current string
Splits a string into lines
Instance of
An array of lines
Gets a character at the specified index from the string.
A return value indicates whether the receiving succeeded.
The source string
The zero-based index of the character
When this method returns, contains the character from the string,
if the receiving succeeded, or null character if the receiving failed.
The receiving fails if the index out of bounds.
true if the character was received successfully; otherwise, false
Type extensions
Gets a underlying type code of the specified
The type whose underlying type code to get
The code of the underlying type
Common regular expressions
Pattern for working with JS names
Pattern for working with JS full names
Pattern for working with document names
Script error location item
Gets or sets a function name
Gets or sets a document name
Gets or sets a line number
Gets or sets a column number
Gets or sets a source fragment
Constructs an instance of the script error location item
JS error helpers
Pattern for working with document names with coordinates
Regular expression for working with line of the script error location
Parses a string representation of the script error location to produce an array of
instances
String representation of the script error location
An array of instances
Produces a string representation of the script error location from array of
instances
An array of instances
Flag for whether to omit source fragment
String representation of the script error location
Writes a error location line to the buffer
Instance of
Function name
Document name
Line number
Column number
Source fragment
Generates a engine load error message
Description of error
Name of JS engine
Makes a quote from the description
Engine load error message
Generates a script error message
Type of the script error
Description of error
Document name
Line number
Column number
Source fragment
Script error message
Generates a script error message
Type of the script error
Description of error
String representation of the script call stack
Script error message
Generates a script error message
Type of the script error
Description of error
Document name
Line number
Column number
Source fragment
String representation of the script call stack
Script error message
Generates a detailed error message
JS exception
Flag for whether to omit message
Detailed error message
Generates a detailed error message
JS script exception
Flag for whether to omit message
Detailed error message
Generates a detailed error message
JS runtime exception
Flag for whether to omit message
Detailed error message
Writes a detailed error message to the buffer
Instance of
JS exception
Flag for whether to omit message
Writes a detailed error message to the buffer
Instance of
JS script exception
Writes a detailed error message to the buffer
Instance of
JS runtime exception
Generates a detailed error message
JS exception
Detailed error message
Generates a detailed error message
JS script exception
Detailed error message
Generates a detailed error message
JS runtime exception
Detailed error message
Text helpers
Array of characters used to find the next line break
Gets a fragment from the source text
Source text
Line number
Column number
Maximum length of the text fragment
Gets a fragment from the text line
Content of the text line
Column number
Maximum length of the text fragment
Finds a next line break
Source text
Position in the input string that defines the leftmost
position to be searched
Position of line break
Length of line break
Finds a next line break
Source text
Position in the input string that defines the leftmost
position to be searched
Number of characters in the substring to include in the search
Position of line break
Length of line break
Validation helpers
List of supported types
List of primitive type codes
Regular expression for working with JS names
Regular expression for working with document names
Checks whether supports a .NET type
.NET type
Result of check (true - is supported; false - is not supported)
Checks whether .NET type is primitive
.NET type
Result of check (true - is primitive; false - is not primitive)
Checks a format of the name
The name
Result of check (true - correct format; false - wrong format)
Checks a format of the document name
The document name
Result of check (true - correct format; false - wrong format)
Defines a interface of JS engine
Gets a name of JS engine
Gets a version of original JS engine
Gets a value that indicates if the JS engine supports script pre-compilation
Gets a value that indicates if the JS engine supports script interruption
Gets a value that indicates if the JS engine supports garbage collection
Creates a pre-compiled script from JS code
JS code
A pre-compiled script that can be executed by different instances of JS engine
Creates a pre-compiled script from JS code
JS code
Document name
A pre-compiled script that can be executed by different instances of JS engine
Creates a pre-compiled script from JS file
Path to the JS file
Text encoding
A pre-compiled script that can be executed by different instances of JS engine
Creates a pre-compiled script from embedded JS resource
The case-sensitive resource name without the namespace of the specified type
The type, that determines the assembly and whose namespace is used to scope
the resource name
A pre-compiled script that can be executed by different instances of JS engine
Creates a pre-compiled script from embedded JS resource
The case-sensitive resource name
The assembly, which contains the embedded resource
A pre-compiled script that can be executed by different instances of JS engine
Evaluates an expression
JS expression
Result of the expression
Evaluates an expression
JS expression
Document name
Result of the expression
Evaluates an expression
Type of result
JS expression
Result of the expression
Evaluates an expression
Type of result
JS expression
Document name
Result of the expression
Executes a code
JS code
Executes a code
JS code
Document name
Executes a pre-compiled script
A pre-compiled script that can be executed by different
instances of JS engine
Executes a code from JS file
Path to the JS file
Text encoding
Executes a code from embedded JS resource
The case-sensitive resource name without the namespace of the specified type
The type, that determines the assembly and whose namespace is used to scope
the resource name
Executes a code from embedded JS resource
The case-sensitive resource name
The assembly, which contains the embedded resource
Calls a function
Function name
Function arguments
Result of the function execution
Calls a function
Type of function result
Function name
Function arguments
Result of the function execution
Checks for the existence of a variable
Variable name
Result of check (true - exists; false - not exists
Gets a value of variable
Variable name
Value of variable
Gets a value of variable
Type of variable
Variable name
Value of variable
Sets a value of variable
Variable name
Value of variable
Removes a variable
Variable name
Embeds a host object to script code
Allows to embed instances of simple classes (or structures) and delegates.
The name for the new global variable or function that will represent the object
The object to expose
Embeds a host type to script code
Host types are exposed to script code in the form of objects whose properties and
methods are bound to the type's static members.
The name for the new global variable that will represent the type
The type to expose
Interrupts script execution and causes the JS engine to throw an exception
Performs a full garbage collection
Defines a interface of JS engine factory
Gets a name of JS engine
Creates a instance of JS engine
Instance of JS engine
Defines a interface of JS engine switcher
Gets or sets a name of default JS engine
Gets a collection of JS engine factories
Creates a instance of JS engine
JS engine name
JS engine
Creates a instance of default JS engine
JS engine
Represents a pre-compiled script that can be executed by different instances of the JS engine
Gets a name of JS engine for which the pre-compiled script was created
The exception that is thrown during the script compilation stage, before the script
has begun to be executed
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
Base class of JS engine
Default document name
Flag that object is destroyed
The exception that occurred in the workings of the JS engine itself
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
Collection of JS engine factories
Dictionary of factories
Gets a number of factories in the collection
Gets all registered factories
A read-only collection of all factories in the collection
Gets a factory by JS engine name
Name of JS engine
Instance of corresponding JS engine factory or null if factory is not found
Adds a factory to the collection
The factory to add to the collection
Removes a single factory from the collection
Name of JS engine
A boolean value indicating whether the factory was succesfully removed from the collection
Removes a single factory from the collection
The factory to remove from the collection
A boolean value indicating whether the factory was succesfully removed from the collection
Removes all factories from the collection
The exception that is thrown when a loading of JS engine is failed
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
The exception that is thrown when a JS engine is not found
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
JS engine switcher
Default instance of JS engine switcher
Current instance of JS engine switcher
Gets or sets a instance of JS engine switcher
Gets a instance of JS engine switcher
Constructs an instance of JS engine switcher
Constructs an instance of JS engine switcher
Constructs an instance of JS engine switcher
The exception that is thrown during the work of JS engine
Name of JS engine
Version of original JS engine
Error category
Description of error
Gets a name of JS engine
Gets a version of original JS engine
Gets or sets a error category
Gets or sets a description of error
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
Returns a string that represents the current exception
A string that represents the current exception
The fatal exception occurred
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
The exception that is thrown when script execution is interrupted by the host
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
The exception that is thrown during the script execution
String representation of the script call stack
Gets or sets a string representation of the script call stack
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
The exception that is thrown during the script processing
Type of the script error
Document name
Line number
Column number
Source fragment
Gets or sets a type of the script error
Gets or sets a document name
Gets or sets a line number
Gets or sets a column number
Gets or sets a source fragment
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
The exception that is thrown when the time allotted for a script execution has expired
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
The API usage exception occurred
Initializes a new instance of the class
with a specified error message
The message that describes the error
Initializes a new instance of the class
with a specified error message and a reference to the inner exception
that is the cause of this exception
The error message that explains the reason for the exception
The exception that is the cause of the current exception
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
Initializes a new instance of the class
The error message that explains the reason for the exception
Name of JS engine
Version of original JS engine
The exception that is the cause of the current exception
A strongly-typed resource class, for looking up localized strings, etc.
Returns a cached ResourceManager instance used by this class
Overrides a current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class
Looks up a localized string similar to "The parameter '{0}' must be a non-empty string."
Looks up a localized string similar to "The parameter '{0}' must be a non-nullable."
Looks up a localized string similar to "Cannot convert object of type `{0}` to type `{1}`."
Looks up a localized string similar to "Can not convert value '{0}' of enumeration type `{1}` to value of enumeration type `{2}`."
Looks up a localized string similar to "File '{0}' not exist."
Looks up a localized string similar to "Resource with name '{0}' is null."
Looks up a localized string similar to "See the original error message: “{0}”."
Looks up a localized string similar to "Value cannot be empty."
Looks up a localized string similar to "Value cannot be null."
Looks up a localized string similar to "Cannot convert null to a value type."
Looks up a localized string similar to "Name of default JavaScript engine not specified."
Looks up a localized string similar to "Could not find a factory, that creates an instance of the JavaScript engine with name `{0}`."
Looks up a localized string similar to "Most likely it happened, because the '{0}' assembly or one of its dependencies was not found."
Looks up a localized string similar to "Failed to create instance of the {0}."
Looks up a localized string similar to "There is no {0} package for the {1} processor architecture."
Looks up a localized string similar to "Try to install the {0} package via NuGet."
Looks up a localized string similar to "Your operating system is not supported by the engine."
Looks up a localized string similar to "{0} processor architecture is not supported by the engine."
Looks up a localized string similar to "Call stack"
Looks up a localized string similar to "Category"
Looks up a localized string similar to "Column number"
Looks up a localized string similar to "Description"
Looks up a localized string similar to "Document name"
Looks up a localized string similar to "Engine name"
Looks up a localized string similar to "Engine version"
Looks up a localized string similar to "Line number"
Looks up a localized string similar to "Message"
Looks up a localized string similar to "Source fragment"
Looks up a localized string similar to "Type"
Looks up a localized string similar to "The function with the name '{0}' does not exist."
Looks up a localized string similar to "The '{0}' line of the script error location has an incorrect format."
Looks up a localized string similar to "Script execution was interrupted."
Looks up a localized string similar to "Script execution exceeded timeout."
Looks up a localized string similar to "The variable with the name '{0}' does not exist."
Looks up a localized string similar to "Cannot convert a pre-compiled script to internal type `{0}`."
Looks up a localized string similar to "Cannot execute a '{0}' file, because it is empty."
Looks up a localized string similar to "Cannot execute a '{0}' resource, because it is empty."
Looks up a localized string similar to "Cannot execute a pre-compiled script, because it was created for another JS engine with name `{0}`."
Looks up a localized string similar to "Cannot pre-compile a '{0}' file, because it is empty."
Looks up a localized string similar to "Cannot pre-compile a '{0}' resource, because it is empty."
Looks up a localized string similar to "The embedded host object '{0}' has a type `{1}`, which is not supported."
Looks up a localized string similar to "The embedded host type `{0}` is not supported."
Looks up a localized string similar to "One of the function parameters '{0}' has a type `{1}`, which is not supported."
Looks up a localized string similar to "The document name '{0}' has incorrect format."
Looks up a localized string similar to "The file name '{0}' has incorrect format."
Looks up a localized string similar to "The function name '{0}' has incorrect format."
Looks up a localized string similar to "The resource name '{0}' has incorrect format."
Looks up a localized string similar to "The script item name '{0}' has incorrect format."
Looks up a localized string similar to "The variable name '{0}' has incorrect format."
Looks up a localized string similar to "The type of return value `{0}` is not supported."
Looks up a localized string similar to "The variable '{0}' has a type `{1}`, which is not supported."
Represents an JS undefined type
Gets a one and only undefined instance
Returns a string that represents the current object
A string that represents the current object
Type converter
Converts the specified value to the specified type
The type to convert the value to
The value to convert
The value that has been converted to the target type
Converts the specified value to the specified type
The value to convert
The type to convert the value to
The value that has been converted to the target type
Converts the specified value to the specified type.
A return value indicates whether the conversion succeeded.
The type to convert the value to
The value to convert
The value that has been converted to the target type
Result of conversion (true - success; false - failure)
Converts the specified value to the specified type.
A return value indicates whether the conversion succeeded.
The value to convert
The type to convert the value to
The value that has been converted to the target type
Result of conversion (true - success; false - failure)
Unique document name manager
Default document name
Storage of unique names
Synchronizer of unique name storage
Constructs an instance of the unique document name manager
Default document name
Gets a unique document name
Document name
Unique document name
Flag indicating whether the current runtime is Mono
Static constructor
Determines whether the current runtime is Mono
true if the runtime is Mono; otherwise, false
Determines whether the current process is a 64-bit process
true if the process is 64-bit; otherwise, false
Gets a content of the embedded resource as string
The case-sensitive resource name without the namespace of the specified type
The type, that determines the assembly and whose namespace is used to scope
the resource name
Content of the embedded resource as string
Gets a content of the embedded resource as string
The case-sensitive resource name
The assembly, which contains the embedded resource
Content of the embedded resource as string
Gets a text content of the specified file
File path
Content encoding
Text content
Converts a value of source enumeration type to value of destination enumeration type
Source enumeration type
Destination enumeration type
Value of source enumeration type
Value of destination enumeration type