Skip to content

Commit

Permalink
JsonIgore兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Jun 17, 2019
1 parent d0efa87 commit 65b5c42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebApiClient/Defaults/AnnotationsContractResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ protected override JsonProperty CreateProperty(MemberInfo member, MemberSerializ
property.NullValueHandling = NullValueHandling.Ignore;
}

property.Ignored = annotations.IgnoreSerialized;
if (property.Ignored == false)
{
property.Ignored = annotations.IgnoreSerialized;
}
return property;
}

Expand Down

0 comments on commit 65b5c42

Please sign in to comment.