c# - .NET XmlSerializer Compiling Type Schemas Reader/Writer -


For my application, I have to serial the data to use XML, so I read on MSDN. One thing that concerns me is under the Security reasons for XmlSerializer applications , which reads it:

XmlSerializer C # (.cs) files Makes and compiles them in .dll files in the directory designated by TEMP environment variable; Serialization happens with those DLLs.

A user can have several instances of my application running at the same time. My concern is that 2 different instances are being serialized in different XML files, however, DLL generated by XmlSerializer class in Application frequency 2 in the XmlSerializer class Application examples 1. Is this a concern, or are there temporary / unique file names used for these DLL names?

FYI: I need to use XML instead of binary serialization because we need to edit values ​​in files sometimes by hand.

Thanks

This should be a concern, or Are the temporary / unique file names used for DLL names?

Names are unique, you do not have to worry about it

If your app is going to make use of XML serialization, it may be possible That you would like to pre-generate the serialization assembly. This will save it from the upper part of the runtime, and the name of the assembly will be fixed (YourAssembly.XmlSerializers.dll)


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -