ILOpCodeExtensions.GetBranchOperandSize(ILOpCode) メソッド

定義

指定した分岐命令オペランドのサイズを計算します。

public:
[System::Runtime::CompilerServices::Extension]
 static int GetBranchOperandSize(System::Reflection::Metadata::ILOpCode opCode);
public static int GetBranchOperandSize(this System.Reflection.Metadata.ILOpCode opCode);
static member GetBranchOperandSize : System.Reflection.Metadata.ILOpCode -> int
<Extension()>
Public Function GetBranchOperandSize (opCode As ILOpCode) As Integer

パラメーター

opCode
ILOpCode

ブランチオペコード。

返品

opCodeが短い分岐の場合は 1、長い分岐の場合は 4。

例外

指定した opCode は分岐オペコードではありません。

適用対象