Explore BrainMass

Explore BrainMass

    C# Doubly Linked List

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Hi. I need some help with a c# doubly linked list program. I previously had code for a doubly linked list but this a little different in the way it should be implemented.

    1. Using C# generics, write a doubly-linked list that can store any type of data. Do NOT use a built-in C# data structure or class (or any other pre-made implementations from another library). Write a small console application that adds 5 items (named Item1, Item2, Item3, Item4 and Item5) to the list and then navigates through each item in both directions using a foreach loop. You do not have to have user input. In other words, you can create the linked list and programmatically add the data to it.

    © BrainMass Inc. brainmass.com October 10, 2019, 7:34 am ad1c9bdddf

    Solution Summary

    This solution contains a doubly-linked list that can store any type of data, it also includes instructions to add notes, print forward and backward.