Table of Contents

Class ScriptLoaderOptions

Namespace
RisingV.Scripting.RuntimeHost
Assembly
RisingV.Scripting.dll

Options for loading scripts.

public record ScriptLoaderOptions : IEquatable<ScriptLoaderOptions>
Inheritance
ScriptLoaderOptions
Implements
Inherited Members
Extension Methods

Constructors

ScriptLoaderOptions(string, bool, HashSet<string>?)

Options for loading scripts.

public ScriptLoaderOptions(string Name, bool PrintDiagnostics = true, HashSet<string>? UsingImports = null)

Parameters

Name string

The name of the script, used for logging and identification.

PrintDiagnostics bool

Whether to print diagnostics information after loading the script.

UsingImports HashSet<string>

A set of additional namespaces to import in the script. If null, defaults to an empty set.

Properties

Name

The name of the script, used for logging and identification.

public string Name { get; init; }

Property Value

string

PrintDiagnostics

Whether to print diagnostics information after loading the script.

public bool PrintDiagnostics { get; init; }

Property Value

bool

UsingImports

A set of additional namespaces to import in the script. If null, defaults to an empty set.

public HashSet<string>? UsingImports { get; init; }

Property Value

HashSet<string>