Generic deserialization of an xml string

前端 未结 5 2064
名媛妹妹
名媛妹妹 2020-12-24 15:29

I have a bunch of different DTO classes. They are being serialized into an XML string at one point and shot over to client-side of the web app. Now when the client shoots

5条回答
  •  被撕碎了的回忆
    2020-12-24 15:41

    How about making a non-generic "front door" function whose purpose is to figure this out? Most XML schemas use the object name, or a reasonable facsimile, as the outermost tag for the object.

提交回复
热议问题