3

Closed

Constraining Send<TMessage,TTarget> by a base class does not work.

description

If I specify a concrete base class for generic argument TTarget, I do not receive a message. However, if I specify an interface type then Send works as expected. Is this a bug or a design decision.

The code in question is in Messenger.SendToList(). I notice there is a check for whether the target implements message target type but not if it is a subclass.
Closed Oct 13, 2014 at 12:54 PM by lbugnion

comments