| Line | |
|---|
| 1 | Namespace System
|
|---|
| 2 | Namespace Reflection
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | /*!
|
|---|
| 6 | @brief メンバの属性に関する情報を取得し、メンバのメタデータにアクセスできるようにします。
|
|---|
| 7 | */
|
|---|
| 8 | Class MemberInfo
|
|---|
| 9 | name As String
|
|---|
| 10 | memberType As TypeInfo
|
|---|
| 11 | offset As LONG_PTR
|
|---|
| 12 | Public
|
|---|
| 13 |
|
|---|
| 14 | /*!
|
|---|
| 15 | @brief コンストラクタ
|
|---|
| 16 | @param name メンバの名前
|
|---|
| 17 | memberType メンバの型
|
|---|
| 18 | */
|
|---|
| 19 | Sub MemberInfo( name As String, memberType As TypeInfo, offset As LONG_PTR )
|
|---|
| 20 | This.name = name
|
|---|
| 21 | This.memberType = memberType
|
|---|
| 22 | This.offset = offset
|
|---|
| 23 | End Sub
|
|---|
| 24 |
|
|---|
| 25 | /*!
|
|---|
| 26 | @brief メンバの名前を取得する。
|
|---|
| 27 | @return メンバの名前。
|
|---|
| 28 | */
|
|---|
| 29 | Function Name() As String
|
|---|
| 30 | Return name
|
|---|
| 31 | End Function
|
|---|
| 32 |
|
|---|
| 33 | /*!
|
|---|
| 34 | @brief メンバの型を取得する。
|
|---|
| 35 | @return メンバの型。
|
|---|
| 36 | */
|
|---|
| 37 | Function MemberType() As TypeInfo
|
|---|
| 38 | Return memberType
|
|---|
| 39 | End Function
|
|---|
| 40 |
|
|---|
| 41 | /*!
|
|---|
| 42 | @brief クラスの先頭ポインタからのオフセット値を取得する。
|
|---|
| 43 | @return クラスの先頭ポインタからのオフセット値。
|
|---|
| 44 | */
|
|---|
| 45 | Function _System_Offset() As LONG_PTR
|
|---|
| 46 | Return offset
|
|---|
| 47 | End Function
|
|---|
| 48 | End Class
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | End Namespace
|
|---|
| 52 | End Namespace
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.