Is it possible to use Protobuf-Net with a class without a parameterless constructor?
问题 Using Protobuf-Net, I see that it does not seem possible to deserialize a class without having a parameterless constructor or I may be missing something? I don't want some of the classes with a parameterless constructor. Is there some kind of attributes that I could use or some other technique? 回答1: protobuf-net depends currently on having a parameterless constructor to work. However that constructor need not be public (it will use reflection if need be to invoke it) so you may be able to