System.Xml.Xsl.XsltOld.Processor.BeginEvent C# (CSharp) Method

BeginEvent() private method

private BeginEvent ( XPathNodeType nodeType, string prefix, string name, string nspace, bool empty ) : bool
nodeType XPathNodeType
prefix string
name string
nspace string
empty bool
return bool
        internal bool BeginEvent(XPathNodeType nodeType, string prefix, string name, string nspace, bool empty) {
            return BeginEvent(nodeType, prefix, name,  nspace,  empty, null, true);
        }

Same methods

Processor::BeginEvent ( XPathNodeType nodeType, string prefix, string name, string nspace, bool empty, Object htmlProps, bool search ) : bool

Usage Example

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

            switch (frame.State) {
            case Initialized:
                if (processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, false) == false) {
                    // Come back later
                    break;
                }

                processor.PushActionFrame(frame);
                frame.State = ProcessingChildren;
                break;                              // Allow children to run

            case ProcessingChildren:
                if (processor.EndEvent(XPathNodeType.Comment) == false) {
                    break;
                }

                frame.Finished();
                break;

            default:
                Debug.Fail("Invalid IfAction execution state");
    		    break;
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Processor::BeginEvent