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

PrimeIntersect() private method

Construct the intersection of two lists of prime XmlQueryTypes.
private PrimeIntersect ( IList left, IList right ) : List
left IList
right IList
return List
        private List<XmlQueryType> PrimeIntersect(IList<XmlQueryType> left, IList<XmlQueryType> right) {
            List<XmlQueryType> list = new List<XmlQueryType>();

            foreach (XmlQueryType leftItem in left) {
                foreach (XmlQueryType rightItem in right) {
                    XmlQueryType intersection = IntersectItemTypes(leftItem, rightItem);
                    // Do not add none1 to a list
                    if ((object)intersection != (object)None) {
                        list.Add(intersection);
                    }
                }
            }
            return list;
        }