How to serialize an Object of type System.Net.Mime.ContentType?

Posted by Emanuel on Stack Overflow See other posts from Stack Overflow or by Emanuel
Published on 2010-05-08T20:56:05Z Indexed on 2010/05/08 20:58 UTC
Read the original article Hit count: 305

Filed under:
|
|
|
|

I want to parse a text message and store in into an object of type System.Net.Mime.Attachment. The problem comes when I want to serialize this object.

Error: Type "System.Net.Mime.ContentType" is not marked as serializable.

How can I avoid this?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about serialize