/// <summary> /// 生成IPSeeker实例 /// </summary> /// <returns>IPSeeker实例</returns> public static IPSeeker Instance() { if (ipSeeker == null) { lock (lockObject) { if (ipSeeker == null) { ipSeeker = new IPSeeker(); } } } return(ipSeeker); }
/// <summary> /// 生成IPSeeker实例 /// </summary> /// <returns>IPSeeker实例</returns> public static IPSeeker Instance() { if (ipSeeker == null) { lock (lockObject) { if (ipSeeker == null) { ipSeeker = new IPSeeker(); } } } return ipSeeker; }