Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Deepika Harida...
(114)
Abraham Kuriak...
(101)
shekhar
(81)
Last 7 Days
UmaShankar
(1211)
ANIL PANDEY
(659)
Deepika Harida...
(534)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
LinkList using C#
Posted Date: 07 May 2008 Resource Type:
Code Snippets
Category:
Console Applications
Posted By:
Sagar Deshpande
Member Level:
Bronze
Rating:
Points
: 5
using System;
namespace LinkList
{
class LinkList
{
public string Val;
public object NextItem;
[STAThread]
static void Main(string[] args)
{
LinkList obList = new LinkList();
obList.Val = "Head";
LinkList obHead = obList;
// Add 10 items to the list.
for (int i = 0; i < 10; i++)
{
obList.NextItem = new LinkList();
obList = (LinkList)obList.NextItem;
obList.Val = i.ToString();
}
// Print the added items.
while (obHead != null)
{
Console.WriteLine("Item: {0}", obHead.Val);
obHead = (LinkList)obHead.NextItem;
}
}
}
}
For more details, visit
http://www.netomatix.com/LinkList.aspx
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
The new modifier in C#
Previous Resource:
How to open the CD TRAY using c# code
Return to Discussion Resource Index
Post New Resource
Category:
Console Applications
Post resources and
earn money
!
Related Resources
How to convert ASCII To Hex using c# dot net
Delegates - A simple way
Get the Version Name of an Assembly
The new modifier in C#
drag and drop sample
dotNet Slackers
BizTalk Adaptors
Web Design
teleconferencing
Contact Us
Privacy Policy
Terms Of Use