Beispiel #1
0
        /// <summary>
        /// Creates a new compound selector with the given selectors.
        /// </summary>
        /// <param name="selectors">The selectors.</param>
        /// <returns>The new compound selector.</returns>
        internal static CompoundSelector Create(params SimpleSelector[] selectors)
        {
            var compound = new CompoundSelector();

            for (int i = 0; i < selectors.Length; i++)
                compound.selectors.Add(selectors[i]);

            return compound;
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new compound selector with the given selectors.
        /// </summary>
        /// <param name="selectors">The selectors.</param>
        /// <returns>The new compound selector.</returns>
        internal static CompoundSelector Create(params SimpleSelector[] selectors)
        {
            var compound = new CompoundSelector();

            for (int i = 0; i < selectors.Length; i++)
            {
                compound.selectors.Add(selectors[i]);
            }

            return(compound);
        }