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

  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 choice operator.
  25.     /// </summary>
  26.     /// <remarks>
  27.     /// Don't construct QIL nodes directly; instead, use the <see cref="QilFactory">QilFactory</see>.
  28.     /// </remarks>
  29.     internal class QilChoice : QilBinary
  30.     {
  31.        
  32.         //-----------------------------------------------
  33.         // Constructor
  34.         //-----------------------------------------------
  35.        
  36.         /// <summary>
  37.         /// Construct a new node
  38.         /// </summary>
  39.         public QilChoice(QilNodeType nodeType, QilNode expression, QilNode branches) : base(nodeType, expression, branches)
  40.         {
  41.         }
  42.        
  43.        
  44.         //-----------------------------------------------
  45.         // QilChoice methods
  46.         //-----------------------------------------------
  47.        
  48.         public QilNode Expression {
  49.             get { return Left; }
  50.             set { Left = value; }
  51.         }
  52.        
  53.         public QilList Branches {
  54.             get { return (QilList)Right; }
  55.             set { Right = value; }
  56.         }
  57.     }
  58. }

Developer Fusion