System.Xml.Xsl.XmlQueryTypeFactory.PrimeChoice C# (CSharp) Method

PrimeChoice() private static method

Construct the union of two lists of prime XmlQueryTypes. Types are added to "accumulator" as necessary to ensure it contains a superset of "types".
private static PrimeChoice ( List accumulator, IList types ) : List
accumulator List
types IList
return List
        private static List<XmlQueryType> PrimeChoice(List<XmlQueryType> accumulator, IList<XmlQueryType> types) {
            foreach (XmlQueryType sourceItem in types) {
                AddItemToChoice(accumulator, sourceItem);
            }
            return accumulator;
        }