title: Is it possible to get parent property from child when create parent and child inline?
body: <p>I have these 2 classes:</p>
  
  <pre><code>public class Parent
  {
      public int Id { get; set; }
      public List&lt;Child&gt; Children { get; set; }
  
      public Parent() 
      {
          Children = new List&lt;Child&gt;();
      }
  }
  
  public class Child
  {
      public int Id { get; set; }
      public int ParentId { get; set; }
  }
  </code></pre>
  
  <p>Is it possible to do something like this:</p>
  
  <pre><code>var parent = new Parent()
  {
      Id = 1,
      Children = new List&lt;Child&gt;() 
      {
          new Child()
          {
              Id = 100,
              ParentId = parent.Id
          }
      }
  };
  </code></pre>