OpCodes.Dup Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the current topmost value on the evaluation stack, and then pushes the copy onto the evaluation stack.
public: static initonly System::Reflection::Emit::OpCode Dup;
public static readonly System.Reflection.Emit.OpCode Dup;
staticval mutable Dup : System.Reflection.Emit.OpCode
Public Shared ReadOnly Dup As OpCode
Field Value
Remarks
The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
Format | Assembly Format | Description |
---|---|---|
25 | dup | Duplicates the value on the top of the stack. |
The stack transitional behavior, in sequential order, is:
value
is pushed onto the stack.value
is popped off of the stack for duplication.value
is pushed back onto the stack.A duplicate value is pushed onto the stack.
The dup
instruction duplicates the top element of the stack, and leaves two identical values atop it.
The following Emit method overload can use the dup
opcode:
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za