title: How to get method parameter in an array?
body: <p>Imagine in a class you got this Method:</p>
  
  <pre><code>float Do(int a_,string b_){}
  </code></pre>
  
  <p>I'm trying to do something like this:</p>
  
  <pre><code>float Do(int a_, string b_)
  {
    var params = GetParamsListOfCurrentMethod(); //params is an array that contains (a_ and b_)
  }
  </code></pre>
  
  <p>Can someone help ?</p>
  
  <p>Why should I want to do thet ?</p>
  
  <p>Imagine you got an Interface:</p>
  
  <pre><code>public Interface ITrucMuch
  {
   float Do(int a_,string b_);
   // And much more fct
  }
  </code></pre>
  
  <p>And a lot of classes implementing that interface</p>
  
  <p>And a special class  that also implement interface:</p>
  
  <pre><code>public class MasterTrucMuch : ITrucMuch
  {
    public floatDo(int a_, string b_) 
    {
      ITrucMuch tm = Factory.GetOptimizedTrucMuch(); // This'll return an optimized trucMuch based on some state
      if(tm != null)
      {
        return tm.Do(a_,b_);
      }
      else
      {
        logSomeInfo(...);
      }
  
      //do the fallback method
    }
  </code></pre>
  
  <p>As the interface constains a lot of method and as the first lien of all method are always the same (checking if there is a better interface that the current instance and if so call the same method on the instance) I try to make a method of it. </p>
  
  <p>Thx</p>