The Labs \ Source Viewer \ SSCLI \ System.CodeDom \ CodeBinaryOperatorExpression

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeBinaryOperatorExpression.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. namespace System.CodeDom
  16. {
  17.    
  18.     using System.Diagnostics;
  19.     using System;
  20.     using Microsoft.Win32;
  21.     using System.Collections;
  22.     using System.Runtime.InteropServices;
  23.    
  24.     /// <devdoc>
  25.     /// <para>
  26.     /// Represents a binary operator expression.
  27.     /// </para>
  28.     /// </devdoc>
  29.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  30.     public class CodeBinaryOperatorExpression : CodeExpression
  31.     {
  32.         private CodeBinaryOperatorType op;
  33.         private CodeExpression left;
  34.         private CodeExpression right;
  35.        
  36.         /// <devdoc>
  37.         /// <para>
  38.         /// Initializes a new instance of <see cref='System.CodeDom.CodeBinaryOperatorExpression'/>.
  39.         /// </para>
  40.         /// </devdoc>
  41.         public CodeBinaryOperatorExpression()
  42.         {
  43.         }
  44.        
  45.         /// <devdoc>
  46.         /// <para>
  47.         /// Initializes a new instance of <see cref='System.CodeDom.CodeBinaryOperatorExpression'/>
  48.         /// using the specified
  49.         /// parameters.
  50.         /// </para>
  51.         /// </devdoc>
  52.         public CodeBinaryOperatorExpression(CodeExpression left, CodeBinaryOperatorType op, CodeExpression right)
  53.         {
  54.             Right = right;
  55.             Operator = op;
  56.             Left = left;
  57.         }
  58.        
  59.         /// <devdoc>
  60.         /// <para>
  61.         /// Gets or sets
  62.         /// the code expression on the right of the operator.
  63.         /// </para>
  64.         /// </devdoc>
  65.         public CodeExpression Right {
  66.             get { return right; }
  67.             set { right = value; }
  68.         }
  69.        
  70.         /// <devdoc>
  71.         /// <para>
  72.         /// Gets or sets
  73.         /// the code expression on the left of the operator.
  74.         /// </para>
  75.         /// </devdoc>
  76.         public CodeExpression Left {
  77.             get { return left; }
  78.             set { left = value; }
  79.         }
  80.        
  81.         /// <devdoc>
  82.         /// <para>
  83.         /// Gets or sets
  84.         /// the operator in the binary operator expression.
  85.         /// </para>
  86.         /// </devdoc>
  87.         public CodeBinaryOperatorType Operator {
  88.             get { return op; }
  89.             set { op = value; }
  90.         }
  91.     }
  92. }

Developer Fusion