1 write to IsImageOwner
Microsoft.CodeAnalysis (1)
MetadataReference\Metadata.cs (1)
41
this.
IsImageOwner
= isImageOwner;
20 references to IsImageOwner
Microsoft.CodeAnalysis (4)
MetadataReference\AssemblyMetadata.cs (3)
212
if (!modules[i].
IsImageOwner
)
286
if (!
IsImageOwner
)
375
if (previousData == Data.Disposed || !this.
IsImageOwner
)
MetadataReference\ModuleMetadata.cs (1)
292
if (
IsImageOwner
)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
93
Assert.False(sc1.Metadata.
IsImageOwner
, "Copy expected");
Microsoft.CodeAnalysis.UnitTests (15)
MetadataReferences\AssemblyMetadataTests.cs (12)
97
Assert.True(a.
IsImageOwner
, "Assembly should own the image");
98
Assert.True(m1.
IsImageOwner
, "Module should own the image");
99
Assert.True(m2.
IsImageOwner
, "Module should own the image");
100
Assert.True(m3.
IsImageOwner
, "Module should own the image");
103
Assert.False(copy1.
IsImageOwner
, "Assembly should not own the image");
104
Assert.False(copy1.GetModules()[0].
IsImageOwner
, "Module should not own the image");
105
Assert.False(copy1.GetModules()[1].
IsImageOwner
, "Module should not own the image");
106
Assert.False(copy1.GetModules()[2].
IsImageOwner
, "Module should not own the image");
113
Assert.False(copy2.
IsImageOwner
, "Assembly should not own the image");
114
Assert.False(copy2.GetModules()[0].
IsImageOwner
, "Module should not own the image");
115
Assert.False(copy2.GetModules()[1].
IsImageOwner
, "Module should not own the image");
116
Assert.False(copy2.GetModules()[2].
IsImageOwner
, "Module should not own the image");
MetadataReferences\ModuleMetadataTests.cs (3)
145
Assert.True(m.
IsImageOwner
, "Metadata should own the image");
146
Assert.False(copy1.
IsImageOwner
, "Copy should not own the image");
147
Assert.False(copy2.
IsImageOwner
, "Copy should not own the image");