日期:2014-05-17 浏览次数:21085 次
string strIP = string.Empty; for (int x = 0; x < 4; x++) { int temp = 0; for (int i = 0; i < 8; i++) temp += byteIP[i + x * 8] << (7 - i); if (strIP.Length > 0) strIP += "."; strIP += temp.ToString(); }