title: Is there a one line way I can find the length of the longest of two C# strings?
body: <p>I have two strings as input parameters to a method:</p>
  
  <pre><code>public List&lt;AnswerRow&gt; makeAnswers(string c, string r)
  </code></pre>
  
  <p>On the first line of my method I have the code to check for a condition where both are null and then do a return:</p>
  
  <pre><code>if (c == null &amp;&amp; r == null)
  {
      return null;
  }
  </code></pre>
  
  <p>Is there a safe (one of the two might be null), one line way that I can find the length of the longest string?</p>
  
  <p>Note the return type is used later on in the method after I know the length of the longest string.</p>