BO4E/meta/Bo4eUri.cs
/// <summary>
///     Test if a URI string is valid
/// </summary>
/// <param name="uri">URI string</param>
/// <returns>true iff valid, false otherwise</returns>
Test if a URI string is valid
Test if a URI string is valid
public static bool IsValid(string uri)
        {
            try
            {
                _ = new Bo4eUri(uri);
            }
            catch (Exception)
            {
                return false;
            }
            return true;
        }
public static bool IsValid ( string uri ) { try { _ = new Bo4eUri ( uri ) ; } catch ( Exception ) { return false ; } return true ; }
Test if a URI string is valid
Test if a URI string is valid
true iff valid, false otherwise
true iff valid false otherwise
uri
string
None