title: Powershell . Declare generic list with class defined using 'Add-Type'
body: <p>I am trying to declare List in PowerShell, where the Person is defined using Add-Type:</p>
  
  <pre><code>add-type -Language CSharpVersion3 -TypeDefinition @"
      public class Person
      {
          public Person() {}
  
          public string First { get; set; }
          public string Last { get; set; }
      }
  "@ 
  </code></pre>
  
  <p>This works fine:</p>
  
  <pre><code>New-Object Person
  New-Object System.Collections.Generic.List``1[System.Object]
  </code></pre>
  
  <p>But this line fails:</p>
  
  <pre><code>New-Object System.Collections.Generic.List``1[Person]
  </code></pre>
  
  <p>What is wrong here?</p>