Export (0) Print
Expand All

MethodBuilder.InitLocals Property

Gets or sets whether the local variables in this method should be zero initialized. The default value of this property is true.

[Visual Basic]
Public Property InitLocals As Boolean
[C#]
public bool InitLocals {get; set;}
[C++]
public: __property bool get_InitLocals();
public: __property void set_InitLocals(bool);
[JScript]
public function get InitLocals() : Boolean;
public function set InitLocals(Boolean);

Property Value

Read/write. Gets or sets whether the local variables in this method should be zero initialized.

Remarks

If this property is set to false, the runtime will generate unverifiable code.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

MethodBuilder Class | MethodBuilder Members | System.Reflection.Emit Namespace

Show:
© 2015 Microsoft