Support

 

XML Serialization

CodeFort automatically recognizes types and members that are taking part in XML Serialization, and exclude these items from the obfuscation.

This is the default behavior, because the majority of .NET code that is involved in serialization, relies on that the persistence classes and fields/properties keep their original names. This way both the obfuscated version and the original version of your software will be able to serialize/deserialize the same files.

Look out for recursive serialization

Note that CodeFort is only able to recognize types and members that are correctly decorated with either the SerializableAttribute, attributes from the System.Xml.Serialization namespace (XmlInclude etc.), or attributes related to DataContracts etc.

If your code happens to serialize classes which have not been decorated with any of these attributes, these classes will have been obfuscated, and your code is likely to break. This may happen if you are serializing collections of objects, where instances of these objects might be of types that have not been correctly decorated.

User Comments

Add comment

Add your comment to this page