What is the difference between the Take and Skip clauses?

 Posted by Tripati_tutu on 1/28/2011 | Category: ASP.NET Interview questions | Views: 5475 | Points: 40
Answer:

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.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response