How to transfer a value of a var from 1 func to another?
<p>I have 3 functions:</p>

<pre><code>public int ok_join(string gr)
{

        ...................
        string gash = Regex.Match(response, @"gash:""(?&lt;id&gt;[^""]+)""").Groups["id"].Value;
        string groupId = Regex.Match(response, @"state:""smd=(?&lt;id&gt;[^""]+)""").Groups["id"].Value;
       ......................
}

public bool ok_post(string gr)
{
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.site.ru/" + gash + "&amp;stoud=" + groupId + "&amp;");
    .........................
 }

public void go()
{
    while (true)
    {
        ........

                int h = ok_join(gr);
                if (h == 0)
                    ok_post(gr);
        .............
     }
}
</code></pre>

<p>How to send a value of gash and groupid from function ok_join to ok_post?­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­</p>
