serialization - Serialize in memory object with C# -


I have a program that raises some code from script files and compiles it and it works fine.

The problem is: I declare some sections in the script and I want to serial them. Obviously C # serializer (XML and Binary) does not like serializing in-memory assembly and d-serialized objects.

I do not want to leave the in-memory assembly, I'm exploring another method of serializing, but in case, it is possible to build assembly in memory and finally write it on file?

You always write your own ToXml function using the reflection to write your property data in the string You can. Then your object will decrydate itself

Just one thought.


Comments