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