You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project where I'm finding myself repeatedly downcasting the Sender property in ITinyMessage and co to more concrete types to access their properties. So I thought it would be nice to have variants of ITinyMessage, TinyMessageBase, and GenericTinyMessage that take the sender type as a generic type parameter.
Here's an example of what it could look like using sender of type Foo, receiver of type Bar, and message of type FooHitTheBarMessage:
I'm working on a project where I'm finding myself repeatedly downcasting the
Sender
property inITinyMessage
and co to more concrete types to access their properties. So I thought it would be nice to have variants ofITinyMessage
,TinyMessageBase
, andGenericTinyMessage
that take the sender type as a generic type parameter.Here's an example of what it could look like using sender of type
Foo
, receiver of typeBar
, and message of typeFooHitTheBarMessage
:The text was updated successfully, but these errors were encountered: