creating strings inside a for each loop? or creat them outside, use inside?
<p>i have the following code below and was lookign to clean it up, but am not sure if it needs clean up or not. </p>

<pre><code>foreach (SearchResult sr in mySrchColl)
{
    string strValIn = sr.Properties["in"][0].ToString();
    string strValOut= sr.Properties["out"][0].ToString();
}
</code></pre>

<p>do i change this to something like this:</p>

<pre><code>string strValIn = "";
string strValOut= "";

foreach (SearchResult sr in mySrchColl)
            {
                strValIn = sr.Properties["in"][0].ToString();
                strValOut= sr.Properties["out"][0].ToString();
}
</code></pre>

<p>whats the difference or are these two identical?</p>
