Changeset 403 for trunk/Include
- Timestamp:
- Feb 12, 2008, 9:40:59 AM (17 years ago)
- Location:
- trunk/Include/Classes
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/ActiveBasic/Core/TypeInfo.ab
r402 r403 15 15 memberTypeFullNames As *String ' 型名リスト 16 16 memberCounts As Long ' 個数 17 memberInfosCache As System.Collections.Generic.List<System.Reflection.MemberInfo> 17 18 18 19 Protected … … 108 109 ' Public methods 109 110 '---------------------------------------------------------------- 111 112 Override Function GetMembers() As System.Collections.Generic.List<System.Reflection.MemberInfo> 113 If Object.ReferenceEquals( memberInfosCache, Nothing ) Then 114 ' キャッシュにないときは生成する 115 memberInfosCache = New System.Collections.Generic.List 116 Dim i As Long 117 For i=0 To ELM(memberCounts) 118 memberInfosCache.Add( New System.Reflection.MemberInfo( memberNames[i], _System_TypeBase_Search( memberTypeFullNames[i] ) ) ) 119 Next 120 End If 121 122 Return memberInfosCache 123 End Function 110 124 111 125 End Class -
trunk/Include/Classes/System/Collections/Generic/Dictionary.ab
r393 r403 58 58 Next 59 59 End If 60 debug 61 'KeyNotFoundException 60 61 Throw New KeyNotFoundException 62 62 63 Return Nothing 63 64 End Function -
trunk/Include/Classes/System/Reflection/MemberInfo.ab
r402 r403 1 Namespace System 2 Namespace Reflection 3 4 5 Class MemberInfo 6 name As String 7 memberType As TypeInfo 8 Public 9 Sub MemberInfo( name As String, memberType As TypeInfo ) 10 This.name = name 11 This.memberType = memberType 12 End Sub 13 14 Function Name() As String 15 Return name 16 End Function 17 18 Function MemberType() As TypeInfo 19 Return memberType 20 End Function 21 End Class 22 23 24 End Namespace 25 End Namespace -
trunk/Include/Classes/System/TypeInfo.ab
r275 r403 1 ' 実装中...2 '(※ まだ組み込んでいません)3 4 5 1 Namespace System 6 2 … … 45 41 '---------------------------------------------------------------- 46 42 43 Abstract Function GetMembers() As System.Collections.Generic.List<System.Reflection.MemberInfo> 44 47 45 End Class 48 46 -
trunk/Include/Classes/index.ab
r391 r403 27 27 #require "./System/Collections/Generic/Dictionary.ab" 28 28 #require "./System/Collections/Generic/List.ab" 29 #require "./System/Collections/Generic/KeyNotFoundException.ab" 29 30 /* 30 31 #require "./System/Data/Odbc/Odbc.ab" … … 70 71 #require "./System/Media/SystemSound.ab" 71 72 #require "./System/Media/SystemSounds.ab" 73 #require "./System/Reflection/MemberInfo.ab" 72 74 #require "./System/Runtime/InteropServices/GCHandle.ab" 73 75 #require "./System/Security/AccessControl/misc.ab"
Note:
See TracChangeset
for help on using the changeset viewer.