Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / April 2008

Tip: Looking for answers? Try searching our database.

Whats LinkedListNode<>?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Slaughter - 09 Apr 2008 10:00 GMT
When I create a LinkedList<> what is a LinkedListNode compared to a value?

AddFirst(54) for example, does it turn 54 into a node or what? I'm trying ot
find out what the LinkedListNode is specifically for? Basically just a
wrapper around the reference type?
Marc Gravell - 09 Apr 2008 10:17 GMT
The LinkedListNode<T> is indeed a wrapper aroundt the value (which in
the case of 54, is a value-type [not reference-type as stated]), but
it provides more: from a LinkedListNode<T> you can navigate through
the (doubly-linked) list via Previous, Next and List. The List
maintains these relationships itself, so you can't mess it up...

Marc
Jon Slaughter - 09 Apr 2008 22:47 GMT
> The LinkedListNode<T> is indeed a wrapper aroundt the value (which in
> the case of 54, is a value-type [not reference-type as stated]), but
> it provides more: from a LinkedListNode<T> you can navigate through
> the (doubly-linked) list via Previous, Next and List. The List
> maintains these relationships itself, so you can't mess it up...

Thanks. I figured it was that but just needed to make sure.
Rene - 09 Apr 2008 14:47 GMT
http://en.wikipedia.org/wiki/Linked_list

> When I create a LinkedList<> what is a LinkedListNode compared to a value?
>
> AddFirst(54) for example, does it turn 54 into a node or what? I'm trying
> ot find out what the LinkedListNode is specifically for? Basically just a
> wrapper around the reference type?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.