MethodBodyStreamEncoder 结构

定义

为方法主体流提供编码器。

C#
public readonly struct MethodBodyStreamEncoder
C#
public struct MethodBodyStreamEncoder
继承
MethodBodyStreamEncoder

构造函数

MethodBodyStreamEncoder(BlobBuilder)

为方法主体流提供编码器。

属性

Builder

为方法主体流提供编码器。

方法

AddMethodBody(InstructionEncoder, Int32, StandaloneSignatureHandle, MethodBodyAttributes)

对方法主体进行编码,并将其添加到方法主体流中。

AddMethodBody(InstructionEncoder, Int32, StandaloneSignatureHandle, MethodBodyAttributes, Boolean)

通过使用提供的指令编码器、最大堆栈大小、局部变量的签名句柄、方法主体属性并允许指示该方法是否应从动态本地内存池分配,对方法主体进行编码,并将其添加到方法主体流。

AddMethodBody(Int32, Int32, Int32, Boolean, StandaloneSignatureHandle, MethodBodyAttributes)

通过使用提供的代码大小、最大堆栈大小、异常区域的数目、局部变量的签名句柄、方法主体属性并允许指示是否应以小格式编码异常区域,对方法主体进行编码,并将其添加到方法主体流。

AddMethodBody(Int32, Int32, Int32, Boolean, StandaloneSignatureHandle, MethodBodyAttributes, Boolean)

通过使用提供的代码大小、最大堆栈大小、异常区域的数目、局部变量的签名句柄、方法主体属性,允许指示是否应以小格式编码异常区域,并允许指示方法是否应从动态本地内存池分配,对方法主体进行编码,并将其添加到方法主体流。

适用于

产品 版本
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0