What is the difference between first () and firstordefault () select methods in linq?
Answer Posted / Seema Rani
"first()" returns an exception if no elements are found, while "firstordefault()" returns a default value of the element type when no elements are found.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category