Код: Выделить всё
try
{
instance.SometimesThrowAnUnavoidableException(); // Visual Studio pauses the execution here due to the CustomException and I want to prevent that.
}
catch (CustomException exc)
{
// Handle an exception and go on.
}
anotherObject.AlsoThrowsCustomException(); // Here I want VS to catch the CustomException.
Я попробовал DebuggerNonUserCode, но это для другой цели.
Как запретить Visual Studio перехватывать определенное исключение только в определенном методе?
Подробнее здесь: https://stackoverflow.com/questions/158 ... -exception
Мобильная версия