hi,
according to the documentation System.Drawing.Font is serializable, well
at least it should be because it implements ISerializable. but when i
try to serialize it with XmlSerializer i get exception saying that this
object cannot be serialized because it hasn't got defined default public
constructor (or something like that - this is translation from other
language, so it may sound wired).
so how can i serialize Font object? is it serializable or this is
another documentation bug?
Ollie Riches - 23 Sep 2005 15:11 GMT
ISerializable is the interface for allowing an object to control its own
serialization and deserialization.
Typically classes in the framework implement this interface to support
binary serialisation.Using the [Serializable] attribute indicates that a
class supports binary serialisation (System.Runtime.Serialization Namespace)
NOT XmlSerialisation.
For a list of all members of this type, see ISerializable Members.
> hi,
>
[quoted text clipped - 7 lines]
> so how can i serialize Font object? is it serializable or this is another
> documentation bug?