title: Initializing Lookup<int, string>
body: <p>How do i declare a new lookup class for a property in the object initializer routine in c#?</p>
  
  <p>E.g.</p>
  
  <pre><code>new Component() { ID = 1, Name = "MOBO", Category = new Lookup&lt;int, string&gt; } 
  </code></pre>
  
  <p>The category bit always get a compile error.</p>
  
  <hr>
  
  <p>I have a property called <code>Category</code> that is of the type <code>Lookup&lt;int, string&gt;</code> and I want to instantiate this property via </p>
  
  <pre><code>new Component() { ID = 1, Name = "MOBO", Category = new Lookup&lt;int, string&gt; };
  </code></pre>
  
  <p>But I cannot get past the compile errors.</p>