projects / cs-net-nodes
┌─ Data structures
cs-net-nodes
Singly linked lists written from scratch in C# .NET, with recursive operations and a WinForms UI.
## Summary
A singly linked list (Nodo + Lista) built by hand, without any of the framework's collections. I commented the code step by step so it works as study material.
## What it shows
- A sentinel node as the list's entry point.
- Insert at the start or at the end. Walking to the last node is recursive.
- Removing nodes, and a recursive dump of the list to show it on screen.
- A WinForms UI to play with the list live.
## Excerpt
public void AgregarAlFinal(string _dato)
{
Nodo X = new Nodo(_dato);
if (Centinela == null) Centinela = X;
else AgregarFinalR(Centinela, X);
}
private void AgregarFinalR(Nodo Actual, Nodo X)
{
if (Actual.Siguiente == null) Actual.Siguiente = X;
else AgregarFinalR(Actual.Siguiente, X);
}