How to dispatch based on runtime type?

后端 未结 0 1476
[愿得一人]
[愿得一人] 2021-01-06 07:57

It is c# version 8.

I have a method Dispatch(T payload)

I also have T1:T, T2:T, ... T8:T

is it possible to rewrite th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题