RosettaCodeData/Task/Singly-linked-list-Element-definition/C-sharp/singly-linked-list-element-definition-1.cs
2023-07-01 13:44:08 -04:00

12 lines
276 B
C#

class LinkedListNode
{
public int Value { get; set; }
public LinkedListNode Next { get; set; }
// A constructor is not necessary, but could be useful.
public Link(int value, LinkedListNode next = null)
{
Item = value;
Next = next;
}
}