1 write to GlobalsType
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
51GlobalsType = globalsTypeOpt;
24 references to GlobalsType
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
73script.GlobalsType
Microsoft.CodeAnalysis.Scripting (22)
Script.cs (21)
117return new Script<TResult>(Compiler, Builder, SourceText.From(code ?? "", options.FileEncoding), options, GlobalsType, this); 130return 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"/>. 259if (GlobalsType != null) 261var globalsAssembly = GlobalsType.GetTypeInfo().Assembly; 327return (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> 465ValidateGlobals(globals, GlobalsType); 484var 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)
96script.GlobalsType)