/// <summary> /// 构造 /// </summary> /// <param name="linked"></param> /// <param name="pool"></param> public XLLinked(XLLinked <T> linked, XLLinkedNodePool <T> pool) { _pool = pool; if (linked != null && linked.Count > 0) { XLLinkedNode <T> last = null; XLLinkedNode <T> temp = linked.StartNode; while (temp != null) { XLLinkedNode <T> newNode = createNode(); newNode.Data = temp.Data; add(newNode); } } }
/// <summary> /// 构造 /// </summary> /// <param name="pool"></param> public XLLinked(XLLinkedNodePool <T> pool) { _pool = pool; }