Show/Hide Toolbars

XSharp

The -initlocals option specifies whether the compiler should automatically initialize local variables

Syntax

-initlocals[+|-]

Arguments

+ | - Specifying +, or just -ins, directs the compiler to init local variables or not.

Remarks

This can be used to automatically initialize all local variables and suppress compiler warnings about local variables that are not initialized.

To set this compiler option in the Visual Studio development environment:

 

1.Open the project's Properties page.

2.Click the Language tab.

3.In the General section, modify the "Initialize Local Variables" value

4.Click here to see the property page