Explain how you can differentiate between Conversion Operator ToDictionary and IEnumerable of LINQ?

Answer

To solve the conversion type problems “IEnumerable” and “ToDictionary” conversion operator are used.

“ToDictionary” conversion operator is the instance of Dictionary (k, T). The “keySelector” predicate recognizes the key of each item, while “elementSelector”, is used to extract each single item, if it is given.

Extension method on “IEnumerable” is.AsEnumerable. AsEnumerable simply returns the source sequence as an object of type IEnumerable <T>.

All linq Questions

Ask your interview questions on linq

Write Your comment or Questions if you want the answers on linq from linq Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---