Share via


ILOpCodeExtensions.GetBranchOperandSize(ILOpCode) Méthode

Définition

Calcule la taille de l’opérande d’instruction de la branche spécifiée.

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

Paramètres

opCode
ILOpCode

Code d’opération de la branche.

Retours

1 si opCode est une branche courte, ou 4 s’il s’agit d’une branche longue.

Exceptions

Le opCode spécifié n’est pas un code d’opération de branche.

S’applique à