How can I determine if an object can ToString into value or type name?

后端 未结 6 1712
青春惊慌失措
青春惊慌失措 2021-01-19 09:38

I am writing an interop between a php service and our crm. One of the things I need to do is make sure that simple types get converted ToString() for use later in a json co

6条回答
  •  执笔经年
    2021-01-19 09:56

    Option 1: make sure that every Object will overwrite ToString(). Option 2: Use reflection to get all object properties and concat them.

提交回复
热议问题