public BetterLinkedListNode <T> AddFirst(T value) { BetterLinkedListNode <T> newNode = BetterLinkedListNode <T> .Get(); newNode.InitInfo(this, value); mLinkedList.AddFirst(newNode.Node); return(newNode); }
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); }