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

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

MethodBuilder.IsGenericMethodDefinition プロパティ

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

現在の MethodBuilder オブジェクトジェネリック メソッドの定義を表しているかどうかを示す値を取得します

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

Public Overrides ReadOnly
 Property IsGenericMethodDefinition As Boolean
Dim instance As MethodBuilder
Dim value As Boolean

value = instance.IsGenericMethodDefinition
public override bool IsGenericMethodDefinition
 { get; }
public:
virtual property bool IsGenericMethodDefinition {
    bool get () override;
}
/** @property */
public boolean get_IsGenericMethodDefinition ()
public override function get
 IsGenericMethodDefinition () : boolean

プロパティ
現在の MethodBuilder オブジェクトジェネリック メソッドの定義を表している場合trueそれ以外場合false

解説解説

MethodBuilder使用できるのは、ジェネリック メソッドの定義を作成する場合だけです。これを使用して構築されジェネリック メソッド直接作成することはできません。ただし、MethodBuilderサブクラスは、構築されジェネリック メソッドを表す場合あります

使用例使用例

メソッドステータス表示するコード例次に示します。このコードは、DefineGenericParameters メソッドトピック取り上げているコード例一部分です。

' Use the IsGenericMethod property to find out if a
' dynamic method is generic, and IsGenericMethodDefinition
' to find out if it defines a generic method.
Console.WriteLine("Is DemoMethod generic? {0}", _
    demoMethod.IsGenericMethod)
Console.WriteLine("Is DemoMethod a generic method definition?
 {0}", _
    demoMethod.IsGenericMethodDefinition)
// Use the IsGenericMethod property to find out if a
// dynamic method is generic, and IsGenericMethodDefinition
// to find out if it defines a generic method.
Console.WriteLine("Is DemoMethod generic? {0}", 
    demoMethod.IsGenericMethod);
Console.WriteLine("Is DemoMethod a generic method definition? {0}", 
    demoMethod.IsGenericMethodDefinition);
// Use the IsGenericMethod property to find out if a
// dynamic method is generic, and IsGenericMethodDefinition
// to find out if it defines a generic method.
Console::WriteLine("Is SampleMethod generic? {0}",
    sampleMethodBuilder->IsGenericMethod);
Console::WriteLine(
    "Is SampleMethod a generic method definition? {0}",
    sampleMethodBuilder->IsGenericMethodDefinition);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS