DynamicMethod.ReflectedType プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DynamicMethod.ReflectedType プロパティの意味・解説 

DynamicMethod.ReflectedType プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

メソッド取得するためにリフレクション使用したクラス取得します

名前空間: System.Reflection.Emit
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Overrides ReadOnly
 Property ReflectedType As Type
Dim instance As DynamicMethod
Dim value As Type

value = instance.ReflectedType
public override Type ReflectedType { get; }
public:
virtual property Type^ ReflectedType {
    Type^ get () override;
}
/** @property */
public Type get_ReflectedType ()

プロパティ
常に null 参照 (Visual Basic では Nothing)。

解説解説
使用例使用例

動的メソッドリフレクションされた型を表示するコード例次に示します。このコード例は、DynamicMethod クラストピック取り上げているコード例一部分です。

' For dynamic methods, the reflected type is always Nothing.
If hello.ReflectedType Is Nothing
 Then
    Console.WriteLine(vbCrLf & "ReflectedType is Nothing.")
Else
    Console.WriteLine(vbCrLf & "ReflectedType: {0}",
 _
        hello.ReflectedType)
End If
// For dynamic methods, the reflected type is always null.
if (hello.ReflectedType==null)
{
    Console.WriteLine("\r\nReflectedType is null.");
}
else
{
    Console.WriteLine("\r\nReflectedType: {0}", hello.ReflectedType);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DynamicMethod クラス
DynamicMethod メンバ
System.Reflection.Emit 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DynamicMethod.ReflectedType プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DynamicMethod.ReflectedType プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS