Is List a linked list?

前端 未结 2 1393
耶瑟儿~
耶瑟儿~ 2021-01-17 13:03

Is System.Collections.Generic.List a type of linked list(not the LinkedList class)?

A linked

2条回答
  •  青春惊慌失措
    2021-01-17 13:48

    List, from a... technical perspective, is NOT a type of linked list.

    If you want to have a linked list in C# :

    • either use the built-in LinkedList type (for double-linked lists)
    • or create an implementation of your own (if you want a singly-linked one) - here's an example

提交回复
热议问题