.NET binary serialization between 32-bit and 64-bit OS

I have a program that saves data to a hard drive using binary serialization. If I recompile a program on a 64-bit machine, can it deserialize data from a 32-bit machine?

+3
source share
3 answers

Almost all .NET data types are defined in their bytes (with the exception of IntPtr, which differs depending on your target architecture). Therefore, serializing any .NET object will serialize the same size of this object regardless of your architecture. Fortunately, no special work is required on your part. Good luck

+4
source

, , , - IntPtr, .

+2

Source: https://habr.com/ru/post/1709325/


All Articles