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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeAssignStatement.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 simple assignment statement.
  27.     /// </para>
  28.     /// </devdoc>
  29.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  30.     public class CodeAssignStatement : CodeStatement
  31.     {
  32.         private CodeExpression left;
  33.         private CodeExpression right;
  34.        
  35.         /// <devdoc>
  36.         /// <para>
  37.         /// Initializes a new instance of <see cref='System.CodeDom.CodeAssignStatement'/>.
  38.         /// </para>
  39.         /// </devdoc>
  40.         public CodeAssignStatement()
  41.         {
  42.         }
  43.        
  44.         /// <devdoc>
  45.         /// <para>
  46.         /// Initializes a new instance of <see cref='System.CodeDom.CodeAssignStatement'/> that represents the
  47.         /// specified assignment values.
  48.         /// </para>
  49.         /// </devdoc>
  50.         public CodeAssignStatement(CodeExpression left, CodeExpression right)
  51.         {
  52.             Left = left;
  53.             Right = right;
  54.         }
  55.        
  56.         /// <devdoc>
  57.         /// <para>
  58.         /// Gets or sets
  59.         /// the variable to be assigned to.
  60.         /// </para>
  61.         /// </devdoc>
  62.         public CodeExpression Left {
  63.             get { return left; }
  64.             set { left = value; }
  65.         }
  66.        
  67.         /// <devdoc>
  68.         /// <para>
  69.         /// Gets or sets
  70.         /// the value to assign.
  71.         /// </para>
  72.         /// </devdoc>
  73.         public CodeExpression Right {
  74.             get { return right; }
  75.             set { right = value; }
  76.         }
  77.     }
  78. }

Developer Fusion