5 references to AddReferences
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
323state = 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)
44Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<MetadataReference>)null)); 45Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<MetadataReference>)new MetadataReference[] { null }));