Difference between Single and First in C#

In the extension methods Single / SingleOrDefault and First / FirstOrDefault have semantic distinction. Though in many places these methods are being used without the semantic consideration, more often they return the expected results. This behavior makes this misuse more common. Both the Single and First methods have an accompanying helper method named as xxOrDefault... Continue Reading →


Powered by WordPress.com.

Up ↑

%d bloggers like this: