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