Visual Studioでデバッグ中に[ウォッチ]ウィンドウの[例外]の[データ]プロパティの内容を簡単に見る方法はありますか?これは奇妙な型のSystem.Collections.ListDictionaryInternalです。デバッグ中にException.Dataをウォッチウィンドウで表示
私はあなたが個別にキーと値を見ることができます考え出し:
ex.Data.Keys.Cast<string>()
ex.Data.Values.Cast<string>()
しかし、あなたは辞書か何かとしてそれを見ることができます:ウォッチウィンドウで
try {
... do something that throws exception with Data
}
catch (Exception ex) {
throw;
}
finally {
}
?