Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OpCode Structure

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)

public struct OpCode

The OpCode type exposes the following members.

Public propertyFlowControlThe flow control characteristics of the intermediate language (IL) instruction.
Public propertyNameThe name of the intermediate language (IL) instruction.
Public propertyOpCodeTypeThe type of intermediate language (IL) instruction.
Public propertyOperandTypeThe operand type of an intermediate language (IL) instruction.
Public propertySizeThe size of the intermediate language (IL) instruction.
Public propertyStackBehaviourPopHow the intermediate language (IL) instruction pops the stack.
Public propertyStackBehaviourPushHow the intermediate language (IL) instruction pushes operand onto the stack.
Public propertyValueGets the numeric value of the intermediate language (IL) instruction.

Public methodEquals(Object)Tests whether the given object is equal to this Opcode. (Overrides ValueType.Equals(Object).)
Public methodEquals(OpCode)Indicates whether the current instance is equal to the specified OpCode.
Public methodGetHashCodeReturns the generated hash code for this Opcode. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns this Opcode as a String. (Overrides ValueType.ToString().)

Public operatorStatic memberEqualityIndicates whether two OpCode structures are equal.
Public operatorStatic memberInequalityIndicates whether two OpCode structures are not equal.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

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