6 ms·
I don't see how the tuple is better in this case since the first thing you need to do is check the flag to see if the value is valid. The tuple version then nee
by lkitching 9y ago
I don't see how the tuple is better in this case since the first thing you need to do is check the flag to see if the value is valid. The tuple version then needs to be split over two lines instead of a single line like
if(TryGetSomething(3, out MyType outvar)) { ... }