Class SerializedMetadataDirectory
- Namespace
- AsmResolver.PE.DotNet.Metadata
- Assembly
- AsmResolver.PE.dll
Provides an implementation of a metadata directory that is stored in a PE file.
public class SerializedMetadataDirectory : MetadataDirectory, ISegment, IOffsetProvider, IWritable- Inheritance
- 
      
      
      
      SerializedMetadataDirectory
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedMetadataDirectory(MetadataReaderContext, ref BinaryStreamReader)
Reads a metadata directory from an input stream.
public SerializedMetadataDirectory(MetadataReaderContext context, ref BinaryStreamReader directoryReader)Parameters
- contextMetadataReaderContext
- The reader context. 
- directoryReaderBinaryStreamReader
- The input stream containing the metadata directory. 
Exceptions
- ArgumentNullException
- Occurs when any of the arguments are - null.
- NotSupportedException
- Occurs when an unsupported metadata directory format was encountered. 
- BadImageFormatException
- Occurs when the metadata directory header is invalid. 
Methods
GetStreams()
Obtains the list of streams defined in the data directory.
protected override IList<IMetadataStream> GetStreams()Returns
- IList<IMetadataStream>
- The streams. 
Remarks
This method is called upon initialization of the Streams property.