bool Tubo(string text) { bool value; if (text == "Tubo") value = true; return value; }
Will this piece of code compile (answer without compiling please )?
Hey guys,
The answer is no, it won't compile because value variable isn't defined in all case and thus compiler will yield an error.
And no, there is no problem in using "value" as a variable name outside settters (in fact I am using it often :-) ).