CodeMemberEvent.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // System.CodeDom CodeMemberEvent Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. // Daniel Stodden ([email protected])
  7. //
  8. // (C) 2001 Ximian, Inc.
  9. //
  10. using System.Runtime.InteropServices;
  11. namespace System.CodeDom
  12. {
  13. [Serializable]
  14. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  15. [ComVisible(true)]
  16. public class CodeMemberEvent
  17. : CodeTypeMember
  18. {
  19. private CodeTypeReferenceCollection implementationTypes;
  20. private CodeTypeReference privateImplementationType;
  21. private CodeTypeReference type;
  22. //
  23. // Constructors
  24. //
  25. public CodeMemberEvent ()
  26. {
  27. }
  28. //
  29. // Properties
  30. //
  31. public CodeTypeReferenceCollection ImplementationTypes
  32. {
  33. get {
  34. if (implementationTypes == null)
  35. implementationTypes = new CodeTypeReferenceCollection ();
  36. return implementationTypes;
  37. }
  38. }
  39. public CodeTypeReference PrivateImplementationType
  40. {
  41. get {
  42. return privateImplementationType;
  43. }
  44. set {
  45. privateImplementationType = value;
  46. }
  47. }
  48. public CodeTypeReference Type
  49. {
  50. get {
  51. if (type == null)
  52. type = new CodeTypeReference (String.Empty);
  53. return type;
  54. }
  55. set {
  56. type = value;
  57. }
  58. }
  59. }
  60. }