using (var tx = new TransactionScope()) { myMethod(); tx.Complete(); // se myMethod solleva eccezione, non arrivo mai qui }
Torna al forum | Feed RSS