❔ Static interface methods
I have several classes implementing my Codec interface like this:
Is there a better way to represent multiple actions (
Is there a better way to represent multiple actions (
Encode and Decode) without using a class?- If there would have been a single method, I would start using a delegate. But a delegate can't do multiple things
- This is essentially just logic, so having this in a class is a bit useless (and makes me want to turn this into a singleton because instances aren't necessary)