1 //------------------------------------------------------------------------------
2 // <copyright file="CodeBinaryOperatorExpression.cs" company="Microsoft">
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Runtime.InteropServices;
19 /// Represents a binary operator expression.
23 ClassInterface(ClassInterfaceType.AutoDispatch),
27 public class CodeBinaryOperatorExpression : CodeExpression {
28 private CodeBinaryOperatorType op;
29 private CodeExpression left;
30 private CodeExpression right;
34 /// Initializes a new instance of <see cref='System.CodeDom.CodeBinaryOperatorExpression'/>.
37 public CodeBinaryOperatorExpression() {
42 /// Initializes a new instance of <see cref='System.CodeDom.CodeBinaryOperatorExpression'/>
43 /// using the specified
47 public CodeBinaryOperatorExpression(CodeExpression left, CodeBinaryOperatorType op, CodeExpression right) {
56 /// the code expression on the right of the operator.
59 public CodeExpression Right {
71 /// the code expression on the left of the operator.
74 public CodeExpression Left {
86 /// the operator in the binary operator expression.
89 public CodeBinaryOperatorType Operator {