Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeAssignStatement.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeAssignStatement.cs" company="Microsoft">
3 // 
4 // <OWNER>[....]</OWNER>
5 //     Copyright (c) Microsoft Corporation.  All rights reserved.
6 // </copyright>                                                                
7 //------------------------------------------------------------------------------
8
9 namespace System.CodeDom {
10
11     using System.Diagnostics;
12     using System;
13     using Microsoft.Win32;
14     using System.Collections;
15     using System.Runtime.InteropServices;
16
17     /// <devdoc>
18     ///    <para>
19     ///       Represents a simple assignment statement.
20     ///    </para>
21     /// </devdoc>
22     [
23         ClassInterface(ClassInterfaceType.AutoDispatch),
24         ComVisible(true),
25         Serializable,
26     ]
27     public class CodeAssignStatement : CodeStatement {
28         private CodeExpression left;
29         private CodeExpression right;
30
31         /// <devdoc>
32         ///    <para>
33         ///       Initializes a new instance of <see cref='System.CodeDom.CodeAssignStatement'/>.
34         ///    </para>
35         /// </devdoc>
36         public CodeAssignStatement() {
37         }
38
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;
48         }
49
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;
59             }
60             set {
61                 left = value;
62             }
63         }
64
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;
74             }
75             set {
76                 right = value;
77             }
78         }
79     }
80 }