C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 307,177 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,580 people online right now. Registration is fast and FREE... Join Now!




Linq: Difference between ToArray and ToList

 

Linq: Difference between ToArray and ToList

nguoicodon147

22 Mar, 2009 - 11:31 PM
Post #1

New D.I.C Head
*

Joined: 11 Feb, 2009
Posts: 3

How to distinct difference between ToArray() and ToList() and ToDictionary() in LinQ . Can you help me


User is offlineProfile CardPM
+Quote Post

 
Reply to this topicStart new topic
Replies(1 - 1)

eclipsed4utoo

RE: Linq: Difference Between ToArray And ToList

23 Mar, 2009 - 04:34 AM
Post #2

Not Your Ordinary Programmer
Group Icon

Joined: 21 Mar, 2008
Posts: 1,846



Thanked: 205 times
Dream Kudos: 500
Expert In: .NET

My Contributions
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.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 07:35PM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month