How to XmlSerialize System.Drawing.Font class

后端 未结 5 1875
心在旅途
心在旅途 2021-01-11 17:15

The classSystem.Drawing.Font is not XML Serializable since it doesn\'t have a default (empty) constructor.
Is there some work around or alternative way to

5条回答
  •  抹茶落季
    2021-01-11 18:09

    A suggestion on how to do this by implementing a wrapper class that is serializable is given on the MSDN page for the Font class.

提交回复
热议问题