1 write to GlobalsType
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
51
GlobalsType
= globalsTypeOpt;
24 references to GlobalsType
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
73
script.
GlobalsType
Microsoft.CodeAnalysis.Scripting (22)
Script.cs (21)
117
return new Script<TResult>(Compiler, Builder, SourceText.From(code ?? "", options.FileEncoding), options,
GlobalsType
, this);
130
return new Script<TResult>(Compiler, Builder, SourceText.From(code, options.FileEncoding), options,
GlobalsType
, this);
159
/// An instance of <see cref="Script.
GlobalsType
"/> holding on values of global variables accessible from the script.
160
/// Must be specified if and only if the script was created with a <see cref="Script.
GlobalsType
"/>.
173
/// An instance of <see cref="Script.
GlobalsType
"/> holding on values for global variables accessible from the script.
174
/// Must be specified if and only if the script was created with <see cref="Script.
GlobalsType
"/>.
185
/// An instance of <see cref="Script.
GlobalsType
"/> holding on values for global variables accessible from the script.
186
/// Must be specified if and only if the script was created with <see cref="Script.
GlobalsType
"/>.
259
if (
GlobalsType
!= null)
261
var globalsAssembly =
GlobalsType
.GetTypeInfo().Assembly;
327
return (options == Options) ? this : new Script<T>(Compiler, Builder, SourceText, options,
GlobalsType
, Previous);
423
/// An instance of <see cref="Script.
GlobalsType
"/> holding on values of global variables accessible from the script.
424
/// Must be specified if and only if the script was created with a <see cref="Script.
GlobalsType
"/>.
435
/// An instance of <see cref="Script.
GlobalsType
"/> holding on values for global variables accessible from the script.
436
/// Must be specified if and only if the script was created with <see cref="Script.
GlobalsType
"/>.
441
/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="Script.
GlobalsType
"/>.</exception>
449
/// An instance of <see cref="Script.
GlobalsType
"/> holding on values for global variables accessible from the script.
450
/// Must be specified if and only if the script was created with <see cref="Script.
GlobalsType
"/>.
459
/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="Script.
GlobalsType
"/>.</exception>
465
ValidateGlobals(globals,
GlobalsType
);
484
var globalsType =
GlobalsType
;
ScriptRunner.cs (1)
18
/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match the corresponding <see cref="Script.
GlobalsType
"/>.</exception>
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
96
script.
GlobalsType
)