8 references to WithEmbedInteropTypes
Microsoft.CodeAnalysis (3)
MetadataReference\CompilationReference.cs (1)
74return WithProperties(Properties.WithEmbedInteropTypes(value));
MetadataReference\MetadataReference.cs (1)
62return WithProperties(Properties.WithEmbedInteropTypes(value));
MetadataReference\PortableExecutableReference.cs (1)
101return WithProperties(Properties.WithEmbedInteropTypes(value));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
2654Assert.Equal(MetadataReferenceProperties.Assembly.WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[1].Properties); 2677Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "b" }).WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[2].Properties);
Microsoft.CodeAnalysis.UnitTests (3)
MetadataReferences\MetadataReferencePropertiesTests.cs (3)
50Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.Module.WithEmbedInteropTypes(true)); 63Assert.Equal(a.WithEmbedInteropTypes(false), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("a"), embedInteropTypes: false)); 68Assert.Equal(m.WithEmbedInteropTypes(false), new MetadataReferenceProperties(MetadataImageKind.Module, default(ImmutableArray<string>), embedInteropTypes: false));