System.Xml.Xsl.XsltOld.ActionFrame.AllocateVariables C# (CSharp) Method

AllocateVariables() private method

private AllocateVariables ( int count ) : void
count int
return void
        internal void AllocateVariables(int count) {
            if (0 < count) {
                this.variables = new object [count];
            }
            else {
                this.variables = null;
            }
        }

Usage Example

Ejemplo n.º 1
0
        //
        // Execution
        //

        internal override void Execute(Processor processor, ActionFrame frame)
        {
            Debug.Assert(processor != null && frame != null);

            switch (frame.State)
            {
            case Initialized:
                if (this.variableCount > 0)
                {
                    frame.AllocateVariables(this.variableCount);
                }
                if (this.containedActions != null && this.containedActions.Count > 0)
                {
                    processor.PushActionFrame(frame);
                    frame.State = ProcessingChildren;
                }
                else
                {
                    frame.Finished();
                }
                break;                              // Allow children to run

            case ProcessingChildren:
                frame.Finished();
                break;

            default:
                Debug.Fail("Invalid Container action execution state");
                break;
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.ActionFrame::AllocateVariables