Design pattern for loading multiple message types

后端 未结 4 1490
攒了一身酷
攒了一身酷 2021-01-06 10:29

As I was looking through SO I came across a question about handling multiple message types. My concern is - how do I load such a message in a neat way? I decided to have a s

4条回答
  •  不要未来只要你来
    2021-01-06 10:40

    With C# you'll probably need something like what you've written because C# is a strongly-typed language. Basically, you have to get the concrete classes somewhere in your code.

提交回复
热议问题