EventDescriptor.cs 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // System.ComponentModel.EventDescriptor.cs
  3. //
  4. // Authors:
  5. // Rodrigo Moya ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) Ximian, Inc. 2002
  9. // (C) 2003 Andreas Nahr
  10. //
  11. using System.Runtime.InteropServices;
  12. namespace System.ComponentModel
  13. {
  14. [ComVisible (true)]
  15. public abstract class EventDescriptor : MemberDescriptor
  16. {
  17. protected EventDescriptor (MemberDescriptor desc) : base (desc)
  18. {
  19. }
  20. protected EventDescriptor (MemberDescriptor desc, Attribute[] attrs) : base (desc, attrs)
  21. {
  22. }
  23. protected EventDescriptor (string str, Attribute[] attrs) : base (str, attrs)
  24. {
  25. }
  26. public abstract void AddEventHandler (object component, System.Delegate value);
  27. public abstract void RemoveEventHandler(object component, System.Delegate value);
  28. public abstract System.Type ComponentType { get; }
  29. public abstract System.Type EventType { get; }
  30. public abstract bool IsMulticast { get; }
  31. }
  32. }