Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,

I'm trying to avoid serialization of some properties depending on a runtime logic by using Json serializer , I found an example for java , but I need to do this in C#.
If anyone has got any clue on this , I really appreciate .

thanks in advance.
Posted

1 solution

This really depends on the serializer you use, for my fastJSON[^] project you can do this with a XmlIgnore attribute.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900