s****e 发帖数: 282 | | O*******d 发帖数: 20343 | | j********g 发帖数: 88 | | g*****g 发帖数: 34805 | 4 How does C# replicate a web session if there's no standard way
to serialize objects?
【在 j********g 的大作中提到】 : nor does C#
| L*********r 发帖数: 92 | 5 first, serialize is not a feature of language. it can be a feature provided
by sdk. c++ can implement serialize for sure but there might be no standard
way in c++.
the serialize in .net or c# is very good.
first you define the content to be serialized using different pattern. it
can be very simple or complicate. the simple way is to use marker attribute(
the annotation in java). this simple way is almost same as java.
second, you define what is the target format for serialized content. the
forma
【在 g*****g 的大作中提到】 : How does C# replicate a web session if there's no standard way : to serialize objects?
| g*****g 发帖数: 34805 | 6 Sure C++ can provide serialization, but probably not
without some custom scheme, which is due to its lack of
reflection mechanism. i.e. You can't just say I want to serialize
this object and let SDK do it, at least not in object code level,
you have to provide an implementation to
actually do that. Correct me if I am wrong in that.
provided
standard
attribute(
【在 L*********r 的大作中提到】 : first, serialize is not a feature of language. it can be a feature provided : by sdk. c++ can implement serialize for sure but there might be no standard : way in c++. : the serialize in .net or c# is very good. : first you define the content to be serialized using different pattern. it : can be very simple or complicate. the simple way is to use marker attribute( : the annotation in java). this simple way is almost same as java. : second, you define what is the target format for serialized content. the : forma
| L*********r 发帖数: 92 | 7 you are right. at least, it is the way that i did in c++, even it is
interface based but still need to manually write code to write/read data
into archive stream.
【在 g*****g 的大作中提到】 : Sure C++ can provide serialization, but probably not : without some custom scheme, which is due to its lack of : reflection mechanism. i.e. You can't just say I want to serialize : this object and let SDK do it, at least not in object code level, : you have to provide an implementation to : actually do that. Correct me if I am wrong in that. : : provided : standard : attribute(
| y****i 发帖数: 156 | |
|