title: Dependency Injection with collections
body: <p>So, lets say I have a view named <code>MyClassView</code> with a VM called <code>MyClassViewModel</code>, and these components are housed inside of an <code>IModule</code> implementation. I can easily register an instance of <code>MyClass</code> with the <code>UnityBootstrapper</code> and instruct a member of <code>MyClassViewModel</code> to retrieve it through injection.</p>
  
  <p>Bootstrapper</p>
  
  <pre><code>this.Container.RegisterInstance&lt;MyClass&gt;("MyClass", new MyClass());
  </code></pre>
  
  <p>View Model</p>
  
  <pre><code>[Dependency("MyClass")]
  public MyClass MyClass { get; set; }
  </code></pre>
  
  <p>Simple enouigh. Now, lets say I want to go one step further and create a view for <code>MyClassCollection</code> that follows a similar injection strategy, but also allows my to inject each instance of <code>MyClass</code> into a <code>MyClassView</code>, essentially employing one module as an <code>ItemTemplate</code> for another module. </p>
  
  <p>How would I go about this? Thank you for your advice.</p>