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)
27
=> CSharpScript.
Create
<T>(code, options, globalsTypeOpt, assemblyLoader);
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
578
var script = CSharpScript.
Create
<int>(
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (13)
InteractiveSessionTests.cs (3)
301
var script = CSharpScript.
Create
<int>(@"
1864
var script = CSharpScript.
Create
<bool>(code, options: ScriptOptions, globalsType: typeof(F));
1886
var script = CSharpScript.
Create
<bool>(code, options: ScriptOptions, globalsType: typeof(F));
ScriptTests.cs (10)
117
var script = CSharpScript.
Create
<int>("X + Y", options: ScriptOptions, globalsType: typeof(Globals));
497
var script = CSharpScript.
Create
<object>($"return {expected};", ScriptOptions);
512
var script = CSharpScript.
Create
<int>("return await System.Threading.Tasks.Task.FromResult(42);", ScriptOptions);
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>(@"