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

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

DynamicMethod.InitLocals プロパティ

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

メソッドローカル変数を 0 で初期化するかどうかを示す値を取得または設定します

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

Dim instance As DynamicMethod
Dim value As Boolean

value = instance.InitLocals

instance.InitLocals = value
public bool InitLocals { get;
 set; }
/** @property */
public boolean get_InitLocals ()

/** @property */
public void set_InitLocals (boolean value)

プロパティ
メソッドローカル変数を 0 で初期化する場合trueそれ以外場合false既定値true です。

解説解説
使用例使用例

動的メソッドInitLocals プロパティ表示するコード例次に示します。このコード例は、DynamicMethod クラストピック取り上げているコード例一部分です。

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


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS