日期:2014-05-17 浏览次数:21124 次
public static NetHelper
{
public static getVersion()
{
int version = getNetVersion();//这里从网络上取得网上的版本
}
}
public static class NetHelper
{
internal sealed class proxy
{
private object waitLock = new object();
private int version;
private bool isValue;
private void getNetVersion()
{
version = NetHelper.getNetVersion();
Monitor.Enter(waitLock);
try
{
isValue = true;
Monitor.Pulse(waitLock);
}
finally { Monitor.Exit(waitLock); }
}
private int wait()
{
&nb