Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyCopyStackContext"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public LazyCopyStackContext(LazyCopyStackContext context)
 {
     this.variables          = context.variables.Clone();
     this.controllVariables  = context.controllVariables.Clone();
     this.temporaryVariables = context.temporaryVariables.Clone();
     this.arrays             = context.arrays.Clone();
     StackLevel = context.StackLevel;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyCopyStackContext" /> class.
 /// </summary>
 /// <param name="stackLevel">The stack level.</param>
 public LazyCopyStackContext(int stackLevel)
 {
     this.variables          = new LazyCopyIndexContainer();
     this.controllVariables  = new LazyCopyIndexContainer();
     this.temporaryVariables = new LazyCopySet <MemoryIndex>();
     this.arrays             = new LazyCopySet <AssociativeArray>();
     StackLevel = stackLevel;
 }