jorgediz / xmlrpcnet

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

"struct" serialization serialize constants and there is no way to stop it from serializing certain properties/members. #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hi
  I have suggestion for STRUCT serialization. currenlty if i declare 
constants it will also serialize that.It should not do that and it should 
respect [NonSerializable] attribut just in case some one does not want a 
property or member to be included in struct serilaization. e.g

enum ResultEum{ Yes, No}
struct FOO
{
    [NonSerialiable]
    public ResultEnum result;
    public string Result{
       get 
         {
            return result.ToString();
         }
     }
}

To be specific i was using LISP .NET communication and i have to use 
struct withing .NET and also send to LISP and lisp only understand string. 
To do clean coding i use ENUM and other constants which is not possiable 
if the whole struct is serialize including constants. I want to control 
which memeber need to be serialized. 

Plz fix it or assing it to me I can fix this issue .

Original issue reported on code.google.com by khanaf...@gmail.com on 28 Aug 2008 at 8:23

Attachments:

GoogleCodeExporter commented 8 years ago
Support for NonSerializable added in revision 73. Const will still be serialized
because this might be a breaking change.

Original comment by ChasC...@gmail.com on 19 Dec 2008 at 2:07

GoogleCodeExporter commented 8 years ago

Original comment by ChasC...@gmail.com on 19 Dec 2008 at 3:47