Elcser

public static bool IsIP(string IP)
{
var iCount = IP.Split(\'.\').Count();
if (iCount != 4)
{
return false;
}
IPAddress ip;
if (IPAddress.TryParse(IP, out ip))
{
return true;
}
else
{
return false;
}
}

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
猜你喜欢
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
相关资源
相似解决方案