Application.Current.DispatcherUnhandledException += new DispatcherUnhandledExceptionEventHandler(Current_DispatcherUnhandledException);
string a = "1.5"; decimal.Parse(a);
You can set the Handled property of the DispatcherUnhandledExceptionEventArgs to true, as follows:
Handled
DispatcherUnhandledExceptionEventArgs
true
void Current_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { // ... e.Handled = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)