Explain what is the difference between Skip() and SkipWhile() extension method?
Explain what is the difference between Skip() and SkipWhile() extension method?
Answer
Skip(): It will take an integer argument and from the given IEnumerable it skips the top n numbers
SkipWhile (): It will continue to skip the elements as far as the input condition is true. It will return all remaining elements if the condition is false
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website