17 references to Copy
Microsoft.CodeAnalysis (5)
MetadataReference\AssemblyMetadata.cs (3)
197
/// <exception cref="ArgumentException"><paramref name="modules"/> is empty or contains a module that doesn't own its image (was created via <see cref="Metadata.
Copy
"/>).</exception>
229
/// <exception cref="ArgumentException"><paramref name="modules"/> is empty or contains a module that doesn't own its image (was created via <see cref="Metadata.
Copy
"/>).</exception>
242
/// <exception cref="ArgumentException"><paramref name="modules"/> is empty or contains a module that doesn't own its image (was created via <see cref="Metadata.
Copy
"/>).</exception>
MetadataReference\ModuleMetadata.cs (1)
82
/// cref="Metadata.
Copy
"/> will not call this when they are disposed.</param>
MetadataReference\PortableExecutableReference.cs (1)
170
return GetMetadataNoCopy().
Copy
();
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
270
Metadata publicMetadata = newMetadata.
Copy
();
427
var publicMetadata = privateMetadata.
Copy
();
Microsoft.CodeAnalysis.UnitTests (8)
MetadataReferences\AssemblyMetadataTests.cs (6)
36
Assert.Throws<ArgumentException>(() => AssemblyMetadata.Create(m1, m2.
Copy
(), m3));
37
Assert.Throws<ArgumentException>(() => AssemblyMetadata.Create(new List<ModuleMetadata>(new ModuleMetadata[] { m1.
Copy
(), m2.
Copy
(), m3.
Copy
() })));
102
var copy1 = a.
Copy
();
112
var copy2 = copy1.
Copy
();
MetadataReferences\ModuleMetadataTests.cs (2)
142
var copy1 = m.
Copy
();
143
var copy2 = copy1.
Copy
();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\ReferenceManagerTests.vb (2)
1614
Dim CopyRefMetaData = refmetadata.
Copy
1619
Dim Copymca1 = mca1.
Copy
()