Click here to Skip to main content
15,900,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the folloeing codes What is the function of Take() method?
XML
IEnumerable<employee> emp =
         dc.Employees.Where(x => x.Desc.StartsWith("soft"));
emp = emp.Take(1);
Posted

1 solution

Take[^] returns a specified number of contiguous elements from the start of a sequence.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900