title: Finding an item in a list of anonymous objects in C#
body: <p>I have a list of anonymous objects as:</p>
  
  <pre><code>var jobs = new List&lt;object&gt;
                 {
                   new
                   {
                     JobName = "Job1",
                     JobDate = "Date1",
                     JobUser = "User1"
                   },
                   new
                   {
                     JobName = "Job2",
                     JobDate = "Date2",
                     JobUser = "User2"
                   }
                 };
  </code></pre>
  
  <p>how can I find the "Job2" using linq?</p>
  
  <p>e.g. </p>
  
  <pre><code>var job2 = jobs.Where(x=&gt;x.JobName == "Job2");
  </code></pre>
  
  <p>I am aware of the below but cannot apply it to my use case above in an elegant way:</p>
  
  <pre><code>var anonymJob = new 
                  {
                    JobName = "Job2",
                    JobDate = "Date2",
                    JobUser = "User2"
                  };
  
  dynamic tJob = anonymJob.GetType();
  string jobName = tJob.JobName; // this will be "Job2"
  </code></pre>
  
  <p>Please note jobs.First() or Last() are not accepted as correct answers to this question is how to find a job based on its specific properties.</p>
  
  <p>Thanks</p>