Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeAssignStatement.cs
blob2a5ccbe4c9516bffc0ebac6acb60530a2ae26627
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeAssignStatement.cs" company="Microsoft">
3 //
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // </copyright>
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
12 using System;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Runtime.InteropServices;
17 /// <devdoc>
18 /// <para>
19 /// Represents a simple assignment statement.
20 /// </para>
21 /// </devdoc>
23 ClassInterface(ClassInterfaceType.AutoDispatch),
24 ComVisible(true),
25 Serializable,
27 public class CodeAssignStatement : CodeStatement {
28 private CodeExpression left;
29 private CodeExpression right;
31 /// <devdoc>
32 /// <para>
33 /// Initializes a new instance of <see cref='System.CodeDom.CodeAssignStatement'/>.
34 /// </para>
35 /// </devdoc>
36 public CodeAssignStatement() {
39 /// <devdoc>
40 /// <para>
41 /// Initializes a new instance of <see cref='System.CodeDom.CodeAssignStatement'/> that represents the
42 /// specified assignment values.
43 /// </para>
44 /// </devdoc>
45 public CodeAssignStatement(CodeExpression left, CodeExpression right) {
46 Left = left;
47 Right = right;
50 /// <devdoc>
51 /// <para>
52 /// Gets or sets
53 /// the variable to be assigned to.
54 /// </para>
55 /// </devdoc>
56 public CodeExpression Left {
57 get {
58 return left;
60 set {
61 left = value;
65 /// <devdoc>
66 /// <para>
67 /// Gets or sets
68 /// the value to assign.
69 /// </para>
70 /// </devdoc>
71 public CodeExpression Right {
72 get {
73 return right;
75 set {
76 right = value;