try/finally

in conclusion

1, no matter try, finally will be executed;

2, in the return try, before execution will finally result saved, even if modifications are finally also try to save the value prevail, but if it is a reference type, will be changed to modify the properties of finally prevail ;

3, if the try / finally have the return, directly back finally in return.

Guess you like

Origin www.cnblogs.com/lovedaodao/p/11417262.html