wynblogscc
private bool TryIp(string ipaddress)
{
    string[] ip = new string[4];
    string s = ".";
    ip = ipaddress.Split(s.ToCharArray(), 4);
    if (ip.Length < 4)
    {
         return false;
    }
    for (int i = 0; i < 4; i++)
    {
        if (Convert.ToInt32(ip[i]) >= 255)
        {
            return false;
        }
    }
    return true;
}            

 

分类:

技术点:

相关文章:

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