Added GetCount method to Stack
This commit is contained in:
parent
88a7a7577e
commit
6ae360f3bc
@ -55,5 +55,10 @@ namespace C_.Datastructures.Stack
|
|||||||
}
|
}
|
||||||
return default;
|
return default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetCount()
|
||||||
|
{//Return the number of items in the list
|
||||||
|
return Count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user