E
Eran Kampf
I noticed this wierd problem when implementing ISerializable for a value
type.
The MSDN documentation (and FxCop) say The GetObjectData method should be
marked with [SecurityPermissionAttribute(SecurityAction.Demand,
SerializationFormatter=true)]
(http://www.gotdotnet.com/team/fxcop/docs/rules/SecurityRules/GetObjectData.html).
When I mark my value type's GetMethodData method with the above CAS
deleration I get a wierd SEHException during serialization.
Without the above CAS decleration, serialization\deserialization runs
fine...
Reference types on the other hand work fine with the above CAS
decleration...
Any idea why this is happening?
Eran Kampf
http://www.ekampf.com
type.
The MSDN documentation (and FxCop) say The GetObjectData method should be
marked with [SecurityPermissionAttribute(SecurityAction.Demand,
SerializationFormatter=true)]
(http://www.gotdotnet.com/team/fxcop/docs/rules/SecurityRules/GetObjectData.html).
When I mark my value type's GetMethodData method with the above CAS
deleration I get a wierd SEHException during serialization.
Without the above CAS decleration, serialization\deserialization runs
fine...
Reference types on the other hand work fine with the above CAS
decleration...
Any idea why this is happening?
Eran Kampf
http://www.ekampf.com