First vs FirstOrDefault in LINQ

Smith
Smith
2890 Points
78 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: 9654
Total Answered: 0
Total Marked As Answer: 0
Posted On: 07-Jan-2016 03:26

Share:   fb twitter linkedin
Answers
 Log In to Chat