source: trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/misc.ab

Last change on this file was 610, checked in by NoWest, 16 years ago

CollectionクラスはListクラスと同じく
IListインターフェイスを実装しているのですが、
ListクラスのようにGetEnumeratorを実装できません。
原因は不明です。

File size: 1.1 KB
RevLine 
[557]1
2Namespace System
3Namespace Collections
4Namespace Generic
5
6Interface IEnumerable<T>
7 ' Method
8 Function GetEnumerator () As IEnumerator<T>
9End Interface
10
11Interface IEnumerator<T>
[579]12 Inherits IDisposable
[557]13 ' Methods
14 Function MoveNext () As Boolean
15 Sub Reset()
16 ' Property
17 Function Current () As T
18End Interface
19
20
[592]21Interface ICollection<T>
22 Inherits IEnumerable<T>
[557]23 ' Property
[610]24 Function Count () As Long
25 Function IsReadOnly () As Boolean
[557]26
27 ' Methods
[592]28 Sub Add ( item As T )
29 Sub Clear ()
30' Function Contains ( item As T ) As Boolean
31' Sub CopyTo (ByRef array As List<T>, arrayIndex As Long )
32 Function Remove ( item As T ) As Boolean
33End Interface
[557]34
35
[592]36Interface IList<T>
[557]37 Inherits ICollection<T>
38 ' Property
[592]39' Sub Operator[] ( index As Long, item As T )
40' Function Operator[] ( index As Long ) As T
[577]41
[592]42 Sub Item ( index As Long, item As T )
43 Function Item ( index As Long ) As T
[582]44
[592]45 Function IndexOf ( item As T ) As Long
46 Sub Insert ( index As Long, item As T )
[610]47 Sub RemoveAt ( index As Long )
[577]48End Interface
49
[557]50End Namespace
51End Namespace
52End Namespace
Note: See TracBrowser for help on using the repository browser.