OpCodes.Brfalse Campo
Definição
Transferirá o controle para uma instrução de destino se value for false, uma referência nula (Nothing no Visual Basic) ou zero.Transfers control to a target instruction if value is false, a null reference (Nothing in Visual Basic), or zero.
public: static initonly System::Reflection::Emit::OpCode Brfalse;
public static readonly System.Reflection.Emit.OpCode Brfalse;
staticval mutable Brfalse : System.Reflection.Emit.OpCode
Public Shared ReadOnly Brfalse As OpCode
Valor do campo
Comentários
A tabela a seguir lista o formato de assembly hexadecimal e da MSIL (Microsoft Intermediate Language) da instrução, juntamente com um resumo de referência breve:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
| FormatarFormat | Formato do assemblyAssembly Format | DescriçãoDescription |
|---|---|---|
39 < int32 >39 < int32 > |
brfalse targetbrfalse targetbrnull targetbrnull targetbrzero targetbrzero target |
Ramifica para uma instrução de destino no deslocamento especificado se false .Branches to a target instruction at the specified offset if false. |
O comportamento de transição de pilha, em ordem sequencial, é:The stack transitional behavior, in sequential order, is:
valueé enviado por push para a pilha por uma operação anterior.valueis pushed onto the stack by a previous operation.valueé retirado da pilha; Sevalueforfalse, Branch paratarget.valueis popped from the stack; ifvalueisfalse, branch totarget.
A brfalse instrução (e seus aliases brnull e brzero ) transfere o controle para a instrução de destino especificada se value (do tipo int32 , int64 , referência de objeto O , ponteiro gerenciado & , ponteiro transitório * native int ) for zero ( false ).The brfalse instruction (and its aliases brnull and brzero) transfers control to the specified target instruction if value (of type int32, int64, object reference O, managed pointer &, transient pointer *, native int) is zero (false). Se o value for diferente de zero ( true ), a execução continuará na próxima instrução.If value is non-zero (true) execution continues at the next instruction.
A instrução de destino é representada como um deslocamento assinado de 4 bytes do início da instrução após a instrução atual.The target instruction is represented as a 4-byte signed offset from the beginning of the instruction following the current instruction.
Se a instrução de destino tiver um ou mais códigos de prefixo, o controle só poderá ser transferido para o primeiro desses prefixos.If the target instruction has one or more prefix codes, control can only be transferred to the first of these prefixes. As transferências de controle para dentro e fora dos try catch blocos,, filter e finally não podem ser executadas por essa instrução.Control transfers into and out of try, catch, filter, and finally blocks cannot be performed by this instruction.
A sobrecarga do método a seguir Emit pode usar o brfalse opcode:The following Emit method overload can use the brfalse opcode: