title: how to access a string array outside loop
body: <pre><code>for (int z = 0; z &lt; alParmValues.Count; z++)
  {
     //string[] def;
     string[] asd = alParmValues[z].ToString().Split(',');//this is of type string.collections and u cant cast it to a arraylist or array 
     //if (HUTT.clsParameterValues.bCustomObj == false)
  
     string[] def = alMethSign[z].ToString().Substring(alMethSign[z].ToString().IndexOf('(') + 1, alMethSign[z].ToString().IndexOf(')') - (alMethSign[z].ToString().IndexOf('(') + 1)).Split(',');
  }
  </code></pre>
  
  <p>I have to access both the string arrays outside the loop. Is there a better solution to this? I can't use an ArrayList or declare them as public so how can I access them? </p>