title: Is it possible to remove an existing registration from Autofac container builder?
body: <p>Something along those lines:</p>
  
  <pre><code>builder.RegisterType&lt;MyType&gt;().As&lt;IType&gt;();
  builder.RegisterType&lt;MyType2&gt;().As&lt;IType&gt;();
  builder.DeRegisterType&lt;MyType&gt;().As&lt;IType&gt;()
  
  var container = builder.Build();
  var types = container.Resolve&lt;IEnumerable&lt;IType&gt;&gt;();
  Assert.IsTrue(types.Count == 1);
  Assert.IsTrue(types[0].GetType == typeof(MyType2));
  </code></pre>
  
  <p>Scenario: I go through bunch of assemblies and as I go I register types but I want to
  make sure that I have only one implementation of a given type. I need to do this before I create the container. I could track that on my own but it would be nice if Autofac could help me a bit.</p>