System.Xml.Xsl.Qil.QilPatternVisitor.AllowReplace C# (CSharp) Method

AllowReplace() protected method

Called when a pattern has matched, but before the replacement code is executed. If this method returns false, then the replacement code is skipped.
protected AllowReplace ( int pattern, QilNode original ) : bool
pattern int
original QilNode
return bool
        protected virtual bool AllowReplace(int pattern, QilNode original) {
            // If still matching patterns,
            if (Matching) {
                // Increment the replacement count
                this.replacementCnt++;

                // Save the id of this pattern in case it's the last
                this.lastReplacement = pattern;

                return true;
            }

            return false;
        }
QilPatternVisitor