divyang4481 / xstream-dot-net

Automatically exported from code.google.com/p/xstream-dot-net
1 stars 1 forks source link

Add Support for Auto Propeties #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add the ability to serialize properties that have no backing field.  Us the
actual name of the property rather than the compiler generated name of the
compiler generated backing field.

Original issue reported on code.google.com by DanBlake...@gmail.com on 12 Dec 2008 at 4:50

GoogleCodeExporter commented 9 years ago
I have a patch for this I did back in october, I'll send it in tomorrow

Original comment by scottjam...@gmail.com on 13 Feb 2009 at 4:13

GoogleCodeExporter commented 9 years ago
Here's the patch for autoproperties and the release dll

the 3.5 framework is only needed for the test, since its using reflection to 
find the
backing field. I've been using this since october.

Original comment by scottjam...@gmail.com on 14 Feb 2009 at 1:49

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks,  I ended up doing something this too.  Forgot to post it though.  
Sorry. 
Works great I have a large number of DAG's I need to persist, XStream is a life
saver.  I also ended up porting over most of the field aliasing mapper from java
xstream.  Need to clean that up and write some more tests and I will post it.

Original comment by DanBlake...@gmail.com on 14 Feb 2009 at 9:28

GoogleCodeExporter commented 9 years ago
Ya that would be very handy, I'm using XStream and XStream.net for iterop so I 
get to
specify the xml schema. I was going to add case insensitivity next

Original comment by scottjam...@gmail.com on 15 Feb 2009 at 9:47