Beispiel #1
0
        public BetterLinkedListNode <T> AddFirst(T value)
        {
            BetterLinkedListNode <T> newNode = BetterLinkedListNode <T> .Get();

            newNode.InitInfo(this, value);
            mLinkedList.AddFirst(newNode.Node);
            return(newNode);
        }
Beispiel #2
0
        public BetterLinkedListNode <T> AddBefore(BetterLinkedListNode <T> node, T value)
        {
            BetterLinkedListNode <T> newNode = BetterLinkedListNode <T> .Get();

            newNode.InitInfo(this, value);
            mLinkedList.AddBefore(node.Node, newNode.Node);
            return(newNode);
        }