title: Visual Studio 2010 Code Analysis CA1305 (Specify IFormatProvider) rule doesn't work for TryParse methods
body: <p>I am wondering why Code Analysis rule <a href="http://msdn.microsoft.com/en-us/library/ms182190.aspx">CA1305 - Specify IFormatProvider</a> doesn't work for TryParse methods?</p>
  
  <p>For example with 'Microsoft All Rules' rule set, Code Analysis gives CA1305 warning for following code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      string text = args[0];
  
      double value = double.Parse(text);
  }
  </code></pre>
  
  <p>but doesn't give CA1305 warning for following code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      string text = args[0];
  
      double value;
      if (!double.TryParse(text, out value))
          value = 0;
  }
  </code></pre>
  
  <p>I found this to be very unfortunate because TryParse methods are the correct way to do parsing if input string is not reliable.</p>
  
  <p>Does anyone know if CA1305 rule for TryParse methods is implemented in some newer version of Code Analysis tool or by some 3rd party?</p>