5 references to AddReferences
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
323
state = state.WithOptions(state.ScriptOptions.
AddReferences
(resolvedReferences));
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
243
=>
AddReferences
((IEnumerable<MetadataReference>)references);
299
=>
AddReferences
(SelectChecked(references, nameof(references), CreateUnresolvedReference));
Microsoft.CodeAnalysis.Scripting.UnitTests (2)
ScriptOptionsTests.cs (2)
44
Assert.Throws<ArgumentNullException>("references", () => options.
AddReferences
((IEnumerable<MetadataReference>)null));
45
Assert.Throws<ArgumentNullException>("references[0]", () => options.
AddReferences
((IEnumerable<MetadataReference>)new MetadataReference[] { null }));