You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to extend your code to ignore nested data.
E.g. I have a product -> part -> supplier setup, and I want the product and part serialized but not the supplier.
When serializing a product I'd like to be able to use something like
jsSettings.ContractResolver = new IgnorePropertiesResolver(new[] { "part.supplier" });
I know I can use just "supplier" but that's open to side effects as it doens't specify a particular property.
Any ideas?
The text was updated successfully, but these errors were encountered:
I'm trying to extend your code to ignore nested data.
E.g. I have a product -> part -> supplier setup, and I want the product and part serialized but not the supplier.
When serializing a product I'd like to be able to use something like
jsSettings.ContractResolver = new IgnorePropertiesResolver(new[] { "part.supplier" });
I know I can use just "supplier" but that's open to side effects as it doens't specify a particular property.
Any ideas?
The text was updated successfully, but these errors were encountered: