| Last change
 on this file since 677 was             610, checked in by NoWest, 17 years ago | 
        
          | 
CollectionクラスはListクラスと同じくIListインターフェイスを実装しているのですが、
 ListクラスのようにGetEnumeratorを実装できません。
 原因は不明です。
 
 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 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> | 
|---|
| 12 | Inherits IDisposable | 
|---|
| 13 | ' Methods | 
|---|
| 14 | Function MoveNext () As Boolean | 
|---|
| 15 | Sub Reset() | 
|---|
| 16 | ' Property | 
|---|
| 17 | Function Current () As T | 
|---|
| 18 | End Interface | 
|---|
| 19 |  | 
|---|
| 20 |  | 
|---|
| 21 | Interface 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 | 
|---|
| 33 | End Interface | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
| 36 | Interface 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 ) | 
|---|
| 48 | End Interface | 
|---|
| 49 |  | 
|---|
| 50 | End Namespace | 
|---|
| 51 | End Namespace | 
|---|
| 52 | End Namespace | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.