dmay / xmlrpcnet

Automatically exported from code.google.com/p/xmlrpcnet
0 stars 0 forks source link

NonSerializedAttribute cannot be applied to properties #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Report from Fredrik Haglund:

I think I found an issue in XmlRpcSerializer.ParseStruct regarding
NonSerializedAttribute.

We are using “[NonSerialized]” attribute to make it possible to have fields
and properties in structs that are ignored. (As mentioned in FAQ 2.35) 

Unfortunately are the NonSerializedAttribute only allowed on fields and not
properties making it impossible to hide properties in structs from
XmlRpcSerializer.ParseStruct. 

May I suggest that a new attribute XmlRpcIgnoreMember, or similar, is added
and can be used in parallel with NonSerialized that also for work for
properties?

Original issue reported on code.google.com by ChasC...@gmail.com on 1 Sep 2009 at 5:55

GoogleCodeExporter commented 9 years ago

Original comment by ChasC...@gmail.com on 22 May 2010 at 3:49