CodeMemberProperty.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. //
  2. // System.CodeDom CodeMemberProperty Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. namespace System.CodeDom {
  10. [Serializable]
  11. public class CodeMemberProperty : CodeTypeMember {
  12. CodeParameterDeclarationExpressionCollection parameters;
  13. CodeStatementCollection getStatements, setStatements;
  14. bool hasGet, hasSet;
  15. string implementsType, type;
  16. bool privateImplements;
  17. public CodeMemberProperty ()
  18. {
  19. }
  20. //
  21. // Properties
  22. //
  23. public string ImplementsType {
  24. get {
  25. return implementsType;
  26. }
  27. set {
  28. implementsType = value;
  29. }
  30. }
  31. public bool PrivateImplements {
  32. get {
  33. return privateImplements;
  34. }
  35. set {
  36. privateImplements = value;
  37. }
  38. }
  39. public CodeParameterDeclarationExpressionCollection Parameters {
  40. get {
  41. return parameters;
  42. }
  43. set {
  44. parameters = value;
  45. }
  46. }
  47. public CodeStatementCollection SetStatements {
  48. get {
  49. return setStatements;
  50. }
  51. set {
  52. setStatements = value;
  53. }
  54. }
  55. public CodeStatementCollection GetStatements {
  56. get {
  57. return getStatements;
  58. }
  59. set {
  60. getStatements = value;
  61. }
  62. }
  63. public string Type {
  64. get {
  65. return type;
  66. }
  67. set {
  68. type = value;
  69. }
  70. }
  71. public bool HasGet {
  72. get {
  73. return hasGet;
  74. }
  75. set {
  76. hasGet = value;
  77. }
  78. }
  79. public bool HasSet {
  80. get {
  81. return hasSet;
  82. }
  83. set {
  84. hasSet = value;
  85. }
  86. }
  87. }
  88. }