What is the difference between the Take and Skip clauses?
Interview question and answer by: Tripati_tutu
| Posted on: 1/28/2011 | Category: ASP.NET Interview questions
| Views: 965 | | Points: 40
The Take clause returns a specified number of elements. For example, you can use the Take clause to return two values from an array of numbers.
The Skip clause skips the specified number of elements in the query and returns the rest. For example, you can use the Skip clause to skip the first four things in an array of strings and returns the remaining array of string.
| Alert Moderator
Found interesting? Add this to: