How to (xml) serialize a uri

前端 未结 6 2313
南笙
南笙 2020-12-18 20:02

I have a class I\'ve marked as Serializable, with a Uri property. How can I get the Uri to serialize/Deserialize without making the property of type string?

6条回答
  •  难免孤独
    2020-12-18 20:32

    Uri class implements ISerializable Interface so it should be able to take care of serialization/deserialization.

提交回复
热议问题