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

◆ SetXsltContext()

override void MS.Internal.Xml.XPath.FunctionQuery.SetXsltContext ( XsltContext context)
inlinevirtual

Reimplemented from MS.Internal.Xml.XPath.Query.

Definition at line 46 of file FunctionQuery.cs.

47 {
48 if (context == null)
49 {
51 }
52 if (xsltContext == context)
53 {
54 return;
55 }
56 xsltContext = context;
57 foreach (Query arg in _args)
58 {
59 arg.SetXsltContext(context);
60 }
62 for (int i = 0; i < _args.Count; i++)
63 {
64 array[i] = _args[i].StaticType;
65 }
67 if (_function == null)
68 {
70 }
71 }
readonly IList< Query > _args
static string Xp_NoContext
Definition SR.cs:1256
static string Xp_UndefFunc
Definition SR.cs:1260
Definition SR.cs:7
static XPathException Create(string res)
IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes)

References MS.Internal.Xml.XPath.FunctionQuery._args, MS.Internal.Xml.XPath.FunctionQuery._function, System.array, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.XPath.XPathException.Create(), MS.Internal.Xml.XPath.ExtensionQuery.name, MS.Internal.Xml.XPath.ExtensionQuery.prefix, System.Xml.Xsl.XsltContext.ResolveFunction(), System.SR.Xp_NoContext, System.SR.Xp_UndefFunc, and MS.Internal.Xml.XPath.ExtensionQuery.xsltContext.