System.Xml.Xsl.Qil.QilTypeChecker.DistinctType C# (CSharp) Method

DistinctType() private method

private DistinctType ( XmlQueryType type ) : XmlQueryType
type XmlQueryType
return XmlQueryType
        private XmlQueryType DistinctType(XmlQueryType type) {
            if (type.Cardinality == XmlQueryCardinality.More)
                return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.OneOrMore);

            if (type.Cardinality == XmlQueryCardinality.NotOne)
                return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.ZeroOrMore);

            return type;
        }
QilTypeChecker