예제 #1
0
        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));
 }
예제 #3
0
        //-----------------------------------------------
        // 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);
        }
예제 #4
0
 public object?GetLateBoundObject(string namespaceUri)
 {
     return(_argList?.GetExtensionObject(namespaceUri));
 }