Je veux juste savoir est-ce une approche sûre / bonne pour appeler à l' returnintérieur d'un usingbloc. Par ex. using(var scope = new TransactionScope()) { // my core logic return true; // if condition met else return false; scope.Complete(); } Nous savons que la dernière accolade la plus bouclée dispose()sera …
class C { using namespace std; // error }; namespace N { using namespace std; // ok } int main () { using namespace std; // ok } Edit : Vous voulez connaître la motivation derrière cela.
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.