Changeset 582 for trunk/ab5.0/ablib/src/Classes/System/Collections/misc.ab
- Timestamp:
- Aug 9, 2008, 1:44:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/misc.ab
r577 r582 1 1 ' Classes/System/Collections/misc.ab 2 3 #ifndef __SYSTEM_COLLECTIONS_MISC_AB__4 #define __SYSTEM_COLLECTIONS_MISC_AB__5 2 6 3 Namespace System 7 4 Namespace Collections 8 9 Interface ICollection10 Inherits IEnumerable11 ' Properties12 Function Count() As Long13 '/*Const*/ Function IsSynchronized() As Boolean14 ' Function SyncRoot() As ...15 ' Methods16 ' Sub CopyTo(ByRef array As ..., index As Long)17 End Interface18 19 Interface IComparer20 ' Methods21 Function Compare(ByRef x As Object, ByRef y As Object) As Long22 End Interface23 24 Interface IDictionary25 Inherits ICollection /*, IEnumerable */26 ' Methods27 Sub Add(ByRef key As Object, ByRef value As Object)28 Sub Clear()29 /*Const*/ Function Contains(ByRef key As Object) As Boolean30 ' /*Const*/ Function GetEnumerator() As *IDictionaryEnumerator31 /*Const*/ Function Remove(ByRef key As Object) As Boolean32 ' Properties33 /*Const*/ Function IsFixedSize() As Boolean34 /*Const*/ Function IsReadOnly() As Boolean35 ' /*Const*/ Function Operator [](ByRef key As Object) As *Object36 ' Sub Operator []=(ByRef key As Object, ByRef value As Object)37 /*Const*/ Function Keys() As *ICollection38 /*Const*/ Function Values() As ICollection39 End Interface40 41 Interface IDictionaryEnumerator42 Inherits IEnumerator43 ' Properties44 /*Const*/ Function Entry() As DictionaryEntry45 /*Const*/ Function Key() As *Object46 /*Const*/ Function Value() As *Object47 End Interface48 5 49 6 Interface IEnumerable … … 60 17 End Interface 61 18 62 Interface IEqualityComparer63 ' Methods64 Function Equals(ByRef x As Object, ByRef y As Object) As Boolean65 Function GetHashCode(ByRef obj As Object) As Long66 End Interface67 68 19 Interface IList 69 Inherits ICollection/*, IEnumerable */20 'Inherits /*, IEnumerable */ 70 21 ' Methods 71 22 'Function Add(value As *Object) As Long … … 83 34 End Interface 84 35 85 Class DictionaryEntry86 Public87 ' /*Const*/ructors88 Sub DictionaryEntry()89 k = 090 v = 091 End Sub92 93 Sub DictionaryEntry(ByRef key As Object, ByRef value As Object)94 k = VarPtr(key)95 v = VarPtr(value)96 End Sub97 98 ' Properties99 /*Const*/ Function Key() As *Object100 Return k101 End Function102 103 Sub Key(ByRef key As Object)104 k = VarPtr(key)105 End Sub106 107 /*Const*/ Function Value() As *Object108 Return v109 End Function110 111 Sub Value(ByRef value As Object)112 v = VarPtr(value)113 End Sub114 Private115 k As *Object116 v As *Object117 End Class118 119 36 End Namespace 'Collections 120 37 End Namespace 'System 121 122 #endif '__SYSTEM_COLLECTIONS_MISC_AB__
Note:
See TracChangeset
for help on using the changeset viewer.