ArrayList to String - VS2008 - C#
<pre><code>  ArrayList filters = new ArrayList();
  filters.Add(new string[] { "Name", "Equals", "John" });


  ObjectDataSource1.SelectParameters.Add("AppliedFilters", 
           string.Join(",",(string[])filters.ToArray(typeof(string))));
</code></pre>

<p>Am trying to add a parameter to my object data source which is bound to my select method which should accept a string[]. But as the SelectParameters.Add takes in (string,string) or the other 3 overloads which do not seem to function for me correctly. </p>

<p>The select method accepts a string param though i prefer it accept a string[] or arraylist, but for now I can live with accepting a string which i should convert back to string[]</p>

<p>Resolution:
followed this article <a href="http://stackoverflow.com/questions/235166/how-do-i-set-up-objectdatasource-select-parameters-at-runtime">link text</a></p>

<p><strong>Closed</strong> as duplicate of the question referenced above.</p>
