System.Reflection.Emit.OpCode Structure

Assembly: Mscorlib.dll
Namespace: System.Reflection.Emit
Summary
Describes a Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public struct OpCode
Thread Safety
Reflection Emit is thread-safe when using assemblies that were created with the AppDomain.DefineDynamicAssembly method with the Boolean parameter isSynchronized set to true.
See also:
System.Reflection.Emit Namespace

System.Reflection.Emit.OpCode Member List:

Public Properties
FlowControl Read-only

The flow control characteristics of the Microsoft intermediate language (MSIL) instruction.
Name Read-only

The name of the Microsoft intermediate language (MSIL) instruction.
OpCodeType Read-only

The type of Microsoft intermediate language (MSIL) instruction.
OperandType Read-only

The operand type of an Microsoft intermediate language (MSIL) instruction.
Size Read-only

The size of the Microsoft intermediate language (MSIL) instruction.
StackBehaviourPop Read-only

How the Microsoft intermediate language (MSIL) instruction pops the stack.
StackBehaviourPush Read-only

How the Microsoft intermediate language (MSIL) instruction pushes operand onto the stack.
Value Read-only

The value of the immediate operand of the Microsoft intermediate language (MSIL) instruction.
Public Methods
Equals Overridden:
Tests whether the given object is equal to this Opcode.
GetHashCode Overridden:
Returns the generated hash code for this Opcode.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString Overridden:
Returns this Opcode as a String.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Reflection.Emit.OpCode Member Details

Property: FlowControl (read-only)
Summary
The flow control characteristics of the Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public FlowControl FlowControl {get;}

Return to top


Property: Name (read-only)
Summary
The name of the Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public string Name {get;}

Return to top


Property: OpCodeType (read-only)
Summary
The type of Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public OpCodeType OpCodeType {get;}

Return to top


Property: OperandType (read-only)
Summary
The operand type of an Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public OperandType OperandType {get;}

Return to top


Property: Size (read-only)
Summary
The size of the Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public int Size {get;}

Return to top


Property: StackBehaviourPop (read-only)
Summary
How the Microsoft intermediate language (MSIL) instruction pops the stack.
C# Syntax:
public StackBehaviour StackBehaviourPop {get;}

Return to top


Property: StackBehaviourPush (read-only)
Summary
How the Microsoft intermediate language (MSIL) instruction pushes operand onto the stack.
C# Syntax:
public StackBehaviour StackBehaviourPush {get;}

Return to top


Property: Value (read-only)
Summary
The value of the immediate operand of the Microsoft intermediate language (MSIL) instruction.
C# Syntax:
public short Value {get;}

Return to top


Overridden Method: Equals(
   object obj
)
Summary
Tests whether the given object is equal to this Opcode.
C# Syntax:
public override bool Equals(
   object obj
);
Parameters:

obj

The object to compare to this object.

Return Value:
true if obj is an instance of Opcode and is equal to this object; otherwise, false.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~OpCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: GetHashCode()
Summary
Returns the generated hash code for this Opcode.
C# Syntax:
public override int GetHashCode();
Return Value:
Returns the hash code for this instance.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: ToString()
Summary
Returns this Opcode as a String.
C# Syntax:
public override string ToString();
Return Value:
Returns a String containing the name of this Opcode.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.