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

PrimeProduct() public static method

Compute the product of the prime of "t" with cardinality "c".
public static PrimeProduct ( XmlQueryType t, XmlQueryCardinality c ) : XmlQueryType
t XmlQueryType the member type
c XmlQueryCardinality the cardinality
return XmlQueryType
        public static XmlQueryType PrimeProduct(XmlQueryType t, XmlQueryCardinality c) {
            // If cardinality stays the same, then this is a no-op
            if (t.Cardinality == c)
                return t;

            return SequenceType.Create(t.Prime, c);
        }