title: property is used class linq
body: <p>I would like to put data into class using LINQ.</p>
  
  <p>class Person</p>
  
  <pre><code>public class Person
  {
      public int Id {get; set;}
      public string Name { get; set; }
      public List&lt;string&gt; Surname { get; set; }
  }
  </code></pre>
  
  <p>I would like to add 2 person and next find person with id 1 and later edit name. Do you know how to do it?</p>
  
  <pre><code> public List&lt;Person&gt; persons { get; set; }
   public void example()
   {
   persons = new List&lt;Person&gt;();
   }
  </code></pre>
  
  <p>something like that?</p>
  
  <pre><code>new List&lt;Person&gt;{
                      Id = 1,
                      Name = "sadsad",
                      Surname = new string Suname {Surname="Examle"}
  
                  };
  
  
                  persons = (from a in Person
                                       where a.Id = 1
                                     select a).FirstOrDefault&lt;Ankieta&gt;();
  
                  string s = persons.Name; // Update?
  </code></pre>