title: How to declare an object using markup in ASP.NET
body: <p>Assume we have a <code>Person</code> class:</p>
  
  <pre><code>public class Person
  {
    public string FamilyName {get;set;}
    public string GivenName {get;set;}
  }
  </code></pre>
  
  <p>And there's a control to somehow display the information of a list of persons. Here is the pseudocode of the aspx:</p>
  
  <pre><code>&lt;uc1:EmployeesViewer runat="server"&gt;
    &lt;Employees&gt;
      &lt;Person&gt;
        &lt;GivenName&gt;John&lt;/GivenName&gt;
        &lt;FamilyName&gt;Kerry&lt;/GivenName&gt;
      &lt;/Person&gt;
      &lt;Person&gt;
        &lt;GivenName&gt;Jack&lt;/GivenName&gt;  
        &lt;FamilyName&gt;Lew&lt;/GivenName&gt;
      &lt;/Person&gt;
    &lt;Employees&gt;
  &lt;/uc1:EmployeesViewer&gt;
  </code></pre>
  
  <p><code>EmployeesViewer.Employees</code> is of type <code>List&lt;Person&gt;</code>, with the attribute <code>[PersistenceMode(PersistenceMode.InnerProperty)]</code>.</p>
  
  <p>But Visual Studio doesn't compile this. Is it possible to declare a <code>Person</code> object using markup?</p>