2 writes to MetadataReferences
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
167
MetadataReferences
= references;
216
=> MetadataReferences.Equals(references) ? this : new ScriptOptions(this) {
MetadataReferences
= CheckImmutableArray(references, nameof(references)) };
8 references to MetadataReferences
Microsoft.CodeAnalysis.Scripting (4)
Script.cs (1)
279
foreach (var reference in Options.
MetadataReferences
)
ScriptOptions.cs (3)
183
references: other.
MetadataReferences
,
216
=>
MetadataReferences
.Equals(references) ? this : new ScriptOptions(this) { MetadataReferences = CheckImmutableArray(references, nameof(references)) };
237
=> WithReferences(ConcatChecked(
MetadataReferences
, references, nameof(references)));
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
32
Assert.Equal(GacFileResolver.IsAvailable ? 5 : 30, options.
MetadataReferences
.Length);
66
Assert.Equal(2, options.
MetadataReferences
.Length);
69
Assert.Equal(2, options.
MetadataReferences
.Length);
74
Assert.Equal(2, options.
MetadataReferences
.Length);