.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

linked list

Posted By: Rajesh     Posted Date: April 13, 2010    Points:2   Category :C#
how to implement linked list application in c#.net
give syntax and example?

Responses
Author: Venkat             
Posted Date: April 13, 2010     Points: 5   

Hi,

To implement linked list in c# you can see this article.

http://en.csharp-online.net/CSharp_Generics_Recipes%E2%80%94Implementing_a_Linked_List

Mark As Answer if this solve your problem
Warm Regards,
Venkat
Author: Rajesh             
Posted Date: April 13, 2010     Points: 5   

thanks for replay
do u have any other resource like pdf file to know detail
.

Author: Kirtan             
Posted Date: April 21, 2010     Points: 5   

Here i coded how you can use LinkList in C# 2.0/3.5/4.0

LinkedList<string> llist = new LinkedList<string>();
// Create New Node

LinkedListNode<string> node = new LinkedListNode<string>("kirtan") ;
LinkedListNode<string> node2 = new LinkedListNode<string>("sanjay");
LinkedListNode<string> node3 = new LinkedListNode<string>("mahesh");

llist.AddLast(node);
llist.AddLast(node2);
llist.AddLast(node3);

// use the content of link list
LinkedListNode<string> temp = llist.First;
while (temp != null)
{
listBox1.Items.Add(temp.Value.ToString());
temp = temp.Next;
}




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend