public static bool IsEquals(this IPAddress thisIp, string otherIp)
{
IPAddress address;
if (IPAddress.TryParse(otherIp, out address))
{
return thisIp.IsEquals(address);
}
return false;
}
public static bool IsEquals(this IPAddress thisIp, IPAddress otherIp)
{
return thisIp.Equals(otherIp);
}
比较IP地址
最新推荐文章于 2019-10-08 11:56:10 发布