Explain what is the difference between skip() and skipwhile() extension method?
Answer / 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 |
What is the difference between single and first in linq?
What are aggregate operators?
Can we use linq with ado net?
What is LINQ provider and what are different types of LINQ providers?
What is into in linq?
What is linq used for?
What is linq in ado net?
Is linq faster than sql?
What are different flavors of LINQ?
What is difference between LINQ AND PLINQ?
What does a linq query return?
What are the benefits of a deferred execution in linq?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)