📄 kiditerator.vb
字号:
Imports System.Collections
Public Class KidIterator
Implements IEnumerator
Private index As Integer
Private kidList As ArrayList
'-----
Public Sub New(ByVal col As Arraylist)
index = 0
kidList = col
End Sub
'-----
Public Function MoveNext() As Boolean _
Implements System.Collections.IEnumerator.MoveNext
index = index + 1
Return index < kidList.Count
End Function
'-----
Public Sub Reset() Implements _
System.Collections.IEnumerator.Reset
index = 0
End Sub
'-----
Public ReadOnly Property Current() As Object _
Implements System.Collections.IEnumerator.Current
Get
Return kidList.Item(index)
End Get
End Property
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -