У меня есть класс stati c с некоторыми свойствами stati c void.
public static class Payment
{
public static void ChargeTask(int paymentId)
{
//some code
try
{
//some code
}
catch
{
//handle the exceptions.
how can i exit in this property
}
//deny continue this codes
}
}
Как я могу запретить продолжение строк субкода после обработки исключения try catch?