是否有:C# 文字库

发布于 2024-12-12 20:25:31 字数 271 浏览 7 评论 0原文

是否有针对不同数据结构和内置类的 ToString C# 库?

与扩展方法库相同吗?我想许多开发人员使用它们进行调试,查看数据包含什么。

例如: Debug.Writeline(dict); 可能会给我以下内容:

new Dictionary<string,string>() {{ "abc", "def" } , {"lmn", "opq"}};

或不同的样式。

谢谢。

Is there a ToString C# library for different data structures, and built in classes?

Same as extension methods libraries? I imagine many developers use them for debugging, seeing what the data contains.

For example: Debug.Writeline(dict); may give me the following:

new Dictionary<string,string>() {{ "abc", "def" } , {"lmn", "opq"}};

or a different style.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤檠 2024-12-19 20:25:31

您可能想尝试这个库: http://www.servicestack.net/mythz_blog/ ?p=202。无论如何,其他人之前也提出过类似的问题: 如何使用 LinqPad .Dump() Visual Studio 中的扩展方法?

You might want to try out this library: http://www.servicestack.net/mythz_blog/?p=202. Anyway somebody else made a similar question before: How to use the LinqPad .Dump() extension method in Visual Studio?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文