First vs FirstOrDefault in LINQ

Smith
Smith
Participant
360 Points
110 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: 8122
Total Answered: 0
Total Marked As Answer: 0
Posted On: 07-Jan-2016 03:26

Share:   fb twitter linkedin
Answers
banner

Blog

Active User (2)

 Log In to Chat