How to check whether a string is a valid url
<p>I use this code to valid url</p>

<pre><code>public static bool isUrl(string text)
        {
            Uri uriResult;
            return Uri.TryCreate(text, UriKind.Absolute, out uriResult) &amp;&amp; uriResult.Scheme == Uri.UriSchemeHttp;
        }
</code></pre>

<p>but this code, not working when i send parameters like google.com, www.google.com</p>

<p>it only work when i use http like <a href="http://google.com" rel="nofollow">http://google.com</a></p>

<p>i need a code for c#, like <code>Patterns.WEB_URL.matcher(text).matches();</code> in android</p>