Added GetCount method to Stack

This commit is contained in:
Luke Else 2022-04-17 22:17:53 +01:00
parent 88a7a7577e
commit 6ae360f3bc

View File

@ -55,5 +55,10 @@ namespace C_.Datastructures.Stack
}
return default;
}
public int GetCount()
{//Return the number of items in the list
return Count;
}
}
}