title: Registering generic types in Windsor container
body: <p>I need to register open generic of a type in my Windsor Container. How does this thing works?</p>
  
  <p><Code>
  container.Register(Component.For&lt;IRepository&lt;??&gt;&gt;().UsingFactoryMethod(x =&gt; x.Resolve&lt;IDataContext&gt;().GetRepository&lt;??&gt;()));
  </Code></p>
  
  <p>Basically, I want to register IRepository as open generic and then create the repository from the IDataContext based on the passed generic type. Is this supported?</p>