diff options
author | jfrijters <jfrijters> | 2011-03-10 14:05:54 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-03-10 14:05:54 +0300 |
commit | 624f12b7fa474cbb1f5d6b003c3d2d56c73c66e3 (patch) | |
tree | cbe43677fedcc77162214c3aa4eb3e0e2161e62d /reflect/GenericWrappers.cs | |
parent | a6fcfae9bd6b33342164bd4c9dd93f7e8ce525f4 (diff) |
- Retain event method ordering.
- Allow duplicate event methods.
- Added API extension EventInfo.__GetMethods() to get all methods associated with an event.
Diffstat (limited to 'reflect/GenericWrappers.cs')
-rw-r--r-- | reflect/GenericWrappers.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/reflect/GenericWrappers.cs b/reflect/GenericWrappers.cs index 2b04d3ae..13c2d7ea 100644 --- a/reflect/GenericWrappers.cs +++ b/reflect/GenericWrappers.cs @@ -598,6 +598,16 @@ namespace IKVM.Reflection return others; } + public override MethodInfo[] __GetMethods() + { + MethodInfo[] others = eventInfo.__GetMethods(); + for (int i = 0; i < others.Length; i++) + { + others[i] = Wrap(others[i]); + } + return others; + } + public override Type EventHandlerType { get { return eventInfo.EventHandlerType.BindTypeParameters(typeInstance); } |