Error!
Success!

How to make LINQ SingleOrDefault returns yours null object

0
kicks

How to make LINQ SingleOrDefault returns yours null object  (Unpublished)

the default implementation of SingleOrDefault function in LINQ return the first element or null, if some or your classes implemnts the null object pattern you can write your own extension that return the null object instead of null.


Kicked By:
Drop Kicked By: