Last change
on this file since 582 was 582, checked in by イグトランス (egtra), 16 years ago |
非Genericコレクションインタフェースの扱いを大幅に縮小。Queue/Stackの実装インタフェースの修正。
|
File size:
1.4 KB
|
Rev | Line | |
---|
[557] | 1 |
|
---|
| 2 | Namespace System
|
---|
| 3 | Namespace Collections
|
---|
| 4 | Namespace Generic
|
---|
| 5 |
|
---|
| 6 | Interface IEnumerable<T>
|
---|
| 7 | ' Method
|
---|
| 8 | Function GetEnumerator () As IEnumerator<T>
|
---|
| 9 | End Interface
|
---|
| 10 |
|
---|
| 11 | Interface IEnumerator<T>
|
---|
[579] | 12 | Inherits IDisposable
|
---|
[557] | 13 | ' Methods
|
---|
| 14 | Function MoveNext () As Boolean
|
---|
| 15 | Sub Reset()
|
---|
| 16 | ' Property
|
---|
| 17 | Function Current () As T
|
---|
| 18 | End Interface
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | Class ICollection<T>
|
---|
[579] | 22 | Implements IEnumerable<T>
|
---|
[557] | 23 | Public
|
---|
| 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] | 34 | End Class
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | Class IList<T>
|
---|
| 38 | Inherits ICollection<T>
|
---|
| 39 | Public
|
---|
| 40 | ' Property
|
---|
[577] | 41 | Abstract Sub Operator[] ( index As Long, item As T )
|
---|
| 42 | Abstract Function Operator[] ( index As Long ) As T
|
---|
| 43 |
|
---|
[582] | 44 | Abstract Sub Item ( index As Long, item As T )
|
---|
| 45 | Abstract Function Item ( index As Long ) As T
|
---|
| 46 |
|
---|
[577] | 47 | Abstract Function IndexOf ( item As T ) As Long
|
---|
| 48 | Abstract Sub Insert ( index As Long, item As T )
|
---|
| 49 | Abstract Sub RemoveAt( index As Long )
|
---|
[557] | 50 | End Class
|
---|
| 51 |
|
---|
[577] | 52 | Namespace Details
|
---|
| 53 |
|
---|
| 54 | Interface ICollection<T>
|
---|
| 55 | ' Property
|
---|
| 56 | Function Count() As Long
|
---|
| 57 | '/*Const*/ Function IsSynchronized() As Boolean
|
---|
| 58 | ' Function SyncRoot() As ...
|
---|
| 59 | End Interface
|
---|
| 60 |
|
---|
[557] | 61 | End Namespace
|
---|
[577] | 62 |
|
---|
| 63 |
|
---|
[557] | 64 | End Namespace
|
---|
| 65 | End Namespace
|
---|
[577] | 66 | End Namespace
|
---|
Note:
See
TracBrowser
for help on using the repository browser.