A
Anders Eriksson
Coming from C++, where if you don't initialize your variables you're
screwed, I wonder how this works in C#.
Should I initialize variables?
E.g.
string foo = string.Empty;
int i = 0;
double n = 0.0;
BarClass bar = null;
If I don't initialize them what value will they have?
// Anders
screwed, I wonder how this works in C#.
Should I initialize variables?
E.g.
string foo = string.Empty;
int i = 0;
double n = 0.0;
BarClass bar = null;
If I don't initialize them what value will they have?
// Anders