title: Resolve dependency through xml file or web.config using lightinject
body: <p>When using lightinject, is there any way to use a string value from an external config file to tell the container to register the service as mentioned in the file? This would be in an xml file or a web.config file. </p>
  
  <p>For example, within a previous project in my web.config I would have the following line</p>
  
  <pre><code> &lt;add key="PersonRepository.Interface.IPersonRepository" value="PersonRepository.Db.DbRepository,
       PersonRepository.Db, Version=1.0.0.0, Culture=neutral"/&gt;
  </code></pre>
  
  <p>I could get the value through a WebConfigurationManager call. This example gets the concrete class PersonRepository.Db.DbRepository name as a string, which then can be used to resolve the dependency. This is a method I've used in the past, but can't figure out how to do the same with lightinject. Is this possible?</p>
  
  <p>Apologies if this is a little muddled, this is my first proper foray into dependency injection.</p>
  
  <p>Many thanks. </p>
  
  <hr>
  
  <p>Hello again. I've tried for a couple of days to implement the method as you described and it's not worked. To demonstrate this succinctly;</p>
  
  <pre><code> var myString = "hello";
   Type stringType = Type.GetType(myString);
   container.Register&lt;ICloneable, stringType&gt;();
  </code></pre>
  
  <p>I get the error from the compiler 'stringType' is a variable, but is used like a type. </p>
  
  <p>Upon further reading here;</p>
  
  <p><a href="https://stackoverflow.com/questions/302577/how-to-use-typeof-or-gettype-as-generics-template">How to use typeof or GetType() as Generic&#39;s Template?</a></p>
  
  <p>Seems this is limitation the language. Any thoughts at all please? Many thanks.</p>