Error!
Success!

C#/.NET Little Wonders: First() and Single() - Similar Yet Different

0
kicks

C#/.NET Little Wonders: First() and Single() - Similar Yet Different  (Unpublished)

Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can really help improve your code by making it easier to write and maintain. Today we're going to look at two LINQ extension methods that are both very similar and yet very different.  Logically, First() and Single() serve similar purposes, but there is a subtle difference between these two that if you aren't expecting it may give you different behaviors.


Kicked By:
Drop Kicked By: