如何实现由LinqPad提供的转储? [英] How to implement Dump as the one provided by LinqPad?

查看:76
本文介绍了如何实现由LinqPad提供的转储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出(new [] {"a", "b"}).Dump(),LinqPad提供了一些非常有用的打印结果.

Given (new [] {"a", "b"}).Dump(), LinqPad provides some very useful print results.

此扩展方法似乎是Console.WriteLine的简写.

It seems that this extension method is a short hand for Console.WriteLine.

问题>如何为我自己实现此转储?

Question> how to implement this dump for myself?

推荐答案

该线程可能对您有用. 是否有一个提供格式化的库像LinqPad这样的Dump()函数?

This thread might be of use to you. Is there a library that provides a formatted Dump( ) function like LinqPad?

这篇关于如何实现由LinqPad提供的转储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆