Changeset 631 for trunk/ab5.0/ablib/src/Classes/System/Collections/ObjectModel/ReadOnlyCollection.ab
- Timestamp:
- Sep 22, 2008, 5:31:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/ObjectModel/ReadOnlyCollection.ab
r619 r631 6 6 7 7 Class ReadOnlyCollection<T> 8 Implements Generic.IList<T>9 list As Generic.IList<T>8 Implements System.Collections.Generic.IList<T> 9 list As System.Collections.Generic.IList<T> 10 10 11 11 Public 12 12 'Collection クラスの新しいインスタンスを初期化します。 13 13 Sub ReadOnlyCollection () 14 This.list = New Generic.List<T> 14 Dim l = New System.Collections.Generic.List<T> 15 This.list = l 15 16 End Sub 16 Sub ReadOnlyCollection ( list As Generic.IList<T> )17 Sub ReadOnlyCollection ( list As System.Collections.Generic.IList<T> ) 17 18 This.list = list 18 19 End Sub … … 35 36 'Collection をラップする IList ラッパーを取得します。 36 37 Function Items () As Generic.IList<T> 37 Return list38 Return This 38 39 End Function 39 40 … … 57 58 58 59 'Collection を反復処理する列挙子を返します。 59 Override Function GetEnumerator () As Generic.IEnumerator<T>60 Override Function GetEnumerator () As System.Collections.Generic.IEnumerator<T> 60 61 Return This.list.GetEnumerator() 61 62 End Function
Note:
See TracChangeset
for help on using the changeset viewer.