SystemExt/Network/NetworkHelper.cs
/// <summary>
/// Determines whether <paramref name="text"/> contains a valid IPv6 address.
/// </summary>
/// <param name="text">
/// The value to validate as an IPv4 address.
/// </param>
/// <returns>
/// 
/// </returns>
Determines whether  contains a valid IPv6 address.
Determines whether contains a valid IPv6 address .
public static bool IsValidAddressV6(string text)
        {
            IPAddress address;
            if (!IPAddress.TryParse(text, out address))
                return false;
            return address.AddressFamily == AddressFamily.InterNetworkV6;
        }
public static bool IsValidAddressV6 ( string text ) { IPAddress address ; if ( ! IPAddress . TryParse ( text , out address ) ) return false ; return address . AddressFamily == AddressFamily . InterNetworkV6 ; }
Determines whether  contains a valid IPv6 address.
Determines whether contains a valid IPv6 address .
None
text
string
The value to validate as an IPv4 address.
The value to validate as an IPv4 address .