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
Line 
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>
12 Inherits IDisposable
13 ' Methods
14 Function MoveNext () As Boolean
15 Sub Reset()
16 ' Property
17 Function Current () As T
18End Interface
19
20
21Interface ICollection<T>
22 Inherits IEnumerable<T>
23 ' Property
24 Function Count () As Long
25 Function IsReadOnly () As Boolean
26
27 ' Methods
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
34
35
36Interface IList<T>
37 Inherits ICollection<T>
38 ' Property
39' Sub Operator[] ( index As Long, item As T )
40' Function Operator[] ( index As Long ) As T
41
42 Sub Item ( index As Long, item As T )
43 Function Item ( index As Long ) As T
44
45 Function IndexOf ( item As T ) As Long
46 Sub Insert ( index As Long, item As T )
47 Sub RemoveAt ( index As Long )
48End Interface
49
50End Namespace
51End Namespace
52End Namespace
Note: See TracBrowser for help on using the repository browser.