title: Which Namespace holds Component.For in Castle Windsor?
body: <p>I'm learning Castle Windsor and I found <a href="https://github.com/castleproject/Windsor/blob/master/docs/basic-tutorial.md" rel="nofollow">this tutorial</a>.  In it, there's this code:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      // CREATE A WINDSOR CONTAINER OBJECT AND REGISTER THE INTERFACES, AND THEIR CONCRETE IMPLEMENTATIONS.
      var container = new WindsorContainer();
      container.Register(Component.For&lt;Main&gt;());
      container.Register(Component.For&lt;IDependency1&gt;().ImplementedBy&lt;Dependency1&gt;());
      container.Register(Component.For&lt;IDependency2&gt;().ImplementedBy&lt;Dependency2&gt;());
  
      // CREATE THE MAIN OBJECT AND INVOKE ITS METHOD(S) AS DESIRED.
      var mainThing = container.Resolve&lt;Main&gt;();
      mainThing.DoSomething();
  }
  </code></pre>
  
  <p>I'm following along with this, but the <code>Component.For</code> calls are throwing compiler errors for me.  Intellisense can't find <code>Component</code>.  What namespace should I be using for this call?</p>
  
  <p>I added the <code>Castle.Core</code> and <code>Castle.Windsor</code> references via NuGet.  I've been searching through the object browser trying to find <code>Component</code>, but it's a pretty common name.  The tutorial inconveniently left out* the <code>using</code>s and I can't find any documentation.</p>
  
  <p>* <em>I find that a lot of tutorials and StackOverflow answers leave out the <code>using</code>s and I can never figure out why.</em></p>