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