How to set local variables automatically?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

Are there any options to set local variables in methods automatically
(in Visual Studio 2003)?
Example:

public void Method(){
int i; //I want i=0
ArrayList a; //I want a=null

i++;//compile time error
if (a==null) //compile time error
...

}

Thanks.

.



Relevant Pages