title: Castle Windsor: How to convert an appSettings dependency to a list or an array?
body: <p>I have a component that depends on a list of strings:</p>
  
  <pre><code>// ctor
  public MyComponent(IList&lt;string&gt; someStrings) { ... }
  </code></pre>
  
  <p>Using Castle Windsor, I'm trying to provide this dependency from the <code>AppSettings</code> section of my <em>app.config</em> file like so:</p>
  
  <pre><code>container.Register(Component
      .For&lt;IMyComponent&gt;()
      .ImplementedBy&lt;MyComponent&gt;()
      .DependsOn(Dependency.OnAppSettingsValue("someStrings", "SomeStrings"))
  );
  </code></pre>
  
  <p>The Windsor documentation on <a href="https://github.com/castleproject/Windsor/blob/master/docs/inline-dependencies.md" rel="nofollow">Inline Dependencies</a> says:</p>
  
  <blockquote>
    <p><strong>appSettings and conversion</strong>: Values in the config file are stored as text, yet the dependencies in your code may be of other types (<code>TimeSpan</code> in this example). Windsor has got you covered, and for most cases will perform the appropriate conversion for you.</p>
  </blockquote>
  
  <ol>
  <li>Does this cover my case where I'd like to convert to <code>IList&lt;string&gt;</code>?</li>
  <li>If so, what is the correct way to enter the list of strings in the <em>app.config</em> file?</li>
  <li>If not, is there an extensibility point where I can specify my own conversion?</li>
  </ol>