CodeClassMember.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //
  2. // System.CodeDom CodeClassMember 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 CodeClassMember : CodeStatement {
  11. MemberAttributes attributes;
  12. CodeAttributeBlock customAttributes;
  13. string name;
  14. //
  15. // Yeah, this is a strange way of defining this
  16. //
  17. public enum MemberAttributes {
  18. Abstract = 0x0001,
  19. Final = 0x0002,
  20. Override = 0x0004,
  21. Const = 0x0005,
  22. Assembly = 0x1000,
  23. AccessMask = 0xf000,
  24. FamANDAssem = 0x2000,
  25. Family = 0x3000,
  26. FamORAssem = 0x4000,
  27. New = 0x0010,
  28. Private = 0x5000,
  29. Public = 0x6000,
  30. ScopeMask = 0x000f,
  31. Static = 0x0003,
  32. VTableMask = 0x00f0
  33. }
  34. //
  35. // Constructors
  36. //
  37. public CodeClassMember ()
  38. {
  39. }
  40. //
  41. // Properties
  42. //
  43. public MemberAttributes Attributes {
  44. get {
  45. return attributes;
  46. }
  47. set {
  48. attributes = value;
  49. }
  50. }
  51. public CodeAttributeBlock CustomAttributes {
  52. get {
  53. return customAttributes;
  54. }
  55. set {
  56. customAttributes = value;
  57. }
  58. }
  59. public string Name {
  60. get {
  61. return name;
  62. }
  63. set {
  64. name = value;
  65. }
  66. }
  67. }
  68. }