When an object is serialized (by forwarding sent over the wire), does the instance method code become serialized? Or are the fields of class instances just serialized?
I ask this because some of my objects have a great method and want to know that I should use DTO (data transfer objects) to send data over the wire.
I assume this is just data plus some version type data ... am I right?
thanks
Methods are never serialized.
Re "fields" - ; BinaryFormatter ; "", BinaryFormatter, - MSDN ( ):
BinaryFormatter
, . Windows (WCF).
- WCF: XmlSerializer + ; DataContractSerializer ..
XmlSerializer
DataContractSerializer
DTO, ( ), DTO.
(edit/) , , BinaryFormatter - , ( ). ( ) , ... , , .
, , . .
Source: https://habr.com/ru/post/1710465/More articles:Oracle extractValue does not work when a query returns many rows - sqlHow can this be written on one line? - pythonCurrency of Great Britain. Regular expression for javascript - javascriptHow to compile Botan crypton library as a static library in VC ++? - c ++The best strategy for calling an arbitrary function without using JMP or LCALL - cКак связать статическую библиотеку в Visual С++ 2008? - c++Issue a certificate for PKCS # 10 CSR without a Cert template. 0x80094801 MS W2K3 Enterprise CA - certificaterail session model - ruby-on-railsFree open source library for screen capture in java - javaCreating a lexer in C - cAll Articles