Redeclared Stack count as private

This commit is contained in:
Luke Else 2022-03-26 22:40:20 +00:00
parent 7a3c15d602
commit ba2f01f836

View File

@ -5,7 +5,7 @@ namespace C_.Datastructures
internal class Stack<T>
{
public StackNode<T>? Head { get; set; }
public int Count { get; set; }
private int Count { get; set; }
public Stack<T> Create(){
//Create a new stack without a head