基础实现部分

1. 添加结点元素(实现IList.Insert、IList.Add)

 1数据结构——单链表的定义以及使用(二)public void Insert(int index, object value)
 2}


2. 删除结点元素(自定义一个RemoveNode、实现IList.RemoveAt、IList.Remove)

 1数据结构——单链表的定义以及使用(二)protected virtual void RemoveNode(int index, ListNode node)
 2}


3. 按索引获取结点以及根据结点值返回结点索引(实现IList索引器、IList.IndexOf)

 1数据结构——单链表的定义以及使用(二)public object this[int index]
 2}


4. 其他IList成员的实现

 1数据结构——单链表的定义以及使用(二)public bool Contains(object value)
 2}


查看下一部分

相关文章:

  • 2021-06-28
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-11-04
猜你喜欢
  • 2021-07-18
  • 2021-09-06
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-06-30
  • 2021-11-17
相关资源
相似解决方案