how to throw the value of a variable from loop of one class to another class
<p>i am trying to use the value of a loop of one class into another class
how can i do it.
please help me..</p>

<pre><code>       while (!sStreamReader.EndOfStream)
            {
                string sLine = sStreamReader.ReadLine();
                // make sure we have something to work with
                if (String.IsNullOrEmpty(sLine)) continue;

                string[] cols = sLine.Split(',');
                // make sure we have the minimum number of columns to process
                if (cols.Length &gt; 4)
                {
                    double a = Convert.ToDouble(cols[1]);
                    Console.Write(a);
                    int b = Convert.ToInt32(cols[3]);
                    Console.WriteLine(b);
                    Console.WriteLine();
                }
            }
</code></pre>

<p>i am trying to use the values of a and b into another class.
this loop is another class.</p>
