title: C# delegate with pre-set parameters
body: <p>I need to do something similar with command pattern, but in terms of delegate or something similar.</p>
  <p>It should look like this:</p>
  <pre><code>private MyFunc Method1() {
      MyFunc func;
      
      /*
          set all parameters to func
      */  
      
      return func;
  }
  
  private void Method2()
  {
      var funcWithAllParameters = Method1();
      funcWithAllParameters.Invoke();
  }
  
  private MyFunc(a lot of parameters) {}
  </code></pre>