The sigle function that emulates behavior of C#’s try[-catch]-finally statement. During translation of C#’s try[-catch]-finally statement with translator’s option finally_statement_as_lambda set to true, the statement is translated into the invocation of this method.
The type of the function object that implements the try[-catch] part of the try[-catch]-finally statement being emulated
F
The type of the function object that implements the finally part of the try[-catch]-finally statement being emulated
Arguments
Parameter
Type
Description
tryBlock
T&&
The function object whose body contains the implementation of the try[-catch] part of the try[-catch]-finally statemet being emulated
finallyBlock
F&&
The function object whose body contains the implementation of the finally part of the try[-catch]-finally statement being emulated
System::DoTryFinally(T&&, F&&) function
The sigle function that emulates behavior of C#’s try[-catch]-finally statement. During translation of C#’s try[-catch]-finally statement with translator’s option finally_statement_as_lambda set to true, the statement is translated into the invocation of this method. This overload handles the case in which the return value of the function object that implements the try[-catch] part of the try[-catch]-finally statement is bool.
The type of the function object that implements the try[-catch] part of the try[-catch]-finally statement being emulated
F
The type of the function object that implements the finally part of the try[-catch]-finally statement being emulated
Arguments
Parameter
Type
Description
tryBlock
T&&
The function object whose body contains the implementation of the try[-catch] part of the try[-catch]-finally statemet being emulated
finallyBlock
F&&
The function object whose body contains the implementation of the finally part of the try[-catch]-finally statement being emulated
System::DoTryFinally(T&&, F&&) function
The sigle function that emulates behavior of C#’s try[-catch]-finally statement. During translation of C#’s try[-catch]-finally statement with translator’s option finally_statement_as_lambda set to true, the statement is translated into the invocation of this method. This overload handles the case in which the return value of the function object that implements the try[-catch] part of the try[-catch]-finally statement is bool&.