Which one is fast between SingleOrDefault and FirstOrDefault?
Answer Posted / Mukesh Gupta
SingleOrDefault can be faster because it stops enumeration as soon as a matching element is found, whereas FirstOrDefault might iterate through the entire sequence to find the first element.
| 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