Exemple #1
0
 private static IPAddress ParseIPV6(string ip)
 {
     try {
         IPv6Address newIPv6Address = IPv6Address.Parse(ip);
         return(new IPAddress(newIPv6Address.Address, newIPv6Address.ScopeId));
     } catch (Exception) {
         return(null);
     }
 }