/// <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;
        }
Exemple #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);
        }