3 ms·
The out variables example for C# 7 is misleading. You don't need the int quantity; declaration. Leaving it in there defeats the purpose of the example which
by drblast 10y ago
The out variables example for C# 7 is misleading. You don't need the
int quantity;
declaration. Leaving it in there defeats the purpose of the example which is meant to show that the declaration is not necessary :-)
- alain_gilbert 10y agoI was indeed confused by this example ! Thanks for the precision :)
- madiathomas 10y agoAuthor probably forgot to remove that declaration statement when he copied and pasted the new way of doing it.