GenericTypeParameterBuilder.DeclaringMethod プロパティ

定義

現在のMethodInfoがジェネリック メソッドの型パラメーターを表す場合は、宣言メソッドを表すGenericTypeParameterBuilderを取得します。

public:
 virtual property System::Reflection::MethodBase ^ DeclaringMethod { System::Reflection::MethodBase ^ get(); };
public override System.Reflection.MethodBase DeclaringMethod { get; }
member this.DeclaringMethod : System.Reflection.MethodBase
Public Overrides ReadOnly Property DeclaringMethod As MethodBase

プロパティ値

現在のMethodInfoがジェネリック メソッドの型パラメーターを表す場合は宣言メソッドを表すGenericTypeParameterBuilder。それ以外の場合はnull

注釈

DeclaringMethod プロパティがnullされていない場合、宣言メソッドはジェネリック メソッド定義であり、DeclaringMethod.IsGenericMethodDefinitiontrue

適用対象