17 references to Create
Microsoft.CodeAnalysis.CSharp.Scripting (3)
CSharpScript.cs (2)
69
return
Create
<object>(code, options, globalsType, assemblyLoader);
100
return
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)
580
var script = CSharpScript.
Create
<int>(
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (13)
InteractiveSessionTests.cs (3)
300
var script = CSharpScript.
Create
<int>(@"
1863
var script = CSharpScript.
Create
<bool>(code, globalsType: typeof(F));
1885
var script = CSharpScript.
Create
<bool>(code, globalsType: typeof(F));
ScriptTests.cs (10)
118
var script = CSharpScript.
Create
<int>("X + Y", globalsType: typeof(Globals));
497
var script = CSharpScript.
Create
<object>($"return {expected};");
512
var script = CSharpScript.
Create
<int>("return await System.Threading.Tasks.Task.FromResult(42);");
557
var script = CSharpScript.
Create
<int>(@"
567
script = CSharpScript.
Create
<int>(@"
605
var script = CSharpScript.
Create
<IEnumerable<int>>(@"
613
script = CSharpScript.
Create
<IEnumerable<int>>(@"
625
var script = CSharpScript.
Create
<int?>(@"
633
script = CSharpScript.
Create
<int?>(@"
834
var script = CSharpScript.
Create
<int>(@"