Linked list and Double linked list in C#

Below are two examples of implementing a linked and double linked list in .NET. The framework already has a LinkedList implementation from version 2.0 - it is infact a double linked list and supports a whole lot of features the example below doesn't. I wrote the code below out of curiosity more than anything (some programmers like doing this kind of thing, some don't!). Most degree students or earlier will have learnt about linked lists in their courses, some may have not.

Implements the LinkedList data structure

Here is the sample Code:

using System;

class Node {
  internal Object data;
  internal Node next;

  public Node(Object o, Node n){
    data = o;
    next = n;
  }
}
public class LinkedList {

Linked List on C Sharp

What we going to make is a linked list. Yeah I know there is a class which does the same as a linked list called ArrayList, but we (as a diehard C# programmer) want absolute control and knowledge of what we use.

First what is a linked list?

A linked list is a dynamically sized array. An array has a size and you have to deal with it you cant just resize an array. Unlike an array a linked list has no absolute size. It can hold as many variables as you want it to.

C on Singly linked lists

Linked lists are a way to store data with structures so that the programmer can automatically create a new place to store data whenever necessary. Specifically, the programmer writes a struct or class definition that contains variables holding information about something, and then has a pointer to a struct of its type. Each of these individual struct or classes in the list is commonly known as a node.

OXIS International




What is OXIS International? OXIS International is a company that have been experienced a lot of years in the research, development, and sale of products in anti aging and antioxidant matter, OXIS is developing and plans to sell Nutraceutical and Cosmecuetical products featuring natural ingredients believed to have beneficial effects on human health. The best product that OXIS International produce is pure l-ergothioneine. To be Known that this product only can be produce by OXIS International on their fabric. The Pure L-Ergothioneine is a glutathione that has been produce througout patented synthetic manufacturing process designated by OXIS. This premiere product of OXIS International is used to counteract the harmful effects of free radical and penny stocks of polution on this modern world. Can you imagine that the body without antioxidant is being attacked by that harmful situation. With l-ergothioneine the body's antioxidant and other defensive abilities are combat free radicals (a.k.a highly reactive species of oxygen and nitrogen) that overwhelmed and one’s normal healthy balance is either lost or severely compromised. Only OXIS worldwide that produce this great antioxidant. If you need further information about OXIS International, you can get there on 468 N. Camden Dr., 2nd Floor Beverly Hills CA 90210 USA. Or Contact OXIS International on their HomeBase at (310) 860-5184. For further information in the penny stocks of the pure l-ergothioneine just directly surf your browser to OXIS International website on http://www.oxis.com