EnventBroker and Generic types

Topics: CAB & Smart Client Software Factory
Nov 3, 2005 at 12:39 AM
originally posted by: alfreschi

If the EventSubscritionAttribute is applied to a method of a Generic type then Subscription.CreateSubscriptionDelegate throw an exception.

Problem is related to Delegate.CreateDelegate method and Generics.

private Delegate CreateSubscriptionDelegate()
{
object subscriber = wrSubscriber.Target;
if (subscriber != null)
{
return Delegate.CreateDelegate(this.handlerEventArgsType, subscriber,
(MethodInfo)MethodInfo.GetMethodFromHandle(methodHandle));
}
return null;
}
Dec 3, 2005 at 11:07 AM
originally posted by: jcelich

Thank you for your feedback, we're addressing this issue.