Skip to content

Commit

Permalink
Update SerializationSettings_IgnoreForMemberOfType.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 15, 2022
1 parent cc5ac90 commit 1418605
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ public void IgnoreMembers<T>(params string[] names)
IgnoreMembers(typeof(T), names);

public void IgnoreMember<T>(string name)
where T : notnull
{
Guard.AgainstNullOrEmpty(name, nameof(name));
where T : notnull =>
IgnoreMember(typeof(T), name);
}

public void IgnoreMembers(Type declaringType, params string[] names)
{
Expand Down

0 comments on commit 1418605

Please sign in to comment.