Class NegHandler
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Dispatch.Arithmetic
- Assembly
- Echo.Platforms.AsmResolver.dll
Implements a CIL instruction handler for neg operations.
[DispatcherTableEntry(new CilCode[] { CilCode.Neg })]
public class NegHandler : UnaryOperatorHandlerBase, ICilOpCodeHandler
- Inheritance
-
NegHandler
- Implements
- Inherited Members
Methods
Evaluate(CilExecutionContext, CilInstruction, StackSlot)
Evaluates the unary operation on an argument.
protected override CilDispatchResult Evaluate(CilExecutionContext context, CilInstruction instruction, StackSlot argument)
Parameters
contextCilExecutionContextThe context to evaluate the instruction in.
instructionCilInstructionThe instruction to dispatch and evaluate.
argumentStackSlotThe argument that also receives the output.
Returns
- CilDispatchResult
A value indicating whether the dispatch was successful or caused an error.