Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Push(T element){
- var node = new SingleLinkedListNode<T>(element);
- if (headNode == null)
- {
- headNode = node;
- tailNode = node;
- }
- else
- {
- tailNode.Next = node;
- tailNode = node;
- }
- ++Length;
- }
Advertisement
Add Comment
Please, Sign In to add comment