My question is related to the command pattern, where we have the following abstraction (C# code) :
public interface ICommand { void Execute(); } <
public interface ICommand { void Execute(); }
There are some options:
You could pass parameters by properties or constructor.
Other option could be:
interface ICommand { void Execute(T args); }
And encapsulate all command parameters in a value object.