System.Xml.Xsl.XsltOld.Compiler.CreateVariableAction C# (CSharp) 메소드

CreateVariableAction() 공개 메소드

public CreateVariableAction ( VariableType type ) : VariableAction
type VariableType
리턴 VariableAction
        public virtual VariableAction CreateVariableAction(VariableType type)
        {
            VariableAction action = new VariableAction(type);
            action.Compile(this);
            if (action.VarKey != InvalidQueryKey)
            {
                return action;
            }
            else
            {
                return null;
            }
        }

Usage Example

예제 #1
0
        protected void CompileParameters(Compiler compiler)
        {
            NavigatorInput input = compiler.Input;

            do
            {
                switch (input.NodeType)
                {
                case XPathNodeType.Element:
                    if (Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl) &&
                        Ref.Equal(input.LocalName, input.Atoms.Param))
                    {
                        compiler.PushNamespaceScope();
                        AddAction(compiler.CreateVariableAction(VariableType.LocalParameter));
                        compiler.PopScope();
                        continue;
                    }
                    else
                    {
                        return;
                    }

                case XPathNodeType.Text:
                    return;

                case XPathNodeType.SignificantWhitespace:
                    this.AddEvent(compiler.CreateTextEvent());
                    continue;

                default:
                    continue;
                }
            }while (input.Advance());
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::CreateVariableAction