System.Reflection.Emit.OpCodes.Mul Field

Multiplies two values and pushes the result on the evaluation stack.

Syntax

public static readonly OpCode Mul

Remarks

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

5A

mul

Multiplies two values on the stack.

The stack transitional behavior, in sequential order, is:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

The mul instruction multiplies value1 by value2 and pushes the result on the stack. Integer operations silently truncate the upper bits on overflow.

See OpCodes.Mul_Ovf for an integer-specific multiply operation with overflow handling.

For floating-point types, 0 * infinity = NaN.

The following ILGenerator.Emit(OpCode) method overload can use the mul opcode:

  • ILGenerator.Emit(OpCode)

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0