2 writes to MetadataReferences
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
167MetadataReferences = 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)
279foreach (var reference in Options.MetadataReferences)
ScriptOptions.cs (3)
183references: 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)
32Assert.Equal(GacFileResolver.IsAvailable ? 5 : 30, options.MetadataReferences.Length); 66Assert.Equal(2, options.MetadataReferences.Length); 69Assert.Equal(2, options.MetadataReferences.Length); 74Assert.Equal(2, options.MetadataReferences.Length);