The Labs \ Source Viewer \ SSCLI \ System.Xml.Xsl.Qil \ QilLoop

  1. //------------------------------------------------------------------------------
  2. // <copyright file="QilLoop.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using System;
  16. using System.Collections;
  17. using System.Diagnostics;
  18. using System.Xml.Schema;
  19. using System.Xml.Xsl;
  20. namespace System.Xml.Xsl.Qil
  21. {
  22.    
  23.     /// <summary>
  24.     /// View over a Qil operators that introduce iterators (Loop, Filter, etc.).
  25.     /// </summary>
  26.     /// <remarks>
  27.     /// Don't construct QIL nodes directly; instead, use the <see cref="QilFactory">QilFactory</see>.
  28.     /// </remarks>
  29.     internal class QilLoop : QilBinary
  30.     {
  31.        
  32.         //-----------------------------------------------
  33.         // Constructor
  34.         //-----------------------------------------------
  35.        
  36.         /// <summary>
  37.         /// Construct a new node
  38.         /// </summary>
  39.         public QilLoop(QilNodeType nodeType, QilNode variable, QilNode body) : base(nodeType, variable, body)
  40.         {
  41.         }
  42.        
  43.        
  44.         //-----------------------------------------------
  45.         // QilLoop methods
  46.         //-----------------------------------------------
  47.        
  48.         public QilIterator Variable {
  49.             get { return (QilIterator)Left; }
  50.             set { Left = value; }
  51.         }
  52.        
  53.         public QilNode Body {
  54.             get { return Right; }
  55.             set { Right = value; }
  56.         }
  57.     }
  58. }

Developer Fusion