Click here to Skip to main content
15,896,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I am wondering about warning CA2237: Mark Iserializable
Does anyone know why it is a warning and why I should mark it with the tag
<serializable()>

Is this only usefull for the intelligence or does it provide any functionality?

What I have tried:

Readed the following articles Basic Serialization and Mark ISerializable types with SerializableAttribute
Posted
Updated 11-Nov-16 3:09am

1 solution

Try reading the links again. Your second link provides the answer quite clearly:
To be recognized by the common language runtime as serializable, types must be marked with the SerializableAttribute attribute even if the type uses a custom serialization routine through implementation of the ISerializable interface.
 
Share this answer
 
Comments
Wessel Beulink 11-Nov-16 9:16am    
I didn't not read it good enough. Thanks Richard!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900