[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.
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.
Re: Serializing System.Net.Mime.ContentType?