|
-
Feb 9th, 2011, 06:33 PM
#1
[RESOLVED] Serializing System.Net.Mime.ContentType?
Can anyone explain why System.Net.Mime.ContentType is not marked as Serializable? I ran into problems when using ContentType for a property type and ASP.NET complained that it couldn't serialize the class.
I fixed it by changing the ContentType type to string, but I'm still stuck on why ContentType is not serializable.
-
Feb 12th, 2011, 10:37 PM
#2
Re: Serializing System.Net.Mime.ContentType?
I guess that it was never intended to be serialised. Given that the ContentType is only intended to be used with the Attachment class when sending an email, I can understand why the authors wouldn't have expected an instance to be serialised.
-
Feb 15th, 2011, 01:33 AM
#3
Re: Serializing System.Net.Mime.ContentType?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|