In Visual Studio when debugging C# code, can I export a List or a Dictionary in xml,csv or text format easily?

后端 未结 4 1369
执笔经年
执笔经年 2021-01-17 07:19

In Visual Studio when debugging C# code, can I export a Dictionary in xml,csv or text format easily?

I would like to export a

4条回答
  •  温柔的废话
    2021-01-17 08:07

    You can add a watch to your Dictionary (or List), then under the Watch Window you can then expand the entire dictionary (or List), right click, select-all, copy

    Then in Excel you can paste the data and it should auto-format:

    You could also just paste this data directly into another text-editor (or just view the data directly in the watch window too).

    Hope that can help.

提交回复
热议问题