What is the .NET equivalent of PHP var_dump?

后端 未结 5 977
春和景丽
春和景丽 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:40

    I could certainly see the use in such a thing, but in .Net won't you mostly just get a list of type names (String, Array, etc)? Most of the built-ins don't have "useful" ToString() overloads pre-written, do they?

提交回复
热议问题