0
Public Class IndexableLinkedList(Of T)
Inherits LinkedList(Of T)
'??? implement an index 'property' '
End Class
Public Class IndexableLinkedList(Of T)
Inherits LinkedList(Of T)
'??? implement an index 'property' '
End Class
你可能的信息尋找實現指數是索引屬性需要爲Default
須註明
Public Default Property Item(ByVal index As Integer) As T
Get
' Return something
End Get
Set(ByVal value As T)
' Set something
End Set
End Property
也就是說,使用索引與連接鏈接列表可能不是一個好主意,在性能方面。
這正是我期待的。 – serhio 2011-02-16 14:52:10
你可能想看看另一個關於[索引鏈表]的SO問題(http://stackoverflow.com/questions/1712952/is-there-a-known-implementation-of-an-indexed-linked-list )在實施之前。 – 2011-02-16 14:59:00