MetadataReader MetadataReader MetadataReader MetadataReader Class

Definition

Reads metadata as defined by the ECMA 335 CLI specification.

public ref class MetadataReader sealed
public sealed class MetadataReader
type MetadataReader = class
Public NotInheritable Class MetadataReader
Inheritance
MetadataReaderMetadataReaderMetadataReaderMetadataReader

Constructors

MetadataReader(Byte*, Int32) MetadataReader(Byte*, Int32) MetadataReader(Byte*, Int32) MetadataReader(Byte*, Int32)

Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

MetadataReader(Byte*, Int32, MetadataReaderOptions) MetadataReader(Byte*, Int32, MetadataReaderOptions) MetadataReader(Byte*, Int32, MetadataReaderOptions) MetadataReader(Byte*, Int32, MetadataReaderOptions)

Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

MetadataReader(Byte*, Int32, MetadataReaderOptions, MetadataStringDecoder) MetadataReader(Byte*, Int32, MetadataReaderOptions, MetadataStringDecoder) MetadataReader(Byte*, Int32, MetadataReaderOptions, MetadataStringDecoder) MetadataReader(Byte*, Int32, MetadataReaderOptions, MetadataStringDecoder)

Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

Properties

AssemblyFiles AssemblyFiles AssemblyFiles AssemblyFiles
AssemblyReferences AssemblyReferences AssemblyReferences AssemblyReferences
CustomAttributes CustomAttributes CustomAttributes CustomAttributes
CustomDebugInformation CustomDebugInformation CustomDebugInformation CustomDebugInformation
DebugMetadataHeader DebugMetadataHeader DebugMetadataHeader DebugMetadataHeader

Gets the information decoded from #Pdb stream, or null if the stream is not present.

DeclarativeSecurityAttributes DeclarativeSecurityAttributes DeclarativeSecurityAttributes DeclarativeSecurityAttributes
Documents Documents Documents Documents
EventDefinitions EventDefinitions EventDefinitions EventDefinitions
ExportedTypes ExportedTypes ExportedTypes ExportedTypes
FieldDefinitions FieldDefinitions FieldDefinitions FieldDefinitions
ImportScopes ImportScopes ImportScopes ImportScopes
IsAssembly IsAssembly IsAssembly IsAssembly

Gets a value that indicates whether the metadata represents an assembly.

LocalConstants LocalConstants LocalConstants LocalConstants
LocalScopes LocalScopes LocalScopes LocalScopes
LocalVariables LocalVariables LocalVariables LocalVariables
ManifestResources ManifestResources ManifestResources ManifestResources
MemberReferences MemberReferences MemberReferences MemberReferences
MetadataKind MetadataKind MetadataKind MetadataKind

Gets the metadata kind.

MetadataLength MetadataLength MetadataLength MetadataLength

Gets the length of the underlying data.

MetadataPointer MetadataPointer MetadataPointer MetadataPointer

Gets the pointer to the underlying data.

MetadataVersion MetadataVersion MetadataVersion MetadataVersion

Gets the version string read from metadata header.

MethodDebugInformation MethodDebugInformation MethodDebugInformation MethodDebugInformation
MethodDefinitions MethodDefinitions MethodDefinitions MethodDefinitions
Options Options Options Options

Gets the MetadataReaderOptions passed to the constructor.

PropertyDefinitions PropertyDefinitions PropertyDefinitions PropertyDefinitions
StringComparer StringComparer StringComparer StringComparer

Gets the comparer used to compare strings stored in metadata.

TypeDefinitions TypeDefinitions TypeDefinitions TypeDefinitions
TypeReferences TypeReferences TypeReferences TypeReferences
UTF8Decoder UTF8Decoder UTF8Decoder UTF8Decoder

Gets the decoder used by the reader to produce string instances from UTF8-encoded byte sequences.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAssemblyDefinition() GetAssemblyDefinition() GetAssemblyDefinition() GetAssemblyDefinition()
GetAssemblyFile(AssemblyFileHandle) GetAssemblyFile(AssemblyFileHandle) GetAssemblyFile(AssemblyFileHandle) GetAssemblyFile(AssemblyFileHandle)
GetAssemblyReference(AssemblyReferenceHandle) GetAssemblyReference(AssemblyReferenceHandle) GetAssemblyReference(AssemblyReferenceHandle) GetAssemblyReference(AssemblyReferenceHandle)
GetBlobBytes(BlobHandle) GetBlobBytes(BlobHandle) GetBlobBytes(BlobHandle) GetBlobBytes(BlobHandle)
GetBlobContent(BlobHandle) GetBlobContent(BlobHandle) GetBlobContent(BlobHandle) GetBlobContent(BlobHandle)
GetBlobReader(BlobHandle) GetBlobReader(BlobHandle) GetBlobReader(BlobHandle) GetBlobReader(BlobHandle)
GetBlobReader(StringHandle) GetBlobReader(StringHandle) GetBlobReader(StringHandle) GetBlobReader(StringHandle)
GetConstant(ConstantHandle) GetConstant(ConstantHandle) GetConstant(ConstantHandle) GetConstant(ConstantHandle)
GetCustomAttribute(CustomAttributeHandle) GetCustomAttribute(CustomAttributeHandle) GetCustomAttribute(CustomAttributeHandle) GetCustomAttribute(CustomAttributeHandle)
GetCustomAttributes(EntityHandle) GetCustomAttributes(EntityHandle) GetCustomAttributes(EntityHandle) GetCustomAttributes(EntityHandle)
GetCustomDebugInformation(CustomDebugInformationHandle) GetCustomDebugInformation(CustomDebugInformationHandle) GetCustomDebugInformation(CustomDebugInformationHandle) GetCustomDebugInformation(CustomDebugInformationHandle)
GetCustomDebugInformation(EntityHandle) GetCustomDebugInformation(EntityHandle) GetCustomDebugInformation(EntityHandle) GetCustomDebugInformation(EntityHandle)
GetDeclarativeSecurityAttribute(DeclarativeSecurityAttributeHandle) GetDeclarativeSecurityAttribute(DeclarativeSecurityAttributeHandle) GetDeclarativeSecurityAttribute(DeclarativeSecurityAttributeHandle) GetDeclarativeSecurityAttribute(DeclarativeSecurityAttributeHandle)
GetDocument(DocumentHandle) GetDocument(DocumentHandle) GetDocument(DocumentHandle) GetDocument(DocumentHandle)
GetEventDefinition(EventDefinitionHandle) GetEventDefinition(EventDefinitionHandle) GetEventDefinition(EventDefinitionHandle) GetEventDefinition(EventDefinitionHandle)
GetExportedType(ExportedTypeHandle) GetExportedType(ExportedTypeHandle) GetExportedType(ExportedTypeHandle) GetExportedType(ExportedTypeHandle)
GetFieldDefinition(FieldDefinitionHandle) GetFieldDefinition(FieldDefinitionHandle) GetFieldDefinition(FieldDefinitionHandle) GetFieldDefinition(FieldDefinitionHandle)
GetGenericParameter(GenericParameterHandle) GetGenericParameter(GenericParameterHandle) GetGenericParameter(GenericParameterHandle) GetGenericParameter(GenericParameterHandle)
GetGenericParameterConstraint(GenericParameterConstraintHandle) GetGenericParameterConstraint(GenericParameterConstraintHandle) GetGenericParameterConstraint(GenericParameterConstraintHandle) GetGenericParameterConstraint(GenericParameterConstraintHandle)
GetGuid(GuidHandle) GetGuid(GuidHandle) GetGuid(GuidHandle) GetGuid(GuidHandle)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetImportScope(ImportScopeHandle) GetImportScope(ImportScopeHandle) GetImportScope(ImportScopeHandle) GetImportScope(ImportScopeHandle)
GetInterfaceImplementation(InterfaceImplementationHandle) GetInterfaceImplementation(InterfaceImplementationHandle) GetInterfaceImplementation(InterfaceImplementationHandle) GetInterfaceImplementation(InterfaceImplementationHandle)
GetLocalConstant(LocalConstantHandle) GetLocalConstant(LocalConstantHandle) GetLocalConstant(LocalConstantHandle) GetLocalConstant(LocalConstantHandle)
GetLocalScope(LocalScopeHandle) GetLocalScope(LocalScopeHandle) GetLocalScope(LocalScopeHandle) GetLocalScope(LocalScopeHandle)
GetLocalScopes(MethodDebugInformationHandle) GetLocalScopes(MethodDebugInformationHandle) GetLocalScopes(MethodDebugInformationHandle) GetLocalScopes(MethodDebugInformationHandle)
GetLocalScopes(MethodDefinitionHandle) GetLocalScopes(MethodDefinitionHandle) GetLocalScopes(MethodDefinitionHandle) GetLocalScopes(MethodDefinitionHandle)
GetLocalVariable(LocalVariableHandle) GetLocalVariable(LocalVariableHandle) GetLocalVariable(LocalVariableHandle) GetLocalVariable(LocalVariableHandle)
GetManifestResource(ManifestResourceHandle) GetManifestResource(ManifestResourceHandle) GetManifestResource(ManifestResourceHandle) GetManifestResource(ManifestResourceHandle)
GetMemberReference(MemberReferenceHandle) GetMemberReference(MemberReferenceHandle) GetMemberReference(MemberReferenceHandle) GetMemberReference(MemberReferenceHandle)
GetMethodDebugInformation(MethodDebugInformationHandle) GetMethodDebugInformation(MethodDebugInformationHandle) GetMethodDebugInformation(MethodDebugInformationHandle) GetMethodDebugInformation(MethodDebugInformationHandle)
GetMethodDebugInformation(MethodDefinitionHandle) GetMethodDebugInformation(MethodDefinitionHandle) GetMethodDebugInformation(MethodDefinitionHandle) GetMethodDebugInformation(MethodDefinitionHandle)
GetMethodDefinition(MethodDefinitionHandle) GetMethodDefinition(MethodDefinitionHandle) GetMethodDefinition(MethodDefinitionHandle) GetMethodDefinition(MethodDefinitionHandle)
GetMethodImplementation(MethodImplementationHandle) GetMethodImplementation(MethodImplementationHandle) GetMethodImplementation(MethodImplementationHandle) GetMethodImplementation(MethodImplementationHandle)
GetMethodSpecification(MethodSpecificationHandle) GetMethodSpecification(MethodSpecificationHandle) GetMethodSpecification(MethodSpecificationHandle) GetMethodSpecification(MethodSpecificationHandle)
GetModuleDefinition() GetModuleDefinition() GetModuleDefinition() GetModuleDefinition()
GetModuleReference(ModuleReferenceHandle) GetModuleReference(ModuleReferenceHandle) GetModuleReference(ModuleReferenceHandle) GetModuleReference(ModuleReferenceHandle)
GetNamespaceDefinition(NamespaceDefinitionHandle) GetNamespaceDefinition(NamespaceDefinitionHandle) GetNamespaceDefinition(NamespaceDefinitionHandle) GetNamespaceDefinition(NamespaceDefinitionHandle)
GetNamespaceDefinitionRoot() GetNamespaceDefinitionRoot() GetNamespaceDefinitionRoot() GetNamespaceDefinitionRoot()
GetParameter(ParameterHandle) GetParameter(ParameterHandle) GetParameter(ParameterHandle) GetParameter(ParameterHandle)
GetPropertyDefinition(PropertyDefinitionHandle) GetPropertyDefinition(PropertyDefinitionHandle) GetPropertyDefinition(PropertyDefinitionHandle) GetPropertyDefinition(PropertyDefinitionHandle)
GetStandaloneSignature(StandaloneSignatureHandle) GetStandaloneSignature(StandaloneSignatureHandle) GetStandaloneSignature(StandaloneSignatureHandle) GetStandaloneSignature(StandaloneSignatureHandle)
GetString(DocumentNameBlobHandle) GetString(DocumentNameBlobHandle) GetString(DocumentNameBlobHandle) GetString(DocumentNameBlobHandle)
GetString(NamespaceDefinitionHandle) GetString(NamespaceDefinitionHandle) GetString(NamespaceDefinitionHandle) GetString(NamespaceDefinitionHandle)
GetString(StringHandle) GetString(StringHandle) GetString(StringHandle) GetString(StringHandle)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeDefinition(TypeDefinitionHandle) GetTypeDefinition(TypeDefinitionHandle) GetTypeDefinition(TypeDefinitionHandle) GetTypeDefinition(TypeDefinitionHandle)
GetTypeReference(TypeReferenceHandle) GetTypeReference(TypeReferenceHandle) GetTypeReference(TypeReferenceHandle) GetTypeReference(TypeReferenceHandle)
GetTypeSpecification(TypeSpecificationHandle) GetTypeSpecification(TypeSpecificationHandle) GetTypeSpecification(TypeSpecificationHandle) GetTypeSpecification(TypeSpecificationHandle)
GetUserString(UserStringHandle) GetUserString(UserStringHandle) GetUserString(UserStringHandle) GetUserString(UserStringHandle)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

GetEditAndContinueLogEntries(MetadataReader) GetEditAndContinueLogEntries(MetadataReader) GetEditAndContinueLogEntries(MetadataReader) GetEditAndContinueLogEntries(MetadataReader)
GetEditAndContinueMapEntries(MetadataReader) GetEditAndContinueMapEntries(MetadataReader) GetEditAndContinueMapEntries(MetadataReader) GetEditAndContinueMapEntries(MetadataReader)
GetHeapMetadataOffset(MetadataReader, HeapIndex) GetHeapMetadataOffset(MetadataReader, HeapIndex) GetHeapMetadataOffset(MetadataReader, HeapIndex) GetHeapMetadataOffset(MetadataReader, HeapIndex)
GetHeapSize(MetadataReader, HeapIndex) GetHeapSize(MetadataReader, HeapIndex) GetHeapSize(MetadataReader, HeapIndex) GetHeapSize(MetadataReader, HeapIndex)
GetNextHandle(MetadataReader, BlobHandle) GetNextHandle(MetadataReader, BlobHandle) GetNextHandle(MetadataReader, BlobHandle) GetNextHandle(MetadataReader, BlobHandle)
GetNextHandle(MetadataReader, StringHandle) GetNextHandle(MetadataReader, StringHandle) GetNextHandle(MetadataReader, StringHandle) GetNextHandle(MetadataReader, StringHandle)
GetNextHandle(MetadataReader, UserStringHandle) GetNextHandle(MetadataReader, UserStringHandle) GetNextHandle(MetadataReader, UserStringHandle) GetNextHandle(MetadataReader, UserStringHandle)
GetTableMetadataOffset(MetadataReader, TableIndex) GetTableMetadataOffset(MetadataReader, TableIndex) GetTableMetadataOffset(MetadataReader, TableIndex) GetTableMetadataOffset(MetadataReader, TableIndex)
GetTableRowCount(MetadataReader, TableIndex) GetTableRowCount(MetadataReader, TableIndex) GetTableRowCount(MetadataReader, TableIndex) GetTableRowCount(MetadataReader, TableIndex)
GetTableRowSize(MetadataReader, TableIndex) GetTableRowSize(MetadataReader, TableIndex) GetTableRowSize(MetadataReader, TableIndex) GetTableRowSize(MetadataReader, TableIndex)
GetTypesWithEvents(MetadataReader) GetTypesWithEvents(MetadataReader) GetTypesWithEvents(MetadataReader) GetTypesWithEvents(MetadataReader)
GetTypesWithProperties(MetadataReader) GetTypesWithProperties(MetadataReader) GetTypesWithProperties(MetadataReader) GetTypesWithProperties(MetadataReader)
ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte) ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte) ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte) ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte)
GetHeapOffset(MetadataReader, Handle) GetHeapOffset(MetadataReader, Handle) GetHeapOffset(MetadataReader, Handle) GetHeapOffset(MetadataReader, Handle)
GetRowNumber(MetadataReader, EntityHandle) GetRowNumber(MetadataReader, EntityHandle) GetRowNumber(MetadataReader, EntityHandle) GetRowNumber(MetadataReader, EntityHandle)
GetToken(MetadataReader, EntityHandle) GetToken(MetadataReader, EntityHandle) GetToken(MetadataReader, EntityHandle) GetToken(MetadataReader, EntityHandle)
GetToken(MetadataReader, Handle) GetToken(MetadataReader, Handle) GetToken(MetadataReader, Handle) GetToken(MetadataReader, Handle)

Applies to