title: C# check which integer is higher
body: <p>I have two integers, <code>int1</code> and <code>int2</code>. I want to check which one is the higher one. How can I do this the best? Is there an C#.NET function for this or do I have to write it myself? </p>
  
  <p>Ofcource I can do something similar to this:</p>
  
  <pre><code>if (int1 &lt; int2)
      return int1;
  else
      return int2;
  </code></pre>
  
  <p>But I was wondering if there is a more elegant way for doing this?</p>
  
  <p>yours,
  Bernhard</p>