17 references to Create
Microsoft.CodeAnalysis.CSharp.Scripting (3)
CSharpScript.cs (2)
69return Create<object>(code, options, globalsType, assemblyLoader); 100return Create<T>(code, options, globalsType ?? globals?.GetType()).RunAsync(globals, cancellationToken);
Hosting\CSharpReplServiceProvider.cs (1)
28=> CSharpScript.Create<T>(code, options, globalsTypeOpt, assemblyLoader);
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
580var script = CSharpScript.Create<int>(
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (13)
InteractiveSessionTests.cs (3)
301var script = CSharpScript.Create<int>(@" 1864var script = CSharpScript.Create<bool>(code, options: ScriptOptions, globalsType: typeof(F)); 1886var script = CSharpScript.Create<bool>(code, options: ScriptOptions, globalsType: typeof(F));
ScriptTests.cs (10)
121var script = CSharpScript.Create<int>("X + Y", options: ScriptOptions, globalsType: typeof(Globals)); 501var script = CSharpScript.Create<object>($"return {expected};", ScriptOptions); 516var script = CSharpScript.Create<int>("return await System.Threading.Tasks.Task.FromResult(42);", ScriptOptions); 561var script = CSharpScript.Create<int>(@" 571script = CSharpScript.Create<int>(@" 609var script = CSharpScript.Create<IEnumerable<int>>(@" 617script = CSharpScript.Create<IEnumerable<int>>(@" 629var script = CSharpScript.Create<int?>(@" 637script = CSharpScript.Create<int?>(@" 838var script = CSharpScript.Create<int>(@"