Table of Contents

Class MarshalDescriptor

Namespace
AsmResolver.DotNet.Signatures
Assembly
AsmResolver.DotNet.dll

When derived from this class, provides a description on how a specific type needs to be marshaled upon calling to or from unmanaged code via P/Invoke dispatch.

public abstract class MarshalDescriptor : ExtendableBlobSignature
Inheritance
MarshalDescriptor
Derived
Inherited Members

Properties

NativeType

Gets the native type of the marshal descriptor. This is the byte any descriptor starts with.

public abstract NativeType NativeType { get; }

Property Value

NativeType

Methods

FromReader(ModuleDefinition, ref BinaryStreamReader)

Reads a marshal descriptor signature from the provided input stream.

public static MarshalDescriptor FromReader(ModuleDefinition parentModule, ref BinaryStreamReader reader)

Parameters

parentModule ModuleDefinition

The module that defines the marshal descriptor

reader BinaryStreamReader

The input stream.

Returns

MarshalDescriptor

The marshal descriptor.