Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindTemplate()

TemplateAction System.Xml.Xsl.XsltOld.TemplateManager.FindTemplate ( Processor processor,
XPathNavigator navigator )
inlinepackage

Definition at line 57 of file TemplateManager.cs.

58 {
59 if (templates == null)
60 {
61 return null;
62 }
63 for (int num = templates.Count - 1; num >= 0; num--)
64 {
65 TemplateAction templateAction = (TemplateAction)templates[num];
66 int matchKey = templateAction.MatchKey;
67 if (matchKey != -1 && processor.Matches(navigator, matchKey))
68 {
69 return templateAction;
70 }
71 }
72 return null;
73 }

References System.Collections.ArrayList.Count, System.Xml.Dictionary, and System.Xml.Xsl.XsltOld.TemplateManager.templates.

Referenced by System.Xml.Xsl.XsltOld.Stylesheet.FindTemplate().