What is difference between first and single in linq?
Answer Posted / Devender Kumar
First returns an IEnumerable containing all elements that meet the condition, or an empty enumerable if no such elements are found. Single returns the first element of a sequence that satisfies a condition; it throws an exception if there are multiple matching elements or no elements at all.
| 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