Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Differentiate between conversion operator “todictionary” and “ienumerable” of linq.



Differentiate between conversion operator “todictionary” and “ienumerable” o..

Answer / 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

More LINQ Language-Integrated Query Interview Questions

What are LINQ query expressions?

1 Answers  


Why do we use “contains"? Method for strings type functions?

1 Answers  


Differentiate between select() and selectmany() method in linq.

1 Answers  


Why can not datareader by returned from a web services method?

1 Answers  


What is the difference between linq to sql and entity framework?

1 Answers  


In LINQ, lambda expressions underlie many of the standard query operators. Is it True or False?

1 Answers  


What is LINQPad?

1 Answers  


What is difference between XElement.Load() and XDocument.Load()?

1 Answers  


what is the difference between Skip() and SkipWhile() extension method?

1 Answers  


Explain what are compiled queries?

1 Answers  


Explain what are linq compiled queries?

1 Answers  


What is the difference between first () and firstordefault () select methods in linq?

1 Answers  


Categories