First vs FirstOrDefault in LINQ

Smith
Smith
Participant
374 Points
112 Posts

Hi,

I've searched around and haven't really found a clear answer of the following questions:

  • What is different between First and FirstOrDefault?
  • When to use First and FirstOrDefault?

Please help.

Views: 8168
Total Answered: 0
Total Marked As Answer: 0
Posted On: 07-Jan-2016 03:26

Share:   fb twitter linkedin
Answers
 Log In to Chat