Differentiate between select() and selectmany() method in linq.
Answer / Anil Tomar
The 'select()' method is used to project each element of a sequence into a new form by applying a transformation function to each element. It returns a new collection containing the result of the projection. The 'selectMany()' method is an extension method that projects each element of a sequence into a flat sequence of values by applying a transformation function to each element, and then concatenating the results together. It does not create any additional collections.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we find sequence of items in two different array (same type) in the same order using linq query?
How does linq to sql work?
When to use var or IEnumerable to store query result in LINQ?
What is the advantage of linq in c#?
How to assign a computed value to the same array back?
What are important features linq?
What are conversion operators?
What is the benefit of using linq in dataset?
Explain how you can retrieve a single row with LINQ?
Differentiate between statement lambda and expression lambda.
Differentiate between select() and selectmany() method in linq.
What is difference between single and singleordefault 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)