Name
OpCode
Synopsis
This structure describes a single MSIL instruction. It is used by the ILGenerator.Emit()
method.
Alternatively, use a field from the OpCodes
class to supply a specific
instruction without needing to create an OpCode
object. Instructions are
characterized by several pieces of information,
represented as properties, such as OpCode
, Operand
, and flow control.
Public Structure OpCode ' Public Instance Properties Public ReadOnly Property FlowControl As FlowControl Public ReadOnly Property Name As String Public ReadOnly Property OpCodeType As OpCodeType Public ReadOnly Property OperandType As OperandType Public ReadOnly Property Size As Integer Public ReadOnly Property StackBehaviourPop As StackBehaviour Public ReadOnly Property StackBehaviourPush As StackBehaviour Public ReadOnly Property Value As Short ' Public Instance Methods Overrides Public Function Equals( ByVal obj As Object) As Boolean Overrides Public Function GetHashCode() As Integer Overrides Public Function ToString() As String End Structure
Hierarchy
System.Object→System.ValueType→ OpCode
Passed To
ILGenerator.{Emit()
, EmitCall()
, EmitCalli()}
, OpCodes.TakesSingleByteArgument()
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.