Use SingleOrDefault in Linq.
1580
18-Mar-2016
We want to use SingleOrDefault in Linq. how to use this please help me.
Anonymous User
18-Mar-2016SingleOrDefault is similar to Single. On empty collections, it returns the default value for the type. With it you receive the single matching element, or the default value if no element is found.