Say I make the following query expression:
var clients =
(from c in Clients
where (c.Age == 20)
select new { c.FirstName, c.LastName }
).ToList();
Calling clients.Dump() in Linqpad shows the following in the Results Panel:
Is there a way to rename the set's header, to let's say 'clients', instead of 'List<> (5 items)'?
The header indicates the type, so you can't rename it without changing the collection type. Instead, you would normally call .Dump with a heading:
clients.Dump ("clients")
and then you get the list with a heading of 'clients'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With