Why are \'out\' parameters in .NET a bad idea?
I was recently asked this, but I had no real answer besides it\'s simply unnecessarily complicating an application. Wh
The out keyword is necessary (see SortedDictionart.TryGetValue). It implies pass by reference and also tells the compiler that the following:
SortedDictionart.TryGetValue
int value; some_function (out value);
is OK and that some_function isn't using an unitialised value which would normally be an error.
some_function