Explain what is the difference between Skip() and SkipWhile() extension method?

Technology CommunityCategory: LINQExplain what is the difference between Skip() and SkipWhile() extension method?
VietMX Staff asked 4 years ago
  • 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.

Please Disable AdBlock Plus and Refresh Website