8 references to WithProperties
Microsoft.CodeAnalysis (2)
MetadataReference\CompilationReference.cs (2)
64
return
WithProperties
(Properties.WithAliases(aliases));
74
return
WithProperties
(Properties.WithEmbedInteropTypes(value));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ReferenceManagerTests.cs (2)
2271
WithProperties
(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)),
2296
WithProperties
(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)),
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\MetadataReferenceTests.cs (4)
358
var r3 = r.
WithProperties
(new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("x"), embedInteropTypes: true));
364
Assert.Throws<ArgumentException>(() => r.
WithProperties
(new MetadataReferenceProperties(MetadataImageKind.Module)));
389
var r3 = r.
WithProperties
(new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("x"), embedInteropTypes: true));
395
Assert.Throws<ArgumentException>(() => r.
WithProperties
(new MetadataReferenceProperties(MetadataImageKind.Module)));