CodeBinaryOperatorExpression.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // System.CodeDom CodeBinaryOperatorExpression Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. using System.Runtime.InteropServices;
  10. namespace System.CodeDom
  11. {
  12. [Serializable]
  13. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  14. [ComVisible(true)]
  15. public class CodeBinaryOperatorExpression
  16. : CodeExpression
  17. {
  18. private CodeExpression left, right;
  19. private CodeBinaryOperatorType op;
  20. //
  21. // Constructors
  22. //
  23. public CodeBinaryOperatorExpression ()
  24. {
  25. }
  26. public CodeBinaryOperatorExpression (CodeExpression left,
  27. CodeBinaryOperatorType op,
  28. CodeExpression right)
  29. {
  30. this.left = left;
  31. this.op = op;
  32. this.right = right;
  33. }
  34. //
  35. // Properties
  36. //
  37. public CodeExpression Left {
  38. get {
  39. return left;
  40. }
  41. set {
  42. left = value;
  43. }
  44. }
  45. public CodeBinaryOperatorType Operator {
  46. get {
  47. return op;
  48. }
  49. set {
  50. op = value;
  51. }
  52. }
  53. public CodeExpression Right {
  54. get {
  55. return right;
  56. }
  57. set {
  58. right = value;
  59. }
  60. }
  61. }
  62. }