title: How to create a fully parameterized method delegate in C#?
body: <p>In c# we can create delegates via a variety of means (e.g. Action&lt;>, Func&lt;>, delegate, lambdas, etc).  But when you invoke those methods, you have to provide the parameter values for the delegate you are invoking:</p>
  
  <pre><code>delegate int del(int i);   
  del myDelegate = x =&gt; x * x;
  int j = myDelegate(5);
  </code></pre>
  
  <p>Is there a way in c# to encapsulate a method delegate WITH parameter values?  Essentially delay invocation of a fully parametrized method?  So you don't have to supply parameter values at invocation time?</p>
  
  <p>For example something like this invalid code:</p>
  
  <pre><code>delegate int del(int i);   
  del myDelegate(5) = x =&gt; x * x;
  int j = myDelegate;
  </code></pre>
  
  <p>I'm aware the use case isn't immediately obvious.  In the case I'm currently looking at, I have a non-deterministic method that I would like the caller to be able to invoke without having to contain or be aware of the parameters the method needs.  One way to achieve this would be via creating a class that encapsulates both the parameter values and the method delegate and have that referenced and invoked by the caller.  But I'm just curious if there is an alternate, more succinct way. </p>