title: Converting VB.NET's DateTime.TryParse(string, Nothing) to C#
body: <p>I am currently trying to convert some vb into c# and in the vb code I have the following line:</p>
  
  <pre><code>If DateTime.TryParse(txtExpirationDate.Text, Nothing) = False Then 
  _isValid = False
  </code></pre>
  
  <p>Which, with my extremely limited knowledge of vb, I think should read in c# as:</p>
  
  <pre><code>if (DateTime.TryParse(txtExpirationDate.Text, null) == false)
          _isValid = false;
  </code></pre>
  
  <p>However visual studio is telling me that I have invalid arguments:</p>
  
  <blockquote>
    <p>The best overloaded method match for 'System.DateTime.TryParse(string, out System.DateTime)' has some invalid arguments   </p>
  </blockquote>
  
  <p>I was wondering if anyone would be willing to help me out. What am I doing wrong? Is this even possible in c# and if so how would I do it?</p>