newtonsoft json conditionally ignore property

Solutions on MaxInterview for newtonsoft json conditionally ignore property by the best coders in the world

showing results for - "newtonsoft json conditionally ignore property"
Max
10 Feb 2016
1public bool ShouldSerializeINSERT_YOUR_PROPERTY_NAME_HERE()
2{
3    if(someCondition){
4        return true;
5    }else{
6        return false;
7    }
8}
Sophia
09 Mar 2020
1public bool ShouldSerializeINSERT_YOUR_PROPERTY_NAME_HERE()
2{
3    if(someCondition){
4        return true;
5    }else{
6        return false;
7    }
8}
9