17 references to LeaveOpen
Microsoft.Build.Tasks.Core (1)
ManifestUtil\MetadataReader.cs (1)
38_peReader = new PEReader(_assemblyStream, PEStreamOptions.LeaveOpen);
Microsoft.CodeAnalysis (3)
MetadataReference\ModuleMetadata.cs (3)
187return CreateFromStream(peStream, leaveOpen ? PEStreamOptions.LeaveOpen : PEStreamOptions.Default); 196/// Unless <see cref="PEStreamOptions.LeaveOpen"/> is specified, the responsibility for disposal of the stream is transferred upon entry of the constructor 232Action? onDispose = options.HasFlag(PEStreamOptions.LeaveOpen)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
8899using (var peReader = new PEReader(stream, PEStreamOptions.LeaveOpen))
Microsoft.CodeAnalysis.Features (1)
Emit\CompilationOutputs.cs (1)
54using (var peReader = new PEReader(peStream, PEStreamOptions.LeaveOpen))
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\ModuleMetadataTests.cs (1)
339var metadata = ModuleMetadata.CreateFromStream(stream, options | PEStreamOptions.LeaveOpen);
Microsoft.DotNet.Build.Tasks.Packaging (1)
VersionUtility.cs (1)
37using (PEReader peReader = new PEReader(assemblyStream, PEStreamOptions.LeaveOpen))
System.Reflection.Metadata (9)
System\Reflection\PortableExecutable\PEReader.cs (6)
111/// Unless <see cref="PEStreamOptions.LeaveOpen"/> is specified, ownership of the stream is transferred to the <see cref="PEReader"/> 119/// will have read all of the data requested during construction. As such, if <see cref="PEStreamOptions.LeaveOpen"/> is also 140/// Unless <see cref="PEStreamOptions.LeaveOpen"/> is specified, ownership of the stream is transferred to the <see cref="PEReader"/> 148/// will have read all of the data requested during construction. As such, if <see cref="PEStreamOptions.LeaveOpen"/> is also 182_peImage = new StreamMemoryBlockProvider(peStream, start, actualSize, (options & PEStreamOptions.LeaveOpen) != 0); 215if (closeStream && (options & PEStreamOptions.LeaveOpen) == 0)
System\Reflection\PortableExecutable\PEStreamOptions.cs (3)
26/// <see cref="PEReader"/> closes the stream automatically by the time the constructor returns unless <see cref="LeaveOpen"/> is specified. 34/// <see cref="PEReader"/> closes the stream automatically by the time the constructor returns unless <see cref="LeaveOpen"/> is specified. 48return (options & ~(PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata | PEStreamOptions.IsLoadedImage)) == 0;