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

Last change on this file since 579 was 579, checked in by dai, 16 years ago
  • ForeachがIDisposableを実装したIEnumerator<T>を取り扱うように変更
  • #120(列挙体のUnicode対応)の修正
File size: 1.3 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
21Class ICollection<T>
[579]22 Implements IEnumerable<T>
[557]23Public
24 ' Property
[577]25 Abstract Function Count() As Long
26 Abstract Function IsReadOnly() As Boolean
[557]27
28 ' Methods
[577]29 Abstract Sub Add ( item As T )
30 Abstract Sub Clear ()
31' Abstract Function Contains ( item As T ) As Boolean
32' Abstract Sub CopyTo (ByRef array As List<T>, arrayIndex As Long )
33 Abstract Function Remove ( item As T ) As Boolean
[557]34End Class
35
36
37Class IList<T>
38 Inherits ICollection<T>
39Public
40 ' Property
[577]41 Abstract Sub Operator[] ( index As Long, item As T )
42 Abstract Function Operator[] ( index As Long ) As T
43
[557]44 ' Methods
[577]45 Abstract Function IndexOf ( item As T ) As Long
46 Abstract Sub Insert ( index As Long, item As T )
47 Abstract Sub RemoveAt( index As Long )
[557]48End Class
49
[577]50Namespace Details
51
52Interface ICollection<T>
53 ' Property
54 Function Count() As Long
55 '/*Const*/ Function IsSynchronized() As Boolean
56 ' Function SyncRoot() As ...
57End Interface
58
[557]59End Namespace
[577]60
61
[557]62End Namespace
63End Namespace
[577]64End Namespace
Note: See TracBrowser for help on using the repository browser.