What is the .NET equivalent of PHP var_dump?

后端 未结 5 998
春和景丽
春和景丽 2020-12-31 07:43

I remember seeing a while ago that there is some method in maybe the Reflection namespace that would recursively run ToString() on all of an object\'s propertie

5条回答
  •  天涯浪人
    2020-12-31 08:14

    Example code to dump an object and its properties can be found here:

    http://www.developer.com/net/csharp/article.php/3713886

提交回复
热议问题