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; 353return (options == Options) ? this : new Script<T>(Compiler, Builder, SourceText, options, GlobalsType, Previous); 449/// An instance of <see cref="Script.GlobalsType"/> holding on values of global variables accessible from the script. 450/// Must be specified if and only if the script was created with a <see cref="Script.GlobalsType"/>. 461/// An instance of <see cref="Script.GlobalsType"/> holding on values for global variables accessible from the script. 462/// Must be specified if and only if the script was created with <see cref="Script.GlobalsType"/>. 467/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="Script.GlobalsType"/>.</exception> 475/// An instance of <see cref="Script.GlobalsType"/> holding on values for global variables accessible from the script. 476/// Must be specified if and only if the script was created with <see cref="Script.GlobalsType"/>. 485/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="Script.GlobalsType"/>.</exception> 491ValidateGlobals(globals, GlobalsType); 510var 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)