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 不是分支作業碼。

適用於