O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

OpCodes

Synopsis

This class provides the set of MSIL instructions through static fields. Each field returns the OpCode object that represents the corresponding instruction, and can be used in the ILGenerator.Emit() method. For a detailed description of these opcodes, see Partition III, CIL of the ECMA CLI specification ().

public class OpCodes {
// Public Static Fields
   public static readonly field OpCode Add;                      // =add
   public static readonly field OpCode Add_Ovf;                  // =add.ovf
   public static readonly field OpCode Add_Ovf_Un;               // =add.ovf.un
   public static readonly field OpCode And;                      // =and
   public static readonly field OpCode Arglist;                  // =arglist
   public static readonly field OpCode Beq;                      // =beq
   public static readonly field OpCode Beq_S;                    // =beq.s
   public static readonly field OpCode Bge;                      // =bge
   public static readonly field OpCode Bge_S;                    // =bge.s
   public static readonly field OpCode Bge_Un;                   // =bge.un
   public static readonly field OpCode Bge_Un_S;                 // =bge.un.s
   public static readonly field OpCode Bgt;                      // =bgt
   public static readonly field OpCode Bgt_S;                    // =bgt.s
   public static readonly field OpCode Bgt_Un;                   // =bgt.un
   public static readonly field OpCode Bgt_Un_S;                 // =bgt.un.s
   public static readonly field OpCode Ble;                      // =ble
   public static readonly field OpCode Ble_S;                    // =ble.s
   public static readonly field OpCode Ble_Un;                   // =ble.un
   public static readonly field OpCode Ble_Un_S;                 // =ble.un.s
   public static readonly field OpCode Blt;                      // =blt
   public static readonly field OpCode Blt_S;                    // =blt.s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required