通用链接列表 [英] Generic Linked List

查看:70
本文介绍了通用链接列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


下面的代码代表一个单链表,可以接受任何类型的

对象。


你可以看到我代表Data变量一个System.Object。我将如何更新此代码以使用泛型而不是System.Object。我希望Form1_Load中的代码

保持完全相同,但在后台我想

使用泛型。我正在努力更好地理解它是如何工作的。

我有点卡住了。


我尝试将LinkedListItem类转换为:公共类

LinkedListItem(Of T)然后,当然将System.Object

变量切换为类型T.但是在LinkedList类中,我的_Head和_Tail

对象需要为LinkedListItem(Of T),但此时它需要知道对象类型(String,Integer,Double等)。我不知道

对象类型,直到我使用Add()方法将它添加到列表中。我是

肯定这是一个简单的解决方案,我只是坚持这个。


提前谢谢。


Private Sub Form1_Load(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理MyBase.Load

Dim MyList As New LinkedList

MyList.Add(" 12345")

MyList.Add(55)

MyList.Add(" Kathy")< br $>
MyList.Add(1.234)

End Sub


公共类LinkedList

私有_Head为LinkedListItem

私有_Tail为LinkedListItem


Public ReadOnly属性GetFirstItem()

获取

返回_Head

结束获取

结束物业


Public Property Head()As LinkedListItem

获取

返回_Head

结束获取

设置(ByVal值为LinkedListItem)

_Head = value

结束集

结束财产


Public Sub Add(ByVal Data as Ob ject)

Dim Item作为新的LinkedListItem(数据)


If(_Head Is Nothing)然后

_Head = Item

结束如果


如果(_Tail Is Nothing)那么

_Tail = Item

Else
_Tail.NextItem = Item

_Tail = Item

结束如果

结束Sub

结束课程


公共类LinkedListItem

私有_Data为对象

私有_NextLink为LinkedListItem


公共属性值()作为对象

获取

返回_Data

结束获取

设置(ByVal值作为对象)

_Data = value

结束集

结束财产


公共财产NextItem( )作为LinkedListItem

获取

返回_NextLink

结束获取

设置(ByVal值为LinkedListItem)

_NextLink = value

结束集

结束财产


Public Sub New(ByVal Data As Object)

_Data =数据

结束子

结束班

Hello,

The code below represents a singly-linked list that accepts any type of
object.

You can see I''m represting the Data variable a System.Object. How would I
update this code to use generics instead of System.Object. I want the code
in Form1_Load to remain exactly the same, but in the background I want to
use generics. I''m trying to get a better understanding of how it works and
I''m a little stuck.

I tried converting the LinkedListItem class to: Public Class
LinkedListItem(Of T) and then, of course switching the System.Object
variables to type T. But then in the LinkedList class, my _Head and _Tail
objects would need to be case as LinkedListItem(Of T), but at that point it
needs to know the object type (String, Integer, Double, etc). I won''t know
the object type until I''ve added it to the list using my Add() method. I''m
sure it''s a simple solution, I''m just stuck on this one.

Thanks in advance.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyList As New LinkedList
MyList.Add("12345")
MyList.Add(55)
MyList.Add("Kathy")
MyList.Add(1.234)
End Sub

Public Class LinkedList
Private _Head As LinkedListItem
Private _Tail As LinkedListItem

Public ReadOnly Property GetFirstItem()
Get
Return _Head
End Get
End Property

Public Property Head() As LinkedListItem
Get
Return _Head
End Get
Set(ByVal value As LinkedListItem)
_Head = value
End Set
End Property

Public Sub Add(ByVal Data As Object)
Dim Item As New LinkedListItem(Data)

If (_Head Is Nothing) Then
_Head = Item
End If

If (_Tail Is Nothing) Then
_Tail = Item
Else
_Tail.NextItem = Item
_Tail = Item
End If
End Sub
End Class

Public Class LinkedListItem
Private _Data As Object
Private _NextLink As LinkedListItem

Public Property Value() As Object
Get
Return _Data
End Get
Set(ByVal value As Object)
_Data = value
End Set
End Property

Public Property NextItem() As LinkedListItem
Get
Return _NextLink
End Get
Set(ByVal value As LinkedListItem)
_NextLink = value
End Set
End Property

Public Sub New(ByVal Data As Object)
_Data = Data
End Sub
End Class

推荐答案

好的,我我继续自己尝试这个。这就是我所拥有的。它不会是b
编译,所以我不确定我是否在正确的轨道上,但我想我会继续给它b
一枪。我的Form1_Load或我的

LinkedListItem类中没有错误指示。


我的问题出在LinkedList类中(自从这个类以来没有改变过)

最后发表的帖子)。


私有_头作为LinkedListItem< ---这必须有一个类型声明

(即LinkedListItem(Of String))。此时,该程序不知道

将传递什么类型。我哪里错了?


公共类Form1

私有子Form1_Load(ByVal发送者As System.Object,ByVal e As

System.EventArgs)处理MyBase.Load

Dim MyList As New LinkedList

MyList.Add(New LinkedListItem(Of String)(" 12345"))

MyList.Add(New LinkedListItem(Of Integer)(55))

MyList.Add(New LinkedListItem(Of String)(Some words))

MyList.Add(New LinkedListItem(Of Double)(1.234))


Dim i = MyList.GetFirstItem


Do While Not什么都不是

TextBox1.Text + = i.Value& vbCrLf

i = i.NextItem

循环

结束次级

结束班级


Public Class LinkedList

Private _Head As LinkedListItem

Private _Tail As LinkedListItem


Public ReadOnly Property GetFirstItem()

获取

返回_Head

结束获取

结束物业


Public Property Head()As LinkedListItem

获取

返回_Head

结束获取

设置(ByVal值为LinkedListItem )

_Head = value

结束集

结束财产


公共子添加(ByVal数据)作为对象)

Dim Item作为新的LinkedListItem(数据)


如果(_Head什么都没有)那么

_Head = Item

结束如果


If(_Tail Is Nothing)那么

_Tail = Item

Else

_Tail.NextItem = Item

_Tail = Item

End if

End Sub

结束班


Publ ic类LinkedListItem(Of T)

私有_Data为T

私有_NextLink为LinkedListItem(Of T)


公共财产价值()作为T

获取

返回_Data

结束获取

设置(ByVal值为T)

_Data = value

结束集

结束财产


公共财产NextItem()As LinkedListItem(Of T)

获取

返回_NextLink

结束获取

设置(ByVal值为LinkedListItem(Of T))

_NextLink = value

结束集

结束物业


Public Sub New(ByVal Data As T)

_Data = Data

End Sub

End Class

" Scott Stark" < sc *** @ webservicesinc.comwrote in message

news:u8 ************** @ TK2MSFTNGP05.phx.gbl ...
Ok, I''m continuing to try this on my own. Here''s what I have. It won''t
compile yet so I''m not sure if I''m on the right track, but I thought I''d
keep giving it a shot. There are no error indications in my Form1_Load or my
LinkedListItem class.

My problem is in the LinkedList class (which hasn''t been changed since the
last post).

Private _Head As LinkedListItem <--- This has to have a type declaration
(i.e. LinkedListItem(Of String)). At this point, the program doesn''t know
what type will be passed. Where am I going wrong?

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyList As New LinkedList
MyList.Add(New LinkedListItem(Of String)("12345"))
MyList.Add(New LinkedListItem(Of Integer)(55))
MyList.Add(New LinkedListItem(Of String)("Some words"))
MyList.Add(New LinkedListItem(Of Double)(1.234))

Dim i = MyList.GetFirstItem

Do While Not i Is Nothing
TextBox1.Text += i.Value & vbCrLf
i = i.NextItem
Loop
End Sub
End Class

Public Class LinkedList
Private _Head As LinkedListItem
Private _Tail As LinkedListItem

Public ReadOnly Property GetFirstItem()
Get
Return _Head
End Get
End Property

Public Property Head() As LinkedListItem
Get
Return _Head
End Get
Set(ByVal value As LinkedListItem)
_Head = value
End Set
End Property

Public Sub Add(ByVal Data As Object)
Dim Item As New LinkedListItem(Data)

If (_Head Is Nothing) Then
_Head = Item
End If

If (_Tail Is Nothing) Then
_Tail = Item
Else
_Tail.NextItem = Item
_Tail = Item
End If
End Sub
End Class

Public Class LinkedListItem(Of T)
Private _Data As T
Private _NextLink As LinkedListItem(Of T)

Public Property Value() As T
Get
Return _Data
End Get
Set(ByVal value As T)
_Data = value
End Set
End Property

Public Property NextItem() As LinkedListItem(Of T)
Get
Return _NextLink
End Get
Set(ByVal value As LinkedListItem(Of T))
_NextLink = value
End Set
End Property

Public Sub New(ByVal Data As T)
_Data = Data
End Sub
End Class
"Scott Stark" <sc***@webservicesinc.comwrote in message
news:u8**************@TK2MSFTNGP05.phx.gbl...

你好,


下面的代码代表一个单链表,它接受任何类型的

对象。


你可以看到我代表Data变量一个System.Object。我将如何更新此代码以使用泛型而不是System.Object。我希望Form1_Load中的代码

保持完全相同,但在后台我想

使用泛型。我正在努力更好地理解它是如何工作的。

我有点卡住了。


我尝试将LinkedListItem类转换为:公共类

LinkedListItem(Of T)然后,当然将System.Object

变量切换为类型T.但是在LinkedList类中,我的_Head和_Tail

对象需要为LinkedListItem(Of T),但在那时

它需要知道对象类型(String,Integer,Double等)。我不会知道对象类型,直到我使用我的Add()

方法将它添加到列表中。我确定这是一个简单的解决方案,我只是坚持这个。


提前谢谢。


Private Sub Form1_Load(ByVal sender As System.Object,ByVal e As

System.EventArgs)Handles MyBase.Load

Dim MyList As New LinkedList

MyList.Add(" 12345")

MyList.Add(55)

MyList.Add(" Kathy")

MyList .Add(1.234)

End Sub


Public Class LinkedList

Private _Head As LinkedListItem

私有_Tail为LinkedListItem


Public ReadOnly属性GetFirstItem()

获取

返回_Head

结束获取

结束物业


Public Property Head()As LinkedListItem

获取

返回_Head

结束获取

设置(ByVal值为LinkedListItem)

_Hea d =价值

结束集

结束物业


Public Sub Add(ByVal Data As Object)

Dim Item As New LinkedListItem(Data)


If(_Head Is Nothing)然后

_Head = Item

结束If


如果(_Tail Is Nothing)那么

_Tail = Item

Else

_Tail.NextItem =项目

_Tail =项目

结束如果

结束次级

结束班级

公共类LinkedListItem

私有_Data为对象

私有_NextLink为LinkedListItem


公共属性值()为对象

获取

返回_Data

结束获取

设置(ByVal值为对象)

_Data = value

结束集

结束财产


公共财产NextItem()As Link edListItem

获取

返回_NextLink

结束获取

设置(ByVal值为LinkedListItem)

_NextLink = value

结束集

结束财产


Public Sub New(ByVal Data As Object)

_Data = Data

End Sub

End Class
Hello,

The code below represents a singly-linked list that accepts any type of
object.

You can see I''m represting the Data variable a System.Object. How would I
update this code to use generics instead of System.Object. I want the code
in Form1_Load to remain exactly the same, but in the background I want to
use generics. I''m trying to get a better understanding of how it works and
I''m a little stuck.

I tried converting the LinkedListItem class to: Public Class
LinkedListItem(Of T) and then, of course switching the System.Object
variables to type T. But then in the LinkedList class, my _Head and _Tail
objects would need to be case as LinkedListItem(Of T), but at that point
it needs to know the object type (String, Integer, Double, etc). I won''t
know the object type until I''ve added it to the list using my Add()
method. I''m sure it''s a simple solution, I''m just stuck on this one.

Thanks in advance.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyList As New LinkedList
MyList.Add("12345")
MyList.Add(55)
MyList.Add("Kathy")
MyList.Add(1.234)
End Sub

Public Class LinkedList
Private _Head As LinkedListItem
Private _Tail As LinkedListItem

Public ReadOnly Property GetFirstItem()
Get
Return _Head
End Get
End Property

Public Property Head() As LinkedListItem
Get
Return _Head
End Get
Set(ByVal value As LinkedListItem)
_Head = value
End Set
End Property

Public Sub Add(ByVal Data As Object)
Dim Item As New LinkedListItem(Data)

If (_Head Is Nothing) Then
_Head = Item
End If

If (_Tail Is Nothing) Then
_Tail = Item
Else
_Tail.NextItem = Item
_Tail = Item
End If
End Sub
End Class

Public Class LinkedListItem
Private _Data As Object
Private _NextLink As LinkedListItem

Public Property Value() As Object
Get
Return _Data
End Get
Set(ByVal value As Object)
_Data = value
End Set
End Property

Public Property NextItem() As LinkedListItem
Get
Return _NextLink
End Get
Set(ByVal value As LinkedListItem)
_NextLink = value
End Set
End Property

Public Sub New(ByVal Data As Object)
_Data = Data
End Sub
End Class


Scott,


这被问了一千次,表明你只能使用脚本和

早期绑定是假的。


但是你建立了什么样的应用程序,你不知道使用了哪种
值类型。


强类型意味着价值类型在运行时开始之前就已知了。


但是,如你所愿,然后使用反射,成千上万的人在你走这条路之前已经有了b $ b,同样的结果:当时使用

强力输入我明白了。


Cor


" Scott Stark" < sc *** @ webservicesinc.comschreef in bericht

news:u8 ************** @ TK2MSFTNGP05.phx.gbl ...
Scott,

This is asked a thousand times to show that you can only use scripting and
that early binding is a fake.

However what kind of application are you building that you don''t know which
values types are used.

Strongly typed means that the value type is known before runtime starts.

However, as you want this, then use reflection, thousand of persons have
been before you going this way, with the same result: The were using
strongly typed at the time they understood it.

Cor

"Scott Stark" <sc***@webservicesinc.comschreef in bericht
news:u8**************@TK2MSFTNGP05.phx.gbl...

你好,


下面的代码代表一个单链表,它接受任何类型的

对象。


你可以看到我代表Data变量一个System.Object。我将如何更新此代码以使用泛型而不是System.Object。我希望Form1_Load中的代码

保持完全相同,但在后台我想

使用泛型。我正在努力更好地理解它是如何工作的。

我有点卡住了。


我尝试将LinkedListItem类转换为:公共类

LinkedListItem(Of T)然后,当然将System.Object

变量切换为类型T.但是在LinkedList类中,我的_Head和_Tail

对象需要为LinkedListItem(Of T),但在那时

它需要知道对象类型(String,Integer,Double等)。我不会知道对象类型,直到我使用我的Add()

方法将它添加到列表中。我确定这是一个简单的解决方案,我只是坚持这个。


提前谢谢。


Private Sub Form1_Load(ByVal sender As System.Object,ByVal e As

System.EventArgs)Handles MyBase.Load

Dim MyList As New LinkedList

MyList.Add(" 12345")

MyList.Add(55)

MyList.Add(" Kathy")

MyList .Add(1.234)

End Sub


Public Class LinkedList

Private _Head As LinkedListItem

私有_Tail为LinkedListItem


Public ReadOnly属性GetFirstItem()

获取

返回_Head

结束获取

结束物业


Public Property Head()As LinkedListItem

获取

返回_Head

结束获取

设置(ByVal值为LinkedListItem)

_Hea d =价值

结束集

结束物业


Public Sub Add(ByVal Data As Object)

Dim Item As New LinkedListItem(Data)


If(_Head Is Nothing)然后

_Head = Item

结束If


如果(_Tail Is Nothing)那么

_Tail = Item

Else

_Tail.NextItem =项目

_Tail =项目

结束如果

结束次级

结束班级

公共类LinkedListItem

私有_Data为对象

私有_NextLink为LinkedListItem


公共属性值()为对象

获取

返回_Data

结束获取

设置(ByVal值为对象)

_Data = value

结束集

结束财产


公共财产NextItem()As Link edListItem

获取

返回_NextLink

结束获取

设置(ByVal值为LinkedListItem)

_NextLink = value

结束集

结束财产


Public Sub New(ByVal Data As Object)

_Data = Data

End Sub

End Class
Hello,

The code below represents a singly-linked list that accepts any type of
object.

You can see I''m represting the Data variable a System.Object. How would I
update this code to use generics instead of System.Object. I want the code
in Form1_Load to remain exactly the same, but in the background I want to
use generics. I''m trying to get a better understanding of how it works and
I''m a little stuck.

I tried converting the LinkedListItem class to: Public Class
LinkedListItem(Of T) and then, of course switching the System.Object
variables to type T. But then in the LinkedList class, my _Head and _Tail
objects would need to be case as LinkedListItem(Of T), but at that point
it needs to know the object type (String, Integer, Double, etc). I won''t
know the object type until I''ve added it to the list using my Add()
method. I''m sure it''s a simple solution, I''m just stuck on this one.

Thanks in advance.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyList As New LinkedList
MyList.Add("12345")
MyList.Add(55)
MyList.Add("Kathy")
MyList.Add(1.234)
End Sub

Public Class LinkedList
Private _Head As LinkedListItem
Private _Tail As LinkedListItem

Public ReadOnly Property GetFirstItem()
Get
Return _Head
End Get
End Property

Public Property Head() As LinkedListItem
Get
Return _Head
End Get
Set(ByVal value As LinkedListItem)
_Head = value
End Set
End Property

Public Sub Add(ByVal Data As Object)
Dim Item As New LinkedListItem(Data)

If (_Head Is Nothing) Then
_Head = Item
End If

If (_Tail Is Nothing) Then
_Tail = Item
Else
_Tail.NextItem = Item
_Tail = Item
End If
End Sub
End Class

Public Class LinkedListItem
Private _Data As Object
Private _NextLink As LinkedListItem

Public Property Value() As Object
Get
Return _Data
End Get
Set(ByVal value As Object)
_Data = value
End Set
End Property

Public Property NextItem() As LinkedListItem
Get
Return _NextLink
End Get
Set(ByVal value As LinkedListItem)
_NextLink = value
End Set
End Property

Public Sub New(ByVal Data As Object)
_Data = Data
End Sub
End Class


实际上,它这是MCTS 70-536预备书第1章中的练习


创建一个链表通用类,使您能够创建一个

不同对象类型的链。


我一直在努力完成这项工作大约三天已经

最终决定向正确的方向寻求帮助。我已经得到了所有其他的建议做法和建议做法。下来,不是这个。鉴于

它在第1章中,他们甚至还没有触及反思,我是

假设有一个更简单的方法它。


" Cor Ligthert [MVP]" < no ************ @ planet.nlwrote in message

news:54 ****************** **************** @ microsof t.com ...
Actually, it''s an exercise in Chapter 1 of the prep book for the MCTS 70-536
exam.

"Create a linked-list generic class that enables you to create a chain of
different object types."

I''ve been trying to accomplish this on my own for about three days and have
finally decided to ask for help moving in the right direction. I''ve gotten
all of the other "Suggested Practices" down, just not this one. Given that
it''s in Chapter 1 and they haven''t even touched on reflection yet, I''m
assuming there''s a simpler way to do it.

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:54**********************************@microsof t.com...

Scott,


这被问了一千次,表明你只能使用脚本和

早期绑定是假的。


但是什么样的应用程序是你构建的,你不知道

使用了哪些值类型。


强类型意味着值类型在运行时启动之前是已知的。


然而,正如你想要的那样,然后使用反射,成千上万的人在你走这条路之前已经有了b $ b,结果相同:正在使用

在他们理解时强力输入。


Cor


" Scott Stark" < sc *** @ webservicesinc.comschreef in bericht

news:u8 ************** @ TK2MSFTNGP05.phx.gbl ...
Scott,

This is asked a thousand times to show that you can only use scripting and
that early binding is a fake.

However what kind of application are you building that you don''t know
which values types are used.

Strongly typed means that the value type is known before runtime starts.

However, as you want this, then use reflection, thousand of persons have
been before you going this way, with the same result: The were using
strongly typed at the time they understood it.

Cor

"Scott Stark" <sc***@webservicesinc.comschreef in bericht
news:u8**************@TK2MSFTNGP05.phx.gbl...

>您好,

下面的代码代表一个单链表,可以接受任何类型的
对象。
代码保持完全相同,但在后台我想要使用泛型。我正在努力更好地理解它是如何工作的,而且我有点卡住。

我尝试将LinkedListItem类转换为:Public Class
LinkedListItem(然后,当然,将System.Object
变量切换为类型T.然后在LinkedList类中,我的_Head和_Tail
对象需要为LinkedListItem(Of T),但在那时它需要知道对象类型(String,Integer,Double等)。在我使用Add()
方法将它添加到列表之前,我不会知道对象类型。我确定这是一个简单的解决方案,我只是坚持这个。

提前致谢。

Private Sub Form1_Load(ByVal sender As System .Object,ByVal e As
System.EventArgs)处理MyBase.Load
Dim MyList As New LinkedList
MyList.Add(" 12345")
MyList.Add(55)
MyList.Add(" Kathy")
MyList.Add(1.234)
End Sub

Public Class LinkedList
Private _Head As LinkedListItem
公共ReadOnly属性GetFirstItem()
获取
返回_Head
结束获取
结束财产
公共财产头()作为LinkedListItem
获取
返回_Head
结束获取
设置(ByVal值为LinkedListItem)
_Head = value
结束集<结束属性

公共子添加(ByVal数据作为对象)
Dim项目为新LinkedLi stItem(数据)
如果(_Head什么都没有)那么
_Head = Item
结束如果

如果(_Tail Is Nothing)那么 _Tail = Item
其他
_Tail.NextItem = Item
_Tail = Item
结束如果
End Sub
End Class
公共类LinkedListItem
私有_Data作为对象
私有_NextLink作为LinkedListItem

公共属性值()作为对象
获取
返回_Data
结束获取
设置(ByVal值为对象)
_Data = value
结束集
结束属性

公共属性NextItem()As LinkedListItem
获取
返回_NextLink
结束获取
设置(ByVal值为LinkedListItem)
_NextLink = value
结束集
结束属性

Public Sub New(ByVal Data As Object)
_Data = Data
End Sub
E nd Class
>Hello,

The code below represents a singly-linked list that accepts any type of
object.

You can see I''m represting the Data variable a System.Object. How would I
update this code to use generics instead of System.Object. I want the
code in Form1_Load to remain exactly the same, but in the background I
want to use generics. I''m trying to get a better understanding of how it
works and I''m a little stuck.

I tried converting the LinkedListItem class to: Public Class
LinkedListItem(Of T) and then, of course switching the System.Object
variables to type T. But then in the LinkedList class, my _Head and _Tail
objects would need to be case as LinkedListItem(Of T), but at that point
it needs to know the object type (String, Integer, Double, etc). I won''t
know the object type until I''ve added it to the list using my Add()
method. I''m sure it''s a simple solution, I''m just stuck on this one.

Thanks in advance.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyList As New LinkedList
MyList.Add("12345")
MyList.Add(55)
MyList.Add("Kathy")
MyList.Add(1.234)
End Sub

Public Class LinkedList
Private _Head As LinkedListItem
Private _Tail As LinkedListItem

Public ReadOnly Property GetFirstItem()
Get
Return _Head
End Get
End Property

Public Property Head() As LinkedListItem
Get
Return _Head
End Get
Set(ByVal value As LinkedListItem)
_Head = value
End Set
End Property

Public Sub Add(ByVal Data As Object)
Dim Item As New LinkedListItem(Data)

If (_Head Is Nothing) Then
_Head = Item
End If

If (_Tail Is Nothing) Then
_Tail = Item
Else
_Tail.NextItem = Item
_Tail = Item
End If
End Sub
End Class

Public Class LinkedListItem
Private _Data As Object
Private _NextLink As LinkedListItem

Public Property Value() As Object
Get
Return _Data
End Get
Set(ByVal value As Object)
_Data = value
End Set
End Property

Public Property NextItem() As LinkedListItem
Get
Return _NextLink
End Get
Set(ByVal value As LinkedListItem)
_NextLink = value
End Set
End Property

Public Sub New(ByVal Data As Object)
_Data = Data
End Sub
End Class


这篇关于通用链接列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆