From a03771cce576a92c4805a50a1f85d698ab23617a Mon Sep 17 00:00:00 2001 From: Luke Else Date: Sun, 17 Apr 2022 23:20:01 +0100 Subject: [PATCH] Added GetCount Method to Doubly Linked List --- C#/Datastructures/DoublyLinkedList/DoublyLinkedList.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C#/Datastructures/DoublyLinkedList/DoublyLinkedList.cs b/C#/Datastructures/DoublyLinkedList/DoublyLinkedList.cs index 3db8088..77e6d95 100644 --- a/C#/Datastructures/DoublyLinkedList/DoublyLinkedList.cs +++ b/C#/Datastructures/DoublyLinkedList/DoublyLinkedList.cs @@ -150,6 +150,10 @@ } } + public int GetCount() + {//Return the number of items in the list + return Count; + } private DoublyLinkedListNode? Traverse() {