Stanislav Kral
11/25/2019, 10:18 AMtype
field to the parser method via method parameter or something like that? My TCP messages look something like this type;length;messageid;content
where content
is the JSON that should be parsed into some class. That means I cannot use the polymorphic fields feature because it expects the type of the JSON to be inside inside the JSON itself as a field. I somewhere read that this is a bad design, to carry the message type inside the content itself, that's why I gave it a try... For now I have to do something like this: