The title is obvious, I need to know if methods are serialized along with object instances in C#, I know that they don’t in Java but I’m a little new to C#. If they don’t, do I have to put the original class with the byte stream(serialized object) in one package when sending it to another PC? Can the original class be like a DLL file?
Share
No. The type information is serialized, along with state. In order to deserialize the data, your program will need to have access to the assemblies containing the types (including methods).