title: How to handle ArgumentOutOfRangeException
body: <p>I have a generic ListManager class with a method returning an object at a specific index. I am checking that the index is within range to avoid exceptions. What should I do if the index is out of range? I tried to return null but that's not possible. I would like to do this without using try catch. Any suggestions?</p>
  
  <pre><code>public T GetAt&lt;T&gt;(int index)
  {
      if (index &lt;= list.Count() - 1)
          return list[index];
      else
          return null; //This will not compile
  }
  </code></pre>