Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Dispose()

void System.Reflection.PortableExecutable.PEReader.Dispose ( )
inline

Implements System.IDisposable.

Definition at line 139 of file PEReader.cs.

140 {
141 _lazyPEHeaders = null;
142 _peImage?.Dispose();
143 _peImage = null;
145 _lazyImageBlock = null;
147 _lazyMetadataBlock = null;
148 AbstractMemoryBlock[] lazyPESectionBlocks = _lazyPESectionBlocks;
149 if (lazyPESectionBlocks != null)
150 {
151 AbstractMemoryBlock[] array = lazyPESectionBlocks;
152 for (int i = 0; i < array.Length; i++)
153 {
154 array[i]?.Dispose();
155 }
157 }
158 }

References System.Reflection.PortableExecutable.PEReader._lazyImageBlock, System.Reflection.PortableExecutable.PEReader._lazyMetadataBlock, System.Reflection.PortableExecutable.PEReader._lazyPEHeaders, System.Reflection.PortableExecutable.PEReader._lazyPESectionBlocks, System.Reflection.PortableExecutable.PEReader._peImage, System.array, System.Reflection.Internal.AbstractMemoryBlock.Dispose(), and System.Reflection.Internal.MemoryBlockProvider.Dispose().