DerrickBrayanClayton / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

Non-parametrized constructor #106

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Unfortunately this serializer needs empty constructor, but instead you can
use FormatterService.GetUninitializedObject Witch cat create instance of
[Serializable] class not calling it's constructor.

I was intended to implement it nyself, but as I sow you are only one
developer and repository is closed for other. :)

Also there is Method PopulateObjectsMembers, perhaps it is faster, then
setting every field, but I'm not shore.

Original issue reported on code.google.com by innahema@gmail.com on 2 May 2010 at 10:37

GoogleCodeExporter commented 8 years ago
This is already addressed in "v2", which allows both XmlSerializer-style 
(parameterless 
constructor) and DataContractSerializer-style (skip the constructor) usage.

I don't have plans to backport to "v1", as "v2" should be available within a 
few weeks.

Original comment by marc.gravell on 2 May 2010 at 11:04

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 16 May 2010 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 16 May 2010 at 6:16

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 13 Jun 2011 at 9:07