EventInfo.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // System.Reflection/EventInfo.cs
  3. //
  4. // Author:
  5. // Paolo Molaro ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. using System.Reflection;
  11. namespace System.Reflection {
  12. public abstract class EventInfo : MemberInfo {
  13. public abstract EventAttributes Attributes {get;}
  14. public Type EventHandlerType {get {return null;}}
  15. public bool IsMulticast {get {return true;}}
  16. public bool IsSpecialName {get {return false;}}
  17. public override MemberTypes MemberType {
  18. get {return MemberTypes.Event;}
  19. }
  20. protected EventInfo() {
  21. }
  22. public void AddEventHandler( object target, Delegate handler) {
  23. }
  24. public MethodInfo GetAddMethod() {
  25. return null;
  26. }
  27. public abstract MethodInfo GetAddMethod(bool nonPublic);
  28. public MethodInfo GetRaiseMethod() {
  29. return null;
  30. }
  31. public abstract MethodInfo GetRaiseMethod( bool nonPublic);
  32. public MethodInfo GetRemoveMethod() {
  33. return null;
  34. }
  35. public abstract MethodInfo GetRemoveMethod( bool nonPublic);
  36. public void RemoveEventHandler( object target, Delegate handler) {
  37. }
  38. }
  39. }