title: How to create FUNC Action List with Parameters and Return Values
body: <p>I am trying to create my first list of actions that I will be able to check a status within the passed object.</p>
  
  <p>But I can't get it to work - its giving me an error on the return type.  But if I change the return type to what it wants - then I can't pass values down.</p>
  
  <p>Sample code:</p>
  
  <pre><code>public class Class1
  {
      public Main()
      {
          var decisionObject = new DecisionObject();
  
          var decisionList = new List&lt;Func&lt;DecisionObject, DecisionObject&gt;&gt;
          {
              Method1(decisionObject),
              Method2(decisionObject),
              Method3(decisionObject)
          };
  
          var exitLoop = false;
  
          foreach (var method in decisionList)
          {
              decisionObject = method(decisionObject);
  
  
              switch (decisionObject.Status)
              {
                  case Status1:
                      exitLoop = true;
                      break;
                  case Status2:
                  case Status3:
                  case Status4:
                      break;
              }
  
              if (exitLoop) break;
          }
       }  
  
  
   public Func&lt;DecisionObject, DecisionObject&gt; Method1(DecisionObject 
   decisionObject)
   {
       decisionObject = SomeOtherMethod(decisionObject);
  
       return decisionObject;
   }   
  
  
   }
  </code></pre>
  
  <p>What am I missing here?  </p>