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)
300var script = CSharpScript.Create<int>(@" 1863var script = CSharpScript.Create<bool>(code, globalsType: typeof(F)); 1885var script = CSharpScript.Create<bool>(code, globalsType: typeof(F));
ScriptTests.cs (10)
118var script = CSharpScript.Create<int>("X + Y", globalsType: typeof(Globals)); 497var script = CSharpScript.Create<object>($"return {expected};"); 512var script = CSharpScript.Create<int>("return await System.Threading.Tasks.Task.FromResult(42);"); 557var script = CSharpScript.Create<int>(@" 567script = CSharpScript.Create<int>(@" 605var script = CSharpScript.Create<IEnumerable<int>>(@" 613script = CSharpScript.Create<IEnumerable<int>>(@" 625var script = CSharpScript.Create<int?>(@" 633script = CSharpScript.Create<int?>(@" 834var script = CSharpScript.Create<int>(@"