Export (0) Print
Expand All

OpCode Structure

Describes an intermediate language (IL) instruction.

Namespace:  System.Reflection.Emit
Assemblies:   mscorlib (in mscorlib.dll)
  System.Reflection.Primitives (in System.Reflection.Primitives.dll)

'Declaration
<ComVisibleAttribute(True)> _
Public Structure OpCode

The OpCode type exposes the following members.

  NameDescription
Public propertySupported in .NET for Windows Store appsFlowControlThe flow control characteristics of the intermediate language (IL) instruction.
Public propertySupported in .NET for Windows Store appsNameThe name of the intermediate language (IL) instruction.
Public propertySupported in .NET for Windows Store appsOpCodeTypeThe type of intermediate language (IL) instruction.
Public propertySupported in .NET for Windows Store appsOperandTypeThe operand type of an intermediate language (IL) instruction.
Public propertySupported in .NET for Windows Store appsSizeThe size of the intermediate language (IL) instruction.
Public propertySupported in .NET for Windows Store appsStackBehaviourPopHow the intermediate language (IL) instruction pops the stack.
Public propertySupported in .NET for Windows Store appsStackBehaviourPushHow the intermediate language (IL) instruction pushes operand onto the stack.
Public propertySupported in .NET for Windows Store appsValueGets the numeric value of the intermediate language (IL) instruction.
Top

  NameDescription
Public methodSupported in .NET for Windows Store appsEquals(Object)Tests whether the given object is equal to this Opcode. (Overrides ValueType.Equals(Object).)
Public methodSupported in .NET for Windows Store appsEquals(OpCode)Indicates whether the current instance is equal to the specified OpCode.
Public methodSupported in .NET for Windows Store appsGetHashCodeReturns the generated hash code for this Opcode. (Overrides ValueType.GetHashCode.)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsToStringReturns this Opcode as a String. (Overrides ValueType.ToString.)
Top

  NameDescription
Public operatorStatic memberSupported in .NET for Windows Store appsEqualityIndicates whether two OpCode structures are equal.
Public operatorStatic memberSupported in .NET for Windows Store appsInequalityIndicates whether two OpCode structures are not equal.
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft