title: Define an interface method that takes different parameters
body: <p>My application uses measurement instruments that are connected to the PC. I want to make it possible to use similar instruments from different vendors. </p>
  
  <p>So I defined an interface: </p>
  
  <pre><code>interface IMeasurementInterface
      {
          void Initialize();
          void Close();
      }
  </code></pre>
  
  <p>So far so good. Before a measurement I need to setup the instrument and this means for different instruments very different parameters. So I want to define a method that takes parameters that can have different structures:</p>
  
  <pre><code>interface IMeasurementInterface
  {
      void Initialize();
      void Close();
      void Setup(object Parameters);
  }
  </code></pre>
  
  <p>I will then cast the object to whatever I need. Is this the way to go?</p>