diff --git a/C#/Datastructures/LinkedList/LinkedList.cs b/C#/Datastructures/LinkedList/LinkedList.cs index e5a2b7d..4aa9453 100644 --- a/C#/Datastructures/LinkedList/LinkedList.cs +++ b/C#/Datastructures/LinkedList/LinkedList.cs @@ -122,6 +122,11 @@ namespace C_.Datastructures.LinkedList node!.Next = node.Next!.Next; } + public int GetCount() + {//Return the number of items in the list + return Count; + } + private LinkedListNode? Traverse() { //Start at Head of list