Table of Contents

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

context CilExecutionContext

The context to evaluate the instruction in.

instruction CilInstruction

The instruction to dispatch and evaluate.

argument StackSlot

The argument that also receives the output.

Returns

CilDispatchResult

A value indicating whether the dispatch was successful or caused an error.