System.Reflection.MethodBody.InitLocals Property

Gets a value indicating whether local variables in the method body are initialized to the default values for their types.

Syntax

public virtual bool InitLocals { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MethodBody.InitLocals property refers to variables that are not explicitly initialized; that is, variables that are declared with syntax such as int x; in C# or Dim x As Integer in Visual Basic.

Reference variables are initialized to null by default. Numeric variables are initialized to zero.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0