private static string SafeIpAddressFromString(string value) { if (ReferenceEquals(value, null)) value = ""; // System.Net.IPAddress.Parse cannot handle null values System.Net.IPAddress ipAddr = System.Net.IPAddress.Parse(value); return ipAddr.ToString(); }
No comments:
Post a Comment