title: Command Pattern : How to pass parameters to a command?
body: <p>My question is related to the command pattern, where we have the following abstraction (C# code) :</p>
  
  <pre><code>public interface ICommand
  {
      void Execute();
  }
  </code></pre>
  
  <p>Let's take a simple concrete command, which aims to delete an entity from our application. A <code>Person</code> instance, for example.</p>
  
  <p>I'll have a <code>DeletePersonCommand</code>, which implements <code>ICommand</code>. This command needs the <code>Person</code> to delete as a parameter, in order to delete it when <code>Execute</code> method is called.</p>
  
  <p>What is the best way to manage parametrized commands ? How to pass parameters to commands, before executing them ?</p>