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

◆ GetExtentionMethod()

IXsltContextFunction System.Xml.Xsl.XsltOld.XsltCompileContext.GetExtentionMethod ( string ns,
string name,
XPathResultType[] argTypes,
out object extension )
inlineprivate

Definition at line 565 of file XsltCompileContext.cs.

566 {
567 FuncExtension result = null;
569 if (extension != null)
570 {
571 MethodInfo methodInfo = FindBestMethod(extension.GetType().GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic), ignoreCase: true, publicOnly: false, name, argTypes);
572 if (methodInfo != null)
573 {
574 result = new FuncExtension(extension, methodInfo);
575 }
576 return result;
577 }
579 if (extension != null)
580 {
581 MethodInfo methodInfo2 = FindBestMethod(extension.GetType().GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic), ignoreCase: false, publicOnly: true, name, argTypes);
582 if (methodInfo2 != null)
583 {
584 result = new FuncExtension(extension, methodInfo2);
585 }
586 return result;
587 }
588 return null;
589 }
object GetScriptObject(string nsUri)
Definition Processor.cs:198
object GetExtensionObject(string nsUri)
Definition Processor.cs:193
MethodInfo FindBestMethod(MethodInfo[] methods, bool ignoreCase, bool publicOnly, string name, XPathResultType[] argTypes)

References System.Xml.Xsl.XsltOld.XsltCompileContext._processor, System.Xml.Dictionary, System.Xml.Xsl.XsltOld.XsltCompileContext.FindBestMethod(), System.Xml.Xsl.XsltOld.Processor.GetExtensionObject(), and System.Xml.Xsl.XsltOld.Processor.GetScriptObject().

Referenced by System.Xml.Xsl.XsltOld.XsltCompileContext.FunctionAvailable(), and System.Xml.Xsl.XsltOld.XsltCompileContext.ResolveFunction().