Re: Should I explicitly initialize all member variables?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Javamman.. The following two lines of code are NOT equivalent in C#.

>MyClass m = null; // redundant
MyClass m; // better?<

The second line simply creates an unitialized variable. It does not
default to null.

http://www.geocities.com/Jeff_Louie/OOP/oop5.htm

Regards,
Jeff


*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages