How to unserialize PHP Serialized array/variable/class and return suitable object in C#

前端 未结 3 918
滥情空心
滥情空心 2020-11-27 07:54

The goal is to unserialize a PHP serialized string and get sutable object in C#

Is there any way to make this possible in C#(.Net)?

To be more specific: We n

相关标签:
3条回答
  • 2020-11-27 08:23

    You should probably write it to XML or JSON. You can construct your C# object back from the XML

    Edit: Looks like there is already a XML serializer for PHP

    0 讨论(0)
  • 2020-11-27 08:36

    I suppose using JSON as an intermediary step could be useful.

    0 讨论(0)
  • 2020-11-27 08:37

    Found solution: Sharp Serialization Library

    0 讨论(0)
提交回复
热议问题