title: C# - Add data to object inside object
body: <p>I have the following classes</p>
  
  <pre><code>public class manoeuvresID
  {
      public string manName { get; set; }
      public int manID { get; set; }
  }
  
  public class testID
  {
      public string testName { get; set; }
      public int ID { get; set; }
      public IList&lt;manoeuvresID&gt; manoeuvres { get; set; }
  }
  </code></pre>
  
  <p>and want to add data into a new list of type testID</p>
  
  <pre><code>        HardCodedDatabase.testID testObjet = new HardCodedDatabase.testID();
          testObjet.testName = "test1";
          testObjet.manoeuvres = "man1";
  
          List&lt;HardCodedDatabase.testID&gt; listForTesting = new List&lt;HardCodedDatabase.testID&gt;();
          listForTesting.Add(testObjet);
  </code></pre>
  
  <p>the problem is that I don't know how to add values to the testobjet.manoeuvres</p>