Can Dump() work on "dynamic" objects?
(see comment: this is impossible in C#)
-
Nill Coen commented
MaxBet Casino online: jocuri & pacanele online, blackjack, sloturi online.
https://www.maxbet.ro -
Umarickeni commented
Taxi to Charleroi Airport (CRL), taxi transfers Brussels - Charleroi. AtoB airport taxi will meet you at Charleroi airport and drive you comfortably.
https://atobtransfer.com/brussels-belgium/taxi-charleroi-airport/
https://www.facebook.com/transferservicebrussels/
https://twitter.com/AtoB_transfer_ -
Ligi So commented
(dyn as object).Dump();
-
This fails because extension methods don't work with dynamic binding. A workaround is to call:
LINQPad.Extensions.Dump(dyn);
OR:
Console.WriteLine (dyn);
LINQPad rewires Console.WriteLine so that it has the same effect as calling Dump(). -
Ajit Singh commented
dynamic dyn = 10;
Console.WriteLine (dyn); //this works
dyn.Dump(); //this does not