Skip to content

Commit

Permalink
Update SerializationSettings_IgnoreType.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 15, 2022
1 parent 1418605 commit b3746a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ partial class SerializationSettings

public void IgnoreMembersWithType<T>()
where T : notnull =>
ignoredTypes.Add(typeof(T));
IgnoreMembersWithType(typeof(T));

public void IgnoreMembersWithType(Type type) =>
ignoredTypes.Add(type);
Expand Down

0 comments on commit b3746a0

Please sign in to comment.