Ejemplo n.º 1
0
 public void FillWithInstructions(InstructionBlock instructionBlock)
 {
     if (instructionBlock == null)
     {
         throw new ArgumentNullException();
     }
     if (!instructionBlock.AreContinuationsEmpty())
     {
         throw new Exception("Method has continuations");
     }
     Instructions.AddRange(instructionBlock.Instructions);
     InitialInstructions.NextInstructions.AddRange(instructionBlock.InitialInstructions);
 }