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

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

MethodBuilder.IsGenericMethod プロパティ

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

メソッドジェネリック メソッドかどうかを示す値を取得します

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

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

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

プロパティ
このメソッドジェネリック メソッド場合trueそれ以外場合false

解説解説
使用例使用例

メソッドステータス表示するコード例次に示します。このコードは、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.IsGenericMethod プロパティのお隣キーワード
検索ランキング

   

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



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

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

©2024 GRAS Group, Inc.RSS