Closed GoogleCodeExporter closed 8 years ago
Firstly, note that for most users it will be using "newobj" via the
metaprogramming layer - not Activator.CreateInstance.
Secondly, ctor skipping is already fully supported - just put
SkipCpnstructor=true on the ProtoContractAttribute or via Runtime TypeModel.
Thirdly, it also supports custom type-factories, for any other
implementation-defined scenario - both per-type and global.
Basically: everything you want is already there. Let me know if you can't find
it from the above (I'm not at a PC right now, hence no full example).
Original comment by marc.gravell
on 27 Dec 2013 at 12:04
Thanks, the SkipConstructor parameter seems to do what I want.
I was looking at the TypeModel implementation and saw Activator.CreateInstance
in the deserialization code, and the code looked like that's what it was using
to construct the passed in value if it didn't exist.
Original comment by jrho...@redpointgames.com.au
on 27 Dec 2013 at 12:13
Original issue reported on code.google.com by
jrho...@redpointgames.com.au
on 26 Dec 2013 at 11:17