QilTargetType.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilTargetType.cs / 1305376 / QilTargetType.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
using System; 
using System.Collections.Generic; 
using System.Xml.Schema;
using System.Diagnostics; 

namespace System.Xml.Xsl.Qil {

    ///  
    /// View over a Qil operator having two children, the second of which is a literal type.
    ///  
    ///  
    /// Don't construct QIL nodes directly; instead, use the QilFactory.
    ///  
    internal class QilTargetType : QilBinary {

        //-----------------------------------------------
        // Constructor 
        //-----------------------------------------------
 
        ///  
        /// Construct a new node
        ///  
        public QilTargetType(QilNodeType nodeType, QilNode expr, QilNode targetType) : base(nodeType, expr, targetType) {
        }

 
        //-----------------------------------------------
        // QilTargetType methods 
        //----------------------------------------------- 

        public QilNode Source { 
            get { return Left; }
            set { Left = value; }
        }
 
        public XmlQueryType TargetType {
            get { return (XmlQueryType) ((QilLiteral) Right).Value; } 
            set { ((QilLiteral) Right).Value = value; } 
        }
    } 
}


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
using System; 
using System.Collections.Generic; 
using System.Xml.Schema;
using System.Diagnostics; 

namespace System.Xml.Xsl.Qil {

    ///  
    /// View over a Qil operator having two children, the second of which is a literal type.
    ///  
    ///  
    /// Don't construct QIL nodes directly; instead, use the QilFactory.
    ///  
    internal class QilTargetType : QilBinary {

        //-----------------------------------------------
        // Constructor 
        //-----------------------------------------------
 
        ///  
        /// Construct a new node
        ///  
        public QilTargetType(QilNodeType nodeType, QilNode expr, QilNode targetType) : base(nodeType, expr, targetType) {
        }

 
        //-----------------------------------------------
        // QilTargetType methods 
        //----------------------------------------------- 

        public QilNode Source { 
            get { return Left; }
            set { Left = value; }
        }
 
        public XmlQueryType TargetType {
            get { return (XmlQueryType) ((QilLiteral) Right).Value; } 
            set { ((QilLiteral) Right).Value = value; } 
        }
    } 
}


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK