Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OpCode Struct

Definition

Namespace:
System.Reflection.Emit
Assemblies:
mscorlib.dll, System.Reflection.Primitives.dll
Assemblies:
netstandard.dll, System.Reflection.Primitives.dll
Assembly:
System.Reflection.Primitives.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
Opcode.cs
Source:
Opcode.cs
Source:
Opcode.cs
Source:
Opcode.cs
Source:
Opcode.cs

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.

Describes an intermediate language (IL) instruction.

public value class OpCode
public value class OpCode : IEquatable<System::Reflection::Emit::OpCode>
public struct OpCode
public readonly struct OpCode : IEquatable<System.Reflection.Emit.OpCode>
[System.Runtime.InteropServices.ComVisible(true)]
public struct OpCode
type OpCode = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
type OpCode = struct
Public Structure OpCode
Public Structure OpCode
Implements IEquatable(Of OpCode)
Inheritance
OpCode
Attributes
Implements

Properties

Name Description
EvaluationStackDelta

Gets the value of how the IL instruction changes the evaluation stack.

FlowControl

The flow control characteristics of the intermediate language (IL) instruction.

Name

The name of the intermediate language (IL) instruction.

OpCodeType

The type of intermediate language (IL) instruction.

OperandType

The operand type of an intermediate language (IL) instruction.

Size

The size of the intermediate language (IL) instruction.

StackBehaviourPop

How the intermediate language (IL) instruction pops the stack.

StackBehaviourPush

How the intermediate language (IL) instruction pushes operand onto the stack.

Value

Gets the numeric value of the intermediate language (IL) instruction.

Methods

Name Description
Equals(Object)

Tests whether the given object is equal to this Opcode.

Equals(OpCode)

Indicates whether the current instance is equal to the specified OpCode.

GetHashCode()

Returns the generated hash code for this Opcode.

ToString()

Returns this Opcode as a String.

Operators

Name Description
Equality(OpCode, OpCode)

Indicates whether two OpCode structures are equal.

Inequality(OpCode, OpCode)

Indicates whether two OpCode structures are not equal.

Applies to


Feedback

Was this page helpful?