Explain what is the difference between skip() and skipwhile() extension method?
Answer Posted / Narayan Pratap Singh
Skip() skips a specified number of elements from a sequence, whereas SkipWhile() skips elements while a condition is true. In other words, Skip(n) will always skip the first n items regardless of the conditions, but SkipWhile(predicate) will continue skipping items until it reaches an item that does not meet the provided predicate.
| 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