linqpad - 如何增加 LINQPad 中图形的限制?

标签 linqpad

LINQPad 中显示的结果是有限的。如果对象嵌套很深,则会显示一条红线。
我想增加一个限制,这样我就可以看到更多的嵌套对象。

你知道怎么做吗? (我在选项中没有找到。)

Background not in the original question: LINQPad will display of "limit of graph" error message if the total output exceeds a certain threshold (total page size). The suggested answers are addressing how to limit the depth of the individually dumped object graphs, which may help avoiding hitting the total size limit. It does not, however, increase the "limit of graph", which is what OP is asking.

最佳答案

充实@lioil的答案:
Dump的重载包括:

T Dump<T>(this T o); //Dump the object and return it (for fluency)
T Dump<T>(this T o, string description); //Dump with label
T Dump<T>(this T o, int maximumDepth); //Dump with given maximum depth
T Dump<T>(this T o, string description, int maximumDepth); //Combine the above

您正在寻找第三种或第四种选择。

关于linqpad - 如何增加 LINQPad 中图形的限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2944421/

相关文章:

c# - LINQPad:Assert() 打印 "Fail:"并继续而不是中断

c# - 初学者使用 Linqpad 运行非常基本的 linq to sql 查询的步骤

c# - 从 Visual Studio C# 项目调用 LinqPad 7

linqpad - 将 Linqpad 与 Epicor 10 一起使用需要什么配置?

azure - LinqPad 显示无效的对象名称 'dbo.sysforeignkeys'

entity-framework - LINQPad 查询错误

LINQPAD - 读入 csv 并将列存储到列表中

c# - 这段小代码上的 ForEach Replace 没有达到我预期的效果。我在这里做错了什么?

linq - 使用 LINQ 获取 AttributeCollection 中键的值

c# - LINQPad [扩展] 方法