我有 3 个功能:
public int ok_join(string gr)
{
...................
string gash = Regex.Match(response, @"gash:""(?<id>[^""]+)""").Groups["id"].Value;
string groupId = Regex.Match(response, @"state:""smd=(?<id>[^""]+)""").Groups["id"].Value;
......................
}
public bool ok_post(string gr)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.site.ru/" + gash + "&stoud=" + groupId + "&");
.........................
}
public void go()
{
while (true)
{
........
int h = ok_join(gr);
if (h == 0)
ok_post(gr);
.............
}
}
如何将函数 ok_join 的 gash 和 groupid 值发送到 ok_post?