static internal node pointer;
public static void insert(string data = null)
node newNode = new node();
if (linkedlist.pointer == null)
linkedlist.pointer = newNode;
newNode.next = linkedlist.pointer;
linkedlist.pointer = newNode;
public static void peek()
if (linkedlist.pointer == null)
Console.WriteLine("No items in linked list");
Console.WriteLine(linkedlist.pointer);
public static void Main()
linkedlist.insert("hello");