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