Type.ReflectedTypeとは? わかりやすく解説

Type.ReflectedType プロパティ

このメンバ取得するために使用したクラス オブジェクト取得します

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

Public Overrides ReadOnly
 Property ReflectedType As Type
Dim instance As Type
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 ()

プロパティ
この MemberInfo オブジェクト取得するために使用した Type オブジェクト

解説解説
使用例使用例

派生クラスで、メソッドリフレクションされた型を表示する例を次に示しますメソッド mMyClassA宣言されていますが、そのリフレクションされた型は MyClassB から取得されます。

Imports System
Imports System.Reflection

Public MustInherit Class
 rtype

    Public MustInherit Class
 MyClassA
        Public MustOverride Function
 m() As Integer
    End Class

    Public MustInherit Class
 MyClassB
        Inherits MyClassA
    End Class

    Public Shared Sub Main()
        Console.WriteLine("Reflected type of m is {0}",
 _
           GetType(MyClassB).GetMethod("m").ReflectedType)
    End Sub
End Class
using System;
using System.Reflection;
 
public abstract class rtype 
{
    public abstract class MyClassA 
    {
        public abstract int m(); 
    }

    public abstract class MyClassB : MyClassA
 
    {
    }

    public static void Main(string[]
 args) 
    { 
        Console.WriteLine("Reflected type of m is {0}",
            typeof(MyClassB).GetMethod("m").ReflectedType);
    }
}
using namespace System;
using namespace System::Reflection;

public ref class rtype abstract
{
public:
   ref class MyClassA abstract
   {
   public:
      virtual int m() = 0;
   };

   ref class MyClassB abstract: public MyClassA{};
};

int main()
{
   Console::WriteLine( "Reflected type of m is {0}", rtype::MyClassB::typeid->GetMethod(
 "m" )->ReflectedType );
}
import System.*;
import System.Reflection.*;

abstract public class Rtype
{
    abstract public class MyClassA
    {
        public abstract int M();
    } //MyClassA
      
    abstract public class MyClassB extends
 MyClassA
    {
    } //MyClassB

    public static void main(String[]
 args)
    {
        Console.WriteLine("Reflected type of M is {0}", 
            MyClassB.class.ToType().GetMethod("M").get_ReflectedType());
    } //main
} //Rtype
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

_Type.ReflectedType プロパティ

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

COM オブジェクトに、Type.ReflectedType プロパティへのバージョン依存しないアクセス用意されています。

このプロパティは、CLS準拠していません。  

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

Dim instance As _Type
Dim value As Type

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

プロパティ
この MemberInfo オブジェクト取得するために使用した Type オブジェクト

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からType.ReflectedTypeを検索した結果を表示しています。
Weblioに収録されているすべての辞書からType.ReflectedTypeを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からType.ReflectedType を検索

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

辞書ショートカット

すべての辞書の索引

「Type.ReflectedType」の関連用語

Type.ReflectedTypeのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS