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)
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)
121
var script = CSharpScript.
Create
<int>("X + Y", options: ScriptOptions, globalsType: typeof(Globals));
501
var script = CSharpScript.
Create
<object>($"return {expected};", ScriptOptions);
516
var script = CSharpScript.
Create
<int>("return await System.Threading.Tasks.Task.FromResult(42);", ScriptOptions);
561
var script = CSharpScript.
Create
<int>(@"
571
script = CSharpScript.
Create
<int>(@"
609
var script = CSharpScript.
Create
<IEnumerable<int>>(@"
617
script = CSharpScript.
Create
<IEnumerable<int>>(@"
629
var script = CSharpScript.
Create
<int?>(@"
637
script = CSharpScript.
Create
<int?>(@"
838
var script = CSharpScript.
Create
<int>(@"