[Solved] How does a function with multiple return statements work?
The return statement exits the method and returns the given value if the return type is other than void. The only statements in the method that are executed after a return statement are the ones in a finally block or the disposal of objects of a using-block (which essentially is a special form of try-finally): … Read more