Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initLocals">Init locals flag</param>
 /// <param name="instructions">All instructions. This instance will own the list.</param>
 /// <param name="exceptionHandlers">All exception handlers. This instance will own the list.</param>
 /// <param name="locals">All locals. This instance will own the locals in the list.</param>
 public CilBody(bool initLocals, IList <Instruction> instructions, IList <ExceptionHandler> exceptionHandlers, IList <Local> locals)
 {
     this.initLocals        = initLocals;
     this.instructions      = ThreadSafeListCreator.MakeThreadSafe(instructions);
     this.exceptionHandlers = ThreadSafeListCreator.MakeThreadSafe(exceptionHandlers);
     this.localList         = new LocalList(locals);
 }
Esempio n. 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public CilBody()
 {
     this.initLocals        = true;
     this.instructions      = ThreadSafeListCreator.Create <Instruction>();
     this.exceptionHandlers = ThreadSafeListCreator.Create <ExceptionHandler>();
     this.localList         = new LocalList();
 }
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="initLocals">Init locals flag</param>
 /// <param name="instructions">All instructions. This instance will own the list.</param>
 /// <param name="exceptionHandlers">All exception handlers. This instance will own the list.</param>
 /// <param name="locals">All locals. This instance will own the locals in the list.</param>
 public CilBody(bool initLocals, ThreadSafe.IList <Instruction> instructions, ThreadSafe.IList <ExceptionHandler> exceptionHandlers, ThreadSafe.IList <Local> locals)
 {
     InitLocals        = initLocals;
     Instructions      = ThreadSafeListCreator.MakeThreadSafe(instructions);
     ExceptionHandlers = ThreadSafeListCreator.MakeThreadSafe(exceptionHandlers);
     Variables         = new LocalList(locals);
 }
 /// <summary>
 ///     Default constructor
 /// </summary>
 public CilBody()
 {
     InitLocals        = true;
     Instructions      = ThreadSafeListCreator.Create <Instruction>();
     ExceptionHandlers = ThreadSafeListCreator.Create <ExceptionHandler>();
     Variables         = new LocalList();
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initLocals">Init locals flag</param>
 /// <param name="instructions">All instructions. This instance will own the list.</param>
 /// <param name="exceptionHandlers">All exception handlers. This instance will own the list.</param>
 /// <param name="locals">All locals. This instance will own the locals in the list.</param>
 public CilBody(bool initLocals, IList <Instruction> instructions, IList <ExceptionHandler> exceptionHandlers, IList <Local> locals)
 {
     this.initLocals        = initLocals;
     this.instructions      = instructions;
     this.exceptionHandlers = exceptionHandlers;
     this.localList         = new LocalList(locals);
 }
Esempio n. 6
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public CilBody()
 {
     this.initLocals        = true;
     this.instructions      = new List <Instruction>();
     this.exceptionHandlers = new List <ExceptionHandler>();
     this.localList         = new LocalList();
 }