Пример #1
0
        protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization serialization)
        {
            var property = base.CreateProperty(member, serialization);

            property.ShouldSerialize = x => _setting.ShouldSerialize(property.DeclaringType, property.PropertyName);
            return(property);
        }
 public JsonProperty CreateProperty(JsonProperty property, MemberInfo member, MemberSerialization serialization)
 {
     property.ShouldSerialize = x => _setting.ShouldSerialize(property.DeclaringType, property.PropertyName);
     return(property);
 }