Differentiate between conversion operator “todictionary” and “ienumerable” of linq.
Answer Posted / Shikha
'ToDictionary()' is a LINQ extension method that converts an IEnumerable to a Dictionary. It takes two optional arguments: a key selector and a comparer for the keys. 'IEnumerable<KeyValuePair<TKey, TElement>>' is the returned type. On the other hand, 'IEnumerable<T>' is the base type returned by most LINQ methods, representing an enumerable collection of elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category