Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / September 2005

Tip: Looking for answers? Try searching our database.

XmlSerialization problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SharpCoderMP - 07 Sep 2005 13:49 GMT
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?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.