junkone
junkone

Reputation: 1465

how to dump multiple levels LINQPAD

when i do a object.dump() i can get only 1 level. How do i do multiple levels. is ther any examples.

Upvotes: 3

Views: 1047

Answers (1)

Joe Albahari
Joe Albahari

Reputation: 30964

Looking at that screenshot, the simple answer is that LINQPad's default Dump depth of 5 is not enough for that object graph. You can increase it by calling Dump with a numeric argument:

obj.Dump(6);  // dump 6 levels deep

(A more subtle issue is that LINQPad has hit its graph limit in between a list node and its members and this is a bit ugly. I've fixed this for the next LINQPad build.)

Upvotes: 5

Related Questions