public bool LateBoundFunctionExists(string name, string namespaceUri) { object instance; if (_argList == null) { return(false); } instance = _argList.GetExtensionObject(namespaceUri); if (instance == null) { return(false); } return(new XmlExtensionFunction(name, namespaceUri, -1, instance.GetType(), XmlQueryRuntime.LateBoundFlags).CanBind()); }
internal object GetExtensionObject(string nsUri) { return(args.GetExtensionObject(nsUri)); }
//----------------------------------------------- // Extension objects //----------------------------------------------- /// <summary> /// Return the extension object that is mapped to the specified namespace, or null if no object is mapped. /// </summary> public object GetLateBoundObject(string namespaceUri) { return((_argList != null) ? _argList.GetExtensionObject(namespaceUri) : null); }
public object?GetLateBoundObject(string namespaceUri) { return(_argList?.GetExtensionObject(namespaceUri)); }