title: Detecting image URL in C#/.NET
body: <p>Is there a way I can detect an image URL, like:</p>
  
  <pre><code>http://mysite.com/image.jpg
  </code></pre>
  
  <p>but with other formats as well? I am using C# with .NET 4.0.</p>
  
  <p>Something like</p>
  
  <pre><code>bool isImageUrl(string URL){
  }
  </code></pre>
  
  <p><strong>edit</strong> I meant if the URL points to an image. Eg, the URL</p>
  
  <pre><code>http://mysite.com/image.jpg
  </code></pre>
  
  <p><strong>is</strong> a valid image, but</p>
  
  <pre><code>http://mysite.com/image
  </code></pre>
  
  <p>is not.</p>