Differentiate between Conversion Operator “ToDictionary” and “IEnumerable” of LINQ.

devquora
devquora

Posted On: Feb 22, 2018

 

"IEnumerable" and "ToDictionary" conversion operators are used to solve the conversion type problems. "ToDictionary" conversion operator is a part of Dictionary (k, T).

The "keySelector" is used to recognize the key of each item, and "elementSelector" is used to extract each item. "IEnumerable" simply returns the source sequence as an object of IEnumerable <T>.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    LINQ Interview Questions

    What do you understand by LINQ?

    Language Integrated Query is the collection of standard query operators which adds query facilities into .NET framework..

    LINQ Interview Questions

    What are the three main components of LINQ?

    The three main components of LINQ are:Standard Query Operators: These are the extension methods that form the LINQ p..

    LINQ Interview Questions

    Explain what is select clause and where clause in LINQ?

    Select clause: the select clause selects the interesting aspects of the element by performing a projection on the col..