System.Text.RegularExpressions.RegexRunner.DoubleStack C# (CSharp) Method

DoubleStack() protected method

Called by the implementation of Go() to increase the size of the grouping stack.
protected DoubleStack ( ) : void
return void
        protected void DoubleStack()
        {
            int[] newstack;

            newstack = new int[runstack.Length * 2];

            Array.Copy(runstack, 0, newstack, runstack.Length, runstack.Length);
            runstackpos += runstack.Length;
            runstack = newstack;
        }