1 Replies - 10890 Views - Last Post: 23 March 2009 - 05:34 AM Rate Topic: -----

#1 nguoicodon147   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-February 09

Linq: Difference between ToArray and ToList

Posted 23 March 2009 - 12:31 AM

How to distinct difference between ToArray() and ToList() and ToDictionary() in LinQ . Can you help me
Is This A Good Question/Topic? 0
  • +

Replies To: Linq: Difference between ToArray and ToList

#2 eclipsed4utoo   User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1536
  • View blog
  • Posts: 5,972
  • Joined: 21-March 08

Re: Linq: Difference between ToArray and ToList

Posted 23 March 2009 - 05:34 AM

To know the difference between ToArray(), ToList(), and ToDisctionary(), you need to know the difference between an Array, a Generic List, and a Dictionary.

ToArray() will return an array of objects. ToList() will return a Generic List of objects. ToDictionary() will return a generic Dictionary of objects.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1