CodeVariableDeclarationStatement.cs 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // System.CodeDom CodeVariableDeclarationStatement Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. namespace System.CodeDom {
  10. public class CodeVariableDeclarationStatement : CodeStatement {
  11. CodeExpression initExpression;
  12. string type, name;
  13. public CodeVariableDeclarationStatement () {}
  14. public CodeVariableDeclarationStatement (string type, string name)
  15. {
  16. this.type = type;
  17. this.name = name;
  18. }
  19. public CodeVariableDeclarationStatement (string type, string name,
  20. CodeExpression initExpression)
  21. {
  22. this.type = type;
  23. this.name = name;
  24. this.initExpression = initExpression;
  25. }
  26. public CodeExpression InitExpression {
  27. get {
  28. return initExpression;
  29. }
  30. set {
  31. initExpression = value;
  32. }
  33. }
  34. public string Name {
  35. get {
  36. return name;
  37. }
  38. set {
  39. name = value;
  40. }
  41. }
  42. public string Type {
  43. get {
  44. return type;
  45. }
  46. set {
  47. type = value;
  48. }
  49. }
  50. }
  51. }