try { // ... } catch (Exception ex) { ex.Data.Add("Hello", "World"); throw ex; }
foreach (DictionaryEntry item in ex.Data) { string exceptionData = item.Key +" "+ item.Value; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)