EnventBroker and Generic types

Topics: CAB & Smart Client Software Factory
Nov 3, 2005 at 1: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,
return null;
Dec 3, 2005 at 12:07 PM
originally posted by: jcelich

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