title: .NET razor show custom text if model is null
body: <p>Say I have the following models:</p>
  <pre><code>public class Parent : BaseEntity
  {
      public Child? Child { get; set; }
  }
  
  public class Child: BaseEntity
  {
      public string? Name { get; set; }
  }
  </code></pre>
  <p>and I send the Parent model to my view:</p>
  <pre><code>@model Parent
  </code></pre>
  <p><strong>I would like to show a custom child name if the child is null. How can I do that in 1 line similar to following?</strong></p>
  <pre><code>&lt;input type=&quot;text&quot; placeholder=&quot;@Model.Child?.Name ?? DefaultName&quot;&gt;
  </code></pre>