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

All linq Questions

Ask your interview questions on linq

Write Your comment or Questions if you want the answers on linq from linq Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





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

--------- Tutorials ---