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 different methods to write LINQ Query?

1 Answers  


What are advantages of LINQ?

1 Answers  


What is anonymous method?

1 Answers  


Is linq faster than foreach?

1 Answers  


Can you explain brief about Aggregate() extension method in LINQ?

1 Answers  


What is "linq to objects"?

1 Answers  


Can we use linq without entity framework?

1 Answers  


What is the difference between LINQ and Lambda Expression?

1 Answers   Petranics Solutions,


How much does a reveal linq cost?

1 Answers  


Define what is Where clause and Let clause?

1 Answers  


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

1 Answers  


Write a program using linq to find the sum of first 5 prime numbers?

1 Answers  


Categories