Beispiel #1
0
        /// <summary>
        /// <para>Iterate over a NodeList, return true if all of the provided iterate
        ///function calls return true, false otherwise.</para>
        /// <para>For convenience, the current object context is applied to the
        /// provided iterate function.</para>
        /// </summary>
        /// <param name="nodeList">The nodes to operate on</param>
        /// <param name="fn">The iterate function</param>
        /// <returns>bool</returns>
        internal static bool EveryNode(INodeList nodeList, Func <INode, bool> fn)
        {
            if (nodeList != null)
            {
                return(nodeList.All(fn));
            }

            return(false);
        }