Is there any significant difference between List.Last() and List.Last<T>()?

Posted by edg on Stack Overflow See other posts from Stack Overflow or by edg
Published on 2010-05-06T08:36:21Z Indexed on 2010/05/06 8:48 UTC
Read the original article Hit count: 203

Filed under:
|
|

Given a list of rectangles,

var myList = new List<Rectangle>();

I cannot add anything but Rectangles to this list, so what factors would make me prefer

Rectangle lastRect = myList.Last<Rectangle>();

over simply

Rectangle lastRect = myList.Last();

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about generics