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

CheckUnion() public method

public CheckUnion ( QilBinary node ) : XmlQueryType
node QilBinary
return XmlQueryType
        public XmlQueryType CheckUnion(QilBinary node) {
            CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS);
            CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS);
            return DistinctType(XmlQueryTypeFactory.Sequence(node.Left.XmlType, node.Right.XmlType));
        }
        

Usage Example

Exemplo n.º 1
0
        public QilBinary Union(QilNode left, QilNode right)
        {
            QilBinary n = new QilBinary(QilNodeType.Union, left, right);

            n.XmlType = _typeCheck.CheckUnion(n);
            TraceNode(n);
            return(n);
        }
QilTypeChecker